calixte

04-08-2005, 02:49 AM

Hi, I would like to simulate a camera under opengl.

I use glFrustrum and I know the matrix 3 by 4 which maps a world coordinate point to pixel coordinates.

However when I print the projection matrix (4 by 4!), it does not look like my 3 by 4 matrix!

I set the modelview to identity and the viewport to:

glViewport(0,0,width,height)

What is the mathematical relationship between these matrices?

c.

I use glFrustrum and I know the matrix 3 by 4 which maps a world coordinate point to pixel coordinates.

However when I print the projection matrix (4 by 4!), it does not look like my 3 by 4 matrix!

I set the modelview to identity and the viewport to:

glViewport(0,0,width,height)

What is the mathematical relationship between these matrices?

c.