Skip to content

Conversation

@kring
Copy link
Member

@kring kring commented Oct 29, 2025

Detected one or more triangles where the distance between any 2 vertices is greater than 500 units. The resulting Triangle Mesh can impact simulation and query stability. It is recommended to tessellate meshes that have large triangles.

This commit tries to avoid this warning by scaling down the vertex positions of every tile mesh to fit inside a cube with a diagonal <= 1 unit. And then scale it back up to its proper size via the transformation matrix.

It reduces the number of occurrences of this warning, but for some reason it doesn't eliminate them entirely.

Draft because I'd like to eliminate these warnings entirely, and I don't know why it isn't working.

This PR also gives each mesh a name derived from the tile's content URL, so that the warning tells us which tile is the problem. This should probably be removed before this is merged because the URLs can get quite long.

"Detected one or more triangles where the distance between any 2
vertices is greater than 500 units. The resulting Triangle Mesh can
impact simulation and query stability. It is recommended to tessellate
meshes that have large triangles."

This commit tries to avoid this warning by scaling down the vertex
positions of every tile mesh to fit inside a cube with a diagonal <= 1
unit. And then scale it back up to its proper size via the
transformation matrix.

It reduces the number of occurrences of this warning, but for some
reason it doesn't eliminate them entirely.
@kring kring changed the title Attempt to work around warning spam from Unity physics engines. Attempt to work around warning spam from Unity physics engine Oct 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants