[Papervision3D] large KMZ asset decoding

Jon Bradley jbradley at postcentral.com
Fri Jul 11 05:51:45 PDT 2008


On Jul 9, 2008, at 5:57 PM, Ralph Hauwert wrote:

> I'm pretty sure that a
> simple hack within the inflate loop of the zip libraries should do the
> trick....I had a quick look. It's all about saving a state when your
> timer hits, breaking the process, then coming back to it when needed.
> I wish I had time to help you out with it, since it's an interesting
> issue on itself, but currently I don't have enough to build a proper
> solution for it. Maybe dave (nochump zip library) can help out ?

Little update. I fixed up the classes yesterday and manage to get it  
to load in chunks quite well. ZipFile and Inflate now extend  
EventDispatcher and I've got a couple new event classes to handle  
when a entry is parsed (passed as a property of the event) and an  
error is thrown in the Inflate (passes the error). Also implemented  
ProgressEvent dispatch.

Still looking to see if I can simplify the code a bit more or  
streamline it.

Unpacking large ZIP archives is fine now. The next step is to modify  
the KMZ parser to queue the decompression of the entries. As long as  
the developer listens to the loaded event, all should work as it did  
before.

- jb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080711/464ae7f5/attachment.html 


More information about the Papervision3D mailing list