quote:
Original post by paulbird
A. Is there a simple way to make a flat mirror in openGL - how about a spherical mirror. 
B. What about a lens? 
C. What if I wanted to draw a virtual world with a virtual computer in openGL and on the screen of that computer is the same virtual world?
A:
Render everything 2 times.
First the reflection (the the original geometry mirrored, for example glScalef(1,-1,1)), then a transperent polygon as the mirror surface and finally the "real" geometry.
For spherical mirrors you need to use cube maps or environment mapping.
B:
Refractions are hard to do. Cube maps might work.
C:
Render the scene in to a texture and use that texture as the computer screen.