Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: AJA on Sun 13/07/2003 21:01:31

Title: Outline generator plugin for sprites *ALPHA 2* UPDATED
Post by: AJA on Sun 13/07/2003 21:01:31
WARNING! THIS IS AN ALPHA VERSION!

Okay... So, I tried my skills and made an outline generator plugin for sprites. Only one function is available: SetSprite(int sprite, int onoff, int outlinecolor, int x, int y, int generateoutline). I've included a small test game to the zip (extract the zip to the folder of AGS). These are the current requirements for sprites that can be outlined: one pixel of empty space below the sprite (and maybe also 1 px on the right, i'm not sure of this).

http://koti.mbnet.fi/dima/downloads/outlinegen.zip (http://koti.mbnet.fi/dima/downloads/outlinegen.zip)

-UPDATED: crash should be fixed etc -
Title: Re:Outline generator plugin for sprites *ALPHA*
Post by: on Mon 14/07/2003 10:06:53
Very nice! I can see this being used in many future games. Slight problem with the test game, if you hover the key over the door for about 5 seconds, the games crashes with this error.

Quoteexception 0xC0000005 occured in ACWIN.EXE at EIP = 0x022D8E0B ; program pointer is +5, ACI version 2.55.561NMP, gtags (0,32)

I havn't tried the plugin in other games, so I'm not sure if this is a game or plugin error. Ah well, great work anyhow.
Title: Re:Outline generator plugin for sprites *ALPHA*
Post by: danny* on Mon 14/07/2003 12:40:42
nice work!!!
Title: Re:Outline generator plugin for sprites *ALPHA*
Post by: Scorpiorus on Mon 14/07/2003 20:18:10
yeah, AJA, very nice work :D

QuoteSlight problem with the test game, if you hover the key over the door for about 5 seconds, the games crashes with this error.
btw, I noticed that too.

-Cheers
Title: Re:Outline generator plugin for sprites *ALPHA*
Post by: AJA on Tue 15/07/2003 15:06:04
Thanks! :)

QuoteSlight problem with the test game, if you hover the key over the door for about 5 seconds, the games crashes with this error.

Yeah.. I noticed it too. Tho' it didn't happen on my own computer but now it should work quite nicely. Though now I have few things to ask CJ to add to AGS... :D
Title: Re:Outline generator plugin for sprites *ALPHA 2* UPDATED
Post by: edmundito on Tue 15/07/2003 23:25:39
Hey, I haven't toyed with this, but if there's any way to modify fonts before they display on the screen, maybe you could make an outline generator for SCI fonts, maybe even an option to add shadows.... or just give the code to chris so he can permanently add it ;)
Title: Re:Outline generator plugin for sprites *ALPHA 2* UPDATED
Post by: deltamatrix on Tue 15/07/2003 23:55:43
This would be cool to acgieve the reversal spell effect from qg2. Does it work for all colours or just 16?
Title: Re:Outline generator plugin for sprites *ALPHA 2* UPDATED
Post by: AJA on Wed 16/07/2003 16:10:17
netmonkey: Yes, that's just what I'm trying to achieve. This is just the first step. Though before the font outlining is possible CJ would have to add some nice new plugin features. ;D

deltamatrix: This plugin works in 8, 15 and 16 bit modes.

Quotethe reversal spell effect from qg2

Uh... what exactly is that?