Re: [osg-users] Question on Node memory management.

2007-09-26 Thread Robert Osfield
Hi, Use of ref_ptr ensures safe memory management both within the scene graph and outwith. If you want to switch subgraphs on/off then use either osg::Switch or a Node::setNodeMask(.). You can manually add elements/remove elements during the update phase, but in general its better to just leave

[osg-users] Question on Node memory management.

2007-09-25 Thread [EMAIL PROTECTED]
Hello, I am working on converting a project from SGI Performer in C to OSG, so I am familiar with constructing a scene graph. For this project I load all the models I plan to use into a data structure, at a later point in time based on the user responses I swap out the sub-graphs that I wish