Show
Ignore:
Timestamp:
02/23/07 12:53:45 (7 years ago)
Author:
robert
Message:

Added bool View::Slave::_useMastersSceneData to help manage HUD's and RTT
cameras that are embedded in the Viewer's View

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgdistortion/osgdistortion.cpp

    r6261 r6264  
    543543 
    544544 
    545     viewer.assignSceneDataToCameras(); 
    546  
    547545 
    548546    // distortion correction set up. 
     
    578576        camera->setName("DistortionCorrectionCamera"); 
    579577 
    580         viewer.addSlave(camera.get(), osg::Matrixd(), osg::Matrixd()); 
     578        viewer.addSlave(camera.get(), osg::Matrixd(), osg::Matrixd(), false); 
    581579    } 
    582580     
     
    603601    if (arguments.read("--dome")) 
    604602    {     
     603 
     604        setDomeCorrection(viewer, arguments); 
     605     
    605606        viewer.setSceneData( loadedModel ); 
    606  
    607         setDomeCorrection(viewer, arguments); 
    608      
    609607    } 
    610608    else if (arguments.read("--faces")) 
    611609    {     
     610 
     611        setDomeFaces(viewer, arguments); 
     612     
    612613        viewer.setSceneData( loadedModel ); 
    613  
    614         setDomeFaces(viewer, arguments); 
    615      
    616614    } 
    617615    else 
     
    622620        viewer.setSceneData( distortionNode ); 
    623621    } 
     622 
    624623 
    625624    // set up the camera manipulators.