Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: current modelview matrix makeup

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    7

    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

  2. #2
    Advanced Member Frequent Contributor plasmonster's Avatar
    Join Date
    Mar 2004
    Posts
    750

    Re: current modelview matrix makeup

    spooky, the basis vectors are in the columns of the matrix.

  3. #3
    Guest

    Re: current modelview matrix makeup

    whats a basis vector, and which of the 4 columns are they in ?

  4. #4
    Junior Member Newbie
    Join Date
    Feb 2001
    Location
    Canada
    Posts
    25

    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
  •