Added inhertCullSettings before SceneView::cull() calls
This commit is contained in:
parent
fe8552bbd8
commit
416e6486f7
@ -519,6 +519,7 @@ struct CompositeViewerRenderingOperation : public osg::Operation
|
||||
|
||||
// osg::notify(osg::NOTICE)<<"RenderingOperation"<<std::endl;
|
||||
|
||||
_sceneView->inheritCullSettings(*(_sceneView->getCamera()));
|
||||
_sceneView->cull();
|
||||
_sceneView->draw();
|
||||
|
||||
|
@ -163,7 +163,12 @@ struct ViewerRenderingOperation : public osg::Operation, public ViewerQuerySuppo
|
||||
|
||||
// do cull taversal
|
||||
osg::Timer_t beforeCullTick = osg::Timer::instance()->tick();
|
||||
|
||||
_sceneView->inheritCullSettings(*(_sceneView->getCamera()));
|
||||
|
||||
_sceneView->cull();
|
||||
|
||||
|
||||
osg::Timer_t afterCullTick = osg::Timer::instance()->tick();
|
||||
|
||||
#if 0
|
||||
@ -310,7 +315,10 @@ struct ViewerDoubleBufferedRenderingOperation : public osg::Operation, public Vi
|
||||
|
||||
// do cull taversal
|
||||
osg::Timer_t beforeCullTick = osg::Timer::instance()->tick();
|
||||
|
||||
sceneView->inheritCullSettings(*(sceneView->getCamera()));
|
||||
sceneView->cull();
|
||||
|
||||
osg::Timer_t afterCullTick = osg::Timer::instance()->tick();
|
||||
|
||||
#if 0
|
||||
@ -467,7 +475,10 @@ struct ViewerDoubleBufferedRenderingOperation : public osg::Operation, public Vi
|
||||
|
||||
// do cull taversal
|
||||
osg::Timer_t beforeCullTick = osg::Timer::instance()->tick();
|
||||
|
||||
sceneView->inheritCullSettings(*(sceneView->getCamera()));
|
||||
sceneView->cull();
|
||||
|
||||
osg::Timer_t afterCullTick = osg::Timer::instance()->tick();
|
||||
|
||||
if (state->getDynamicObjectCount()==0 && state->getDynamicObjectRenderingCompletedCallback())
|
||||
|
Loading…
Reference in New Issue
Block a user