Dithering of Imported images

Started by geralt, Wed 02/03/2011 13:38:22

Previous topic - Next topic

geralt

Hi,
   I just started using AGS (3.1). When I import sprites (.bmp files edited in MS paint), I am getting a dithering effect in the animation preview (black dots and less colors than original image). I used 32 bit color settings in AGS general Settings and the imported .bmp files are saved as 24-bit in MS Paint. Help plz  :).
Thank you,
Rahul

Khris

Did you check the look in-game?
The editor might not display sprites correctly, especially when working with high color and/or transparency.

geralt

Hi Khris, thanks for the reply.
Yes, I checked by running the game. The sprite graphics look better in-game, in that the colors look better but the black dots are still there  :(
Also can someone please tell me how to make the color around my character sprite look transparent in-game  ::)
I followed the video tutorials posted by Densming on youtube.
Densming used magenta color for transparency so I did the same but my sprite is having magenta around him in-game. What am I doing wrong? Please help  :).
Thank you,
Rahul.

Jared

As far as I remember the default setting is for whichever colour is in the top-left pixel of the sprite. You should double check that the character's hair or anything else isn't occupying that sprite, then double-check that it the transparency is set to the top-left option.

Other options include other corners, palette 0 and no transparency from memory - I'd like to be more specific but I'm on a computer that does not have AGS right now.

Monsieur OUXX

There are 2 separate issues here:
- About the transparent color:
You can choose it when importing the image: There is a little drop-down menu allowing you to choose either the default color (traditionnally "pink", that is color RGB=255,0,255) or the color in the top-left corner.

-About the black dots:
I'm still puzzled by the way AGS handles some files types. I've been having issues woth some PNG files saved with some specific applications, and with some BMP files saved with Paint. My intuition is that AGS doesn't like non-standard color-depths (I didn't find a better term). I'd advise saving your files with a slightly better images editor, such as Paint.Net (free).
I'm not saying it is a bug, and I haven't tested that thouroughly. I'm just suggesting a workaround.
 

Khris

Quote from: geralt on Thu 03/03/2011 04:44:28
Also can someone please tell me how to make the color around my character sprite look transparent in-game  ::)
I followed the video tutorials posted by Densming on youtube.

Don't roll your eyes at us when asking something that's more or less answered in the beginner's FAQ (which you're supposed to read before posting here) and multiple times in existing forum threads (which you're supposed to search for before posting here).
If you use a smooth brush, you'll essentially get a mini-gradient at the borders of your sprite. Now, as long as you're painting in another layer over a transparent background and set AGS to 32bit and select "yes, use the alpha channel" when you import the image, your sprite will end up fine in AGS and will have smooth, semi-transparent edges. If you don't do this though, only the outer color will be transparent and consequently your sprite ends up having a colored halo.

The dots are something I've only experienced very recently. I could solve the problem by copying the sprite to the clipboard in AGS, pasting it into my gfx program, removing the dots and copy-pasting it back again. Not pretty but works.

geralt

#6
Thanks guys got rid of the halo.

Quote from: geralt on Thu 03/03/2011 04:44:28
Also can someone please tell me how to make the color around my character sprite look transparent in-game  ::)
I followed the video tutorials posted by Densming on youtube.

Quote from: Khris on Thu 03/03/2011 11:41:08
Don't roll your eyes at us when asking something that's more or less answered in the beginner's FAQ (which you're supposed to read before posting here) and multiple times in existing forum threads (which you're supposed to search for before posting here).

Sorry, my bad for being impatient for silly questions. Wont repeat :)

SMF spam blocked by CleanTalk