Skip to content
Tutorials Center
My learning

Topics

Lesson 33 of 37 ยท Simulation and Workflows

Blender Cloth, Soft Body and Fluid Simulation Explained

Simulate cloth, soft bodies, smoke and liquids in Blender: pinning, collisions, quality steps, domains, resolution, caching, baking and performance tips.

Beyond rigid bodies, Blender can simulate things that bend, sag and flow: a flag, a tablecloth, a jelly, smoke from a candle, water poured into a glass. Each simulation follows the same pattern: mark the object, choose settings, run from frame 1, cache, bake.

Blender cannot run on the site, so this lesson describes the workflows and settings, and the Python stand-ins implement a small mass-spring cloth strand and a simple grid-based smoke diffusion so you can see why quality, resolution and time steps matter.

The common workflow

  1. Select the object and open the Physics tab.
  2. Click the simulation type: Cloth, Soft Body, Fluid, Smoke/Fire (now part of the Fluid system as a Gas domain), Collision, Force Fields.
  3. Set up collision objects (give them Collision physics).
  4. Return to frame 1 and press Space to preview.
  5. Raise quality, bake the Cache, and render.

Every simulation reads the state of the previous frame, so always start at the first frame and never jump around while the cache is incomplete.

Cloth

Add Cloth to a subdivided plane (a flag, a sheet) or a closed mesh (a shirt). The cloth needs enough geometry: subdivide a plane at least 30 by 30 times, or more, so it can fold.

Key settings:

  • Quality Steps: simulation steps per frame (5 default; increase to 10 or 20 to reduce stretching and passing through objects).
  • Physical Properties: Vertex Mass, Air Viscosity (drag), Bending Model.
  • Stiffness: Tension, Compression, Shear, Bending: bigger = stiffer like leather, smaller = silk.
  • Shape > Pin Group: a vertex group of pinned vertices (the top edge of a curtain, the pole of a flag).
  • Collisions: enable Object Collisions and Self Collisions; set Distance (how close the cloth stays to the other object, 0.015 m default) and make colliders Collision type.
  • Pressure for balloons and pillows; Cache for the baked result.

A good trick: let the cloth settle on a body for 50 frames before animating the body. Then apply the shape at its resting frame via Modifier > Apply on the Cloth modifier to freeze it ("simulate to rest").

Mass-spring model

Cloth is a grid of points linked by springs. Each spring pulls toward its rest length with force F = -k * (length - rest). The stand-in simulates a hanging chain of points pinned at the top, which is the cross-section of a curtain.

Python Stand-in: hanging cloth strand with springs and substeps

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The chain hangs below its rest length because gravity stretches it. With too few steps per frame the stiff springs could oscillate wildly or explode: that is why Blender's Quality Steps matter. The simulated numbers depend on the stiffness and mass chosen here, and are not physical constants of any real cloth.

Soft body

Soft Body deforms a mesh as if it were jelly: it keeps its shape (Goal strength pulls vertices back to their original place) and wobbles on impact. Set Goal Stiffness, Edges Stiffness and Collision. Use it for jelly, balloons or squishy characters. It is less accurate than cloth for fabric and is slower on dense meshes. Use a Vertex Group to control goal strength per vertex (higher at the base, lower at the tip).

Fluid: liquids and gas

Blender's Fluid physics uses a Domain object (a box that defines where the simulation happens):

  1. Add a cube, scale it to cover the action, and set it to Fluid > Type: Domain. Set Domain Type to Liquid (water, FLIP solver) or Gas (smoke and fire).
  2. Add the source objects: Flow (emits liquid or smoke; Flow Type: Liquid, Smoke, Fire; Flow Behavior: Inflow, Outflow, Geometry), Effector (obstacles) and Inflow objects.
  3. In the Domain Settings: Resolution Divisions (higher = finer detail, much slower and more memory), Time Scale, Boundaries.
  4. Cache: pick Modular to bake the pieces separately (data, mesh, noise), or All, and choose a Format (OpenVDB for gas, Uni for liquid data).
  5. Press Bake Data, then Bake Mesh for liquids so Blender builds a surface. For gas add Noise to add detail cheaply on top of a low-resolution bake.

For liquid, render with a glass-like Principled BSDF (Transmission 1, IOR 1.33). For smoke, use the Principled Volume shader.

Resolution costs grow quickly: doubling the resolution multiplies the cell count by 8 (in 3D) and time and memory by even more.

Python Stand-in: resolution cost and smoke diffusion on a grid

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The smoke spreads and thins out while the total stays constant (mass conservation), the same idea as the much more complex Navier-Stokes solver in Blender.

Performance and troubleshooting

  • Simulate at low resolution first; increase only for the final bake.
  • Save the file before baking and use Free Bake to start over when you change a setting.
  • Cloth passing through a collider: raise Quality Steps and Collision Distance, and make the collider thicker with a Solidify modifier or less thin.
  • Liquid leaking or exploding: increase the domain resolution, make sure the domain fully contains the action, and check that objects have thickness.
  • Bake to a fast disk: fluid caches can be several gigabytes.
  • Use the Simulation workspace-like layout: Timeline, Physics tab and a Properties editor for the cache side by side.
  • Simulation results depend on the Blender version; re-bake after upgrading.
flowchart LR
  A["Set up objects"] --> B["Test at low quality"]
  B --> C["Raise quality"]
  C --> D["Bake cache"]
  D --> E["Light and render"]
  E --> F["Adjust and Free Bake if needed"]
  F --> B

Iterate cheaply, bake once.

For a related technique with rigid objects see Rigid Body Physics.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does raising Cloth Quality Steps do?

    More substeps reduce stretching and collision errors at the cost of time.
  2. 2. How do you keep the top edge of a curtain fixed?

    Vertices in the Pin Group are held in place while the rest simulates.
  3. 3. Doubling the fluid domain resolution in all three directions multiplies the number of cells by about:

    Cells grow with the cube of the resolution: 2 x 2 x 2 = 8.
  4. 4. Which Domain Type simulates smoke and fire?

    Gas domains are used for smoke and fire; Liquid domains use the FLIP solver for water.

Summary

  • All simulations follow the same workflow: set up, test at frame 1, cache, bake.
  • Cloth needs enough geometry, pin groups and collision objects; Quality Steps improve stability.
  • Fluid uses a Domain plus Flow and Effector objects; resolution cost grows with the cube of the divisions.
  • Test small, then raise quality and bake the final result.

Next: Geometry Nodes Basics