Skip to content

A collection of source codes implementing cloth simulation algorithms in OpenGL

Notifications You must be signed in to change notification settings

mmmovania/opencloth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, 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)

  • Co-Rotated Linear FEM
  • Explicit Euler integration
  • Explicit Euler integration with texture mapping and lighting
  • Explicit Euler integration with wind
  • Implicit Explicit (IMEX) method
  • Implicit integration (Baraff & Witkin's model)
  • Implicit Euler integration
  • Meshless FEM
  • Position based dynamics
  • Semi-Implicit integration (Symplectic Euler)
  • Verlet integration
  • Verlet integration on CUDA, GLSL (using GPGPU technique) and OpenCL
  • WebGL port of Explicit Euler Integration

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.

About

A collection of source codes implementing cloth simulation algorithms in OpenGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages