-
I'm using meshoptimizer simplifier to simplify meshes from gltf models, and by using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The attribute weights are implicitly taking the distance into account; from documentation:
Thus it should be correct to use fixed attribute weights that do not depend on the mesh extents; this is what gltfpack does for multi mesh simplification as well. |
Beta Was this translation helpful? Give feedback.
It should be ok to keep the fixed value regardless.
meshopt_SimplifyErrorAbsolute
changes the scaling of the errors -target_error
andresult_error
- but the internal calculations that prioritize collapses stay the same, and the relation between attributes and positions doesn't change. The statement "if the mesh is 50 units across, an error 0.01 without using this flag is equivalent to error 0.5 when using this flag" from the linked discussion should hold even if you add attributes (with fixed weights).gltfpack indeed uses the default mode but that's mostly because the command line input
-se
that controls simplification quality is specified in relative units, not in scene units like cent…