Re: [osg-users] Merge geodes into a single node

2020-10-19 Thread OpenSceneGraph Users
node. Good luck, Chris From: OpenSceneGraph UsersSent: 19 October 2020 15:59To: osg-users@lists.openscenegraph.orgSubject: Re: [osg-users] Merge geodes into a single node Hi, Luca.  One cannot do this in a general way since under each node any kind ofentities can exist. I think the task you want to do

Re: [osg-users] Merge geodes into a single node

2020-10-19 Thread OpenSceneGraph Users
Hi, Luca. One cannot do this in a general way since under each node any kind of entities can exist. I think the task you want to do not possible in a generic way, unless you get down to the level of the specific drawables each node has and copy/transfer their contents (for example, if they are os

[osg-users] Merge geodes into a single node

2020-10-19 Thread OpenSceneGraph Users
Hi All I have two basic osg shapes that I load like this osg::ref_ptr shape1 = osgDB::readNodeFile("shape1.osg"); osg::ref_ptr shape2 = osgDB::readNodeFile("shape2.osg"); I then group them together and save them osg::ref_ptr total = new osg::Group; total->addChild(shape1.get()); total->addChild