I tried with a different color picker which give me the correct rgb values on the scene. Weird…
In our game, I found a solution by loading GUI library sooner (it is not included in the main webpack that load babylonJS), it works, but still can’t understand what process can interfere with color. Maybe the layer ?
@DarraghBurke - is there anything that can ammend the background color of a GUI element outside of the scene itself? I assume lighting should not be an issue, right?
From the above, I would make a guess about the gammaSpace coming from a renderingPipeline?
Where colors in the BG would be in the gammaSpace and rectangle would be (well, linear).
@Samuel_IMBERT
In any case I tried converting the values to a HEX color, pasted’em in PSD and got the exact same result. So, I’d say it cannot come from the GUI on its own. Either it’s the color of the back mesh that is wrong or post process is applied.
Nothing that I can think of…looking at the two different colors in the OP, they seem too different for this to be a color space issue. Honestly not sure what could be going on here…The fact that it’s dependent on the way you load Babylon makes me wonder if it might be related to incompatible versions?
There is no specific to the GUI rendering pipeline, it’s just the rendering pipeline (at least by default).
Glad you found your answer for this issue. GL with your project,