Ulrich Hertlein wrote:
What extension/plugin did you use it with?

I've used this with proprietary plugins that support multiple different extensions for the same file type.

As I understand it 'addFileExtensionAlias' really only works with plugins that 
don't check
the extension name.

I only register aliases that the plugin supports. The plugin still checks the extension. I think most all plugins check the extension.

The osgDB::Registry constructor does the same thing. Consider the QuickTime plugin, the RGB plugin, etc.

On a related note, I also have a proprietary plugin that supports possibly dozens of different file types. The actual formats supported are determined by a third party library loaded by the plugin, so there's no way to know what is supported before loading the plugin, and therefore no way to register any aliases. In this case, the client app simply does an explicit load on the plugin library at init time. Once loaded, the plugin is invoked for every read/write regardless of extension, so the plugin itself determines which files it supports whenever a read/write is invoked, by interacting with its third party library.
   -Paul


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to