Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple obi solvers
#10
(21-01-2022, 04:39 PM)lufydad Wrote: For colliders, there is like dozen of mesh colliders and box colliders, could it be the cause of all this ?

Depends on the mesh colliders, how many triangles each?

(21-01-2022, 04:39 PM)lufydad Wrote: Excuse my ignorance but what are BVHs ?

Bounding Volume Hierarchies. It's the acceleration data structure used to perform collision queries against triangle meshes.

Since testing each particle against each individual triangle in each collider is too much work, a BVH for each mesh is generated. This allows to quickly prune triangles that are not close to a given particle, and allows to test each particle agains just a few (2-3) triangles. Basically, it makes collision detection fast enough to run in realtime.

The thing is that generating the BVH takes some time. In Obi a better alternative to MeshColliders are distance fields, since A) they're built at edit time and stored in disk, so no runtime overhead B) they're faster and more robust than MeshColliders.
Reply


Messages In This Thread
Multiple obi solvers - by lufydad - 17-01-2022, 10:42 AM
RE: Multiple obi solvers - by josemendez - 17-01-2022, 11:01 AM
RE: Multiple obi solvers - by lufydad - 17-01-2022, 03:21 PM
RE: Multiple obi solvers - by josemendez - 17-01-2022, 08:14 PM
RE: Multiple obi solvers - by lufydad - 19-01-2022, 05:18 PM
RE: Multiple obi solvers - by josemendez - 20-01-2022, 11:00 AM
RE: Multiple obi solvers - by lufydad - 21-01-2022, 03:50 PM
RE: Multiple obi solvers - by josemendez - 21-01-2022, 03:57 PM
RE: Multiple obi solvers - by lufydad - 21-01-2022, 04:39 PM
RE: Multiple obi solvers - by josemendez - 21-01-2022, 06:12 PM
RE: Multiple obi solvers - by lufydad - 24-01-2022, 02:10 PM
RE: Multiple obi solvers - by josemendez - 24-01-2022, 03:05 PM
RE: Multiple obi solvers - by lufydad - 24-01-2022, 04:10 PM
RE: Multiple obi solvers - by josemendez - 25-01-2022, 09:32 AM