need help on image compression
I need informations about the image compression in old LA games like MI2, FOA.
Could someone please describe the SMAP block format?
0 dword ("SMAP")
4 dword (size of block)
What is the rest? What are stripe offsets? Where do I find them?
I think, if the room has a size of 320x200 pixel, there are 320 / 8 = 40 single stripes I have to process, is this correct?
The informations given in (link) ain't completely clear for me, as they cover all formats, the old (BM/PA) and the new ones (RMIM/CLUT). I tried to use the given informations on an image, but this didn't make sense.
Could someone please give me an example ?
Like "how to decode the background-image of room 1 (Indy's office) in FOA"?
Btw: I know how to handle the palette (CLUT).
You need the old inside the engine article:
I have written a simple tool to decompress background images in SCUMM V5 games, you can find it on my website (called "SCUMM Image Encoder (mi2img)"). It has Python source code available. SCUMM V5 has multiple methods for compressing the backgrounds. It only compresses in the "lossless" format.
It requires certain blocks extracted from the resource file, you can get these blocks using either ScummPacker (also on my site) or scummrp (from elsewhere).
Also, check out the source code for the incomplete tool ScummEx, available in the ScummVM repositories.
While looking through the data, things became clear instantly ;)
offset stripe1 data word
offset stripe2 data word
offset stripeX data word
Sometimes one is just too dumb, not seeing the hand in front of your face :)
|All times are GMT -4. The time now is 08:08 PM.|
Powered by vBulletin®
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
LFNetwork, LLC ©2002-2011 - All rights reserved.