Adventure Game Studio

Creative Production => Critics' Lounge => Topic started by: Ionias on Thu 19/02/2004 22:34:24

Title: Advice on Flash vector to raster export.
Post by: Ionias on Thu 19/02/2004 22:34:24
Ok I drew up my test Rodekill in Flash, and of course when I goto export my vector drawing as a .bmp raster drawing I get the nasty antialias as shown here:

(http://www.2dadventure.com/ags/rode_flash_test.gif)

Now, I can take this to Paint Shop Pro and pixel push my way to a nice spirte devoid of these nasty artifacts, but needless to say that would be quite time consuming. :)

Any of you flash artists have any tricks up your sleeves for this?

Title: Re:Advice on Flash vector to raster export.
Post by: Eggie on Thu 19/02/2004 22:47:50
Well...You could turn off anti-alising when exporting...but it would ruin that lovely smooth effect.

I think the pixel-pushing may be your only option. But don't take my word for it. Get a second opinion.
Title: Re:Advice on Flash vector to raster export.
Post by: Squinky on Fri 20/02/2004 00:10:32
I've asked this question like 5 times and never have had any good answers....unless I didn't understand them...It seems turning them to a bitmap fuddles up the cool flash look...

If you do find out, for the love of god, tell me....heh
Title: Re:Advice on Flash vector to raster export.
Post by: MrColossal on Fri 20/02/2004 00:26:16
(http://sylpher.com/kafka/junk/test.png)

what version of flash do you have?

do you go to export image?

that's what i did, exported it as a 24 bit bitmap 200 dpi and then scaled it in photoshop with bilineal sampling
Title: Re:Advice on Flash vector to raster export.
Post by: Ionias on Fri 20/02/2004 02:05:56
Quote
what version of flash do you have?

do you go to export image?

That's what I did, exported it as a 24 bit bitmap 200 dpi and then scaled it in photoshop with bilineal sampling
I have the trial version of Flash MX.

Yes, I did export the image. I should note that the character was originally on a pure white background and I pasted him on a the purple background to show the antialias.

Your sprite looks great, however when imported he'll still have the antialias.

(http://www.2dadventure.com/ags/mrc_flash_test.gif)
Now it's purple. :( Anyway around this?

My goal is of course to find a quick easy way to get a vector from flash into AGS with the least work possible. :)
Title: Re:Advice on Flash vector to raster export.
Post by: edmundito on Fri 20/02/2004 02:40:39
you could export as png with alpha channel... then import it into a 32-bit game.... and it looks beautiful. Now, about megs... that's another story ;)

Another solution is to make the background a dark grayish and then color it with your favorite transparent color on photoshop, that way the edges are not as noticeable... like I did in my tutorial: http://netmonkey.cellosoft.com/tutorials/tut1.html

You could also use the magic wand to select the transparency and then go to selection\modify\expand and expand the selction by 1-2 pixels... then erase and you would get pixelated edges without magenta.
Title: Re:Advice on Flash vector to raster export.
Post by: Darth Mandarb on Fri 20/02/2004 02:42:48
You could select the background color with the wand too (in photoshop) using a high tolerance.  It would select EVERY shade of white or purple (whatever background color you're using).  Then select the inverse and extract the character.  Then it should just have the character.

Also, you could select the character using the color range feature.

Also you could use levels to create a mask which would perfectly outline the character.

Just some suggestions ...

~ d

Title: Re:Advice on Flash vector to raster export.
Post by: Ionias on Fri 20/02/2004 03:31:07
Quote from: netmonkey on Fri 20/02/2004 02:40:39
you could export as png with alpha channel... then import it into a 32-bit game.... and it looks beautiful. Now, about megs... that's another story ;)

This is awesome, and it looks great! This is exactly what I was looking for!

Squinky if you need any help (I know I did. MrC walked me thru it on MSN IM) just pull me up I'm: socko_entertainment@hotmail.com
Title: Re:Advice on Flash vector to raster export.
Post by: on Fri 20/02/2004 15:14:49
You could export one with antialias (nr1), and one without (nr2)..

FIRST PART:
Open i PS and paste the nr2 on nr1..
Select layer with nr2 as the active layer..

SECOND PART:
Create a new action called Yamaha (name optional.. lol)

Record! {

Use the magic wand to select everything outside of the character.
Delete the 'nr2' layer.
Clear the selection.
Deselect.

} Stop recording

Now do the first part with every pic, and then press Play.
Simple enough.
Title: Re:Advice on Flash vector to raster export.
Post by: Sam. on Fri 20/02/2004 20:13:14
i don't know if this makes sense but here is what i do:
1:   First draw all of my black outlines using the anti-alias on a transparent bg. copy and paste it into a new transparent file
2:   I shade in the colours into the gaps.
3:   Paste the outline over the top. Psp on mine automatically removes anti alias edges.. is this just me?
Title: Re:Advice on Flash vector to raster export.
Post by: Igor on Sat 21/02/2004 15:16:51
Damn it... i didn't know it's now possible to import pics with alpha channel in AGS (i just tried it out and it works like charm)!
Ugh.. i guess that that means re-importing all characters in ignac again (the effect is just too good not to use it...).