2
$\begingroup$

I have a simple color image. I need to convert yellow to black and green to white so I can use the image as a map. (for example as roughness map)

enter image description here

$\endgroup$
1
  • $\begingroup$ You could simply put a ColorRamp after the Image Texture of your arrow $\endgroup$
    – moonboots
    Aug 22, 2022 at 9:54

2 Answers 2

4
$\begingroup$

You could discriminate along any of the dimensions of any of the color-spaces, but maybe the most general way is to measure Distance along all 3:

enter image description here

$\endgroup$
1
  • 2
    $\begingroup$ This is cunning. $\endgroup$ Aug 22, 2022 at 11:26
4
$\begingroup$

As @moonboots said, you can just remove the Separate RGB from your setup and you will have a grayscale version of your texture :

enter image description here enter image description here

If you want the yellow part to be black, you can just flip the color ramp :

enter image description here enter image description here

Then you can just add a RGB Curve node to tweak the colors to your liking :

enter image description here enter image description here

$\endgroup$

You must log in to answer this question.

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