Game Development Community

Geometry that refracts lite

by James Brad Barnette · in Torque Game Engine · 09/18/2002 (7:00 pm) · 8 replies

For instance is it possible for the engine to make geometry that can refract or bend light and perspective. Similar to a glass sphere passing in front of you.the view of the can groung beening seen thru the sphere would be all fisheyed.

well is it possible?

#1
09/18/2002 (7:54 pm)
Anything is possible, if you can program it in. ;-)

But as it stands now, it doesn't do that.
#2
09/18/2002 (9:01 pm)
Hmm ok tha twas what I was wondering if here was a function in the engine that would do that.
#3
09/18/2002 (9:58 pm)
You may be able to use something like this and simulate the refraction. If that's what you are looking for.
#4
09/22/2002 (10:11 am)
Actually I was thinkin more of like a displacement effect. maybe a z-buffer map gennerated fromt he player gemetry
#5
09/22/2002 (10:41 am)
here is what I'm refering to:
though this was done in photoshop

http://www.plazaroyal.com/brad/desert.jpg
#6
09/23/2002 (10:45 am)
The best implementation of this i've seen is via vexel / pixel shaders (see the rabbit in the nvbrowser, awesome!, or like in Halo). I'm sure they'll turn up in Torque sooner or later, but it does limit you to high end hardware.

For the moment if you're just aiming for a cloaking effect i'd probably play around with the opacity instead. It'll work better on lower level hardware too.
#7
09/23/2002 (4:15 pm)
hmm would it be possible to have both were the effect you are talking about is the alternaite if the person were to have the pixel shader support turned off?
#8
09/23/2002 (4:53 pm)
I can't answer that, James, but Tribes 2 has cloaking where the player is almost invisible. I would agree that it's probably opacity settings.

Torque doesn't have pixel or vertex shaders at this time.

Eric