[osg-submissions] openFlight readTexture

Hanekamp, Nikolaus Nikolaus.Hanekamp at rheinmetall.com
Tue Nov 20 09:46:57 PST 2007


Hi Brede,

the ReadFileCallback have been called if the texture was found,
but if it was not found only a notify was called.

The proposed change of PaletteRecords.cpp will fix this.
I have tested it, it works well.

The ReadFileCallback is induced by osgDB::readImageFile().

By the way for externals (openFlight) the correspondent osgDB::readNodeFile() ( and the ReadFileCallback) is called even if the requested file is not found.

With the change the ReadFileCallback behaviour of reading texture files and reading externals will be the same.

For our applications it is important to handle missing textures and externals in the application programm.

Regards

Nikolaus


-----Ursprüngliche Nachricht-----
Von: osg-submissions-bounces at lists.openscenegraph.org [mailto:osg-submissions-bounces at lists.openscenegraph.org] Im Auftrag von Brede Johansen
Gesendet: Dienstag, 20. November 2007 16:01
An: OpenSceneGraph Submissions
Betreff: Re: [osg-submissions] openFlight readTexture

Hi Nikolaus,

I don't know the proper way to handle ReadFileCallbacks in a plugin.
If no match is found using the findDataFile() I guess you should at
least check to see if there is a ReadFileCallback in use before
calling readTexture().

Regards,
Brede

_______________________________________________
osg-submissions mailing list
osg-submissions at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org



More information about the osg-submissions mailing list