PDA

View Full Version : Orthogonal view



fox
10-12-2000, 12:02 AM
Hi,
I have implemented a scene with perspective view, I would like to view it in orthogonal view as well, how do I do this - basically toggling between the two (I know I have to use glOrtho)

dnstapes
10-13-2000, 08:57 AM
try this out

//display in orthorgraphic or perspective (Frustum used here) mode, whichever is the current choice
if (orth)
glOrtho(-5, 5, -5, 5, -2, 100);
else
glFrustum(-1.0, 1.0, -1.0, 1.0, 1.5, 100.0);


Originally posted by fox:
Hi,
I have implemented a scene with perspective view, I would like to view it in orthogonal view as well, how do I do this - basically toggling between the two (I know I have to use glOrtho)