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: Taking a rotation apart

  1. #1
    Newbie Newbie
    Join Date
    Dec 2013
    Posts
    1

    Taking a rotation apart

    Hi guys,
    I have given a Rotation like

    glRotatef(w, x, y, z);

    Now IŽd like to take this apart and write it with three single rotations for the same result.

    glRotatef(wx, 1, 0, 0);
    glRotatef(wy, 0, 1, 0);
    glRotatef(wz, 0, 0, 1);

    How can I convert it?

    Thanks,
    Moseslike

  2. #2
    Member Regular Contributor
    Join Date
    Aug 2008
    Posts
    433
    Searching the web for "axis-angle to euler" returns this result: http://www.euclideanspace.com/maths/.../angleToEuler/

Posting Permissions

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