Hi Nick,

On 19 July 2013 17:11, Trajce Nikolov NICK <trajce.nikolov.n...@gmail.com>wrote:

> I am facing a problem maybe you give some hints.
>
> in pageable model (like TerraPage for example) I need to track a model
> when it is loaded (paged in) and unloaded (paged out). For the first I can
> make a NodeVisitor and run it in ReadFileCallback so I know when my
> external referenced model was paged in. How to know when it gets out? The
> goal is to keep a valid pointer over the "lifetime" of a part of the scene.
>
> Thanks for any hint or trick
>
>
I'd look at recreate a osg::Observer subclass that you attach to the root
of the subgraph that has been loaded via node->addObserver(), this observer
will then get called via it's Observer::objectDeleted(void*) method.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to