HI Daven, The best way to achieve this would be to enable the view frustum near and far culling planes and to disable the automatic computation of the near/far distances. Both these settings can be found in include/osg//CullSettings, osg::CullSettings is inherited by the osg::Camera, so you set set them via the viewer's master Camera.
Robert On 13 February 2017 at 22:14, Daven Hem <[email protected]> wrote: > Hello, everyone! > I want to set maximum visible distance of camera as 5000m. > I mean I want to render only objects and terrains that are in 5000m from > camera. > How can I do that? Please teach me. > Cheers. > Daven. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=70179#70179 > > > > > _______________________________________________ > 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

