Jump to content


Archiving Data for Program Retrieval?


4 replies to this topic

#1 Thales

    Member

  • Members
  • PipPip
  • 32 posts

Posted 08 May 2006 - 10:57 PM

Hello,

I thought many here must have grappled with the same problem.

I have lots of texture files and model files that need to be loaded into my OpenGL application during run time. It's a bit of a mess to have these files in a directory.

Is there an archiver for data that can be loaded from during run time? Iows, can I load these textures and model files into the archiver and then extract them from the archive when the program needs them?

Thanks for any help!

#2 bladder

    DevMaster Staff

  • Moderators
  • 1057 posts

Posted 09 May 2006 - 04:12 AM

http://www.winimage.com/zLibDll/

#3 SmokingRope

    Valued Member

  • Members
  • PipPipPip
  • 210 posts

Posted 09 May 2006 - 04:34 AM

There is a three part tutorial on www.flipcode.com called Programming a Virtual Filesystem

#4 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 09 May 2006 - 01:56 PM

Is there anything comparable to Microsoft's Structured Storage API for Linux?
Using zlib to build a portable read-only VFS seems straight-forward (if not tedious), but what about writing files back to the archive?
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*

#5 Nils Pipenbrinck

    Senior Member

  • Members
  • PipPipPipPip
  • 597 posts

Posted 10 May 2006 - 01:01 AM

Why would you want to do that? During development you can first check the filesystem for a file and then ask the zip-file. When you're done with editing, just compress the files together. This also has benefits in versioning.

Also, archive-packers have been able to delete and update files for ages. It's not that difficult to implement if your decompression code is aware of splitted files.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users