25-07-2023, 09:33 AM
(This post was last modified: 25-07-2023, 09:35 AM by josemendez.)
(20-07-2023, 12:14 PM)manurocker95 Wrote: How about the remeshing/unbinding + rebinding part?
Hi,
Remeshing is the difficult & expensive part of the problem, and mainly the reason why softbody cutting is not built-in into Obi. There's many ways to tackle it, some I can think of:
- Start off by tetrahedralizing the base mesh. Whenever a shape matching constraint breaks/tears, find the closest tetrahedra and split it along its faces. This is analogous to cloth tearing, only in 3D. Keeps the shape of the mesh's surface intact and is probably the cheapest solution -even if still expensive- but its only as good as your tetrahedral mesh is.
- Rebuild the mesh every frame using isosurface extraction from particles, something like surface nets or marching cubes. Expensive and only respects the shape of the input mesh as much as its particle representation does.
- Use a directed hole-filling algorithm to bridge cuts in the mesh.
kind regards,