Link to home
Start Free TrialLog in
Avatar of InteractiveMind
InteractiveMindFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Projection and Modelview matrices

The projection matrix represents the 'camera's movements, correct? And the modelview matrix is that of the actual objects within the scene... Yeah?

What I'd like to know, is how they're both used by OpenGL to create the scene..

For example, are the modelview and projection matrices both multiplied together at any point? ...

When you call gluPerspective(), it produces a matrix which is multiplied with the current projection matrix. But can anyone explain (or give me a reference to) how gluPerspective() actually produces a matrix?

Also, is rotating +a° around the X-axis using the projection matrix equal to rotating -a° around the X-axis using the modelview matrix?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of InteractiveMind

ASKER

Ah k, cool.

And do you know how gluPerspective() produces the necessary matrix?

Thanks
On seconds thoughts, I don't need to know how gluPerspective() creates it's matrices, anymore.

Thanks.