Alpha channel from texture is being ignored

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

joeludwig
Just popping in
Just popping in
Posts: 2
Joined: Tue Oct 14, 2008 18:54

Alpha channel from texture is being ignored

Postby joeludwig » Thu Oct 16, 2008 18:06

This is my image:
Image

THis is my Imageset:
<Imageset Name="Cooldowns" Imagefile="Cooldowns.png" NativeHorzRes="800" NativeVertRes="600" >
<Image Name="0" XPos="0" YPos="0" Width="32" Height="32" />
<Image Name="1" XPos="32" YPos="0" Width="32" Height="32" />
...
<Image Name="15" XPos="96" YPos="96" Width="32" Height="32" />
</Imageset>


The problem is that when this image is layered over an image button with a no-frame static image the alpha is ignored and the image is drawn as fully opaque. If I set an alpha on the static image control it's used universally for the whole image and still ignores the texture alpha.

Is something wrong with my image, or maybe with my Imageset? I have tried both PNG and TGA versions of the file, and both files look right in Photoshop. (And you can even see the alpha working on the embedded image above.)


Joe

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Postby Jamarr » Fri Oct 17, 2008 16:23

Your imageset looks right, and I don't think it has any properties for affecting the images alpha channel (or any other property) anyway.

I know that using the supplied TaharezLook.tga, which uses alpha, works fine. I can also verify that saving and using it as a png works fine as well.

That only leaves a couple of options. Either there is some conflict between CEGUI and your image, possibly the settings you are using to save it? Or perhaps your application is still loading an old version of the image that was not using alpha?

Sorry I couldn't be of any more help.

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

Postby CrazyEddie » Sun Oct 26, 2008 09:59

Yeah, just to confirm - alpha information is taken from the image itself, so if that's not saved correcting from the image editing software, there's nothing in CEGUI that can 'fix' it afterwards ;)

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 2 guests