HI Paulo, What you need to do is to tell the active CameraManipulator that you've updated the model it should be referring to and then call viewer.home();
viewer.getCameraManipulator()->setNode(myNode); viewer.getCameraManipulator()->computeHomePosition(); viewer.home(); Robert. On Sun, Feb 8, 2009 at 4:38 PM, Paulo Jnkml <[email protected]> wrote: > Hi, > thank you for replying. > > Well maybe. > Imagine that I load a model so big or so small that with the current camera > parameters I can see a thing. > I want to adapt the camera automagically so that my current loaded/selected > scene/node will fit just nicely on screen. > =) > > Paulo > > Robert Osfield wrote: > > HI Paulo, > > On Sun, Feb 8, 2009 at 9:23 AM, Paulo Jnkml <[email protected]> wrote: > > > is there a tutorial where I can see how make the camera focus a particular > node, such that the node's bounding box will fit the viewer window? > > > Do you mean setting the home position of the camera position? > > Robert. > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

