Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Perica Senjak on February 18, 2003, 12:28:26 AM

Title: The way AGI Stores Images...??
Post by: Perica Senjak on February 18, 2003, 12:28:26 AM
Hey,

I read somewhere that AGI uses some sort of Compression to Store it's images (Surposedly called "Vector" ??), therefore they used only a small amount of memory.

I was just wondering, how does this format work?? How does it store the images?? How does the Compression work??

Cya.
Title: Re:The way AGI Stores Images...??
Post by: Patrick on February 18, 2003, 05:56:45 AM
yes and do they have a recognized filenmame extention? I was JUST asking this at Eric's board ...but i havent gotten a response yet  :-\...
Title: Re:The way AGI Stores Images...??
Post by: Eero R on February 18, 2003, 08:52:25 AM
Vector means that instead of every pixel saved in memory, there are only instructions how did maker of the room made it. Like in some programming languages: Circle (1,1,10,10). (Of course it isn't written with words.)
It saves room, because: for example we would want to make line from coordinates 0,0 to coordinates 20,20. In raster graphics you should store 200 bytes (every pixel with colors), but when making it in vector we only should use 6 bytes.
And AGI pictures do not have an single extension, when they are in AGI game, then they are in resource file(s) with picdir to show where they are. When they are extracted, they are usually named like picture.001 and so on.
Title: Re:The way AGI Stores Images...??
Post by: Joel on February 18, 2003, 06:18:05 PM
you can get a full description of the format of AGI pictures by looking at the unofficial AGI Specs, go to www.agispecs.com (http://www.agispecs.com) and then go to the Articles section. You'll find the Unofficial AGI Specs in the "Technical" section.
Title: Re:The way AGI Stores Images...??
Post by: Joel on February 18, 2003, 06:20:06 PM
Sorry, not agispecs.com, that should be www.agidev.com (http://www.agidev.com)
Title: Re:The way AGI Stores Images...??
Post by: Nick Sonneveld on February 18, 2003, 11:03:51 PM
darn.. I thought www.agispecs.com would be a rather interesting site.

Incidently.. I'm currently working on updating the specs.  must talk to Chris about it.

- Nick
Title: Re:The way AGI Stores Images...??
Post by: Patrick on February 19, 2003, 03:26:17 PM
Ok...but is there a way to open them with an extention is my question!
Title: Re:The way AGI Stores Images...??
Post by: Chris Cromer on February 19, 2003, 06:36:26 PM
Extensions don't mean didily squat, images are in a format. Even if you renamed someimage.gif to someimage.jpg it would still be in gif format even though it has the extension .jpg.

You would either have to make an AGI graphic conversion to .gif/.jpg/.png/etc.
Title: Re:The way AGI Stores Images...??
Post by: Nick Sonneveld on February 19, 2003, 09:08:49 PM
Chris... you're going about it the wrong way.

Ok...but is there a way to open them with an extention is my question!

No, there is currently NO way.

- Nick
Title: Re:The way AGI Stores Images...??
Post by: Mokalus of Borg on March 05, 2003, 06:58:47 AM
But there could be. We already have code to read and display AGI backgrounds, so all we need to do is:
1. Create a cut-down version of, say, NAGI that just opens and displays one picture.
2. Agree on a standard file extension for the pictures. Perhaps .avp for AGI Vector Picture, or .abg for AGI Background.
3. Associate the viewing program with the file extension.

Mokalus of Borg

PS - Easy as pie.
PPS - But not especially useful.
Title: Re:The way AGI Stores Images...??
Post by: Patrick on March 05, 2003, 03:03:54 PM
can YOU do that?  :D that would be so awesome!
Title: Re:The way AGI Stores Images...??
Post by: Kon-Tiki on March 05, 2003, 04:29:07 PM
PPS - But not especially useful.
I completely agree. Can't think of one use for it, so Patrick, it's a waste of time making it. The time put in that could be better spent on making other, more usefull tools.

-Kon-Tiki-
Title: Re:The way AGI Stores Images...??
Post by: Patrick on March 05, 2003, 07:58:47 PM
I can...GOOD OLD ADVENTURES  :P

it takes time to extract those characters....
Title: Re:The way AGI Stores Images...??
Post by: Eero R on March 06, 2003, 09:13:25 AM
Yeah, I made a character for GOA ready in three minutes without Character Calculator, thanks to new developer kit, what isn't released yet. ;D
Title: Re:The way AGI Stores Images...??
Post by: Patrick on March 09, 2003, 03:34:16 PM
yes but do you know who gave martin the idea for teh new dev kit? this dude talking to you right now! thx to my idea...but i am kinda sad that my calc is obsolete now.......
Title: Re:The way AGI Stores Images...??
Post by: Eero R on March 10, 2003, 10:13:14 AM
Character templates was useful update... :D