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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
