This is a web based port of some examples from the OpenCloth library.
The changes in this port includes:
- Works in web browsers that supports WebGL technology
- Forms to easily edit the simulation configuration
- Rewritten to object oriented approach
The repository contains examples for two simulation methods:
- Mass-Spring System (Explicit Euler)
- Position Based Dynamics
Features missing:
- Moving and rotating the camera
- Mouse interaction with simulated cloth
This project was written as a part of my master’s thesis titled:
Implementation of cloth simulation algorithms
Code in this repository is not state of the art but it does its job.
- Clone the repository
- Install the Bower package manager
- Install the TSD manager
- In project directory run
bower install
- In the same directory run
tsd install
- Open the
mss.html
orpbd.html
file in a web browser
Copyright (c) 2015 Marcin Gajda. MIT license applies.