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

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

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
jr_w
920 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:

915-snapshot-122.png

And this is the alpha image I want to create using Arnold shader network nodes:

916-snapshot-121.png

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?

2 REPLIES 2
Message 2 of 3
cdordelly09
in reply to: jr_w

Hi @jr w! Yes, you can multiply the image by the predominant color:

918-screen-shot-2018-02-02-at-105720-pm.png

And you will get the "L" and "Logo" masks:

919-01.jpg

920-02.jpg

921-03.jpg

I don't know if you can clean the "ogo" borders from the "L" mask.

I attached the scene.
image-to-alpha.zip

Message 3 of 3
jr_w
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  

Autodesk Design & Make Report