项目作者: marcingajda

项目描述 :
Cloth simulation algorithms (Position Based Dynamics and Mass-Spring System) implemented in TypeScript
高级语言: TypeScript
项目地址: git://github.com/marcingajda/opencloth.ts.git
创建时间: 2016-06-25T18:47:28Z
项目社区:https://github.com/marcingajda/opencloth.ts

开源协议:

下载


OpenCloth.ts

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

Purpose

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.

Live online demos

How to run it locally?

  1. Clone the repository
  2. Install the Bower package manager
  3. Install the TSD manager
  4. In project directory run bower install
  5. In the same directory run tsd install
  6. Open the mss.html or pbd.html file in a web browser

License

Copyright (c) 2015 Marcin Gajda. MIT license applies.