View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001522 | NoesisGUI | Unity3D | public | 2019-07-24 11:06 | 2022-05-08 21:27 |
Reporter | JinFox | Assigned To | jsantos | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.2.2 | ||||
Target Version | 3.2.0 | Fixed in Version | 3.2.0 | ||
Summary | 0001522: Ellipse use too few Segments compared to Curved closed Path | ||||
Description | Hello, This issue has first been described here : https://www.noesisengine.com/forums/viewtopic.php?f=3&t=1761&p=10046#p10046 I have an issue on the current project I work on. I was using ellipses to display circular shapes but they looked not very "clean" on the edge. The stroke being made of not enough segments (see image below ) url to image : https://ibb.co/Hg3QJmF We can see that the ellipse is not very clean and when activating wireframe mode, we can see that the number of segments created by the ellipse is not enough to appear as smooth as the Path does. In terms of xaml, the path is just the same ellipse converted to a path via Blend : The ellipse : <Ellipse Width="256" Height="256" Fill="CadetBlue" Stroke="Black" StrokeThickness="5"></Ellipse> The path : <Path Data="M253.5,128 C253.5,197.31174 197.31174,253.5 128,253.5 C58.688264,253.5 2.5,197.31174 2.5,128 C2.5,58.688264 58.688264,2.5 128,2.5 C197.31174,2.5 253.5,58.688264 253.5,128 z" Fill="CadetBlue" Height="256" Stretch="Fill" Stroke="Black" StrokeThickness="5" Width="256" /> jsantos apparently confirmed this might be a bug and advised me to post this here. Best Regard, Thank you | ||||
Tags | Rendering, Unity | ||||
Platform | Any | ||||
Sample xaml file with issue showing (Left is ellipse with issue and right is the path without the issue). At Medium tesselation the issue is showing on ellipse and not on Path whereas on High Tesselation, the issue is decreased on the Ellipse EllipseIssueExample.xaml (2,197 bytes)
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions" x:Name="Root" d:DesignWidth="1280" d:DesignHeight="720" Focusable="True"> <Viewbox> <Grid x:Name="LayoutRoot" Background="White" Width="800" Height="600"> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <!-- START OF EXAMPLE --> <!-- BAD LOOKING --> <Ellipse Grid.Column="0" Width="256" Height="256" Fill="CadetBlue" Stroke="Black" StrokeThickness="5"/> <!-- GOOD LOOKING --> <Path Grid.Column="1" Data="M253.5,128 C253.5,197.31174 197.31174,253.5 128,253.5 C58.688264,253.5 2.5,197.31174 2.5,128 C2.5,58.688264 58.688264,2.5 128,2.5 C197.31174,2.5 253.5,58.688264 253.5,128 z" Fill="CadetBlue" Height="256" Stretch="Fill" Stroke="Black" StrokeThickness="5" Width="256" /> <!-- END OF EXAMPLE--> <!-- Observation text --> <Viewbox VerticalAlignment="Bottom" Height="30" Grid.ColumnSpan="2" Margin="5"> <TextBlock Text="Not enough segment in left ellipse Border + Weird deformation at some point (see red circle)" Foreground="Black" FontSize="16"/> </Viewbox> <TextBlock Grid.Column="0" Text="Ellipse with issue" VerticalAlignment="Top" Foreground="Black" HorizontalAligment="Center" FontSize="33"/> <Ellipse Grid.Column="0" Width="100" Height="100" VerticalAlignment="Center" Margin="0,0,25,0" HorizontalAlignment="Right" Fill="Transparent" StrokeThickness="1" Stroke="Red" ></Ellipse> <TextBlock Grid.Column="1" Text="Path Without the issue " VerticalAlignment="Top" Foreground="Black" HorizontalAligment="Center" FontSize="33"/> </Grid> </Viewbox> </UserControl> |
|
This has been fixed. Now beziers and arcs produce the same number of segments. In case, you see artifacts in Medium quality, we recommend changing to High Quality. |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2019-07-24 11:06 | JinFox | New Issue | |
2019-07-24 11:06 | JinFox | Tag Attached: Rendering | |
2019-07-24 11:06 | JinFox | Tag Attached: Unity | |
2019-07-25 11:33 | JinFox | File Added: EllipseIssueExample.xaml | |
2019-07-25 11:33 | JinFox | Note Added: 0005901 | |
2019-08-01 11:11 | sfernandez | Assigned To | => jsantos |
2019-08-01 11:11 | sfernandez | Status | new => assigned |
2019-08-01 11:11 | sfernandez | Target Version | => 2.3.0 |
2020-03-20 16:44 | jsantos | Target Version | => 3.0 |
2022-03-07 19:49 | jsantos | Target Version | 3.0 => 3.2.0 |
2022-05-08 21:27 | jsantos | Status | assigned => resolved |
2022-05-08 21:27 | jsantos | Resolution | open => fixed |
2022-05-08 21:27 | jsantos | Fixed in Version | => 3.2.0 |
2022-05-08 21:27 | jsantos | Note Added: 0007920 |