Generate BOSS foam maps

You can use BOSS to generate maps representing foam on top of an ocean surface.

In the generated EXR files:

To generate foam maps

  1. In the Wave Solver list on the left side of the Boss Ripple / Wave Generator window, select the solver for which you want to enable foam.
  2. In the Attribute Editor, activate Enable in the Foam Attributes group of solver's attributes.
    • Use Foam Diffusion Rate to control how quickly the foam values diffuse from where foam is generated to other regions.
    • Use Cusp Scale, Cusp Min, and Cusp Max to control how foam is generated near wave peaks.
    • If desired, activate Use Speed and adjust Speed Min and Speed Max to limit the regions of foam generation based on speed.
  3. Cache the solver. See Cache BOSS solvers and influences.

    The foam maps are generated using the same cache path and name as the solver, with the addition of the string .foam. between the file name and frame number.

  4. Apply the map as a File texture and use the values to drive the parameters of a shader as desired. For example:
Tip: If you activate Cache Continuously in the Boss Ripple / Wave Generator, then you can get interactive feedback on the foam values as you adjust the settings.