This is a simple implementation of cloth physics in C++, with the scene scriptable via Lua, rendered using OpenGL.
This project aims to create a scriptable playground for cloth simulation. It also serves as a playground for embedding Lua.
The project uses:
Building on Windows
build-w32.cmd serves as a reference on how to build the
code under Windows.
If you use Visual Studio 2008, the script should work after tweaking
GLEW_PATH variables. Contributions for automated
builds using other versions of Visual Studio are welcome.
Building on GNU/Linux
After installing GLEW and GLUT the build process should be as easy as:
mkdir build cd build cmake .. make
The script `build.sh' is provided for reference and convenience.
Running the demo
Once you have a
cloth-playground executable you can run it as
The mouse rotates the camera, Space stands for pause/unpause.
Copyright (c) 2012 Taras Shpot, distributed under the BSD license.