Skip to content

aole/ClothSimulator

Repository files navigation

ClothSimulator

Program to design to clothes and drape the resulting mesh in 3D.

Design the clothes in 2D window, then simulate the clothes in 3D window to get realistic folds.

The cloth is affected by gravity, collision geometry and other forces.

Screenshot Screenshot Screenshot

How to Use

  • Click and Drag LMB on an empty area to create a rectangle in the 2D window.
  • Click and Drag LMB on a shape to move it.
  • Click and Drag LMB over an existing vertex to move it.
  • Hold Ctrl and LMB Click on a segment to create a vertex there (the new vertex will be in drag mode).
  • Click and Drag MMB to Pan 2D Window:
  • Drag and drop an image file to display it over the 2D window.
  • Simulate Cloth physics (press SPACEBAR to toggle simulation)

Compile Dependency

  • wxWidgets
  • glew
  • glm