well, I can not see why it shouldnt work. Are you setting different positions in the loop ?
Nick http://www.linkedin.com/in/tnick Sent from Izmit, 41, Turkey On Wed, Jan 20, 2010 at 7:02 PM, Guillaume Saby <luckybo...@hotmail.fr>wrote: > Hi, > > > Well this doesn't work ^^"... > > > I tried, and only one tree appears, but if a do : > > for(int i = 0 ; i < 5; i++) > { > > osg::PositionAttitudeTransform* temp = new osg::PositionAttitudeTransform; > > temp->addChild(osgDB::readNodeFile("modeles/arbre.obj")); > temp->setPosition(myPos); > this->addChild(temp); > > } > > This work, i got all my trees.... > > But thanks for your help anyways. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=22949#22949 > > > > > > _______________________________________________ > 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