Files
UnrealEngineUWP/Engine/Source/Developer/PhysicsUtilities
Alex McAdams 71f140457e Reduce number of bad weights in SkinnedLevelSet that cause "spikes". These spikes are caused by vertices getting small weights that get renormalized to large weights, in particular because for some reason the largest influence is not set.
Firstly, improve the dirichlet weights on the surface when doing the poisson diffusion by only considering vertices with non-zero weights for the closest point calculation. Before, it was possible to get zero weights because the triangle mesh includes any triangle with non-zero weights.

Secondly, when renormalizing weights, set a higher threshold (0.1) for discarding weights.

Also added debug draw of the weights.

#preflight 63f941e4ae54ee4ce9209426

[CL 24426752 by Alex McAdams in ue5-main branch]
2023-02-27 12:48:21 -05:00
..