Patches to Bf Blender for CAD development. https://tornavis.org/
Go to file
Lukas Tönne e623d6b223 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
2016-06-08 10:32:11 +02:00
build_files Buildbot: Trickery for MSVC2015 and NVCC 2016-06-08 10:31:04 +02:00
doc Correct exit-code check 2016-06-07 14:02:32 +10:00
extern Add upstream information to wcwidth library 2016-06-03 02:43:24 +10:00
intern Cycles: Fix two numerical issues in the volume code 2016-06-08 03:17:19 +02:00
release World space switch for BI nodes. 2016-06-07 10:42:29 +03:00
source Fix cloth stability when in perfect rest shape. 2016-06-08 10:32:11 +02:00
tests Add 'multi small' testcase to performance Ghash tests. 2016-05-30 20:04:43 +02:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Git ignore BUILD_NOTES.txt from install_deps.sh. 2015-11-23 20:17:02 +01:00
.gitmodules Remove SCons building system 2016-01-04 14:20:48 +05:00
CMakeLists.txt CMake/ Visual Studio 14 2015, Use one library name for openal for both 2013 and 2015 2016-05-31 14:16:29 +02:00
COPYING
GNUmakefile Makefile: Use hidden FORCE target 2016-05-21 05:48:10 +10:00
make.bat Fix make.bat checking 64bit systems 2016-02-10 00:26:12 +11:00