Rotated scene to face the viewer

This commit is contained in:
Robert Osfield 2004-11-12 15:39:18 +00:00
parent 43f528fd41
commit 21e6c87fef

View File

@ -372,7 +372,9 @@ int main(int argc, char** argv)
return 1; return 1;
} }
ref_ptr<Group> scene = new Group; ref_ptr<MatrixTransform> scene = new MatrixTransform;
scene->setMatrix(osg::Matrix::rotate(osg::DegreesToRadians(125.0),1.0,0.0,0.0));
ref_ptr<Group> shadowed_scene = _create_scene(); ref_ptr<Group> shadowed_scene = _create_scene();
if (!shadowed_scene.valid()) return 1; if (!shadowed_scene.valid()) return 1;
scene->addChild(shadowed_scene.get()); scene->addChild(shadowed_scene.get());