Completely disable osg culling #1193
Unanswered
rickyviking
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Could it be that you have Switch/Sequence statements in the scene? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
For a particular use case I need to completely disable all culling performed by OpenSceneGraph.
I thought it was enough (for a single camera viewer application) to call:
_camera->setCullingMode(osg::CullSettings::NO_CULLING);
but some drawables are still culled away.
To confirm this behavior I have modified osgViewer adding an event handler to modify the CullingMode at runtime, and when the CullingMode is set to NO_CULLING, the rendered drawable and polygon count increase as expected, but are still lower than the full counters shown by the VIEW stats.
See the attached screenshots which show the stats using NO_CULLING and DEFAULT_CULLING settings respectively for a sample model.
Which is the right way to completely disable all culling (and thus see the same poly count in the camera and view stats)?
Thank you,
Riccardo
DEFAULT_CULLING
NO_CULLING
Beta Was this translation helpful? Give feedback.
All reactions