PDA

View Full Version : Difference between Modelview matrix and projection matrix



aphlai
08-21-2001, 10:48 PM
Hi,

I am a beginner on OpenGL. I have a bit confused on modelview matrix and projection matrix. As my understanding, modelview matrix represents the direction the camera looking at while projection matrix represents the range of clipped space. Is that right? http://www.opengl.org/discussion_boards/ubb/confused.gif

Thanks in advance

Bob
08-22-2001, 01:26 AM
Yeah, more or less that way.

Coconut
08-22-2001, 06:17 AM
ModelView matrix is the concatenation of Model matrix and View Matrix. View Matrix defines the position(location and orientation) of the camera, while model matrix defines the frame's position of the primitives you are going to draw.
Projection matrix defines the characteristics of your camera, such as clip planes, field of view, projection method etc.

Nocturnal
08-22-2001, 06:22 AM
The reason for two separate matrices, instead of one, is that lighting is applied after the modelview view matrix (i.e. on eye coordinates) and before the projection matrix. Otherwise, the matrices could be combined.