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:
parent
e3979b0024
commit
506ae69b50
@ -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);
|
||||
|
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user