donmccurdy/glTF-Transform

Simplification stops abruptly at target ratio, leading to non-uniform simplification

marwie opened this issue · 2 comments

Describe the bug
Hello, below is a video of a 100 vertices plane simplified with ratios [0.5, 0.25, 0.125, ...] and an error of 1

Expected behavior
Simplification is uniformly applied

Versions:

  • Version: 3.10.1
  • Environment: nodejs
20240315-101103_Min_-_Google_Chrome-logo.mp4

@marwie — I think this will be outside of my control in glTF Transform, and would need to be reported on the meshoptimizer package. It may be expected behavior, it's not obvious to me whether the error metric is per-vertex or cumulative.

(and, I like your LOD videos a lot!)

Thanks for the reply - I wasn't sure - opened an issue in the meshoptimizer repo now zeux/meshoptimizer#664

and thanks :)