1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-19 04:52:12 +01:00

LP-29 restored AutoClipPlaneCullCallback feature

This commit is contained in:
Philippe Renon 2015-09-13 16:47:40 +02:00
parent e3979b0024
commit 506ae69b50
2 changed files with 3 additions and 4 deletions

View File

@ -196,10 +196,10 @@ public:
// TODO map handling should not be done here
osgEarth::MapNode *mapNode = osgEarth::MapNode::findMapNode(node);
if (false && mapNode) {
if (mapNode) {
qDebug() << "OSGViewport::attach - found map node" << mapNode;
// install AutoClipPlaneCullCallback : computes near/far planes based on scene geometry
qDebug() << "OSGViewport::attach - set AutoClipPlaneCullCallback on camera";
// install AutoClipPlaneCullCallback : computes near/far planes based on scene geometry
// TODO will the AutoClipPlaneCullCallback be destroyed ?
// TODO does it need to be added to the map node or to the view ?
cullCallback = new osgEarth::Util::AutoClipPlaneCullCallback(mapNode);

View File

@ -4,8 +4,7 @@
<options>
<!--overlay_resolution_ratio="1.0"/-->
<terrain first_lod="0" />
<!--terrain first_lod="0" min_lod="20" /-->
<terrain first_lod="0" min_lod="20" />
</options>
<image name="arcgis-world-imagery" driver="arcgis">