Hi, is it possible to use Arnold to create an alpha image/mask/black & white image from a color image?
This is the original color image:
And this is the alpha image I want to create using Arnold shader network nodes:
I want to make all the colors white, except the white background color, which I want to make black.
The reason I want to do this is because this way I don't need to maintain two image files. I just need a color image, then let Arnold generate the alpha image within the material.
I've tried using the Subtract node and plugging in the original image and white color, but I'm not able to get a clean alpha image using this method. Also, I've tried all different blending modes in the layer color node, but none give a pure black and white image. Does anyone know how to do this?
Solved! Go to Solution.
Solved by cdordelly09. Go to Solution.
Hi @jr w! Yes, you can multiply the image by the predominant color:
And you will get the "L" and "Logo" masks:
I don't know if you can clean the "ogo" borders from the "L" mask.
I attached the scene.
image-to-alpha.zip
Thank you Carlos, your scene helped me understand how to solve the problem. The missing part of my knowledge was how to use the ramp shader. Actually, only a single ramp shader node is necessary in order to generate the alpha image, it seems to work similarly to curves or levels in Photoshop.
The border issue can be solved by setting the filter in image attributes to Closest, and a negative value to the mip mapping bias. However, the image I provided is not of the highest quality, with a higher quality/resolution image it should be possible to completely get rid of the borders.