HI Allen,

osg::Camera is subclassed from osg::CullSettings as is SceneView so...

  viewer.getCamera()->setCullingMode(osg::CullSettings::ENABLE_ALL_CULLING);

I hope this makes sense :-)

Robert.

On Dec 4, 2007 4:22 PM, Danklefsen, Allen M
<[EMAIL PROTECTED]> wrote:
>
> 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.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to