Hi Robert -- I've encountered a small issue in developing my OpenFlight
export plugin, which is written as a separate plugin from the existing FLT
import plugin.
 
I have a small test app that performs the following steps:
1) Register an extension alias so that osgDB knows my export plugin support
FLT.
2) Export a FLT file.
3) Try to load a FLT file. <-- fails
 
I'm expecting osgDB will use my plugin to export the first FLT file, then
use the existing plugin to import the second FLT file.
 
However, createLibraryNameForFile() only seems to create the library name
for my export plugin, which doesn't support loading. As a result, the read
operation fails: osgdb_OpenFlight.dll, which supports import, never gets
loaded. 
 
As a solution, I'd think Registry.cpp line 1447 somehow needs to support
looking for possibly multiple plugins to support a given extension. Perhaps
createLibraryNameForFile() needs to return a std::list of all library names
that support a given extension; then the calling function can iterate over
them until it finds one that works.
 
What do you think?
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
303 859 9466
 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to