Page 1 of 1

.AIM Image format

Posted: Wed Jul 05, 2006 8:08 am
by interface
First of all, english is not my native language... :wink:

That's what i figured out up to now:
.AIM means Ascaron Image Format and was developed by Ascaron for their new release "Darkstar One". The images stored in this files are simple 2D graphics.
My problems with decoding the format now are:
1) I cannot find any advice for the image size in the file header
2) the color format... most files contain a string "IMTC32", other "IMSLD32". So i've googled for those, but didn't find anything about this.
Maybe these strings doesn't stand for the color format...

The file data always starts at offset 40. It's simple one pixel after the other, line by line stored. So you can easily extract the colour values for each pixel. But without the correct color format, i always get wrong colours.

Some AIM files can be found here:
http://sv.h774874.serverkompetenz.net/aimfiles.zip
Maybe there is one who can help me? :)

Posted: Thu Jul 06, 2006 4:55 am
by jasmine
The files with IMTC32 in the 64 byte header are 32 bit R8G8B8A8 textures. That is one byte for each color plus alpha. The size of the texture is an unsigned long int located at byte 60 of the header. Immediately following the texture are two unsigned long int representing the width and height respectively.

Laters,
jasmine