We tried to make a realistic looking cloth based on mass and springs system using different kind of springs of different constraints. Part 2 was about applying motion to each of the point masses depending on the external forces like gravity and the spring forces. Cloth can also collide with other objects so we handled collision with two types of objects - sphere and plane using intersection methods that we learned for spheres and planes. Last part was applying self collision when the cloth collides with itself. We have to map each of the positions into a hashmap and see which point masses are close enough ("collide") to fix the distance in between and make sure that cloth doesn't just clip though.
shearing is the diagonal X and the other ones are the grid-like ones although bending is overlapping with structural and that's why there are dotted looking lines in the last image because of these overlaps.
|
|
|
|
|
By changing ks into a higher value, you can see that the displacement that each point mass has is lessened - which results in a very smooth cloth as the final state. For a lower value, all the point masses fluctuates a lot and the final state as you can see below is very stretched. Compared to the default value (5000), lower value (which I chose to be 10N/m) is much stretched while a higher value is not. You can barely see the pinned effect (diagonal line) as you go up in ks.
By changing density higher, (1000) there is much more fluctuation. Especially for the middle portion, it fluctuates a lot until it comes to a stop since it is there is so much mass in a limited space. But for lower density (1), there is very little fluctuation - and results in a very un-stretched cloth unlike higher density with stretched cloth.
For damping, if it is lower, much more fluctuation that lasts longer - I don't think it ever stops for a long time - very visible. As you go higher, it stops fluctuating much faster.
|
|
|
|
|
|
|
|
As you can see as you increase the ks, the cloth folds less especially there is much more force given between point masses for each of the spring.
|
|
|
|
High density causes the cloth to be really wrinkled while low density is much more smooth and folds nicely. ks also has similar effects except that low ks causes the wrinkles and high ks results in nicely folded and pretty well smoothened cloth.
|
|
|
|
|
|
|
|