I'm running CEGUI 0.8.3 and Ogre3D 1.9.0. I am having a slight cosmetic problem with my second GUI context. It is drawn using a CEGUI::OgreRenderer, based on the recommended CEGUI RTT code. The picture below shows the corner of the yellowish album Cadmium by the group Sky as a texture on a mesh in Ogre3D, with a CEGUI ImageButton superimposed.
![Image](http://i62.tinypic.com/fwsoxt.png)
Problem: The shadow of the World button has become completely opaque.
The CEGUI ImageButton I am displaying on top of the yellow texture uses this graphic from the Crystal Clear collection by Everaldo Coelho. As you can see, it has a semitransparent shadow, but the world button rendered above has lost all transparency/alpha information.
The Ogre::TextureUnitState for my "CEGUI" texture, that is to be blended with the underlying yellow texture, is blended using these operations:
Code: Select all
tus->setColourOperationEx(Ogre::LBX_BLEND_TEXTURE_ALPHA);
tus->setAlphaOperation(Ogre::LBX_BLEND_TEXTURE_ALPHA);
![Sad :(](./images/smilies/icon_sad.gif)
The actual button is this:
Code: Select all
<Window type="Cube/ImageButton" name="wwwPicSearch">
<Property name="InheritsAlpha" value="False" />
<Property name="MousePassThroughEnabled" value="False" />
<Property name="Position" value="{{0.0,0},{0.9,0}" />
<Property name="Size" value="{{0.1,0},{0.1,0}}" />
<Property name="Image" value="Buttons/wwwPicSearch" />
<Property name="AlwaysOnTop" value="True" />
<Property name="Alpha" value="0.7" />
<Property name="TooltipText" value="Album Art search..." />
</Window>
and the ImageButton Look'n'Feel:
Code: Select all
<!--
***************************************************
CubeLook/ImageButton
***************************************************
-->
<WidgetLook name="CubeLook/ImageButton">
<PropertyDefinition name="Image" initialValue="" redrawOnWrite="true" />
<PropertyDefinition name="VertImageFormatting" initialValue="Stretched" redrawOnWrite="true" />
<PropertyDefinition name="HorzImageFormatting" initialValue="Stretched" redrawOnWrite="true" />
<PropertyDefinition name="hoverColours" initialValue= "tl:FFAFAFAF tr:FFAFAFAF bl:FFFFFFFF br:FFFFFFFF" redrawOnWrite="true" />
<PropertyDefinition name="pushedColours" initialValue="tl:FFAFAFAF tr:FFAFAFAF bl:FFAFAFAF br:FFAFAFAF" redrawOnWrite="true" />
<PropertyDefinition name="pushedoffColours" initialValue="tl:FFAFAFAF tr:FFAFAFAF bl:FF7F7F7F br:FFFFFFFF" redrawOnWrite="true" />
<PropertyDefinition name="disabledColours" initialValue="tl:803F3F3F tr:803F3F3F bl:803F3F3F br:803F3F3F" redrawOnWrite="true" />
<Property name="WantsMultiClickEvents" value="False" />
<ImagerySection name="normal">
<ImageryComponent>
<Area>
<Dim type="LeftEdge" >
<AbsoluteDim value="0" />
</Dim>
<Dim type="TopEdge" >
<AbsoluteDim value="0" />
</Dim>
<Dim type="Width" >
<UnifiedDim scale="1" type="Width" />
</Dim>
<Dim type="Height" >
<UnifiedDim scale="1" type="Height" />
</Dim>
</Area>
<ImageProperty name="Image" />
<VertFormatProperty name="VertImageFormatting" />
<HorzFormatProperty name="HorzImageFormatting" />
</ImageryComponent>
</ImagerySection>
<StateImagery name="Normal">
<Layer>
<Section section="normal" />
</Layer>
</StateImagery>
<StateImagery name="Hover">
<Layer>
<Section section="normal">
<ColourRectProperty name="hoverColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="Pushed">
<Layer>
<Section section="normal">
<ColourRectProperty name="pushedColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="PushedOff">
<Layer>
<Section section="normal">
<ColourRectProperty name="pushedoffColours" />
</Section>
</Layer>
</StateImagery>
<StateImagery name="Disabled">
<Layer>
<Section section="normal">
<ColourRectProperty name="disabledColours" />
</Section>
</Layer>
</StateImagery>
</WidgetLook>
So, where's the shadow gone, or "who's mucking with my alpha"? Me, Ogre or CEGUI?