Hi All

I have two basic osg shapes that I load like this

osg::ref_ptr<osg::Node> shape1 = osgDB::readNodeFile("shape1.osg");
osg::ref_ptr<osg::Node> shape2 = osgDB::readNodeFile("shape2.osg"); 

I then group them together and save them
osg::ref_ptr<osg::Group> total = new osg::Group;
total->addChild(shape1.get());
total->addChild(shape2.get());
osgDB::writeNodeFile(*total, "ouput.fbx");

The output fbx files contains two geodes... How can I merge them into a 
single one?

I tried with
osg::ref_ptr<osg::Node> singleNode = new osg::Node;
singleNode = dynamic_cast<osg::Node*>(total.get());

But the output doesn't change...

Thanks to anyone that will help :)

Regards
Luca

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/ee360fb4-9b40-4ad4-9445-924798533820n%40googlegroups.com.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to