PDA

View Full Version : Draw Mirror in 3d?



KC
11-09-2000, 11:05 PM
How do I render a mirror in opengl?

I want my scene to have a mirror on say the z=-10 plane. Will I be able to creat one by specifying the material/lighting parameters?

HOw about for ray tracing? how do I specify the properties of a mirror/relective plane.

Glossifah
11-10-2000, 05:18 AM
Read up on stencil buffer writes/compares.
http://nehe.gamedev.net/tutorials/lesson27.asp

Enjoy!

Glossifah