[osg-users] Reading files and callbacks

Robert Osfield robert.osfield at gmail.com
Mon Aug 31 00:07:17 PDT 2015


Hi Tony,

On 31 August 2015 at 03:54, Tony Vasile <minghia at gmail.com> wrote:

> 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?
>

You'll likely be using the same code to find the nodes of interest no
matter what approach you use, to me it's really just an issue where it'll
be most convenient/flexible for you to invoke it in your application.

If you are loading the files directly by your application by calling
osgDB::readNodeFile(..) then adding post processing in afterwards would be
easy, but if the files are being read as part of paged database then using
the ReadFileCallback would be required.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150831/a9ecec09/attachment-0003.htm>


More information about the osg-users mailing list