Hi Claudio,
I can't work out why you are manually creating a MultiSwitch node, if
your OpenFlight file has a valid switch in it is should create this
for you.
To look at the structure of the scene graph that is loaded write the
loaded model to .osg and then have a look at the file in an editor.
Try:
osgconv myfile.flt myfile.osg
Robert.
On 7/4/07, Claudio Arduino <[EMAIL PROTECTED]> wrote:
Hi,
i have created in multigen a switch node (sw1) with 3 switchMask then i
write and run this code:
osg::Node *model=osgDB::readNodeFile("sw.flt");
FindNamedNodeVisitor *fnv=new FindNamedNodeVisitor("sw1");
model->accept(*fnv);
osg::Node *ndd=fnv->get();
osgSim::MultiSwitch *ms=new osgSim::MultiSwitch();
ms->addChild(ndd);
std::cout << ms->getNumChild();
then the ms->getNumChild print 1 but i in the sw.flt i have 2 childs...
if i have understood the loader it would have to create a osg::Node for each
switchmask readed from flt file...
is it correct?
is it a bug?
how i can to switch from the switchMask in the flt model?
thanks to all
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/