Hi Alexandre You can just copy the Scene Graph structure (osg::Node, osg::Group, ...) and share every other thing (StateSet, Drawable, texture, ...) You can specify which object to share and which to clone with the osg::CopyOp class.
HTH David Callu 2008/10/6 amalric alexandre <[EMAIL PROTECTED]> > Hi osg-users, > > I would have know if it was possible to avoid to write some node in a scene > when calling osgDB::writeNodeFile on the current scene. > > Let's assume I got a group of nodes and I wand to save this group on disk > without saving some chosen nodes from the group. But I don't want to modify > the group because I need it to stay the same. > > My first choice was to make a copy from the group, modifying the copy > keeping the original and writing the copy. But I think it's a bad choice > because I got very big nodes (300Mo and more) and making a copy use more > memory. > > If someone has a great idea, please let me know > > Thank you, > > -- > Alexandre AMALRIC Ingénieur R&D > =================================== > PIXXIM S.A. 73E, rue Perrin-Solliers 13006 Marseille > http://www.pixxim.fr > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org