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.