Hi Robert, This discussion is pretty messy still, as I don't have nearly enough time to work on this project. I would still like to hear your thoughts on the licensing question from my previous email if you get a chance.
I need to take a closer look at osgDB::Archive; maybe Jason's zipfs plugin could be simplified if it derived from Archive instead of ReaderWriter. I looked at osgPlugins/zip a while ago, which derives from osgDB::Archive. It seems to be able to load a model like so: osgviewer model.zip where model.zip contains for example model.flt and texture.jpg But it fails if I try something like this: osgviewer model.zip/model.flt I haven't found any solid documentation on the zip osgplugin, so I am concluding that a zip file is allowed to contain just one model. Maybe I'm wrong about that. Also, it seems that textures or any external resource must be in the exact relative path that appears in the model files, which is not a requirement when you are using OSG_FILE_PATH to find resources. What I've been doing is generalizing OSG's file loading by overriding the path searching functionality to treat .zip files as directories. This gives a few benefits that make it feel more like a real virtual file system: 1. Models can load their external references from multiple .zip files. 2. Relative paths inside of .zip files don't matter anymore. 3. osgDB's file finding routines can now be used to search for any file in an osgDB::FilePathList. I can even search for level files or sound files that will not be used by OSG. Jason's zipfs plugin already loads files when specified with a .zip file as part of the path, so that was really helpful. The only thing I had to fix was that it couldn't load shaders. I don't think OSG has any of those benefits I listed. If they're hiding somewhere I must have missed them. I'll keep trying to think of some concrete way to integrate this stuff into OSG (without being too invasive). So far it's pretty messy with my function overrides. -- Terry Welsh mogumbo 'at' gmail.com www.reallyslick.com > > Hi Terry, > > I haven't dived into this discussion as I have plenty of other tasks > occupying my brain and time right now. I would like to add that I'm > open to suggestion of additions to osgDB so if you have something > concrete then feel to post it to osg-submissions for me review. I > would also add that osgDB::Archive had some additions to better > support usage with the zip plugin, these are rolled into the > OpenSceneGraph-3.0.x release so perhaps this might have an influence > over your work. > > Cheers, > Robert. > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

