Hi Paul,

Its a pretty unusal instance - having two plugins implementing support
for a single format, so I'm inclined to look for specific workarounds
for this case rather than introduce greater complexity into the
internals of osgDB.

One thing I'd do right now is preload your writer plugin rather than
have osgDB load it automatically through extensions, your writer can
than fail on the readNode calls and let Registry do its thing in
finding the OpenFlight plugin.

Longer term, will you plugin be open sourced and an potential
candidate for merging with the core OSG's plugin?

Robert.

On Dec 4, 2007 4:10 AM, Paul Martz <[EMAIL PROTECTED]> wrote:
>
>
> 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
> 303 859 9466
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to