lfnetwork.com mark read register faq members calendar

Thread: need help on image compression
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 12-02-2010, 06:44 AM   #1
phedon
Lurker
 
Join Date: Nov 2010
Posts: 3
need help on image compression

hi,
I need informations about the image compression in old LA games like MI2, FOA.
Could someone please describe the SMAP block format?

offset type
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"?

best regards
phedon



Btw: I know how to handle the palette (CLUT).

Last edited by phedon; 12-02-2010 at 06:57 AM.
phedon is offline   you may: quote & reply,
Old 12-02-2010, 04:00 PM   #2
bgbennyboy
Festively Plump
 
bgbennyboy's Avatar
 
Status: Super Moderator
Join Date: Feb 2002
Location: England
Posts: 1,984
LFN Staff Member 
You need the old inside the engine article:
http://goblin.cx/scumm/scummrev/articles/inside.html

bgbennyboy is offline   you may: quote & reply,
Old 12-02-2010, 10:26 PM   #3
jestar_jokin
Rookie
 
Join Date: Sep 2004
Posts: 39
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).

http://www.jestarjokin.net/

Also, check out the source code for the incomplete tool ScummEx, available in the ScummVM repositories.
jestar_jokin is offline   you may: quote & reply,
Old 12-03-2010, 04:59 AM   #4
phedon
Lurker
 
Join Date: Nov 2010
Posts: 3
Lightbulb

Thanks alot!
While looking through the data, things became clear instantly

header dword
size dword
offset stripe1 data word
offset stripe2 data word
[...]
offset stripeX data word

stripe1 data
[..]
stripe2 data
[..]
stripeX data
[..]

Sometimes one is just too dumb, not seeing the hand in front of your face

regards
phedon
phedon is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Mixnmojo.com > Community Discussion Forums > SCUMM > need help on image compression

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:07 AM.


LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.