How to Bake an Ocean Modifier in Blender

Baking an ocean modifier simulation in Blender converts real-time wave calculations into pre-rendered texture maps, significantly boosting viewport performance and enabling high-detail render outputs. This process extracts displacement, normal, and foam data into EXR image sequences, allowing you to drive complex water shaders efficiently. This guide provides a direct, step-by-step walkthrough to configure your ocean settings, generate the baked maps, and apply them to your material network.

Step 1: Set Up the Ocean Modifier

  1. Select your default mesh or create a new plane (Shift + A > Mesh > Plane).
  2. Go to the Modifier Properties tab on the right side and click Add Modifier > Physics > Ocean.
  3. Choose your geometry mode:
    • Generate: Creates a tiled ocean grid directly on the object.
    • Displace: Displaces the existing geometry of your mesh (requires high subdivision).
  4. Animate the ocean movement:
    • Go to frame 1, hover over the Time property in the Ocean Modifier, and press I to insert a keyframe.
    • Go to the final frame of your timeline (e.g., frame 250), increase the Time value (e.g., to 10), and press I again.

Step 2: Configure Foam and Bake Settings

  1. In the Ocean Modifier settings, expand the Bake section.
  2. Set the Frame Start and Frame End to match your project timeline.
  3. Choose a destination folder by clicking the folder icon next to Cache Path. Ensure your target drive has enough disk space, as EXR sequences can be large.
  4. (Optional) If you want foam textures:
    • Check the Foam box under the main Ocean Modifier settings.
    • Assign a name to the Foam Coverage Map field (e.g., foam).

Step 3: Bake the Ocean Data

  1. Once your parameters and cache path are defined, click the Bake button inside the Ocean Modifier panel.
  2. Blender will process each frame and save a series of 32-bit OpenEXR files to your designated folder.
  3. After the baking process completes, you can turn off or delete the Ocean Modifier to save CPU/GPU memory, as the wave data is now stored on your drive.

Step 4: Plug Baked Maps into the Shader Editor

  1. Select your target water mesh and open the Shader Editor.
  2. Add a Principled BSDF and set the Transmission to 1.0 (or IOR to 1.333 for water).
  3. Press Shift + A and add an Image Texture node. Click Open and select the entire sequence of baked displacement maps from your cache folder.
  4. Set the texture mode to Image Sequence and change the Color Space to Non-Color.
  5. Connect the Image Texture output:
    • For Displacement: Connect the image output to a Displacement node (Height input), then connect the Displacement output to the Displacement socket of the Material Output node. Make sure Material Settings under Options has Displacement set to Displacement and Bump.
    • For Foam: Add another Image Texture node, select your baked foam EXR sequence, set it to Non-Color, and use it as a mix factor (Fac) between your ocean base color and a white foam shader.