-
- MarioBarbero
- Posts: 30
- Joined:
Problem with Anti-Aliasing in XAML views
Hello
I have problem with Anti-Aliasing in some paths o shapes. I have seen many posts about this topic and the PPAA option set true in Noesis view options.
I already set to true and it still see bad.
The problem is in the both lines, yellow and white.
How can I solve this problem?
I attach a two pictures about the settings of Noesis view and another one about lines.
I have problem with Anti-Aliasing in some paths o shapes. I have seen many posts about this topic and the PPAA option set true in Noesis view options.
I already set to true and it still see bad.
The problem is in the both lines, yellow and white.
How can I solve this problem?
I attach a two pictures about the settings of Noesis view and another one about lines.
Last edited by MarioBarbero on 20 Jan 2025, 17:50, edited 1 time in total.
Re: Problem with Anti-Aliasing in XAML views
Could you please attach an image with the problem instead of a video? And better if you can also attach a minimal XAML reproducing the issue. Thanks!
-
- MarioBarbero
- Posts: 30
- Joined:
Re: Problem with Anti-Aliasing in XAML views
I just upload an image
Re: Problem with Anti-Aliasing in XAML views
Could you attach the image directly? I see a file called "Line_WPF.png" (is that Noesis or WPF) and the image quality is super bad (a lot of compression artifacts).
-
- MarioBarbero
- Posts: 30
- Joined:
Re: Problem with Anti-Aliasing in XAML views
Ok, I attach file of image directly.
The lines are inside Canvas and they are made by code behind with geometry and path.
The lines are inside Canvas and they are made by code behind with geometry and path.
- Attachments
-
- Line.png (10.66 KiB) Viewed 3928 times
Re: Problem with Anti-Aliasing in XAML views
PPAA is a cheap antialiasing algorithm. Its quality can be fine-tuned per element, as outlined in the linked tutorial.
If PPAA does not meet your quality requirements, you can disable it entirely and opt for alternatives like GPU MSAA.
Please, let me know which option works best for your needs!
Code: Select all
<Rectangle noesis:Element.PPAAIn="1" noesis:Element.PPAAOut="1" Fill="Black" Width="100" Height="100">
<Rectangle.RenderTransform>
<TransformGroup>
<RotateTransform Angle="60"/>
<TranslateTransform X="200" Y="10"/>
</TransformGroup>
</Rectangle.RenderTransform>
</Rectangle>
Please, let me know which option works best for your needs!
-
- MarioBarbero
- Posts: 30
- Joined:
Re: Problem with Anti-Aliasing in XAML views
Thank you for your solution.
It works and the lines improves but it is not enough.
How can I set MSAA by code, code behind or in xaml file?
Or if exist another solution.
The attached image is with PPAA no setted and setted
It works and the lines improves but it is not enough.
How can I set MSAA by code, code behind or in xaml file?
Or if exist another solution.
The attached image is with PPAA no setted and setted
Re: Problem with Anti-Aliasing in XAML views
What PPAAIn and PPAAOut parameters did you try?
MSAA must be enabled in Unity, in the settings of the projects or in the camera. But this is not a trivial change and can affect the whole project, make sure to consult this with your rendering engineers before proceeding.
MSAA must be enabled in Unity, in the settings of the projects or in the camera. But this is not a trivial change and can affect the whole project, make sure to consult this with your rendering engineers before proceeding.
-
- KeldorKatarn
- Posts: 243
- Joined:
Re: Problem with Anti-Aliasing in XAML views
Try a blur effect with a small radius. That can improve things furtherThank you for your solution.
It works and the lines improves but it is not enough.
How can I set MSAA by code, code behind or in xaml file?
Or if exist another solution.
The attached image is with PPAA no setted and setted
Re: Problem with Anti-Aliasing in XAML views
Please, let us know if you need a quick meeting for discussing more about this.
Who is online
Users browsing this forum: No registered users and 3 guests