Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Alynn on Mon 16/02/2004 23:07:37

Title: Alpha Channel not working?
Post by: Alynn on Mon 16/02/2004 23:07:37
I have an object that will basicly be an overlay for one of my maps I have the Alpha channel set correctly in my editor, so I save it as a png and import it, at that point the alpha channel doesn't work. Has anyone else had that problem, or am I doing something wrong?

I've also tried saving it as a bmp and that doesn't work either... my Game is 16bit AGS is 2.6 SP1... so if someone could shed some light on why it is doing this please let me know :)

Thanks
Title: Re:Alpha Channel not working?
Post by: a-v-o on Mon 16/02/2004 23:09:10
Alpha channel only works in 32-bit color, I think.
Title: Re:Alpha Channel not working?
Post by: Alynn on Mon 16/02/2004 23:12:48
changed it to 32 bit color... still doesn't work....
Title: Re:Alpha Channel not working?
Post by: a-v-o on Mon 16/02/2004 23:14:15
Have you reimported the graphics after changing color depth?
Title: Re:Alpha Channel not working?
Post by: Alynn on Mon 16/02/2004 23:19:58
heh I guess I should have mentioned that on my last post... yes I changed the depth then reimported... same thing. Should I upload the png somewheres?
Title: Re:Alpha Channel not working?
Post by: a-v-o on Mon 16/02/2004 23:21:49
if you want to... then I gonna look at it.
you can use my ftp://a-v-o.selfhost.de/upload
Title: Re:Alpha Channel not working?
Post by: Alynn on Mon 16/02/2004 23:26:29
Should be there...


EDIT: Ok my mistake... I forgot to click the checkbox for Save Alpha Channel in my graphic editor.... It works...
Title: Re:Alpha Channel not working?
Post by: a-v-o on Mon 16/02/2004 23:45:07
thanks, got it

hmmm.... how should it look like?

IrfanView only shows black/gray font on white ground (no transparency, though set to show it).
When I import it into AGS, I get much red (transparency) around the black/gray text.
I used it as image of an object and it shows in the editor and in the game white/gray/black text over the background.

But I don't see anything, that I would think is alpha channel like.  :-\
Title: Re:Alpha Channel not working?
Post by: Alynn on Mon 16/02/2004 23:49:16
If you read my edit... there was a small checkbox when saving that you need to click if you want it to save the alpha channel... I didn't see it... so I didn't click it... and the alpha channel wasn't saved :( All fixed now :) Thanks