Problem with importing sprites with alpha channel

Started by Anteater, Thu 23/04/2009 15:29:47

Previous topic - Next topic

Anteater

While using the latest version of AGS, importing .pngs with alpha channels doesn't give the option to import the sprite with an alpha channel. The closest I can get is using the top/bottom/left/right pixel for the transparent color, which results in an ugly halo around the sprite. What am I doing wrong?

GarageGothic

Are you importing multiple .PNG's at once or just a single one? At least when importing them individually, I get a message box saying:

QuoteThis image appears to have an alpha channel. Do you want to use it?

When importing multiple sprites (using "Quick import"), I believe the transparency setting will be identical to that of the last individual sprite you imported.

Anteater


Pumaman

Are you sure the images actually have alpha channels? What graphics program are you using to create them?

Anteater

Gimp. I'm pretty darn sure that the images have alpha channels.

monkey0506

It sounds like somewhere between editing the file and saving it your PNGs are getting flattened...you may need to check your source files. I can personally guarantee that alpha-channel PNGs import properly in the latest version of AGS. Provided they have an alpha channel of course. ;)

Anteater


RetroJay

Hi Anteater.

This may seem like a silly question but is your games color depth 32bit (true colour)?
Cos if its not then it needs to be to allow alpha channels.

I know this cos I had exactly the same prob. Mind you I still can't get alpha channels to work but this is cos
I am doing them all wrong with my paint program. ::)


Anteater

Yeah I'm sure of that. I think I'm doing something very wrong with my image editor.

Gilbert

Can you upload a small PNG file that exhibits this problem for us to investigate?

Anteater


Gilbert

It works for me. Upon importing the image the editor asked me whether I want to use the alpha channel and it's displayed perfectly in game.

Can you double check to make sure your game is in 32-bit?

Anteater

Holy cow it was set to 16 bit.   :-[
Mods, feel free to get rid of this topic.

Badger

Thank you for keeping this one open..was a real help :)

SMF spam blocked by CleanTalk