FastMassSpring
Interactive cloth simulator using the method described in the SIGGRAPH paper "Fast Simulation of Mass-Spring Systems" by Liu, T., Bargteil, A. W., Obrien, J. F., & Kavan, L.
Install / Use
/learn @sam007961/FastMassSpringREADME
Fast Mass-Spring System Simulator
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.
Building
You need to install OpenGL, GLEW and GLUT on your system to build. The rest of the dependencies will be automatically fetched by cmake during configuration.
To build, run the following commands from the root directory of the project:
mkdir build
cd build
cmake ..
cmake --build .
On Windows, you will likely need to specify the directories containing GLUT and GLEW in CMAKE_PREFIX_PATH so that cmake can find them.
cmake .. -DCMAKE_PERFIX_PATH:PATH=/path/to/libs
You will also need to copy the DLLs to the build directory if they are not available globally.
Demonstration

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,147-154.
Related Skills
node-connect
334.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
334.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.3kCommit, push, and open a PR
