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
    Senior Member Regular Contributor
    Join Date
    Oct 2009
    Posts
    463
    Searching the web for "axis-angle to euler" returns this result: http://www.euclideanspace.com/maths/.../angleToEuler/

Similar Threads

  1. Need help taking a screenshot
    By Niven07 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-27-2013, 04:05 PM
  2. taking screenshots
    By 39smooth in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 03-15-2004, 10:46 AM
  3. Taking screenshots: How to?
    By reign_bow in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 08-27-2002, 07:06 AM
  4. taking screenshots
    By Syslock in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-10-2002, 09:45 PM
  5. Taking some speed
    By Fernando in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 12-28-2001, 09:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean