How to set maximum visible distance?

classic Classic list List threaded Threaded
6 messages Options
Daven Hem Daven Hem
Reply | Threaded
Open this post in threaded view
|

How to set maximum visible distance?

This post was updated on .
Hello, everyone!
I want to set maximum visible distance of camera as 5000m.
How can I do that? Please teach me.
Have a nice weekend.
Daven.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Hot to set maximum visible distance?

Daven,
If you are using the EarthManipulator, you can limit the minimum distance with

  earthManip->getSettings()->setMinMaxDistance(min, max);

Hope this helps.
Glenn Waldron / Pelican Mapping
Daven Hem Daven Hem
Reply | Threaded
Open this post in threaded view
|

Re: Hot to set maximum visible distance?

I'll try it.
Thanks for your teaching, Glenn.
Daven Hem Daven Hem
Reply | Threaded
Open this post in threaded view
|

Re: Hot to set maximum visible distance?

Hi, Glenn.
It works well as you hope.
But I want to render only objects and terrains that are in 5000m from camera.
How can I do that?
Thanks for your hint.
Kind regards.
Daven.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Hot to set maximum visible distance?

The limit the distance at which an object renders, you can put it under an osg::LOD node and set the maximum range.
Glenn Waldron / Pelican Mapping
Daven Hem Daven Hem
Reply | Threaded
Open this post in threaded view
|

Re: Hot to set maximum visible distance?

Thanks, Glenn.