3
$\begingroup$

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?

$\endgroup$

1 Answer 1

2
$\begingroup$

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. enter image description here

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:

enter image description here

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?

$\endgroup$
3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .