Hi All,

At the risk of appearing very dense, could I ask for a little help with a 
problem that I have been banging my head against a wall with for the the past 
week?

The problem is that I have a position and orientation of an observer described 
by a position vector, and a vector of euler angles that represent the 
orientation of the observer. To complicate matters, the coordinate system in 
operation when this information was created was that of WorldToolKit (WTK) - in 
fact we were using WTK when creating this information. In this system positive 
Y is down, and positive Z is in towards the screen, with positive x traversing 
left to right.

Now, I would like to represent the position and direction of view (orientation) 
in OSG's coordinate space. 

Now, as I understand it, a rotation of -90 degrees will take a point in OSG 
space, and represent it in WTK space - and the inverse doing the reverse. Cool.

The issue I have is what should happen to the orientation vector. The euler 
angles were obtained from WTK's quaternion to euler function. I've looked at 
the order of multiplications that occur in WTK when creating the resultant 
rotation, yet I still can't seem to get the correct result.

So, if anyone out there has experience of mapping from WTK to OSG, specifically 
in regards to what should happen to rotation angles, and quarternians, I would 
be most grateful - and perhaps my wall could then be repainted beige instead of 
red ;-(

Many thanks for any help

Neil.



I am trying to bring this into OSG.

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to