GSoC 2021: Continued Development on Adaptive Cloth Simulator for Blender: Weekly Reports

Week 11

This week has only been about debugging. The overall design of the
cloth simulator really does not like mesh connectivity changes, so
finding what parts to fix and fixing them has been extremely time
consuming and difficult.

  • Bugs fixed

    • The spring count stored per vertex would increment every frame
      even though it should stay fixed. When building the structural
      springs, the avg spring length is reset before the calculation but
      the spring count was not. Fixed this.
    • Not only would the originally pinned vertices be pinned but many
      more new vertices around existing pinned vertices would also be
      pinned. Initially I thought that the new nodes didn’t interpolate
      the cloth vertex flags correctly but this cannot be the issue
      because all new vertices always had the pinning related flag set
      to false. For sanity sake, I added the correct interpolation of
      the flags but this didn’t fix the bug as expected. The simulation
      does not only consider the pin flag of the cloth vertex for
      pinning but also the goal and this is not expressed anywhere
      clearly. So now, all new vertices added have their goal set to
      zero, fixing the bug.
  • Final report for GSoC evaluation

  • Debug tool

    • Added a feature to visualize the cloth vertex data during the
      simulation.

Plan for following week

  • Fix bugs.
  • Continue work on dynamic remeshing.
15 Likes