Results 1 to 3 of 3

Thread: Quaternion rotations not working right

  1. #1
    Member Newbie
    Join Date
    Apr 2009
    Posts
    30

    Quaternion rotations not working right

    Hi all,

    I'm using standard quaternion routines to convert to/from Euler and to 4x4 rotation matrices. But I'm observing some bizarre stuff.

    For instance, when I alter yaw (rotation about y axis), the rotation matrix that I get using a quaternion intermediate rotates instead about the z axis (roll).

    Has anyone seen this problem before and have a clue as to what might be going wrong? I'm putting too many hours into this and seeing no improvement.

    Thanks.

  2. #2
    Junior Member Newbie
    Join Date
    Jun 2009
    Posts
    1

    Re: Quaternion rotations not working right

    I have broad experience using quaternions, Euler angles and rotation matrices (direction cosine matrices). If you are a professional developer I am available for fee based consulting; if you are a student I can offer casual question answering support.
    reply to nhughes1ster@gmail.com

  3. #3
    Junior Member Newbie marek-knows.com's Avatar
    Join Date
    Jun 2009
    Location
    Waterloo, On, Canada
    Posts
    19

    Re: Quaternion rotations not working right

    Double check your quaternion equation: http://www.flipcode.com/documents/matrfaq.html#Q47

    Maybe there is a typo there. I created a video tutorial showing how to use Quaternions here if you would like to take a look http://www.marek-knows.com/downloadS...ath&pg=1#Math8

    You can download the demo program from my forum
    Free OpenGL & Game Programming video tutorials:
    www.MarekKnows.com

Similar Threads

  1. quaternion
    By viveksrivastava in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-27-2013, 05:21 AM
  2. Replies: 1
    Last Post: 11-18-2011, 08:13 AM
  3. quaternion
    By kazmalak in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-09-2005, 03:43 AM
  4. Quaternion
    By piercec in forum OpenGL: Basic Coding
    Replies: 11
    Last Post: 04-19-2002, 09:57 AM
  5. Quaternion (Almost done but...)
    By Erakis in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 02-26-2002, 06:38 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