PDA

View Full Version : Any mirror?



Shadow1
07-08-2000, 01:33 AM
hi
i want to put a mirror in my program but i've never saw something about mirrors in opengl is there no fuction that lets vertices mirroring something? Maybe in glut? Its equal how slow the function is cose my game is not the fastest, i've programmed tetris3d and that needs not very much frames http://www.opengl.org/discussion_boards/ubb/smile.gif Thanks

cu

Shadow

Bob
07-08-2000, 03:04 AM
There are no functions for reflections in OpenGL. You must make your own reflections.

If you want to reflect object(s) in a flat plane, like a mirror, you should look at http://reality.sgi.com/opengl/tips/Reflect.html on how to use the stencil buffer to create nice looking reflections.

And no, there's nothing like this in GLUT http://www.opengl.org/discussion_boards/ubb/tongue.gif

Shadow1
07-08-2000, 03:23 AM
ok thanks
then i must try it this way http://www.opengl.org/discussion_boards/ubb/wink.gif

cu