[osg-users] Reading files and callbacks

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Mon Aug 31 04:59:39 PDT 2015

Am 31.08.2015 um 04:54 schrieb Tony Vasile:
> We have a bunch of OpenFlight models with have information in some of the nodes that we use to configure our system. Is it better to use ReadNodeFile and post-process the file with a NodeVisitor? Or is is better to override osgDB::ReadFileCallback and somehow exercise our code when it finds a node of particular interest?
In my framework I've added an unconditional ReadFileCallback for all 
nodes and images and run my visitors directly from there. This works 
reasonably well, as very special handling of different nodes, own 
caching etc. can be done there.
The overhead is fairly minimal.


> Tony V
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64947#64947
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list