[osg-submissions] Support for reading images from an osgDB::Archive
Robert Osfield
robert.osfield at gmail.com
Tue Jan 22 01:03:19 PST 2008
Hi Glen,
On Jan 22, 2008 1:59 AM, Glenn Waldron <gwaldron at gmail.com> wrote:
> OK understood - I agree that it's not the most elegant solution - in any
> case I think I can work around it n the meantime by referencing the full
> archive path in the texture def ( e.g. archive.osga/texture.jpg).
I do wonder if the findFileInPath is where the action should be - as
this is in affect what we are doing here. Prehaps we could have
findFIleInPath, a findFIleInArchives, find FileInArchivesOrPaths type
of thing. Perhaps if we change the findFileInPath just to be aware of
archives so that it becomes it checks them. The findFileInPath would
be a convenient mechanism as it could is encapsulated and fits with
concept that an archive can be treated as a directory.
The findFileInPath route would pass back a filename that includes the
archive name, and something that can only be opened the archives, and
not by the plugins that actually call findFileInPath, so that plugins
themselves would need to be tweaked a little so that they can support
reading from an archive path.
> I will work on this and submit it separately. Thanks -gw
Thanks.
More information about the osg-submissions
mailing list