Hi Simon,

The 3DS plugin attempts to do case insensitive file loading because
often 3DS files have completely screwed file cases.  The other plugins
don't check for case in-sensitive files though - it's a case of
garbage in, garbage out, and there isn't an option you can just enable
to get them to run around trying to clean up the mess left by modelers
working under Windows.

One possible solution that to use a custom osgDB::FindFileCallback,
you'll only find this in OSG svn/trunk as it's a new feature.  In
theory this should allow you to override the file searching for files
that the plugins use and to make this search case insensitive.

Robert.

On Mon, Jul 27, 2009 at 6:45 AM, Simon Julier<[email protected]> wrote:
> Dear All,
>
> Is there a way to enforce case (in)sensitive matching when loading a file
> using the osgDB::read*File* methods? I'm guessing not (since the only way to
> pass options seems to be via the ReaderWriter::Options class which doesn't
> seem to contain such a field), but I wondered if there were any global
> settings (environment variables, etc.) that I might've missed.
>
> If there is no way to do this at the moment, would there be any issues /
> objections (at least in principle) with adding such an option to the
> ReaderWriter::Option class? If there aren't, I'd be willing to spend some
> time implementing this.
>
> Cheers,
>
> Simon
> _______________________________________________
> 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