[osg-users] Scene displaced from (0, 0, 0)

Robert Osfield robert.osfield at gmail.com
Thu Nov 3 06:54:47 PDT 2016


Hi Bruno,

The home position is set during initialization of the view to the
scene graphs BoundingSphere's center and radius.  If you want to
change this home position then simply use a call along the lines:

viewer.getCamaraManipulator()->setHomePosition(...)

See the include/osgGA/CameraManipulator API for details.

Robert

On 3 November 2016 at 12:46, Bruno Oliveira
<bruno.manata.oliveira at gmail.com> wrote:
> Hello,
>
> I have a 3d scene that I manipulate with a TrackballManipulator, and setup a
> scene in which all nodes are centred in (50000, 10000).
>
> Now when I try to do use the home() function, I can't see my nodes. But if I
> center my scene around (0, 0, 0), my nodes appear.
> Should I use something else than home() to center my camera?
>
> Thank you
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list