[osg-users] How to set maximum visible distance?
Robert Osfield
robert.osfield at gmail.com
Tue Feb 14 00:58:49 PST 2017
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 <osgforum at tevs.eu> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list