Open donmccurdy opened 3 years ago
I think it'd be much easier to bring in native code. It's fast and has already been debugged. Here's a small prototype, it's only about 200 lines.
In order to work, it needs libmeshoptimizer.so
(or equivalent on Windows/Mac), that you can get by building zeux/meshoptimizer, placed in the site-package directory. Just try importing and it will tell you where you should put it if it doesn't find it.
Here's a test file: CesiumMan_Meshopt.zip
Any updates in this regard?
I would also be really interested in any updates in this regard.
Would we be interested in support for importing models with
EXT_meshopt_compression
? I'm asking because this came up in a user report recently (https://github.com/donmccurdy/glTF-Transform/discussions/347), but some recent work by @zeux and Jasper St. Pierre would make this potentially much easier — we don't need to bring any native code into Blender itself, we can create a small Python implementation similar to the reference here: https://github.com/zeux/meshoptimizer/pull/331.