Heyo, I'm having a bit of trouble with my alpha-blended GUI buttons on my alpha-blended GUI. I know it's been discussed before but the suggested fixes don't seem to work and generally it's all a bit confusing.
The setup is this:
- a 32-bit game, 1024x768, with AdditiveOpacity, built in AGS 3.1.2.
- a GUI with the background set to 0 (transparent) and an alpha blended PNG as background.
- a handful of buttons with alpha blended PNGs.
I first imported the GUI background image with the alpha channel but chose No Transparency since there technically really isn't a single transparent pixel in the whole thing. I later added a transparent border to it and chose to use the alpha channel and then the top-left pixel, but this didn't seem to yield a difference. The button sprites themselves all have large transparent bits and use the alpha channel + top-left pixel transparency.
When I remove the GUI background image and just leave the thing transparent, the buttons do display correctly.
PSD ingame ingame no bg
(http://timhengeveld.com/GUIalpha.png)
Help?
It sounds like the GUI background image isn't imported correctly.
Afaik you don't need a border. If the image has an alpha channel, AGS should ask you to use it and not care about e.g. the top-left corner pixel.
Are you sure this was actually fixed in 3.1.2?
I remember there being some problems with button alpha channels in 3.1.2 but i dont remember exactly what they were.
I'm having that problem too as it hasn't been fixed yet. CJ said something about alpha-GUIs on top of alpha-GUIs not working due to how GUIs are drawn on the screen or something... don't remember exactly. But yeah, it's too bad.
Hm, well fair enough. It doesn't look TOO bad, and it's better than not having any alpha at all, so if that's the lay of the land right now then I'll take it.
You can't have a img(button) with an alpha channel over another img in a GUI.
Didn't see that Matti answered you.