SarahWeiii / CoACD

[SIGGRAPH2022] Approximate Convex Decomposition for 3D Meshes with Collision-Aware Concavity and Tree Search
https://colin97.github.io/CoACD/
MIT License
483 stars 64 forks source link

Request: Decimation support in Unity bindings #56

Open Andicraft opened 2 months ago

Andicraft commented 2 months ago

I absolutely love the high quality of colliders that CoACD is outputting, but they are a little unecessarily heavy vertex wise. I ripped out the C# bindings to make them work with Godot - which has V-HACD as a default collision generator, but with default settings that kind of suck. The CoACD results are however a lot more dense:

image V-HACD - inaccurate, many more shells (21!) but low vert counts

image-1 CoACD - very accurate, only 8 shells - but too accurate for rounded surfaces.

Would love to see the decimation settings from the console executable exposed for this.

(technically I guess this is a request for Godot support in a roundabout way but hey)

EDIT: Okay, I realize now that this is more of a request to update the Unity bindings to the latest version.

Andicraft commented 2 months ago

A lil gist of my hacky Godot implementation:

https://gist.github.com/Andicraft/ec28b8690c7d6cbb13bb4fe29e7a7645