Hi Joel, On Thu, Sep 22, 2011 at 10:15 PM, Joel Graff <[email protected]> wrote: > My Scene class manages the scene graph almost entirely (sans custom > nodevisitors and callbacks). It isn't derived from any osg classes and I > can't really think of any reason why it should be... The class itself has no > active role in the scene graph, it merely acts as a container for the scene > graph and whatever functions I need to manipulate the scene graph. > > However, on a wild hunch, I tried inheriting osg::Referenced into Scene (then > making all references to my Scene object osg::ref_ptr<sg::Scene>) but to no > avail (note that "sg" is the namespace I use for my application).
It's pointers to the OSG objects that you'll need to use ref_ptr<> for, not your own class unless is owned by a scene graph objects in some way - such as via UserData. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

