Show
Ignore:
Timestamp:
01/04/07 22:51:10 (8 years ago)
Author:
robert
Message:

Removed now redundent calls to set up view

Files:
1 modified

Legend:

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

    r5885 r5894  
    6363        viewer.addSlave(camera.get(), osg::Matrixd(), osg::Matrixd::scale(aspectRatioScale,1.0,1.0)); 
    6464    } 
    65  
    66     viewer.setUpRenderingSupport(); 
    67     viewer.assignSceneDataToCameras(); 
    6865} 
    6966 
     
    123120        viewer.addSlave(camera.get(), osg::Matrix::scale(aspectRatioScale, 1.0, 1.0)*osg::Matrix::translate(translate_x, 0.0, 0.0), osg::Matrix() ); 
    124121    } 
    125  
    126     viewer.setUpRenderingSupport(); 
    127     viewer.assignSceneDataToCameras(); 
    128122} 
    129123 
     
    165159    while (arguments.read("-c")) { viewer.setThreadingModel(osgViewer::Viewer::ThreadPerCamera); } 
    166160 
    167     viewer.setSceneData(loadedModel.get()); 
     161//    viewer.setSceneData(loadedModel.get()); 
    168162 
    169163    if (apm.valid()) viewer.setCameraManipulator(apm.get()); 
    170164    else viewer.setCameraManipulator( new osgGA::TrackballManipulator() ); 
    171165 
    172 #if 0 
     166#if 1 
    173167 
    174168    // singleWindowMultipleCameras(viewer); 
    175169     
    176170    multipleWindowMultipleCameras(viewer); 
    177      
    178      
    179 #else 
    180  
    181     viewer.setUpViewAcrossAllScreens(); 
    182171 
    183172#endif 
    184      
     173 
     174    viewer.setSceneData(loadedModel.get()); 
     175 
    185176    viewer.realize(); 
    186177 
    187     bool limitNumberOfFrames = true; 
     178    bool limitNumberOfFrames = false; 
    188179    unsigned int numFrames = 0; 
    189180    unsigned int maxFrames = 10;