Page 1 of 1

Semitransparency

Posted: Sun Mar 15, 2020 3:19 am
by KTM57
Image

Has anyone cracked the code on a translucent goggle lens? I've been pinging back and forth between unsatisfactory results for about an hour over here.

On the left, I've got a transparent lens via an 85% opaque diffuse map, but the transparent object kills all objects behind it. The right side has a 0% opaque diffuse with reflections only dependent on material settings. My ideal result would be a material that allows me to set a color for the lens (left) that will be semitransparent and show my beautiful eyes (right) so I can approximate a real lens. I've seen screenshots that seem to have it right, but this is an easily faked effect. Is there any way to achieve what I'm going for here?

These are my materials settings, pretty much stolen from Benji's TLD SE3. I've gotten no good results using transparency settings.

Image

Re: Semitransparency

Posted: Sun Mar 15, 2020 4:21 am
by Jeremy150
So basically there's something weird with the game not liking a transparent diffuse, on a non-default material. To get the effect you want, use your first material/transparent setting, but make sure all materials behind the lens are the default blender material. I.E give the face, cheek pads, etc the blender default material.

Re: Semitransparency

Posted: Sun Mar 15, 2020 2:23 pm
by KTM57
Cool, that worked! Thanks for your help.

Re: Semitransparency

Posted: Mon Mar 16, 2020 2:31 am
by jlv
Actually, the material doesn't matter but you want it to be drawn last so it won't block stuff behind it. The export script exports in alphabetic order by material, so give your goggle material a name that begins with "z" or whatever it takes to make it sort last.

Re: Semitransparency

Posted: Mon Mar 16, 2020 11:40 pm
by KTM57
Ha! "Lens" does come after "default."

Re: Semitransparency

Posted: Tue Mar 17, 2020 2:26 am
by jlv
KTM57 wrote:Ha! "Lens" does come after "default."
Capital letters sort before lowercase in ASCII. Numbers are before all letters. Check the Wikipedia ASCII page for the full order.

Re: Semitransparency

Posted: Tue Mar 17, 2020 7:41 am
by Wahlamt
jlv wrote:
KTM57 wrote:Ha! "Lens" does come after "default."
Capital letters sort before lowercase in ASCII. Numbers are before all letters. Check the Wikipedia ASCII page for the full order.
Image

Re: Semitransparency

Posted: Tue Mar 17, 2020 4:02 pm
by Jeremy150
jlv wrote:Actually, the material doesn't matter but you want it to be drawn last so it won't block stuff behind it. The export script exports in alphabetic order by material, so give your goggle material a name that begins with "z" or whatever it takes to make it sort last.
Dang, wish I would have known that :lol:

Re: Semitransparency

Posted: Wed Mar 18, 2020 11:06 pm
by aeffertz
jlv wrote:Actually, the material doesn't matter but you want it to be drawn last so it won't block stuff behind it. The export script exports in alphabetic order by material, so give your goggle material a name that begins with "z" or whatever it takes to make it sort last.
Oh wow. This is good to know.

Re: Semitransparency

Posted: Mon Mar 07, 2022 2:33 pm
by Ash
Hello,

I'm trying to do the same thing on blender 2.9 but the transparency option has disappeared. Someone can help me to do that ?