Hi Terry,
osgEarth has a generic zip based plugin called ZipFS that is
implemented as an osgDB plugin and isn't dependent on osgEarth. We
originally developed it to support using a zip file of imagery tiles
for a cache.
It allows you to load files like:
osgDB::readNodeFile("c:/data/models.zip/cow.osg");
I haven't used it for quite awhile but last I checked it was working
just fine. You can get the osgearth source code from github at
https://github.com/gwaldron/osgearth
If anything it could be a start to what you're looking for.
Thanks,
Jason
On Sat, Jul 30, 2011 at 1:13 PM, Terry Welsh <[email protected]> wrote:
> I would like to be able to load from .zip files and also to be able to
> prioritize which paths or .zip files to load from using the standard
> OSG_FILE_PATH mechanism. Has anyone done any work with integrating a
> virtual file system such that .zip files can be added as paths to
> OSG_FILE_PATH and osgDB::findDataFile and osgDB::readNodeFile can
> freely navigate these files? I suspect this would require overriding
> way too many osgDB functions. Is it even feasible?
>
> Just finished looking over the physfs tutorial (
> http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/VFS
> ). It's very cool, but it doesn't appear to be as tightly integrated
> as what I want to do.
> --
> Terry Welsh
> mogumbo 'at' gmail.com
> www.reallyslick.com
> _______________________________________________
> 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