For what it's worth, here's a brain dump of the current virtual file system code in my game. This week I've been trying to finalize this and put some decent comments on it. It lets you specify archives (I've only tested .zip files) in OSG_FILE_PATH just like you would specify directories. I thought it might be useful to anyone trying to do the same.
The attachment includes the patch I'm using to add this functionality to OSG 3.2. It also includes an attempt at implementing this functionality with callbacks and no mods to OSG. However, this method has too many ugly little workarounds, so I don't like it very much. I included it because it has some decent notes about the gotchas you'll run into with this method. -- Terry Welsh www.reallyslick.com
virtualfilesystem.tar.gz
Description: GNU Zip compressed data
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

