The leaves look transparent

Started by Zvi, May 31, 2018, 11:41:52 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Zvi

The tree model uses a billboard for the leaves. Why do they look transparent?

bdesign

Because you have the Opacity mapped with the same texture as the Diffuse. You need an b&w alpha map (white silhouette on black background).

mattjgerard

And if the image texture has an alpha built in already, you shouldn't even need the opacity map to cut the leaves out, just one to control some little tiny bit of transparency if you wanted to.

Zvi

Quote from: bdesign on May 31, 2018, 12:36:31 PM
Because you have the Opacity mapped with the same texture as the Diffuse. You need an b&w alpha map (white silhouette on black background).
I did as you said with a tiff file, but the leaves became black, although I used a translucent material.

DMerz III

You can change the mapping opacity mode to Alpha instead of color if you want to read only the alpha channel of the map. That will disregard the color information. (look under opacity map settings near the top)

bdesign

The issue with your TIFF file is that it is reversed: the leaf needs to be white, on a black background.

DMerz III

 :) there's also "inverse color" mapping mode if you did have a black (yes) and white (no) alpha. But technically, Eric is correct, they need to be flipped.

I prefer to use Alpha Mapping mode if I have transparency in my .png or .tif, I find it to be more reliable and one less map to load in my file if I want to double purpose my diffuse map.

Zvi

Quote from: bdesign on May 31, 2018, 01:45:19 PM
The issue with your TIFF file is that it is reversed: the leaf needs to be white, on a black background.
Can you show me where is it exactly the opacity map settings?

Zvi

Quote from: DMerz III on May 31, 2018, 02:01:34 PM
:) there's also "inverse color" mapping mode if you did have a black (yes) and white (no) alpha. But technically, Eric is correct, they need to be flipped.

I prefer to use Alpha Mapping mode if I have transparency in my .png or .tif, I find it to be more reliable and one less map to load in my file if I want to double purpose my diffuse map.
I did as your advice, but the leaves became transparent

Zvi

Quote from: bdesign on May 31, 2018, 01:45:19 PM
The issue with your TIFF file is that it is reversed: the leaf needs to be white, on a black background.
Thanks a lot! I found it, and it really solved the problem. By the way, I used for it the original image.

DMerz III

 :) Glad  you figured it out! I was going to suggest clicking on your opacity channel so we can see the settings there, you had the diffuse channel selected so we couldn't see the Opacity Mapping Mode in your screenshot.