Semitransparency

Post your questions here
User avatar
KTM57
Posts: 13727
Joined: Wed Jul 07, 2010 2:42 am
Location: TX
Contact:

Semitransparency

Postby KTM57 » Sun Mar 15, 2020 3:19 am

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

User avatar
Jeremy150
Posts: 2262
Joined: Mon Jul 30, 2012 9:56 am
Team: MV Films

Re: Semitransparency

Postby Jeremy150 » Sun Mar 15, 2020 4:21 am

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.
Image

User avatar
KTM57
Posts: 13727
Joined: Wed Jul 07, 2010 2:42 am
Location: TX
Contact:

Re: Semitransparency

Postby KTM57 » Sun Mar 15, 2020 2:23 pm

Cool, that worked! Thanks for your help.

jlv
Site Admin
Posts: 13790
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Semitransparency

Postby jlv » Mon Mar 16, 2020 2:31 am

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.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
KTM57
Posts: 13727
Joined: Wed Jul 07, 2010 2:42 am
Location: TX
Contact:

Re: Semitransparency

Postby KTM57 » Mon Mar 16, 2020 11:40 pm

Ha! "Lens" does come after "default."

jlv
Site Admin
Posts: 13790
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: Semitransparency

Postby jlv » Tue Mar 17, 2020 2:26 am

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.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.

User avatar
Wahlamt
Posts: 7632
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: Semitransparency

Postby Wahlamt » Tue Mar 17, 2020 7:41 am

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

User avatar
Jeremy150
Posts: 2262
Joined: Mon Jul 30, 2012 9:56 am
Team: MV Films

Re: Semitransparency

Postby Jeremy150 » Tue Mar 17, 2020 4:02 pm

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:
Image

User avatar
aeffertz
Posts: 3959
Joined: Sat Sep 06, 2014 7:01 am
Team: Studio ATE
Location: Wiscansin

Re: Semitransparency

Postby aeffertz » Wed Mar 18, 2020 11:06 pm

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.
Image


Return to “Help / Troubleshooting”

Who is online

Users browsing this forum: No registered users and 3 guests