dust3d/thirdparty/FastMassSpring
Jeremy Hu 579fa24e1c Add cloth simulation
Integrate FastMassSpring, implemented by Samer Itani(@sam007961),
Original paper: "Fast Simulation of Mass-Spring Systems" by Liu, T., Bargteil, A. W., Obrien, J. F., & Kavan, L.
2020-01-08 23:46:56 +09:30
..
ClothApp Add cloth simulation 2020-01-08 23:46:56 +09:30
.gitattributes Add cloth simulation 2020-01-08 23:46:56 +09:30
.gitignore Add cloth simulation 2020-01-08 23:46:56 +09:30
FastMassSpring.sln Add cloth simulation 2020-01-08 23:46:56 +09:30
LICENSE Add cloth simulation 2020-01-08 23:46:56 +09:30
readme.md Add cloth simulation 2020-01-08 23:46:56 +09:30

readme.md

A C++ implementation of Fast Simulation of Mass-Spring Systems [1], rendered with OpenGL. The dynamic inverse procedure described in [2] was implemented to constrain spring deformations and prevent the "super-elastic" effect when using large time-steps.

Dependencies

  • OpenGL, freeGLUT, GLEW, GLM for rendering.
  • OpenMesh for computing normals.
  • Eigen for sparse matrix algebra.

Demonstration

curtain hang curtain drop

References

[1] Liu, T., Bargteil, A. W., Obrien, J. F., & Kavan, L. (2013). Fast simulation of mass-spring systems. ACM Transactions on Graphics,32(6), 1-7. doi:10.1145/2508363.2508406

[2] Provot, X. (1995). Deformation constraints in a mass-spring modelto describe rigid cloth behavior. InGraphics Interface 1995,147154.