mmmovania / opencloth

A collection of source codes implementing cloth simulation algorithms in OpenGL
https://github.com/mmmovania/opencloth
517 stars 97 forks source link

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 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, Separating Texture and Illumination for Single-Shot Structured Light Reconstruction in The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, June 2014.

Hanwen, Li and Yi Wan, An object-oriented system for dynamics-based 3D cloth simulation in the IEEE International Conference on Information Science and Technology (ICIST), 23-25 March 2012.

Stephen Spinks, Mass Spring Particle Systems 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.