Skip to content

Commit

Permalink
From Chris Denham, added transform to cube to test picking fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Nov 6, 2008
1 parent 239c18e commit c80c7dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/osgpick/osgpick.cpp
Expand Up @@ -269,9 +269,13 @@ int main( int argc, char **argv )
camera->setRenderOrder(osg::Camera::POST_RENDER);
camera->setClearMask(GL_DEPTH_BUFFER_BIT);
camera->setReferenceFrame(osg::Transform::RELATIVE_RF);
camera->setViewMatrix(osg::Matrix::translate(-2, 0, 0));

osg::MatrixTransform* xform = new osg::MatrixTransform(osg::Matrix::translate(1, 1, 1));
xform->addChild(camera);

group->addChild(sphere);
group->addChild(camera);
group->addChild(xform);
camera->addChild(cube);

scene = group;
Expand Down

0 comments on commit c80c7dd

Please sign in to comment.