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

Thread: gluLookAt(675.0, 345.0, -1287.557, 675.0, 345.0, 1, 0, -1, 0) and pitch,yaw,roll

  1. #1
    Intern Contributor
    Join Date
    Nov 2011
    Posts
    52

    gluLookAt(675.0, 345.0, -1287.557, 675.0, 345.0, 1, 0, -1, 0) and pitch,yaw,roll

    how can i get these three componets through this function call?

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    786
    you can use
    Code :
     
    GLfloat matrix[16]; 
    glGetFloatv (GL_MODELVIEW_MATRIX, matrix);
    to fetch the matrix created via gluLookAt
    and then extra the pitch, yaw, roll from this (search the web if you don't know how to do 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
  •