[osg-users] Upgrading OSG and need to know....

Danklefsen, Allen M adanklefsen at alionscience.com
Tue Dec 4 08:22:17 PST 2007


Hello,

Im upgrading my osg and came into a snag.

How would I go about changing the following to work? 

// assume initialized
osg::Camera* camera;

osgUtil::SceneView* sceneView = camera->GetSceneView();
mCullVisitor->setRenderStage(sceneView->getRenderStage());
mCullVisitor->setStateGraph(sceneView->getStateGraph());

int flags = osgUtil::CullVisitor::ENABLE_ALL_CULLING;
         
mCullVisitor->setCullingMode(flags);
sceneView->setCullingMode(flags);
sceneView->setCullVisitor(mCullVisitor.get());


Thanks.


More information about the osg-users mailing list