Home

Awesome

OpenCloth

This project was previously hosted on google code. Now that google code will phase out, we have moved the repository to github.

Introduction

Introducing an OpenGL based cloth simulation code base. We implement all of the existing cloth simulation algorithms in as simplistic an approach as possible so that learners may know exactly what is needed to get a cloth simulation system up and running in OpenGL with a minimum of fuss. OpenCloth project has been initiated with a view that it may help beginners and researchers alike to implement the basic algorithms for cloth simulation using OpenGL API. It is not intended as another library that you can plugin into your game engine directly. Rather, you can learn from it and then implement a technique or two in you own game/physics engine. With a little bit of effort, it should be straight forward to implement the discussed algorithms on other platforms and Graphics API. Focus is on how to handle the bare minimum required to implement the techniques. Rather than wrapping code into classes, we implement the whole code in a single source file.

Publications using OpenCloth

M. Vo, S. G. Narasimhan, and Y. Sheikh, <a target="_blank" href="http://ieeexplore.ieee.org/xpl/articleDetails.jsp?arnumber=7121014&filter%3DAND%28p_IS_Number%3A4359286%29">Texture Illumination Separation for Single-shot Structured Light Reconstruction</a> in IEEE Transactions on Pattern Analysis and Machine Intelligence (IEEE PAMI), Vol(PP), No(99), June 2015.

M. Vo, S. G. Narasimhan, and Y. Sheikh, <a target="_blank" href="https://www.cs.cmu.edu/~ILIM/projects/IL/TextIllumSep/papers/CCD14.pdf">Separating Texture and Illumination for Single-Shot Structured Light Reconstruction</a> in The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, June 2014.

Hanwen, Li and Yi Wan, <a href="http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=6221705&url=http%3A%2F%2Fieeexplore.ieee.org%2Fxpls%2Fabs_all.jsp%3Farnumber%3D6221705">An object-oriented system for dynamics-based 3D cloth simulation</a> in the IEEE International Conference on Information Science and Technology (ICIST), 23-25 March 2012.

Stephen Spinks, <a href="http://www.stephenspinks.com/project.html">Mass Spring Particle Systems</a> Bachelor of Science (Hons.) Final Year Report, University of Glamorgan, May 2012.

Tell us if OpenCloth has helped you in your research

If this project has helped you with your research or project, please let me know. I would like to know more about how the project helped. There are some issues related to the units of simulation used by OpenCloth. Currently, I am trying to consolidate these and hopefully the next release will take care of this.

Details

Currently. this project contains complete implementations of (in alphabetical order)

Live WebGL Demos

Demo Videos

This section will add more recent videos that reflect the recent contents of OpenCloth.

Explicit Euler integration

OpenCloth Demo 1

Manipulation

OpenCloth Demo 2

Quick start

Download or clone the open cloth github repository. The Windows executables are included in the 'bin' folder, as well as the required dlls. Double click on any of the exe files.

Slower start

Download or clone the open cloth github repository. Open the Visual Studio solution in the 'opencloth' folder, rebuilding the solution will create the executables in a sub-folder. You will need to provide a path to the dlls, freeglut.dll and glew32.dll. You can just copy the dlls from the 'bin' folder into the newly created sub-folders, or add the 'bin' folder to your system path.