PDA

View Full Version : projection matrix


me_here_me
06-12-2007, 10:47 AM
what is the default setting of GL_PROJECTION matrix.

Lets say I set the matrix in my application like:

glViewport( 0, 0, (GLsizei)w, (GLsizei)h );
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
glMatrixMode( GL_MODELVIEW );

and i donot make any call like glOrtho, glFrustum or gluLookAt

what will be the default values in the projection matrix?

I want a projection that does not have any perspective look. Just parallel display. How should I set up that matrix?

thanks in advance

Reedbeta
06-12-2007, 01:26 PM
The default projection matrix is the identity matrix.

To set up a parallel projection matrix, you can use glOrtho.