Jump to content


projection matrix


  • You cannot reply to this topic
1 reply to this topic

#1 me_here_me

    New Member

  • Members
  • PipPip
  • 24 posts

Posted 12 June 2007 - 05:47 PM

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

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 4979 posts
  • LocationBellevue, WA

Posted 12 June 2007 - 08:26 PM

The default projection matrix is the identity matrix.

To set up a parallel projection matrix, you can use glOrtho.
reedbeta.com - developer blog, OpenGL demos, and other projects





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users