From 4664920b65e941306474666e07dbddb5e527eb83 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 21 Jan 2005 19:28:50 +0000 Subject: [PATCH] Change dhte CullSettings to be correct to new changes in osgProducer --- examples/osgstereoimage/osgstereoimage.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/osgstereoimage/osgstereoimage.cpp b/examples/osgstereoimage/osgstereoimage.cpp index 8c837b2e6..42e4ad655 100644 --- a/examples/osgstereoimage/osgstereoimage.cpp +++ b/examples/osgstereoimage/osgstereoimage.cpp @@ -501,15 +501,16 @@ int main( int argc, char **argv ) viewer.setSceneData(rootNode.get()); + viewer.getCullSettings().setCullMask(0xffffffff); + viewer.getCullSettings().setCullMaskLeft(0x00000001); + viewer.getCullSettings().setCullMaskRight(0x00000002); + // set all the sceneview's up so that their left and right add cull masks are set up. for(osgProducer::OsgCameraGroup::SceneHandlerList::iterator itr=viewer.getSceneHandlerList().begin(); itr!=viewer.getSceneHandlerList().end(); ++itr) { osgUtil::SceneView* sceneview = (*itr)->getSceneView(); - sceneview->setCullMask(0xffffffff); - sceneview->setCullMaskLeft(0x00000001); - sceneview->setCullMaskRight(0x00000002); sceneview->setFusionDistance(osgUtil::SceneView::USE_FUSION_DISTANCE_VALUE,radius); }