[osg-users] How to set maximum visible distance?

Robert Osfield robert.osfield at gmail.com
Tue Feb 14 09:01:46 PST 2017


On 14 February 2017 at 16:07, Daven Hem <osgforum at tevs.eu> wrote:
> Hello, Robert!
> It works surely.
> But how can I set maximum distance 5000 in meters?

You set the zfar to 5000 when setting up the Camera's projection
matrix.  Have a look at the
Camera::setProjectionMatrixAsFrustum/Perspetive() methods, and also
look at the OpenGL GLU docs for the associated GLU functions.

Robert.



More information about the osg-users mailing list