GUIs, 32bit and transparency

Started by tiagocorreia, Wed 12/07/2006 14:54:22

Previous topic - Next topic

tiagocorreia

Hi,

This happens when making a game in 32bits mode.

If I've a GUI with a background with transparent areas (smooth transparent), and then add button that also have transparent areas (smooth), then the parts of the buttons that are over parts of the background that are not transparent, then the transparency of the buttons is not used. See screenshot below to have an ideia. Only the wood stick is part of the background, the rest on top of t, are buttons.

Ashen

#1
I take it the problem is that the black bits on the buttons shouldn't be there? Have you tried the workaround that worked for Alkis in this thread (different GUIs for the background and the buttons)?
It would be nice to know why this happens, and what to do about it, though.

EDIT: Meant to include the backpack too, but the buttons are the most obvious, IMO - there's also 'bleeding' around the edges.
I know what you're thinking ... Don't think that.

Kweepa

I think the problem pictured is the backpack's yellow aura, which is solid over the buttons.
Still waiting for Purity of the Surf II

tiagocorreia

Thanks for the tip. I guess that will work. But there is a bug there still.

Play_Pretend

I had to work out this same problem, what I did was just draw the buttons straight onto the GUI background, then make the GUI buttons over those areas with no border, background image, etc, just invisible selection areas.

subspark

Thats a minimal solution at best but what about button rollovers and glows? They would have to be disgarded for a static interface!?

SSH

You could have a set of sprites with these effects on and chnage them onto the gui background when the mouse is over a button
12

tiagocorreia

Yes i could add the effect with the background, but I was trying to reuse images already done. I've managed to solve by problem. I do use 3 gui, one for he background (I use a button also, so it disspears, during dialogs and cutscenes), one for the buttons and another for the backpack. That last gui is needed so I don't have a large transparent area where I can't interact.

Pumaman

This is a known issue, currently GUI Buttons cannot be alpha transparent. It's on the tracker to add this functionality, I believe.

tiagocorreia

Well, the GUI buttons can have alpha transparency. They just need to be on a GUI with an image as backgroudn completly transparent. just a small trick.

SMF spam blocked by CleanTalk