How to Bake a Fluid Simulation in Blender
Baking a fluid simulation in Blender is the process of calculating and saving the physical behavior of liquids or gases to your hard drive, allowing for smooth playback and rendering. This guide provides a direct, step-by-step walkthrough of how to set up your domain, configure your cache settings, and bake both the base simulation and the fluid mesh using Blender’s Mantaflow physics engine.
Step 1: Set Up the Simulation Objects
Before baking, you need a basic fluid setup consisting of at least two objects: 1. The Flow Object: This is the source of the fluid (e.g., a sphere or plane). Select it, go to the Physics Properties tab, click Fluid, set the Type to Flow, and set the Flow Behavior to Inflow or Geometry. 2. The Domain Object: This is the bounding box that contains the simulation (usually a cube scaled to fit the scene). Select it, click Fluid in the Physics Properties, and set the Type to Domain. Set the Domain Type to Liquid (or Gas).
Step 2: Configure the Cache Settings
To bake a simulation, Blender needs to know where and how to save the data. 1. Select the Domain object. 2. Scroll down to the Cache section in the Physics Properties panel. 3. Set your desired Frame Start and End to match your animation’s timeline. 4. Change the Type from Replay to Modular. The Modular setting allows you to bake the simulation in stages (particles first, then the mesh), which is highly recommended for troubleshooting and adjustment. 5. Check the Is Resumable box if you want the ability to pause and resume the bake.
Step 3: Bake the Fluid Particles (Base Data)
The first actual baking step calculates the movement of the fluid particles. 1. Scroll up to the Settings panel within the Domain physics settings. 2. Set your Resolution Divisions. A lower number (e.g., 32 or 64) is good for quick tests, while higher numbers (e.g., 128 or more) are used for final quality. 3. Scroll back down to the Cache section and click the Bake Data button. Blender will now calculate the physics. You will see a progress bar at the bottom of the screen.
Step 4: Enable and Bake the Fluid Mesh
Once the base data is baked, the fluid will only appear as particles in the viewport. To turn these particles into a solid, realistic water surface, you must bake the mesh. 1. In the Domain physics settings, scroll down and check the box next to Mesh. 2. Expand the Mesh dropdown menu to customize the settings, such as the Upres Factor (which increases the detail of the mesh relative to the base resolution). 3. Click the Bake Mesh button. Blender will now generate the 3D geometry over the calculated particle simulation.
Freezing, Freeing, and Editing the Bake
If you need to make changes to your simulation after baking: * Click Free Data to delete the particle bake and unlock the settings. * Click Free Mesh to delete the fluid geometry while keeping the base particle physics intact. Once your bakes are complete and you are satisfied with the results, you can proceed to assign materials to your fluid mesh and render your animation.