Reflection effect on translucent textures?

Moderator: GZDoom Developers

Post Reply
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Reflection effect on translucent textures?

Post by Amuscaria »

In the new ST (GZDoom too?) the Mirror Line special now includes a reflecting shine to the mirror that makes the "mirror" much more convincing. Can this be done to translucent textures as well? Like adding a 4th argument to the Translucent-Line special to add the refecting effect? I believe windows and other glass areas would look a lot more convincing with this effect.
CaptainToenail
Posts: 3975
Joined: Fri Jul 06, 2007 9:16 am

Re: Reflection effect on translucent textures?

Post by CaptainToenail »

Yes, translucent mirror midtextures, excellent idea :)
Wagi
Posts: 98
Joined: Sat Mar 01, 2008 2:12 pm

Re: Reflection effect on translucent textures?

Post by Wagi »

I don't see this happening. I'm assuming that you are requesting this for Zdoom, am I correct? If this is possible in the software renderer I will be baffled.
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Re: Reflection effect on translucent textures?

Post by Kate »

This is a GL-specific effect that's been around since the days of the original ZDoomGL; more specifically this is environment mapping. The way GL does this particular environment map is that the specified image is cast into an inward cubical or spherical shape, then the player's viewpoint is traced against the plane to see how light would reflect off of it. The direction that the reflected beams would travel off of the plane indicate what part of the inverted outer image is rendered onto the surface in question at that specific point.

As I see it, this would likely take a massive effort to make work in software and would generally be too slow to be useful.
User avatar
Amuscaria
Posts: 6634
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: Reflection effect on translucent textures?

Post by Amuscaria »

This for GZdoom, actually. Im well aware it would be near impossible to do for Software. Maybe one of those GZdoom/ST-OGL features.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”