PDA

View Full Version : matrix transformation



hanuni
11-21-2002, 03:41 AM
Hi all,

As you know, we multiply the modelview matrix by the matrix A(our matrix) to transform our objects.
On the other hand, we use the gluLookat() to transform our view point.

So, is there any function to change the matrix A into the parameters for gluLookat()?

Thank you in advance
Hanuni

jmg
11-21-2002, 06:33 AM
I believe the purpose of gluLookAt() is to save you the trouble of having to use glTranslate*() and glRotate*() to achieve the same results.

Further, the purpose of glTranslate*() and glRotate*() is to save you the trouble of having to create your own matrix and pre-multiply it with the current modelview matrix to achieve the same results.



[This message has been edited by jmg (edited 11-21-2002).]