[Ogre 2.1] Wrong colours bug?

AshMcConnell

10-10-2016 14:13:32

Hi Folks,

I am trying to set a background colour on my menus by setting the colour of a White widget: -

_backgroundWidget = MyGUI::Gui::getInstance().createWidget<Widget>("MarkerWhite",0,0,width,height,Align::Stretch, "Wallpaper", name + "Background");
_backgroundWidget->setColour(MyGUI::Colour("#231F20"));
_backgroundWidget->setInheritsAlpha(false);
_backgroundWidget->setAlpha(1.0f);


Unfortunately the colour that gets as #666062 according to my colour picker.



Any ideas what could be the issue? I thought it might be a gamma issue, but I set the conversion option to true like so: -

_root->getRenderSystem()->setConfigOption("sRGB Gamma Conversion", "Yes");

Thanks for you help!

Altren

24-10-2016 02:24:10

What about simple red, green and blue colours?

AshMcConnell

04-11-2016 15:53:33

Hi Altren,

It seems it's a precision problem: - http://www.ogre3d.org/forums/viewtopic. ... 71#p532871

Would this be helped by using rgb colours?

Thanks!
Ash