diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2016-06-08 11:32:11 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2016-06-08 11:32:11 +0300 |
commit | e623d6b223f4fb6f9ff03aef3e81c4b433692c7b (patch) | |
tree | b32a2a6422e0895c42e2e25e8f36a58f7d9267bf /source/blender/blenlib | |
parent | 1345865dcdcb5575831c74930aff538366acf61e (diff) |
Fix cloth stability when in perfect rest shape.
The way cloth is coded, structural springs are only effective when stretched, while bending springs act only when shrunk. However, when cloth is exactly in its rest shape, neither have any effect, and effectively don't exist for the implicit solver.
This creates a stability problem in the initial frames of the simulation, especially considering that gravity seems to act so precisely that it doesn't disturb the strict equality of lengths, so in parts of the cloth this springless state can continue for quite a while.
Here is an example of things going haywire because of this and some suspicious logic in collision code acting together: {F314558}
Changing the condition so that structural springs are active even at exactly rest length fixes this test case. The use of >= is also supported by the original paper that the cloth implementation in blender is based on.
Reviewers: lukastoenne
Reviewed By: lukastoenne
Projects: #bf_blender
Differential Revision: https://developer.blender.org/D2028
Diffstat (limited to 'source/blender/blenlib')
0 files changed, 0 insertions, 0 deletions