Hi Robert, > > To join my opinion (without any attempt to attack anyone's opinion): > > I am missing the functionality of reporting of missed files for about > > three > > years. When I spotted for the first time that I do not get any warnings > > about > > missing textures, etc., I thought that it is a bug. > > Are you talking about OpenFlight files here, or something wider.
Sorry to not be precise. Unfortunately, my wish is towards a general solution for all plugins. There are three wishes on my side (Thanks for pointing FindFileCallback): - a way to get names of missing files - osgDB::FindFileCallback could give me a solution. Inside the callback, I would call osgDB::findDataFileImplementation() and report missing files whenever findDataFileImplementation() returns empty string. This is good. - name can be ok, but the file might be broken and plugin might fail to load it. Might osgDB::ReadFileCallback provide the solution? I could register it and call osgDB::read[Image|Object|Node|...]Implementation inside the callback. Then, I would act whenever it returns error (error message,...). - I would be happy to have a chance to abort the loading process and return failure if there are missing files. I guess, this can not be handled directly. But I could act after the whole loading process and check the status of my callbacks that already saw all the error codes of all findFile and all read*Implementations. If all this is possible, I would congratuate OSG for a nice kind of flexibility. Maybe, it is a little bit of coding, but unless many people would look for the same usage scenario as myself, there is no need to worry about any OSG code extensions. Thanks for a good flexibility. John > Even with the OpenFlight plugin you can still catch missing files by using > a osgDB::FindFileCallback, the only thing missing is what type of file one > is trying to read which is what Sebastian is after in addition to the fact > a file can't be found as the FindFileCallback is agnostic to the file type, > it's role is just to find files. > > Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
