[SOLVED] Colours show up differently in CEED than Photoshop

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

Henrik
Just popping in
Just popping in
Posts: 5
Joined: Tue May 15, 2012 10:37

[SOLVED] Colours show up differently in CEED than Photoshop

Postby Henrik » Sat Feb 02, 2013 13:01

Been actively creating layouts since I noticed CEED's existance and enjoying the awesome editor so far but one thing that I don't understand is how colours are handled. Everywhere I read in documentation it seems to suggest that the first two characters are the alpha and the remaining 6 are RGB, but whenever I take a colour from Photoshop in form of HEX it always shows up as a different shade of the colour when seen in CEED. I'm clueless and probably really stupid but I can't seem to find a solution to it. I've been trying web safe colours and they tend to be closer to the actual colour but still not the same.

What am I missing? I don't actually load it into any game yet, only playing around in CEED so I don't have any CEGUI.log, I do however have the debug log from CEED included below, let me know if I missed something, I tried following the usage guidelines as closely as I could.

Debug from CEED: http://pastebin.com/MktMGPNz
Last edited by Henrik on Sat Feb 02, 2013 14:56, edited 1 time in total.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Colours show up differently in CEED than Photoshop

Postby Kulik » Sat Feb 02, 2013 13:56

Hi there!

Since I don't own a Photoshop license I will have to guess a little. According to screenshots found and a documentation reference [1] I think it outputs RRGGBB. Maybe sometimes it outputs RRGGBBAA but I can't verify this.

CEGUI takes AARRGGBB, in retrospect I think it was a bad call to use this format but it's easy to make decisions in retrospect, isn't it? :-) To make "Photoshop colour format" work in CEED you simply move the AA component all the way forward (last 2 chars). Or if it isn't there (just 6 chars in total in the colour) you prepend FF (100% opacity).

Example:
Photoshop: FF0000 (red)
CEED: FFFF0000

Photoshop: 11223344
CEED: 44112233

And yes, it's annoying. :-) I may add a feature to CEED to parse alternative colour schemes but it's impossible to autodetect. Might need interface changes.

[1] http://help.adobe.com/en_US/photoshop/c ... A612D9297a

HTH!

Henrik
Just popping in
Just popping in
Posts: 5
Joined: Tue May 15, 2012 10:37

Re: Colours show up differently in CEED than Photoshop

Postby Henrik » Sat Feb 02, 2013 14:56

Kulik wrote:Hi there!

Since I don't own a Photoshop license I will have to guess a little. According to screenshots found and a documentation reference [1] I think it outputs RRGGBB. Maybe sometimes it outputs RRGGBBAA but I can't verify this.

CEGUI takes AARRGGBB, in retrospect I think it was a bad call to use this format but it's easy to make decisions in retrospect, isn't it? :-) To make "Photoshop colour format" work in CEED you simply move the AA component all the way forward (last 2 chars). Or if it isn't there (just 6 chars in total in the colour) you prepend FF (100% opacity).

Example:
Photoshop: FF0000 (red)
CEED: FFFF0000

Photoshop: 11223344
CEED: 44112233

And yes, it's annoying. :-) I may add a feature to CEED to parse alternative colour schemes but it's impossible to autodetect. Might need interface changes.

[1] http://help.adobe.com/en_US/photoshop/c ... A612D9297a

HTH!


Thanks!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 12 guests