Show
Ignore:
Timestamp:
10/27/08 20:59:05 (6 years ago)
Author:
robert
Message:

From Chris Denham, changed nested Camera intersection test so that it requires the command line --relative-camera-scene to enable it

Files:
1 modified

Legend:

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

    r9065 r9069  
    253253    osg::ref_ptr<osg::Node> scene = osgDB::readNodeFiles(arguments); 
    254254 
    255     if (!scene) 
    256     { 
     255    if (!scene && arguments.read("--relative-camera-scene")) 
     256    { 
     257        // Create a test scene with a camera that has a relative reference frame. 
    257258        osg::Group* group = new osg::Group(); 
    258259 
     
    268269        camera->setRenderOrder(osg::Camera::POST_RENDER); 
    269270        camera->setClearMask(GL_DEPTH_BUFFER_BIT); 
    270         //camera->setReferenceFrame(osg::Transform::ABSOLUTE_RF); 
     271        camera->setReferenceFrame(osg::Transform::RELATIVE_RF); 
    271272 
    272273        group->addChild(sphere);