meshoptimizer icon indicating copy to clipboard operation
meshoptimizer copied to clipboard

gltfpack: Simplification take in account the vertex color

Open Makio64 opened this issue 1 year ago • 2 comments
trafficstars

Would be nice if the algorithm take in account the vertex color to preserve the shape when of differents vertex color zone, here an example : image image

The mouth area is particulary destroy in this example while there is so many other triangle to collapse,

The model which have no texture is good to test, all copyright to his author from sketchfab - free download : https://sketchfab.com/3d-models/bananya-birbo-900ce1ec328e486296cfee70b9b13a45

Makio64 avatar Jan 28 '24 14:01 Makio64

Yeah I planned to add this eventually, need to figure out how to activate this from command line and configure best. The simplifier now supports attribute weighted simplification, it just hasn't made its way to gltfpack. Quickly added this just to check what the results on this model would be and they seem good, this is 0.25 simplification ratio (1/4x triangles), current master vs attribute aware simplification.

image

image

Will work on this in the near future.

zeux avatar Feb 01 '24 19:02 zeux

Attribute aware looks so much better and I think this mesh is cool to test it :)

Makio64 avatar Feb 01 '24 20:02 Makio64