Skip to content

simplify: how to correctly use attribute_weights and meshopt_SimplifyErrorAbsolute #913

Answered by zeux
kzhsw asked this question in Q&A
Discussion options

You must be logged in to vote

It should be ok to keep the fixed value regardless. meshopt_SimplifyErrorAbsolute changes the scaling of the errors - target_error and result_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…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kzhsw
Comment options

@zeux
Comment options

zeux Jul 14, 2025
Maintainer

Answer selected by kzhsw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants