Hi,

I want to change the position of the camera according to a counter. When the 
counter is 0, camera should be at (0,0,0), when counter is 1, camera should be 
at (10,10,10) and so on.

I tried using the camera manipulator function setTransformation as follows:

osg::ref_ptr<osgGA::TrackballManipulator> tman=new 
osgGA::TrackballManipulator();
//setTransformation(eye, center, up);
tman->setTransformation(osg::Vec3(0,0,0), osg::Vec3(0,0,-1), osg::Vec3(0,1,0));

But it didn't work when the counter reached 1, 2, ....

Did I commit a mistake there?

Thank you!

Cheers,
Utkarsh

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





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

Reply via email to