Blender Git Commit Log

Git Commits -> Revision 4f4a484

Revision 4f4a484 by Luca Rood (master)
March 23, 2017, 06:52 (GMT)
Cloth refactor: Remove goal springs and some other cleanup

This removes the goal springs, in favor of simply calculating the goal forces on the vertices directly. The vertices already store all the necessary data for the goal forces, thus the springs were redundant, and just defined both ends as being the same vertex.

The main advantage of removing the goal springs, is an increase in flexibility, allowing us to much more nicely do some neat dynamic stuff with the goals/pins, such as animated vertex weights. But this also has the advantage of simpler code, and a slightly reduced memory footprint.

This also removes the `f`, `dfdx` and `dfdv` fields from the `ClothSpring` struct, as that data is only used by the solver, and is re-computed on each step, and thus does not need to be stored throughout the simulation.

Reviewers: sergey

Reviewed By: sergey

Tags: #physics

Differential Revision: https://developer.blender.org/D2514

Commit Details:

Full Hash: 4f4a484b9b208fe5719825aa750b72e0b67937c8
Parent Commit: 4d82d52
Lines Changed: +28, -110

5 Modified Paths:

/source/blender/blenkernel/BKE_cloth.h (+0, -6) (Diff)
/source/blender/blenkernel/intern/cloth.c (+0, -37) (Diff)
/source/blender/physics/intern/BPH_mass_spring.cpp (+22, -29) (Diff)
/source/blender/physics/intern/implicit.h (+3, -7) (Diff)
/source/blender/physics/intern/implicit_blender.c (+3, -31) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021