Hi james, regarding your last post, did you mean that you also tried to extract angles from a rotation with the website's "matrixToEuler" or a similar approach, but you encountered problems that were depended on your current camera-orientation?
i think the same happened to me: i wanted to get the pitch-angle of the camera-orientation, to adjust the camera looking straight forward in certain cases. (think of some: reset view, but only for the pitch angle). i encountered that multiplying with the inverse rotation matrix of that angle didn't work if a left or right camera-rotation has been done before. (actualy these negative-effects were only obvious when left/right rotation was larger than 45°. so i don't know if also minor yaw-rotations did harm, or only rotations exceeding a 45° threshold) in the end, it put out that i had to build the adjustment-rotation matrix not with the pitch but the roll angle of the current camera-rotation in cases of previous left/right camera-rotations from 45° to 135° (respectively -45° to -135°) 3.) i'm not sure what you are meaning with "..it was not a success.." does the attachment you included work, and won't it suffers from symptoms, like described above? Thanks in advance, Christian ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=13519#13519 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org