Palomino - Compression

©2004,2009  Jim E. Brooks   http://www.palomino3d.org



Compression

[2008/08]

zlib is used to decompress data files that were compressed by gzip. The base module has the low-level ReadFileGzip() function, and the C++ stream class gzstream.

Implemented in ModelCache:
Compressed 3D models are read from a .gz file using the C++ gzstream class which is based on zlib, then gzstream is passed to osgDB::ReaderWriter::readNode(std::istream&). A consequence is that OSG must be notified of all directories that contains graphics assets referenced by the 3D model file.


Last modified: Sat Nov 7 14:26:21 CST 2009