[osg-users] Merge geodes into a single node
OpenSceneGraph Users
osg-users at lists.openscenegraph.org
Mon Oct 19 05:54:51 PDT 2020
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 osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/ee360fb4-9b40-4ad4-9445-924798533820n%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20201019/ce4277e0/attachment.html>
More information about the osg-users
mailing list