Importing Sprites have junk all around them

Started by LinkMaestro, Sun 25/03/2012 17:51:19

Previous topic - Next topic

LinkMaestro

Whenever I import a sprite, there's white static like dirt all around them.  I'm using GIMP to make the characters. Any ideas how to get rid of this?

Icey

#1
Are they jpg? If so it would be best to save our stuff as a png or bmp. Or if you want you can go through each pic and erase the extra "dirt" around the spirits.

Btw, if your trying to import a spirit with a transparent background then make sure the background is transparent in gimp and save it as png then re-import it into AGS after you made sure that the color mode of AGS is in 32-bit, not 16 or 8 bit.

Khris

To elaborate a bit, if you're using a smooth brush, you're drawing semi-transparent pixels.
Like Icey said, if your game isn't set to a color depth of 32bit before the sprite is imported, those pixels' partial transparency is lost, thus the white outline.

kyodai

I have had that as well, in my case it were pixels that were "white" which i had used as transparency, but on close inspection they were not perfect white, just a few shades off, not really visible to the human eye. What i did was using the filling tool to fill the "white/nearly white" areas with a "perfect" white in gimp.

LinkMaestro

Alright, i think I have the problem resolved by not using semi-transparent pixels. If I set the game to 32-bit, will it allow semitransparent pixels to make the sprite look smoother?

Khris

Yes. If you save the image as PNG with alpha channel, AGS will recognize that. You can put those sprites on characters and objects just fine, just GUIs might act up a bit. You can put them on GUI buttons, as long as the GUI background image is also a sprite with alpha channel.

SMF spam blocked by CleanTalk