On 29/09/10 19:27 , Cosimo Luigi Manes wrote:
> Ulrich Hertlein wrote:
>> On 28/09/10 18:45 , Cosimo Luigi Manes wrote: osgGA::CameraManipulator (the 
>> base
>> class for the default manipulators) has a 'home()' method than will 
>> recompute the
>> position if 'setAutoComputeHomePosition' is true.
> 
> Thanks you for your answer. Could you post an example of code because i am a 
> newbie.

viewer.getCameraManipulator()->home();

> Also, if i want to run a rotation or translation or zoom, what should i do ?

I'd recommend you read the OSG QuickStartGuide, it covers this and many other 
aspects of OSG.

Basically what you need to do it modify the camera matrix to obtain 
rotation/translation
and modify the field-of-view to zoom.

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

Reply via email to