• Advertisement
Sign in to follow this  

Reflection on Uneven Planes

This topic is 1700 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey guys,

 

I have searched through the internet the wole day now but I could not find an answer to that big question.

What about reflection on uneven planes?

 

Of course for reflection on even planes like a standard mirror you can mirror along the plane, turn on stencilbuffer, turn off depthbuffering and draw all again, but what about convex or concave surfaces (e.g. a car chasey)?

 

Thanks in advance

Lukas

Share this post


Link to post
Share on other sites
Advertisement

It is fairly hard to do these accurately. Basically, you would need ray-tracing. However, there are techniques that can provide a good visual approximation. In particular, you should have a look at environment mapping (or cube mapping).

Share this post


Link to post
Share on other sites

Yes, environment maps are usually static and pre-calculated offline. For example, in a simple demo you might just reflect the skybox.

 

If you want to create the cube map yourself, you can use FBOs to generate textures for all six cube sides. For dynamic environments, you might have to do this every frame, as described here:

 

http://www.mbroecker.com/page2/page12/page12.html

Share this post


Link to post
Share on other sites

Thanks a lot :)

Sounds to me to be runtime intensive especially for objects reflecting each other...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement