[bug-solved] Colours element byte order on Mac

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

wally
Just popping in
Just popping in
Posts: 20
Joined: Wed Jul 09, 2008 09:45
Location: Canberra, Australia

[bug-solved] Colours element byte order on Mac

Postby wally » Mon Sep 15, 2008 07:01

I've got custom looknfeel buttons which are intended to appear darker in the "off" state via this Colours element:

Code: Select all

        <StateImagery name="Normal">
            <Layer>
                <Section section="OffNoHover" />
                <Section section="icon" >
                  <Colours
                    topLeft="ffb0b0b0"
                    topRight="ffb0b0b0"
                    bottomLeft="ffb0b0b0"
                    bottomRight="ffb0b0b0" />
                </Section>
            </Layer>
        </StateImagery>


(darkening of RGB components, with full opacity)

But on a Mac rendering with OpenGL, instead I see buttons in this state rendering partially transparent. And changing the colours above
from ffb0b0b0 to b0b0b0ff produces full opacity

So it seems like the colour bytes are applied in the reverse order on the mac? (Pixel format or endianness issue?)

I believe the expected colour format is AARRGGBB from the falagard docs, regardless of platform.

Specs:
PowerPC mac, OSX 10.5.4.
CEGUI 0.6.1 precompiled packages

On Windows platform, rendering with DirectX or OpenGL produces the correct results (full opacity).

Thanks
Last edited by wally on Wed Jan 07, 2009 22:33, edited 1 time in total.

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

Postby CrazyEddie » Mon Sep 15, 2008 09:04

Hi,

You're pretty much correct about the endianness - this is a bug! :oops:

I'll try and get it fixed ASAP. My Mac is an Intel variety BTW, so sometimes these things are gonna slip through :)

CE.

wally
Just popping in
Just popping in
Posts: 20
Joined: Wed Jul 09, 2008 09:45
Location: Canberra, Australia

Postby wally » Mon Sep 15, 2008 23:23

Not a critical issue for me - I can probably work around it if I have to and I guess it won't be a problem on intel macs.
Apart from that (and the framework issue I reported elsewhere) it was pretty smooth getting the GUI running on the mac. So good job on that :)

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

Postby CrazyEddie » Tue Sep 16, 2008 08:20

It's good to hear that aside from a couple of glitches, the prebuilt framework functions as expected.

The decision to keep the framework location in the 'wrong' location for the 0.6.x releases was one of those where I felt between a rock and a hard place - I have no idea why it was originally set up that way.

Once I get some time for CEGUI related work, one of the first jobs will be to get the new XCode project for the 0.7 (currently svn trunk) up and running - especially as I find myself spending more and more time on the Mac, it's actually quite addictive :)

CE

wally
Just popping in
Just popping in
Posts: 20
Joined: Wed Jul 09, 2008 09:45
Location: Canberra, Australia

Postby wally » Wed Jan 07, 2009 22:33

Just an update that CEGUI version 0.6.2 solves this issue for me. Colour multipliers, background colours etc all work correctly for me now on PPC macs.
Thanks!

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

Postby CrazyEddie » Thu Jan 08, 2009 10:02

Thanks for confirming that our fix has indeed worked. While I believed that I had got it right, I was unable to test it for sure. :)

CE.


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 14 guests