I'm using "Cycles" render. And I'm working on a landscape. I know how to make sand and rock, with the black and white color map. But how do I mask 3 textures? -On this scene I need 3 textures, rock, dirt, and sand. How do I do that?
1 Answer
Assuming your mask is greyscale, in theory you can map each of the 255 intermediate shades of grey to an individual land-class. In reality, you probably want more separation between the values so that texture compression doesn't mess up your mask. So assign 0 to rock, 32 to dirt, 64 to grass, ... 255 to sand, etc
Your mask will look like this, then it's up to you to setup the node materials to interpret this mask.
The only downside of this approach is that you have very little control over the blending of these terrains. Using the example above, it would be impossible to blend between sand and rock, since these values are not adjacent to each other on the mask. So with a typical bilinear interpolation, you might get 'rings' of landclass like this:
You can do 2 things: use a noise overlay on the mask to break up the pattern so it looks less obvious, or use a depth based terrain blending technique.
The node for this will be very similar to this: Cycles shader multiplexer node?
-
1$\begingroup$ You could use more than one mask and then combine them in a more defined way. $\endgroup$ Sep 6, 2017 at 1:01
-
-
$\begingroup$ It will be very similar to this: blender.stackexchange.com/questions/89557/… $\endgroup$– Mike PanSep 6, 2017 at 4:44