KeyShot Forum

Technical discussions => Materials => Topic started by: Zvi on May 31, 2018, 11:41:52 AM

Title: The leaves look transparent
Post by: Zvi on May 31, 2018, 11:41:52 AM
The tree model uses a billboard for the leaves. Why do they look transparent?
Title: Re: The leaves look transparent
Post by: 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).
Title: Re: The leaves look transparent
Post by: mattjgerard on May 31, 2018, 01:00:05 PM
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.
Title: Re: The leaves look transparent
Post by: Zvi on May 31, 2018, 01:30:14 PM
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.
Title: Re: The leaves look transparent
Post by: DMerz III on May 31, 2018, 01:30:24 PM
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)
Title: Re: The leaves look transparent
Post by: 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.
Title: Re: The leaves look transparent
Post by: 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.
Title: Re: The leaves look transparent
Post by: Zvi on May 31, 2018, 02:15:07 PM
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?
Title: Re: The leaves look transparent
Post by: Zvi on May 31, 2018, 02:32:59 PM
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
Title: Re: The leaves look transparent
Post by: Zvi on May 31, 2018, 03:35:19 PM
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.
Title: Re: The leaves look transparent
Post by: DMerz III on June 01, 2018, 08:51:29 AM
 :) 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.