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 3 of 3

Thread: matrix made by glrotate

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2009
    Posts
    18

    matrix made by glrotate

    is there any way by which i can extract the matrix made by glrotate or gltranslate or any other transformation?

  2. #2
    Intern Newbie
    Join Date
    Sep 2008
    Location
    Brazil
    Posts
    40

    Re: matrix made by glrotate

    Hi,

    why do you want that matrix?

    just in case any of these do:

    - You can get the current active modelview matrix by calling glGetFloatv(GL_MODELVIEW_MATRIX, mat);
    (for more information, http://linux.die.net/man/3/glgetfloatv)

    - For how to generate those matrixes and others you can just google around and get something like this: http://gpwiki.org/index.php/3D:Matrix_Math

  3. #3
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    4,152

    Re: matrix made by glrotate

    See this and this

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •