Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 16/01/2004 21:18:58

Title: Character export question
Post by: on Fri 16/01/2004 21:18:58
I have a question about using the character export function. The character I'm exporting consists of 100 sprites, they are from the eight walk-views, five views with 20 sprites each with three flipped views. The file size of each sprite is about 15k so the size of the 100 sprites is about 1,5 megs. The sprites are in png format.

When I export the character the size of the file created is about 28 megs. Why is there such a big difference in size?

Dan
Title: Re:Character export question
Post by: Scorpiorus on Fri 16/01/2004 23:44:18
That's because AGS doesn't compress sprites. When you was importing you png sprite in the game AGS converted it to bmp (which is bigger). Exported character files (.cha) store bmps, not png.

EDIT: Try to zip a character file. That should reduce its size significantly.

~Cheers
Title: Re:Character export question
Post by: on Sat 17/01/2004 13:43:29
Thanks, now I understand. Do you know if this will be changed in future versions?

Dan
Title: Re:Character export question
Post by: Scorpiorus on Sat 17/01/2004 15:39:32
AGS converts sprites to bitmaps for perfomance reasons, so it hasn't decode an image file before showing it on the screen, thus it works faster. As about .cha file it won't work to convert to png (image quality loss can occur), then (on character import) back to bmp etc. Something like simple RLE bmp compression would be suitable but again the file can be compressed by an external archiver. The first things Chris does implement that can't be workarounded somehow else, so I don't think we'll see that in the near future.

~Cheers
Title: Re:Character export question
Post by: on Sun 18/01/2004 12:06:05
Ok. Thanks. I'm just hoping that having a couple of 28 meg characters on the screen at the same time will not slow the game down.

Dan