Page 1 of 1

3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 17 Aug 2021, 10:45
by decai
Hi
We upgrade to NoesisGUI from 3.0.12 to 3.1.0, some UI backgroud with alpha not the same as before. We using Ogre as the render engine with linear color space. We have some test using the Login sample app.
We can see that a little deffient between 3.0.12 and 3.1.0 with linear color space
3.0.12 RenderContext::Init with sRgb=false
3.0.12.PNG
3.0.12 RenderContext::Init with sRgb=true
3.0.12 linear.PNG
3.1.0 RenderContext::Init with sRgb=true
3.1.0 linear.PNG
Here is the Login MainWindow.xmal we modified.
line 127: <Grid x:Name="LayoutRoot" Background="#FFFFFFFF">
line 222:<Border Grid.Column="1" Grid.Row="1" Background="#4C1C7991">
                </Border>

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 17 Aug 2021, 12:01
by jsantos
In 3.1 we fixed #2044 because linear colors were not correct in 3.0 as we were using 8-bits to store each component and at least 10-bits are needed to encode linear colors. So it is normal if you observe "minor" differences in 3.1.

To make sure everything is correct, please, disable alpha blending and check if the color is exactly the same in linear and non-linear.

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 17 Aug 2021, 12:13
by decai
if background color with no alpha 3.1.0 is the same as 3.0.12

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 17 Aug 2021, 12:37
by jsantos
What about the comparison of 3.1-Linear vs 3.1-Non_Linear with alpha blending disabled.

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 17 Aug 2021, 12:47
by jsantos
I am reviewing the changes applied to 3.1 and I am observing something that I am not sure is correct. Could you please create a ticket?

PS: I can confirm there is a bug when linear rendering is enabled and premultiply-alpha is applied.

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 17 Aug 2021, 12:54
by decai
We set the backgroud color FFFFFFFF, login boarder background color 80FF0000, we got this. Using color picker from the screen shot we found that the 3.1.0 version login board background color is DCBBBB and 3.0.12 is FFBBBB.
3.1.0 3.0.12.png

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 17 Aug 2021, 13:01
by decai
Ticket created #2085. Thanks

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 18 Aug 2021, 10:49
by jsantos
Thank you! Planned for 3.1.1

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 02 Sep 2021, 10:04
by decai
Hi,
When will you release the Version 3.1.1? Thanks.

Re: 3.1.0 Background color with alpha render diffent as 3.0.12 in linear color space

Posted: 03 Sep 2021, 13:12
by jsantos
Hopefully next week but we can't guarantee it. Thanks for your patience.