osg::ref_ptr<osg::Node> node = osgDB::readNodeFile("cow.osg");
osg::ref_ptr<osg::MatrixTransform> mt1 = new osg::MatrixTransform();
osg::Matrix m;
m.makeTranslate(osg::Vec3(10.0f, 0.0f, 0.0f));
m.makeRotate(45.0f, 1.0f, 0.0f, 0.0f);
mt1->setMatrix(m);
//
osg::ref_ptr<osg::MatrixTransform> mt2 = new osg::MatrixTransform();
osg::Matrix t;
t.makeTranslate(osg::Vec3(-10.0f, 0.0f, 0.0f));
mt2->setMatrix(t);
mt2->addChild(node.get());
//
mt1->addChild(mt2);
--
You received this message because you are subscribed to the Google Groups
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/osg-users/15443f67-b9a2-47a4-be25-90c8e50fea48n%40googlegroups.com.