decai
Topic Author
Posts: 50
Joined: 06 Jul 2016, 18:19

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

17 Aug 2021, 10:45

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>
 
User avatar
jsantos
Site Admin
Posts: 3424
Joined: 20 Jan 2012, 17:18
Contact:

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

17 Aug 2021, 12:01

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.
 
decai
Topic Author
Posts: 50
Joined: 06 Jul 2016, 18:19

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

17 Aug 2021, 12:13

if background color with no alpha 3.1.0 is the same as 3.0.12
 
User avatar
jsantos
Site Admin
Posts: 3424
Joined: 20 Jan 2012, 17:18
Contact:

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

17 Aug 2021, 12:37

What about the comparison of 3.1-Linear vs 3.1-Non_Linear with alpha blending disabled.
 
User avatar
jsantos
Site Admin
Posts: 3424
Joined: 20 Jan 2012, 17:18
Contact:

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

17 Aug 2021, 12:47

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.
 
decai
Topic Author
Posts: 50
Joined: 06 Jul 2016, 18:19

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

17 Aug 2021, 12:54

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
 
decai
Topic Author
Posts: 50
Joined: 06 Jul 2016, 18:19

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

17 Aug 2021, 13:01

Ticket created #2085. Thanks
 
User avatar
jsantos
Site Admin
Posts: 3424
Joined: 20 Jan 2012, 17:18
Contact:

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

18 Aug 2021, 10:49

Thank you! Planned for 3.1.1
 
decai
Topic Author
Posts: 50
Joined: 06 Jul 2016, 18:19

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

02 Sep 2021, 10:04

Hi,
When will you release the Version 3.1.1? Thanks.
 
User avatar
jsantos
Site Admin
Posts: 3424
Joined: 20 Jan 2012, 17:18
Contact:

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

03 Sep 2021, 13:12

Hopefully next week but we can't guarantee it. Thanks for your patience.

Who is online

Users browsing this forum: No registered users and 1 guest