HI Aaron,

On 31 August 2015 at 12:50, Aaron Andersen <[email protected]> wrote:

> Might it make sense to add an optional callback to either the
> PagedLOD+ProxyNode classes or to the DatabasePager for when loading of a
> node is complete? If so, would patches be accepted?
>


The osgDB::ReadFileCallback allows you to report when a subgraph is loaded
by allowing you to call the standard osgDB::Registry::readFile(..) and then
process the subgraph, do any optional signally you want and return the
processed subgraph.

However, if you actually want to take charge of when the subgraph is
actually merged then there isn't presently a callback from it but you can
subclass from osgDB::DatabasePager and override the
DartabasePager::updateSceneGraph() method there merged loaded subgraphs
with the main scene graph.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to