Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Optimizing Stiff Cloth Object
#2
Hi there!

Distance constraints are responsible to keep cloth particles at a fixed distance from each other, so they control the amount of stretching. You're using 8 substeps and 8 distance constraint iterations, but a relaxation of 0.1.

This means your distance constraints are updated 8 substeps + 8 iterations = 64 times per step, but only being applied to 10% (0.1) of their full extent. The result is extremely costly and very stretchy cloth, the exact opposite of what you want.

Most other parameters are also all over the place, and will result in both very expensive and low quality sim.


- Set all your relaxation parameters to 1 (100%). This will ensure constraints are fully enforced, and you make the most of the time spent on them. You could even go slightly past 1 (1.1, or 1.2) to make them pack more punch. See: http://obi.virtualmethodstudio.com/tutor...olver.html

- Set all your iterations to 1. With 8 substeps that should be more than enough. See: http://obi.virtualmethodstudio.com/tutor...gence.html

- You're using a gravity acceleration of -22 m/s2, more than double of Earth's gravity (-9.81 m/s2). This will cause stretching to worsen even more, as distance and collision constraints have to work extra hard to keep gravity from squashing the book flat onto itself.

- You're using a damping factor of 0.99 (99%), which means particles lose 99% of their kinetic energy every second. Probably this was done to counteract the huge gravity, but will not give realistic results. Will look as if the book was submerged in thick jelly.

- A max depenetration of 0.9 m/s means any interpenetrations can only be solved at a separation speed of 0.9 m/s, which is probably not enough. Try between 2 and 5.

Also, I'd recommend installing Burst and taking advantage of the Burst backend. The warning message in your solver inspector is telling you that the engine will fall back to the native backend, which is slightly slower on mobile or mobile-like devices (such as the Quest).

let me know if you need further help. cheers!
Reply


Messages In This Thread
Optimizing Stiff Cloth Object - by matsborges - 28-05-2021, 06:05 AM
RE: Optimizing Stiff Cloth Object - by josemendez - 28-05-2021, 07:57 AM
RE: Optimizing Stiff Cloth Object - by matsborges - 31-05-2021, 09:13 PM
RE: Optimizing Stiff Cloth Object - by josemendez - 01-06-2021, 07:56 AM
RE: Optimizing Stiff Cloth Object - by matsborges - 01-06-2021, 08:29 PM
RE: Optimizing Stiff Cloth Object - by josemendez - 02-06-2021, 07:58 AM