Hi Paul,

Up till now extension name collision hasn't been an issue.  Is there a
reason why you think that this will become an issue now?   In general
having multiple plugins using the same extension will be an
exceptional case and one that can be tackled by pre-loading.  One
could possible have the Registry loading plugins based on a wildcard
i.e. osgdb_ive*  but until we directly see an issue that is going to
affect more than a handful of users I think it would be to keep osgDB
as uncomplicated by extra stuff like this - it's already complex
enough.

With your own new extensions I think it would be best to introduce
these and the motivation behind them, whether they will be open
sourced etc.  A public discussion on any possible collisions and how
to resolve them could be done.  Putting list of extensions into wiki
is a good idea but mainly as an on going reference, we'll still need
the public discussion to highlight the potential problems as the wiki
will get overlooked most of the time.

Robert.


On Fri, Jun 12, 2009 at 7:43 PM, Paul Martz<[email protected]> wrote:
>
> Only if no plugins can
> handle the read/file attempt does th Registry then attempt to load a
> new plugin from disk based on the extension name.
>
>
> ...and it attempts to load exactly one plugin, and if the IO operation
> fails, osgDB returns "failure" to the app. It does not go out looking for
> additional plugins to load. This is a problem if there are multiple plugins
> supporting multiple different formats that happen to share the same
> extension string. Unless the app preloads the plugins (which kind of defeats
> the purpose of plugins), current unmodified OSG will not support different
> plugins supporting different formats with the same extension.
>
> If you'd like to keep OSG as it stands, then it seems reasonable to have
> some kind of public "extension registry" such as a wiki page, where
> developers can lay claim to certain extension strings so that we avoid the
> situation described above.
>
> I'd like to lay claim to ".osgb", ".skel", and ".skeleton" for my own work,
> as it seems reasonable that someone could possibly try to make their own
> format with extensions like those somewhere down the road, and I want to
> avoid the conflict that would occur from multiple plugins supporting
> different formats with the same extension string. I realize this "claim" is
> only as good as the ether I'm writing in. :-)
>    -Paul
>
>
> _______________________________________________
> 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