
![]() |
Reflection Demo
This code was ported to C++ from Delphi and originates from the Reflection Demo on the site http://www.exsanity.freeola.com/opengl.html (Original Delphi code by Phil Freeman). It demonstrates how to mirror geometry on a plane. A simple reflection demo which does not use the stencil buffer but instead renders the reflection to a texture using glCopyTexSubImage2D and then maps the texture onto the mirror using gluProject. No need for stencil buffer or reflection of the camera below the plane as in other methods. Compiles for Windows and most Unixes. Based on GLUT. Download: WindowsExecutable/Source Code |
Dimi Christopoulos