warp icon indicating copy to clipboard operation
warp copied to clipboard

Collision detection acceleration in integrator_euler & Support more constraint in XPBD

Open yuhan-zh opened this issue 2 years ago • 2 comments

Hello! I am using Warp to do garment simulation. In the current version: (1) the particle_particle_contacts(eval_triangles) is not accelerated in integrator_euler. (2) FEM-Triangle and Bending constraint is not supported in XPBD. I am wondering if you have a plan to support these two functions in a newer version recently? Thank you for your work.

yuhan-zh avatar Jun 14 '23 15:06 yuhan-zh

Hi @yuhan-zh,

By "not accelerated" you mean that we do not use an acceleration structure like a HashGrid, for example, to accelerate the triangle-particle collision queries? We haven't considered it so far, but that is something we might be looking into in the future. Generally, the broadphase for rigid shapes can similarly be accelerated, which is on our list of planned improvements.

We will add support for the triangle and bending constraints, as well as particle-triangle contact handling to simulate cloth in XPBD very soon.

eric-heiden avatar Jun 14 '23 18:06 eric-heiden

Hi @eric-heiden , Thanks for your fast reply! Yes, by "not accelerated" I mean that there is no acceleration structure like a HashGrid. Cause I am using a dense garment mesh, the particle-shape collision is okay for now. But the simulator is basically not runnable with particle-triangle collision handling turned on, on my GPU. It will be great if Wrap can have improvement on this. And yeah I am more looking forward to XPBD supporting these constraints and particle-triangle contact handling. I noticed that Wrap already has a HashGrid implemented for the XPBD, so I expect the garment self-intersection handling could run in a reasonable time. Thank you for your wonderful work,

yuhan-zh avatar Jun 14 '23 19:06 yuhan-zh

Hi @yuhan-zh , we've just shipped a new cloth self-collision method in the VBDIntegrator, please try it out and let us know if you have any feedback and open another issue if you run into problems.

https://github.com/NVIDIA/warp/blob/main/warp/sim/integrator_vbd.py#L1341

Cheers, Miles

mmacklin avatar Jan 28 '25 22:01 mmacklin