Show
Ignore:
Timestamp:
11/06/08 14:36:25 (6 years ago)
Author:
robert
Message:

From Chris Denham, added transform to cube to test picking fixes

Files:
1 modified

Legend:

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

    r9069 r9109  
    270270        camera->setClearMask(GL_DEPTH_BUFFER_BIT); 
    271271        camera->setReferenceFrame(osg::Transform::RELATIVE_RF); 
     272        camera->setViewMatrix(osg::Matrix::translate(-2, 0, 0)); 
     273 
     274        osg::MatrixTransform* xform = new osg::MatrixTransform(osg::Matrix::translate(1, 1, 1)); 
     275        xform->addChild(camera); 
    272276 
    273277        group->addChild(sphere); 
    274         group->addChild(camera); 
     278        group->addChild(xform); 
    275279        camera->addChild(cube); 
    276280