4
$\begingroup$

I want to use a grayscale image to smoothly blend two shaders together onto one mesh using a mix shader and an image node. How can I convert the data from the image node into data for the mix shader?

$\endgroup$
3
$\begingroup$

Plug the output of the image node into the Mix Factor of the mix node:

enter image description here

$\endgroup$
  • $\begingroup$ lol, I was just posting an answer. You just beat me :) There is a difference between a color and B&W input I find in my tests $\endgroup$ – VRM Jun 5 '15 at 1:46
  • $\begingroup$ @NoviceInDisguise I seem to remember noticing that at one point, but I can't reproduce it now.. Anyway, I read the OP's question as already having a greyscale image. $\endgroup$ – gandalf3 Jun 5 '15 at 1:49
  • $\begingroup$ Yeah, the whole convert thing threw me off a bit. I think what you posted is what they wanted $\endgroup$ – VRM Jun 5 '15 at 1:59
2
$\begingroup$

You can use the Hue/Saturation node (Shift+A > Color > Hue Saturation). If you set the saturation to zero then the information will be black and white.

enter image description here

You could use the RGB to BW node to do this quicker Shift+A > Converter > RGB to BW)

enter image description here

You can also switch the image to the non-color data type like so:

enter image description here

This for use with bump or normal maps and similar image files that have data other than colors. It can also help when using a standard image in such a way.

$\endgroup$
  • 1
    $\begingroup$ Note that there is an RGB to BW node which also can be used for desaturating things $\endgroup$ – gandalf3 Jun 5 '15 at 1:54

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.