Greetings

I have a custom camera object that I use to store position and direction in a 
vec3 and quat and a matrixd which should contain both.  Due to the nature of 
the software I have to interact with using the osg camera is not an option.

So, once I have the position and rotation I am supposed to use these values to 
create the matrixd and then feed that  into an osg camera.  If I simply use 
matrixd::setTrans the osg camera ends up in the right place.  If I use 
matrixd::setRotate the osg camera ends up facing the correct direction.  If I 
use both, in either order, the camera ends up in the wrong place.  Like a 90 
degree rotation about an axis.

I'm operating under the assumption that the set function for position is the 
same as moving an object to world coordinates x,y,z regardless of orientation 
and set rotation is the same as rotating the object around it's local origin.  
Please correct me if I'm wrong.

So, any ideas as to what I may be doing wrong?  Thanks for any help.

I also apologize if this is in the wrong thread but I thought this would be the 
place seeing as how I need advice as to the functions to use.

soulsabr

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48058#48058





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to