This is a simple cloth simulation program written in C++ and OpenGL. It is based on spring-damper model and uses a 50 * 50 mesh with thousands springs and dampers interconnected. There are also gravity and wind force acting on the cloth. With all these forces and diverse controls, the program presents a intuitive demonstration of cloth simulation.
The project is managed using Visual Studio on Win10. It depends on OpenGL, GLEW and GLM. With these dependencies configured correctly, this project should also be able to run on OS X and Linux. Instructions can be found here.
- Press
W,A,SandDto move the cloth around. - Press
QandEto rotate the cloth. - Press left
Shiftand leftCtrlto move the cloth up and down. - Press arrow keys, right
Shiftand rightCtrlto control winds. - Press
Pto turn on and off polygon view. - Press
Spaceto pause the animation. - Press
Backspaceto release and recapture the cloth.
Here are some GIFs of the running program. Try download it and interact with it!


