Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.0.0
Issue ID
SPLB-6
Regression
No
UV coordinates are incorrectly generated when width is uneven and low segmentation is used
Reproduction steps:
1. Open the user's attached project "Splines.zip"
2. Observe the yellow line in the middle of the road where it widens and narrows
Expected result: The zigzag of the line is not very visible and the line appears parallel to the edges of the road
Actual result: The zigzag is large and obvious
Reproducible with: 1.0.0-pre.8 (2021.2.17f1), 1.0.0-pre.9 (2022.2.0a9), 1.0.0 (2022.1.0b14, 2022.2.0a9)
Could not test with: 1.0.0-pre.8 (2019.4.37f1, 2020.3.32f1) (Script compilation errors)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crashes and a window with "GetManagerFromContext: pointer to object of manager 'MonoManager' is NULL (table index 5)" error is shown when launching a freshly created project
- Editor Windows dragging behavior is erratic/glitchy when a specific multi-display setup is used and the Editor window is not on the main display
- Meta Quest missing an icon in Build Profiles window in U6.0
- Foldout arrow indent is misaligned in the Inspector when used for Arrays or Lists
- Material import pipeline strips properties when it is added with a script
Resolution Note:
The problem is coming from the fact that using Width SplineData is deforming the road mesh. The default Unity shader is then using a affine projection of the UVs which result in this visual artifact.
As this is only a sample, and not meant to be a generic reusable code, we won't fix this as it seems to be out of scope for the package.
The user can still looks on the internet for some shaders solution using perspective mapping for the UVs that would fix this problem.