View Full Version : current modelview matrix makeup
spooky
04-19-2004, 04:44 PM
hi if i use the glget command to retreieve the current modelview matrix as a 16x float array, can anyone point me to documentation that shows what data the individual array elements represent. I know it has things like the current, up, right and in/out vectors but i dont know how its organised
thanks for any help
plasmonster
04-19-2004, 09:35 PM
spooky, the basis vectors are in the columns of the matrix.
whats a basis vector, and which of the 4 columns are they in ?
the OpenGL matrices are column major:
|m0 m4 m8 m12|
|m1 m5 m9 m13|
|m2 m6 m10 m14|
|m3 m7 m11 m15|
The glGet function returns a one dimensional array:
[m0, m1, m2, m3, ..., m15]
Reza
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.