The aim was to familiarize ourselves with cloth simulation, translate it into 3D clothing models and use them to dress a 3D human model. For the simulation, a mass-spring model was used, which divides the cloth into many particles with mass and connects them by various springs. Particle movement is based on Newton's second law and springs have been put in place to prevent deformations. An extension of the space deformation method and the Three.js library for drawing on a website were used to change the 3D human model. For detecting collision between the clothing and the human model, a space division method was used. As visitors we can modify the human body model, so that it looks like us as much as possible; choose its gender, body sizes, clothing, clothing size and color. We can choose between a soft and hard material, which makes the application more flexible. Then we can start the simulation and see how the clothing conforms to the body.
|