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

Round corner looks not smooth

02 Mar 2017, 14:38

Hi,

We use NoessiGUI 2.0 on iOS. We create a round border, but it looks as below, how can we make the corner more smooth? We use MSAA for anti-aliasing.
2017-03-02_213046.png
2017-03-02_213046.png (11.24 KiB) Viewed 2585 times
Thanks.
 
nokola
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Round corner looks not smooth

02 Mar 2017, 17:16

+1 on this one. I also noticed in 2.0 things tend to look more aliased, even with MSAA/PPAA.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Round corner looks not smooth

03 Mar 2017, 06:17

Are you sure you have MSAA activated in Unity Quality Settings?

When you set MSAA in the Noesis View component it means: "Use the MSAA currently active in the surface", but if it is 1x then it won't do antialiasing. We know this is quite confusing but we didn't have time to fix it in 2.0.

Apart from this, you should be getting the exact quality as in 1.3 betas.
 
nokola
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Round corner looks not smooth

03 Mar 2017, 07:37

I have "4x multi sampling" in quality settings, haven't changed it at all. And comparing 1.2 with 2.0 (not the 1.3 betas)
Will try to get a before/after shot with 1.2 and 2 - maybe you're right and it's just my imagination :)
 
decai
Topic Author
Posts: 54
Joined: 06 Jul 2016, 18:19

Re: Round corner looks not smooth

04 Mar 2017, 05:57

We change to use PPAA and it looks better. Thanks.
 
User avatar
ai_enabled
Posts: 231
Joined: 18 Jul 2013, 05:28
Contact:

Re: Round corner looks not smooth

04 Mar 2017, 12:11

Please note that MSAA will not work if the camera is rendering using deferred rendering path. That's how Unity works.
I think NoesisGUI View component should report about that to make it clear.
The workaround is to use a separate camera with forward rendering path for NoesisGUI View component.

PPAA is an algorithm used by NoesisGUI internally so it's not dependent on MSAA setting and rendering path... but it makes shapes (especially thin lines) a little bit more thick which in some cases looks wrong. If it looks good for you - it's a good alternative to MSAA.
AtomicTorch Studio Pte. Ltd. http://atomictorch.com
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Round corner looks not smooth

07 Mar 2017, 06:59

Please note that MSAA will not work if the camera is rendering using deferred rendering path. That's how Unity works.
I think NoesisGUI View component should report about that to make it clear.
Thanks for the point! We should definitely inform about this.
 
nokola
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Round corner looks not smooth

07 Apr 2017, 08:49

I just finished investigating. Noesis 1.2 and 2 look the same. This said, there's no difference between MSAA Off in Unity settings and MSAA 8x. Camera is using Forward rendering path.

Here's a screenshot: https://1drv.ms/i/s!AspGCVZdWgTBuvMUW5ztrt7ODD128w
Sample project: https://1drv.ms/u/s!AspGCVZdWgTBuvMVZnggScz_4xXaGw (open the Scene sample with the updated XAML)
XAML:
<Grid x:Name="LayoutRoot" Background="#FF333333">
<Ellipse Width="300" Height="300" Stroke="White" StrokeThickness="2"/>
</Grid>

Is this expected?
 
User avatar
ai_enabled
Posts: 231
Joined: 18 Jul 2013, 05:28
Contact:

Re: Round corner looks not smooth

07 Apr 2017, 08:54

This is unexpected. We're using MSAA in our Unity game and it works properly with NoesisGUI 1.2. In another game (MonoGame engine) we're using NoesisGUI 2.0 and MSAA also works properly.

Please ensure that Unity is actually using MSAA in your case. You could verify this by printing the current value of `QualitySettings.antiAliasing` static property into the console.
AtomicTorch Studio Pte. Ltd. http://atomictorch.com
 
nokola
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Round corner looks not smooth

07 Apr 2017, 17:04

It's 8x in Console:
AA: 8
UnityEngine.Debug:Log(Object)
PrintQuality:Update() (at Assets/PrintQuality.cs:14)

public class PrintQuality : MonoBehaviour {
void Update () {
Debug.Log("AA: " + QualitySettings.antiAliasing);
}
}

Does it work for you if you create/edit a blank Noesis project? Thanks for the help btw. It's very baffling.

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 62 guests