[osg-users] imageio pluggin, MACOSX 10.6, x86_64bit build question

2011-01-04 Thread Ted Morris
Hi,

I would like to know why the imageio pluggin .so wasn't invoked for jpg/png 
images with my cocoa/x64 bit build of osg on MACOSX 10.6. For example, running 
some of the osg examples indicates that it was unable to load the images 
(although they were correctly found).  Could it be the .png or .jpg extensions 
are forcing osg to look for the associated image pluggins?

How is this supposed to be invoked, at least when running the apps from the 
command line?



Thanks for any help-

Cheers,
Ted

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35292#35292





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] imageio pluggin, MACOSX 10.6, x86_64bit build question

2011-01-04 Thread Ulrich Hertlein
Hi Ted,

On 5/01/11 0:12 , Ted Morris wrote:
 I would like to know why the imageio pluggin .so wasn't invoked for jpg/png 
 images with
 my cocoa/x64 bit build of osg on MACOSX 10.6. For example, running some of 
 the osg
 examples indicates that it was unable to load the images (although they were 
 correctly
 found).  Could it be the .png or .jpg extensions are forcing osg to look for 
 the
 associated image pluggins?

The way OSG selects plugins for loading is by looking at the extension, 
checking if an
already loaded plugin handles this, and if not load osgdb_extension.so.

This obviously doesn't work for multi-extension plugins such as imageio, 
quicktime, or
ffmpeg.  You have to manually pre-load the plugin in this case.

 How is this supposed to be invoked, at least when running the apps from the 
 command
 line?

osgviewer -e imageio --image file.jpg

Hope this helps,
Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org