Disable Occlusion for Certain LabelNodes #2011
Unanswered
nebsar
asked this question in
Support Q&A
Replies: 2 comments 5 replies
-
I typically use depth testing or render bin order to apply proper node layering. labelNode->getOrCreateStateSet()->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF); labelNode->getOrCreateStateSet()->setRenderBinDetails(100, "RenderBin"); |
Beta Was this translation helpful? Give feedback.
2 replies
-
Been a while, but I believe is you set the priority of the annotation to -1 it will always draw (i.e. not participate in decluttering). labelNode->setPriority(-1); |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to disable occlusion for some of the LabelNodes in my scene. I want them not to be occluded by other PlaceNodes or LabelNodes. When I set setOcclusionCulling(false) and setOcclusionCullingMaxAltitude(FLT_MAX), this method does not work and LabelNodes are occluded by others. How can I do that?
Beta Was this translation helpful? Give feedback.
All reactions