I am doing a test for mixing three materials using black-and-white image in nodes.

What I want basically is something like this -

enter image description here

It is a cube object. And on the white portion the material colour is yellow and in black portion the material color is red and in blue portion the material color is Green.

So what I did is I opened up GIMP and made two separate black-and-white image. Like these -


enter image description here


enter image description here

And then set-up the nodes this way -

enter image description here

But I am not getting the desired result. What is wrong with this? And how to fix it?

Do we mix various materials this way for complex meshes and material mixing patterns? What is the best way to achieve this?

I am adding the blend file for further clarification:

  • $\begingroup$ When you share .blend files, make sure that the images used as textures are packed into the file. $\endgroup$ – user1853 May 27 '18 at 16:19
  • $\begingroup$ @cegaton sorry for the inconvenience. Please give me some time. I will update the file. $\endgroup$ – Man_From_India May 28 '18 at 12:05
  • $\begingroup$ @cegaton sorry for the delay. I have updated the file. Please help solve this issue. $\endgroup$ – Man_From_India May 30 '18 at 5:18

You only need one difuse shader and the rest is combining colors using the existing masks.

The result of one RGB mix is concatenated to another RGB mix and those become the color for the shader.

enter image description here

(Click on the images to expand to full screen)

If you must use shaders then the masks are used in a similar way to concatenate the mixes one over the other.

enter image description here

| improve this answer | |
  • $\begingroup$ Thank you so much. I got it. For experiment, I was trying to draw a bump map. Like this. The green portion should be swollen. So I used a blank image and used it in image texture node and fed it to a bump node and then the output of the bump node into normal input of the green diffusion shader node. That is fine. But I can't draw it properly. It is sometimes getting swollen. Sometime not. Sometime if i zoom out it is getting swollen. But if i zoom in, it is not working. $\endgroup$ – Man_From_India May 31 '18 at 3:27
  • $\begingroup$ I have no idea of what you are trying to do. If you have unrelated questions use a new post. $\endgroup$ – user1853 May 31 '18 at 3:55

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.