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/

Reply via email to