Hi, I am new to OpenSceneGraph, I want to load multiple nodes and transform to their coordinates. My code looks like;
Code: osg::Node* myNodes[10]; osg::PositionAttitudeTransform * myXForm =new osg::PositionAttitudeTransform(); for (row=0; row<10; row++) { myNodes[row] = osgDB::readNodeFile("myobj.3ds"); myXForm->setPosition( osg::Vec3d(x[row],y[row],0.0) ); root->addChild(myXForm); myXForm->addChild(myNodes[row]); } i need an array like; myXForm[10] How can i do that? ... Thank you! Cheers, Numan ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=63093#63093 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org