Want to watch this Tutorial?

Start your FREE 7-day trial for instant access to all CG Cookie training! It takes 2 minutes and you can cancel anytime.

Start your Free Trial

Creating a Looping Cloth Simulation

gauthor
  • Software:Blender 2.73  ·
  • Difficulty:Intermediate

Looping cloth simulations in Blender

Simulations take a notoriously long time to calculate, and once baked, offer very little in the way of advanced control. In this tutorial you'll discover how to use the Mesh Cache modifier to create an infinitely looping cloth simulation using two slightly different methods. This tutorial assumes you have basic knowledge of animation and cloth simulations in general. The formulas for the driver expressions (second method) mentioned near the end of the video are as follows:

  • First modifier Evaluation Frame: (frame % loop) + start
  • Second modifier Evaluation Frame: (frame % loop) + offset
  • Second modifier Influence: ((frame % loop) - (loop - transition)) / transition (Note: this will will result in a value below 0 sometimes, but luckily Blender only allows values between 0 and 1 for the Influence)
Where: loop = end-start offset = start-loop transition = the number of frames over which to blend the loop seam

Read more about modulo (% sign in driver expressions): http://en.wikipedia.org/wiki/Modulo_operation