Re: [osg-users] How to manipulate node in loaded model.
Of course. I found solution by inserting POV between node, which i want to rotate/transform, and it's parent. It's work fine, but I'm not sure that this solution is correct. I mean, if i have 3d-model in 3ds/obj, what right way to manipulate one or few of its node? Victor -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42107#42107 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] How to manipulate node from loaded model.
Hi Victor, There isn't any way for us to know what you mean by but nothing so we won't be able to help provide an answer. Please be more specific about what you are expecting/what results you are getting. Robert. On Sun, Aug 14, 2011 at 12:54 PM, Kataev Victor victor1...@list.ru wrote: I load model, find node by name and try to scale, but nothing) Code: ... //load model osg::ref_ptrosg::PositionAttitudeTransform modelPat = new osg::PositionAttitudeTransform(); osg::ref_ptrosg::Node loadedModel = osgDB::readNodeFile(models/Cars/AstonMartin-DB9.osg); modelPat-addChild(loadedModel); osg::Node* foundNode = NULL; foundNode = findNamedNode(obj6, loadedModel); osg::ref_ptrosg::PositionAttitudeTransform objectPat = new osg::PositionAttitudeTransform(); objectPat-addChild(foundNode); objectPat-setScale(osg::Vec3(10.0, 10.0, 10.0)); ... root-addChild(modelPat); root-addChild(objectPat); . -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42052#42052 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] How to manipulate node from loaded model.
I load model, find node by name and try to scale, but nothing) Code: ... //load model osg::ref_ptrosg::PositionAttitudeTransform modelPat = new osg::PositionAttitudeTransform(); osg::ref_ptrosg::Node loadedModel = osgDB::readNodeFile(models/Cars/AstonMartin-DB9.osg); modelPat-addChild(loadedModel); osg::Node* foundNode = NULL; foundNode = findNamedNode(obj6, loadedModel); osg::ref_ptrosg::PositionAttitudeTransform objectPat = new osg::PositionAttitudeTransform(); objectPat-addChild(foundNode); objectPat-setScale(osg::Vec3(10.0, 10.0, 10.0)); ... root-addChild(modelPat); root-addChild(objectPat); . -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=42052#42052 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org