1
$\begingroup$

If have a bunch of (procedurally generated, converted to mesh) rocks. I have four image textures (both color and bump).

Is it possible automatically pick a random image texture from the set of four image textures in the node editor, such that each object would randomly get one of the four image textures assigned?

$\endgroup$
3
$\begingroup$

This Randomizer Node Setup should work for what you want to make. If you want you could also switch up the mix shaders for mix color nodes to only randomize the images but I would suggest randomizing the shaders because 1. you only have to do this setup once and 2. you can individually control for example the strength of the bump map and the mixing factor of glossy and diffuse and so on...

Just to explain whats going on here: I have that Random number from the Object Info Node and multiply it with 4 to have a Number between 0 and 4. Then I split that range in half by checking of it is greater or less than 2. Then repeating the same procedure splitting that ranges in half but checking greater 1 and greater 3 if that makes sense.

enter image description here

$\endgroup$
  • $\begingroup$ I think I understand your setup; thanks to the "Just to explain whats going on here" part. Thanks! $\endgroup$ – Jacco Nov 4 '17 at 13:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.