{"id":523,"date":"2009-01-10T00:08:00","date_gmt":"2009-01-10T06:08:00","guid":{"rendered":"http:\/\/www.mrbluesummers.com\/?page_id=523"},"modified":"2010-03-22T01:23:42","modified_gmt":"2010-03-22T01:23:42","slug":"colors-and-selections","status":"publish","type":"post","link":"http:\/\/www.mrbluesummers.com\/523\/3d-tutorials\/colors-and-selections","title":{"rendered":"World-Machine Colors and Mixing Tutorial"},"content":{"rendered":"

Welcome to another World-Machine 2 tutorial! There’s a lot to be excited about in this nifty program, and one of them is the new color maps feature.\u00a0 If you don’t have a copy of World-Machine, you can always download the trial version<\/a>.\u00a0 You can now use the awesome selection tools in World Machine to mix and match color swatches (and even image maps) in order to create your own color overlays for terrains. We’ll be going over all the selection types in the context of mixing colors. Of course, you’re not limited in how you use these; feel free to use them to create new heightfields, mix heightfields together, and whatever else you can imagine.
\n
World Machine Finished File Download<\/a><\/p>\n

\"\"<\/a><\/p>\n

Here's my final rendered terrain.<\/p>\n<\/div>\n

So let’s get started. I’m going to be using the basic World-Machine 2 default file, and I assume you’ve played around with the program for a few sessions. The only change I made to the original scene was to make it a little larger.\u00a0 You can see my world extents window by clicking here<\/a>.\u00a0 I’ve created a new group to help keep things organized for you. You don’t have to do that if you don’t want.<\/p>\n

\"\"<\/a><\/p>\n

The colors generator in World-Machine.<\/p>\n<\/div>\n

To get started, create a few colors.\u00a0 You can find the “Color Generator” device under the “Generator” tab or the “Bitmap” tab- depending on how you have things organized.\u00a0 You can alternate between organization structures from the “Tools” tab, using the first two buttons.\u00a0 The Color Generator looks like a rainbow blob in a green button.\u00a0 Hover over buttons to see their names.<\/p>\n

\"\"<\/a><\/p>\n

The default world is fine.<\/p>\n<\/div>\n

Let’s go ahead and insert some colors into the scene by selecting the “Color Generator” and clicking a few times in your node graph.\u00a0 Double click on the node and assign each node a color.\u00a0 I made two shades of green, a rock color, and an off-white snow color.<\/p>\n

I’d like to mix up the two green colors in a creative way!\u00a0 How about using the new “Convexity” selection device?\u00a0 Ordinarily, we’d have to use ambient occlusion maps outside of World-Machine in order to generate a map like this.\u00a0 But nothing compares to pre-calculation, so let’s bake it into the map.\u00a0 You can find all the selection devices under the “Selector” tab.\u00a0 This tab is only visible under the “Filter by Device Type” organization, so if you don’t see it, re-read the earlier note about filtering.<\/p>\n

\"\"<\/a><\/p>\n

Convexity filter settings.<\/p>\n<\/div>\n

Note that the “Advanced Perlin” device is outputting to multiple devices.\u00a0 I did this by clicking from “Select Convexity” to “Advanced Perlin”- not the other way around.\u00a0 This allows you to hook several subsequent inputs into a single output.\u00a0 Neat trick, huh?<\/p>\n

Once your convexity properties are set, you can connect it into the 3rd input of a “Chooser” node.\u00a0 This is the first button under the “Combiner” tab and it combines two devices based on a heightfield (rather than combining them procedurally).\u00a0 Create this node in your graph, and connect your two colors to the first and second inputs of the “Chooser”.\u00a0 Connect your convexity selector to the third input, and enjoy your results.<\/p>\n

\"\"<\/a><\/p>\n

Occluded areas are now darker.<\/p>\n<\/div>\n

Now that we’ve set up the first combiner, I won’t bother with the repeated details.\u00a0 Let’s explore the other selection devices and see how else we can blend our material.\u00a0 Creative blending here will save you time and effort later on in 3dsMax, Terragen, or Vue d’Esprit.\u00a0 You won’t need to generate procedural blending maps or masks because you’ll be able to render precomputed maps from World-Machine.<\/p>\n

Select the “Select Slope” selector from the list, and connect it to the terrain generator as you did for the last selector.\u00a0 Double-click on the selector.\u00a0 In the following window, you’ll see two sliders that control the start and end of the slope selection.\u00a0 Lower values mean shallower slopes, and higher values mean steeper slopes.\u00a0 I’ve selected a moderate range of shallow slopes with a low falloff.\u00a0 I want a little mixing between grass and rock, but not much.\u00a0 This gentle blending has a great effect when rendered.<\/p>\n

\"\"<\/a><\/p>\n

We can select a slope here.<\/p>\n<\/div>\n

Similar to the previous process, create a new “Chooser” node, and connect your rock color and the previous chooser as inputs.\u00a0 You’ll then connect your new “Slope Selector” as the final input node (the mixer).<\/p>\n

So far we’ve mixed two kinds of grass and a single rock color.\u00a0 For the snow, let’s spice things up.\u00a0 I want snow on the North-facing peaks above a certain elevation.\u00a0 Sounds like a tall order, doesn’t it?\u00a0 It’s not!\u00a0 World-Machine allows you to combine mask maps in much the same way that it allows us to mix color maps.\u00a0 We just have to combine a “Select Angle” device and a “Select Height” device such that we get a mask that fits our demands.\u00a0 Try getting angular snow deposits in 3dsMax- fat chance.<\/p>\n

We’ll start by creating the “Select Angle” device and attaching it to the “Advanced Perlin” heightfield generator.\u00a0 I’ve included a screenshot of my settings below.<\/p>\n

\"\"<\/a><\/p>\n

The select angle device in action.<\/p>\n<\/div>\n

We’ll also want the “Select Height” device, which allows us to set a minimum on how far down snow should go on the heightfield.\u00a0 Just like the other filters, this needs to be connected to the heightfield generator as well.\u00a0 Notice a similar interface to the “Select Slope” window.\u00a0 We select a range using the two sliders- higher values indicate a higher elevation, while lower values indicate a lower elevation.<\/p>\n

\"\"<\/a><\/p>\n

The select height device in action.<\/p>\n<\/div>\n

Finally, you’ll create a simple “Combiner” device.\u00a0 Notice the difference between a combiner and a “Chooser”.\u00a0 The combiner does not mix according to a map, but instead according to a formula.\u00a0 Also, the combiner can be biased one way or another- an important quality that we’ll use.\u00a0 Create your combiner and hook both selectors into it.\u00a0 Double click on the combiner and set it to “Multiply” with full bias toward the height selector.<\/p>\n

\"\"<\/a><\/p>\n

Combining two alpha maps as masks.<\/p>\n<\/div>\n

Only one small detail remains, although the next step should be pretty clear.\u00a0 You’ll want to use this combined map as the choose-y map for another “Chooser” device.\u00a0 This final “Chooser” will select between the snow and the grass\/rock result we got from the last “Chooser” node.<\/p>\n

\n

\"The<\/a><\/p>\n

The Overlay Device.<\/p>\n<\/div>\n

But how to overlay this awesome color map on our terrain?\u00a0 For that you’ll want the “Overlay View” node, found in the “Output” tab.\u00a0 The image is of a terrain with a colorful topography.\u00a0 When you connect the resultant color map to the “Overlay Input” on the Overlay View (bottom input) and the original heightfield into the “Primary Input” on the Overlay View (top input), you’ll see the terrain displayed in the preview viewport using your awesome new color map!<\/p>\n

When all is said and done, here’s what my node graph looks like.\u00a0 Notice I bypassed the terrace node to keep the color map and the heightfield consistent.<\/p>\n

\"\"<\/a><\/p>\n

Final node graph, minus terrace.<\/p>\n<\/div>\n

And that’s all there is to it!\u00a0 I know it seems like a mess, but it’s actually pretty basic considering what we managed to pull off.\u00a0 You can combine these in a wide variety of ways, including combining them into macros and merging many together to simplify the node graph.\u00a0 Very complex materials are possible.<\/p>\n

Consider experimenting with this technique to colorize sediment from the erosion device, or create sandy beaches with the “Coastal Erosion” device.\u00a0 what makes this special and a world apart from doing it in 3dsMax or Maya is that you have a lot of information that you wouldn’t otherwise have.\u00a0 Deposition maps, flow maps, wear maps and more would otherwise have been lost.<\/p>\n

\"\"<\/a><\/p>\n

Here's my final rendered terrain.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

Welcome to another World-Machine 2 tutorial! There’s a lot to be excited about in this nifty program, and one of them is the new color maps feature.\u00a0 If you don’t have a copy of World-Machine, you can always download the trial version.\u00a0 You can now use the awesome selection tools in World Machine to mix […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,112,23],"tags":[62,88,95],"_links":{"self":[{"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/posts\/523"}],"collection":[{"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/comments?post=523"}],"version-history":[{"count":0,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/posts\/523\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/media?parent=523"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/categories?post=523"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/tags?post=523"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}