Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Why do some meshes produce artifacts in distance fields?
#2
Hi!

The mesh is probably just too small/thin to reliably tell if a point in the sdf is inside or outside of it. This is exacerbated by creased edges, since they are physically different vertices in memory (with the same, or close to same position, but different normals) which can be interpreted as disjoint surfaces.

Scaling your mesh x5 made the artifacts go away. Note that colliders using distance fields can be uniformly scaled just fine, so a workaround to this is to generate the distance field using a scaled up version of your mesh, and then scale its transform down on the scene.
Reply


Messages In This Thread
RE: Why do some meshes produce artifacts in distance fields? - by josemendez - 24-03-2022, 01:24 PM