Show whole topic Feb 13, 2019 1:02 am
riess Offline
Approved Member
Registered since: Feb 09, 2019
Location: -


Subject: Re: M.A.X 2 Data Extractor
Ok, it looks like type 2 assets follow this structure:

[unknown][unknown (subtype?)][width][height][center x][center y][first segment offset][second segment offset][...][segment start position][segment len][segment data][255 - segment terminator][segment start position][segment len][segment data][255 - segment terminator]

If asset name is prefixed by "S_" (subtype 6), asset contains shadow data, in which case segment data is non-existing.

If asset name is not prefixed (subtype 7), asset also includes byte containing color palette identificator.

I've cooked naive implementation for this algorithm and got 1:1 image of water platform In love Sadly things went out of order when I've tried to render road, so maybe there's something else or just bug in my implementation.

Attachments:
WTRPLTFM.png
Downloads: 5140
Filesize: 1.38 KB
ROAD.png
Downloads: 5236
Filesize: 997 Byte

This post has been edited 4 times. Last edit on Feb 13, 2019 1:59 am by riess.