TimothyFish / AOI-cloth-maker

This project is the code for the Cloth Simulation Plugin to the Art of Illusion 3D graphics program, as described in Extending Art of Illusion Second Edition. The expectation is that improvements will be made to this code beyond what was described in the book.
0 stars 1 forks source link

Cloth Drifts #10

Open TimothyFish opened 5 years ago

TimothyFish commented 5 years ago

Describe the bug When no vertices are locked the cloth moves along X and Z.

To Reproduce Steps to reproduce the behavior:

  1. Create a cloth
  2. Generate the simulation using the defaults
  3. Play the simulation
  4. The cloth will move along all three axes.

Expected behavior With only gravity applied as a force, the cloth should be moving downward but not front-back or left-right.

Screenshots None

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context When gravity is set to zero the cloth stays still as expected. When a vertex is locked into place the cloth appears to function properly. Self-collision is not a factor. Collision is not a factor.

TimothyFish commented 5 years ago

After farther review, it appears that this problem goes away if the spring constant is reduced. There may be a way to balance out the forces, but it will require more processing. One thought is that we could process the vertices in random order instead of in sequence.

TimothyFish commented 5 years ago

I see this as a low priority, but maybe I shouldn't have been so quick to close it.