-
current modelview matrix makeup
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
-
Advanced Member
Frequent Contributor
Re: current modelview matrix makeup
spooky, the basis vectors are in the columns of the matrix.
-
Re: current modelview matrix makeup
whats a basis vector, and which of the 4 columns are they in ?
-
Re: current modelview matrix makeup
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules