[osg-users] ReadImage not routing to plugin?

Robert Osfield robert.osfield at gmail.com
Sat Sep 24 11:08:17 PDT 2016


Hi Robert,

There isn't any easy way around this as there isn't a 1:1 mapping
between all file extensions and loaders can load files.  The
extensions that a 3rd party library like ffmpeg supports isn't even
fixed w.r.t what version of the OSG is compiled against it.  For
instance we might make an OSG release that knows about a certain set
of files is supported, then later the 3rd party lib changes and adds
or removes support for certain file formats.

GIven this it's not a problem that the OSG can solve perfectly, it's
decoupled. The best we can do is provide some sensible defaults and
then provide a mechanism to help in cases where it can't automatically
do what.

For you case the solution is pretty straight forward just preload the
plugins you want.

Robert.

On 24 September 2016 at 18:56, Robert Spearman
<rob at digitaliseducation.com> wrote:
>
> OK, I see the design flaw I was missing.  You have to load a plugin library
> in order to see what extensions it handles, and plugins are only loaded when
> needed.  But "needed" can only be known if you have loaded the plugin
> already.  That's why there are so many hard coded extensions in the
> Registry.cpp.
>
> So the workarounds are to load a specific plugin in your app or set up the
> registry in your app.  But nothing can fix this in the plugins short of
> redesigning things.
>
> Does that sound right?
>
>
> Thanks,
>
> Rob
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list