Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
137 stars 2 forks source link

CurvedPlaneMesh has stretched UVs at non-zero curvatures #3073

Open 5H4D0W-X opened 1 week ago

5H4D0W-X commented 1 week ago

Describe the bug?

The CurvedPlaneMesh, most prominently featured in the dash menu, generates an extruded circular arc for curved UI. At non-zero curvatures (it seems to be strongest at around 0.5 curvature) the UVs are not linear along the mesh, meaning that the texture on its material is compressed at the edges and stretched in the center

To Reproduce

The VR dash is the easiest way to reproduce this issue:

  1. Set dash curvature to 0.5 in Settings
  2. Observe stretching and squishing of square facet buttons on the home page

Here is a default facet at the edge of my dash, the photo was taken perpendicular to the dash at that point Image

And here's the exact same facet placed in the center of my dash Image

Expected behavior

The UVs are spread evenly on the arc and squares on the texture also appear square on the rendered mesh

Screenshots

See reproduction section

Resonite Version Number

Beta 2024.10.8.1349

What Platforms does this occur on?

Windows

What headset if any do you use?

Quest

Log Files

N/A

Additional Context

upon closer inspection it appears there is a general bit of uniform squishing and stretching at high curvature levels, particularly with the DecreaseWidth AspectRatioCompensation mode

Reporters

ShadowX

ModernBalloonie commented 1 week ago

Help, I can't unsee this now...

shiftyscales commented 4 days ago

I created a world that replicates this issue: resrec:///U-Shifty/R-0f01077b-c9c3-48ed-87a0-1c1746dc4284

I simplified the mesh slightly in my example to minimize user-error in my measurements- but upon testing this issue- I determined results that match the observerations- the distance between vertices distorts with the curvature unevenly. At curvatures of 0 and 1 this distortion is near invisible / doesn't perceptibly exist- at a curvature of 0.5 the spacing between vertices is measurably longer in the middle of the mesh, leading to this visible distortion.

Image

Seeking input from @Frooxius.