Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

CurvedPlaneMesh has stretched UVs at non-zero curvatures

Open shdwx-dev opened this issue 1 year ago • 1 comments

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

shdwx-dev avatar Oct 12 '24 13:10 shdwx-dev

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

ModernBalloonie avatar Oct 13 '24 07:10 ModernBalloonie

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.

LexiBasilisk avatar Oct 15 '24 19:10 LexiBasilisk