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: about up vector of camera

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

    about up vector of camera

    about the function glLooAt(x,x,x, x,x,x, upx,upy,upz);
    if i use it to set my camera,and up vecotr is (0,-1,0),so
    what are the pitch,yaw,roll components???

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    723
    LookAt does not use pitch,yaw,roll. Once you have created the view matrix you can extra the pitch,yaw,roll. These are the euler angles
    You might read this
    https://truesculpt.googlecode.com/hg...x_to_euler.pdf

Posting Permissions

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