Quaterion bug

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
iso
Halfling
Posts: 73
Joined: Fri Mar 18, 2005 11:43 am
Location: Slovakia

Quaterion bug

Post by iso »

Hi! I thing I misunderstood something by the quaetrnions, because the results I get look incorrect.

I've got a Quaterion rot = {0.93924177,0,0.34325632,0}.
The orientation, it repersents is just a little yaw.
The zAxis of this quaternion is {0.64480138,0,0.76435018}.

When I now call Radian angle = rot.getYaw(), it returns 0 radians!

I suppose, getYaw should return a non-zero value, but it doesn't.
Last edited by iso on Sat Apr 30, 2005 9:11 pm, edited 1 time in total.
Of course I don't see textures as images. Who would?

User avatar
haffax
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 4823
Joined: Fri Jun 18, 2004 1:40 pm
Location: Berlin, Germany
x 6
Contact:

Post by haffax »

There was an issue with the getYaw/Roll/Pitch methods in the Quaternion class. It has been fixed yesterday or early today in the v1-0 branch in the CVS.
team-pantheon programmer
creators of Rastullahs Lockenpracht

iso
Halfling
Posts: 73
Joined: Fri Mar 18, 2005 11:43 am
Location: Slovakia

Post by iso »

Thanks, I assume, it suffices to download only the OgreQuaterion.h + cpp.

Just one more question. When I have an "old" quternion and a rotation taht I want to apply to it, is it rotation*old, or old*rotation?
Of course I don't see textures as images. Who would?

iso
Halfling
Posts: 73
Joined: Fri Mar 18, 2005 11:43 am
Location: Slovakia

Post by iso »

tanis wrote:There was an issue with the getYaw/Roll/Pitch methods in the Quaternion class. It has been fixed yesterday or early today in the v1-0 branch in the CVS.
I downloaded the latest OgreQuaterion and recompiled OgreMain, but it doesn't seem to have solved the problem. Still 0.0 radians as result.

Are you sure, it's been fixed the right way?

[edit]
I've tested it with rot.ToAngleAxis(angle2,dir);
and as result came: dir = {0,1,0} and angle2 > 0 !

So I think, the bug is not completely removed yet.
[/edit]
Of course I don't see textures as images. Who would?

User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19265
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

Tested it here and it works fine. Perhaps anon CVS isn't up to date yet.

Post Reply