Static Image transparency problem

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Elaine
Just popping in
Just popping in
Posts: 2
Joined: Mon Jul 31, 2006 16:50
Location: Dundee

Static Image transparency problem

Postby Elaine » Sun Aug 13, 2006 16:11

Hi!
I'm trying to display an image on a static image by using createImagesetFromImageFile. The problem is that it's an irregular shape so basically it should be transparent in the part where its transparent. It doesn't appear like this, however. Instead of being able to see through the transparent parts it just appears black. I've tried doing an alpha channel with both png and tga but I can't get it to work. Looking through the forums all I can find is how to set the overall alpha for the image but this doesn't apply in this case because some parts should be completely opaque and some parts completely transparent. Any help would be appreaciated. I have a feeling there's a very simple solution that I'm just not getting!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Postby CrazyEddie » Sun Aug 13, 2006 18:37

Hi,

Did you disable the background on the static image?

Code: Select all

staticImage->setProperty( "BackgroundEnabled", "False" );


(Or use a similar property if you have it in a layout file).

CE.

Elaine
Just popping in
Just popping in
Posts: 2
Joined: Mon Jul 31, 2006 16:50
Location: Dundee

Postby Elaine » Mon Aug 14, 2006 23:46

That worked - thanks!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 36 guests