Changeset 9109 for OpenSceneGraph/trunk/examples/osgpick/osgpick.cpp
- Timestamp:
- 11/06/08 14:36:25 (5 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/examples/osgpick/osgpick.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/osgpick/osgpick.cpp
r9069 r9109 270 270 camera->setClearMask(GL_DEPTH_BUFFER_BIT); 271 271 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); 272 276 273 277 group->addChild(sphere); 274 group->addChild( camera);278 group->addChild(xform); 275 279 camera->addChild(cube); 276 280
