Text Rendering with Transformations Artifacts (Unity)
Posted: 06 Jul 2023, 01:58
Hi all, this is my first post! I've been using Noesis for only a few days now experimenting,
I attached a screenshot showing some strange behaviour with the text, when it's rendered at an angle. It seems to have multiple shear-lines going through the lettering, causing unsightly artifacts. How can I take steps to avoid this happening? I've tried toggling on/off PPAA and Subpixel rendering, as well as tagging the text block with noesis:Element.PPAAMode="Disabled". Are there options for other anti aliasing modes aside from per primitive antialiasing in Unity? This render pass has 8x MSAA. When I disable PPAA the artifacts are there, just, not ant aliased.
Specifically, look at the "L" and "Y" in PLAY and the "M" and "Y" in MULTIPLAYER. I hope you can also notice these,
Any help to improve this would be appreciated, thank you :) And as I am very new to noesis and xaml, it's safe to assume I know very little.
Here's my repro xaml. This was rendered using the unity package for Noesis 3.2.1 in Unity 2022.3.0
I attached a screenshot showing some strange behaviour with the text, when it's rendered at an angle. It seems to have multiple shear-lines going through the lettering, causing unsightly artifacts. How can I take steps to avoid this happening? I've tried toggling on/off PPAA and Subpixel rendering, as well as tagging the text block with noesis:Element.PPAAMode="Disabled". Are there options for other anti aliasing modes aside from per primitive antialiasing in Unity? This render pass has 8x MSAA. When I disable PPAA the artifacts are there, just, not ant aliased.
Specifically, look at the "L" and "Y" in PLAY and the "M" and "Y" in MULTIPLAYER. I hope you can also notice these,
Any help to improve this would be appreciated, thank you :) And as I am very new to noesis and xaml, it's safe to assume I know very little.
Here's my repro xaml. This was rendered using the unity package for Noesis 3.2.1 in Unity 2022.3.0
Code: Select all
<Grid>
<Viewbox Stretch="Uniform" HorizontalAlignment="Center" VerticalAlignment="Center">
<Grid Width="1920" Height="1080">
<Grid.Resources>
<ControlTemplate x:Key="MenuButton" TargetType="{x:Type Button}">
<Grid>
<Border Background="#0b0b0b" Opacity="0.7" CornerRadius="5" Margin="5" Height="80" Padding="20">
<TextBlock Text="{TemplateBinding Content}" Foreground="White" FontSize="45" HorizontalAlignment="Stretch" TextAlignment="Left" VerticalAlignment="Center"/>
</Border>
<noesis:Element.Transform3D>
<noesis:CompositeTransform3D RotationY="-5" TranslateZ="0" CenterX="0" />
</noesis:Element.Transform3D>
</Grid>
</ControlTemplate>
</Grid.Resources>
<Grid x:Name="Main_Options" Width="500" Height="auto" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="30,0,0,0">
<StackPanel Margin="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<Button Content="PLAY" Template="{StaticResource MenuButton}"/>
<Button Content="MULTIPLAYER" Template="{StaticResource MenuButton}"/>
<Button Content="NEWS" Template="{StaticResource MenuButton}"/>
<Button Content="SETTINGS" Template="{StaticResource MenuButton}"/>
<Button Content="QUIT" Template="{StaticResource MenuButton}"/>
</StackPanel>
</Grid>
</Grid>
</Viewbox>
</Grid>