[osg-users] How to scale the size of Geometry
OpenSceneGraph Users
osg-users at lists.openscenegraph.org
Mon Mar 2 23:59:24 PST 2020
You don't say what you are doing at the viewer level, but if you are using
the OSG's standard CameraManiplators, including the default
TrackballManipulator, the when the viewer initializes it'll compute the
size of the scene it has to render and places the camera far away enough to
ensure the scene is within the window, so if the scene is bigger the camera
ends up further away.
Try creating an osg::Group and two different osg::Geometry as children that
sit side by side, one large and one small and you should see the difference.
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/2fcfa484-24c6-41df-af30-d3597821e435%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200302/f517b919/attachment.html>
More information about the osg-users
mailing list