Hi Justim,

I'm afraid there is no support for this, the filename is part of the
osg::Image object, and if the readImageFile fails due to no texture
being found then it'll just pass back a NULL.

You could possibly use a Registry::ReadFileCallback to catch all
readImage calls and create a dummy osg::Image and assign a name for
every time that it fails.

Robert.

On Nov 20, 2007 11:37 PM, KSpam <[EMAIL PROTECTED]> wrote:
> When running osgconv, textures that are not found or that are missing plugins
> will not be added to the resulting OSG file.  Is there a way to force the
> writer to add the texture name into the output file?
>
> Often times, I receive models with incorrect texture names.  In one case, I
> have a 3DS file with textures that are missing extensions (i.e. filename
> instead of filename.jpg or filename.JP instead of filename.JPG).  Since OSG
> plugins are used based on the file extension, there are no plugins that will
> match the texture file.  If there is a way to force the texture names to the
> output file, I could easily hand-edit the OSG file to fix the texture names.
>
> Thanks,
> Justin
> _______________________________________________
> 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