Why osgEarth::Annotation::PlaceNode set depthTest properties is invalid?

classic Classic list List threaded Threaded
2 messages Options
Mirro187 Mirro187
Reply | Threaded
Open this post in threaded view
|

Why osgEarth::Annotation::PlaceNode set depthTest properties is invalid?



Why does the building not cover the POI?

osgEarth::Annotation::Style pm;
pm.getOrCreate<osgEarth::Symbology::RenderSymbol>()->depthTest() = true;
osg::ref_ptr<osgEarth::Annotation::PlaceNode> poiMat = new PlaceNode(posPt, strTextCode, pm);
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: Why osgEarth::Annotation::PlaceNode set depthTest properties is invalid?

You may need to call
PlaceNode::setOcclusionCulling(true)
Glenn Waldron / Pelican Mapping