Arnold for Cinema 4D Forum
Rendering with Arnold in CINEMA 4D using the C4DtoA plug-in.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Use Arnold to generate an alpha image from a color image?

Message 1 of 3
941 Views, 2 Replies

Use Arnold to generate an alpha image from a color image?

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?

Message 2 of 3
in reply to: jr_w

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.

Message 3 of 3
in reply to: jr_w

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators