Page MenuHome

Cloth: Small improvement in self collision
Needs ReviewPublic

Authored by Germano Cavalcante (mano-wii) on Dec 23 2019, 5:51 PM.

Details

Summary

This patch proposes to reduce the number of collisions computed by avoiding overlapping tris with the same combination (eg. (1,0) and (0,1)).

Initially this resulted in a phantom force pushing the creases of the cloth in one direction.
To avoid this I changed the self collision algorithm to compute the force for action and reaction instead of just action.

The result was a 15% improvement in self-collision performance.

There was also an improvement in simulation in some cases:
Original:


Patch:

But a worsening in others:
Original:


Patch:

But in this case the original is also bad which indicates that the problem is elsewhere.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D6474 (branched from master)
Build Status
Buildable 6111
Build 6111: arc lint + arc unit

Event Timeline

  • Fix cloth coming to life
  • Compare impulse_len_sq
  • Fix relative impulse
  • Fix double precision