Thanks Thibault. I'll try every combination. I am however slightly more concerned about the switched roll/yaw, and I'm unsure if this is related to rotation or something else.
Best regards Henrik Gundersen Thibault Genessay wrote: > Hi > > On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> Hello. > [chop] >> Now, when i turn my head 90 degrees to the left, i see the scene >> (slightly >> downwards also). When i pitch the helmet, the view pitches. When i roll >> the helmet, the view yaws. And when i yaw the helmet, the view rolls. I >> suspect i need to rotate the matrix called 'hmdMatrix' 90 degrees some >> way >> to correct the axes, but I'm not very confident in my mathematical >> skills >> right now. Also, adding another rotate might not be needed since we >> already do one rotation. I also have to mind the order of >> transformation/rotation. > > I remember having done something similar to get my magnetic gloves > move the right way in the OSG. The solution was to try each possible > combination of rotations (+/- PI/2, +/-PI on all of the 3 axes) until > I found one that worked. (it was for a school project, I remember > putting "[...] and I have no mathematical explanation why this matrix > works. It just works." in my report) > > You might start by forgetting about the translation for now; try to > get your view follow your moves with a pure rotation matrix, then > translate your stuff to get the origin of your OSG scene match the > center of the stage. > > Good luck :) > > Thibault > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
