Added inhertCullSettings before SceneView::cull() calls

This commit is contained in:
Robert Osfield 2007-02-20 16:46:53 +00:00
parent fe8552bbd8
commit 416e6486f7
2 changed files with 12 additions and 0 deletions

View File

@ -519,6 +519,7 @@ struct CompositeViewerRenderingOperation : public osg::Operation
// osg::notify(osg::NOTICE)<<"RenderingOperation"<<std::endl;
_sceneView->inheritCullSettings(*(_sceneView->getCamera()));
_sceneView->cull();
_sceneView->draw();

View File

@ -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())