This node creates foam particles that can be used to enhance rendering of an ocean surface. The input is a one or more merged Ocean Spectrum layers that comprise the ocean.
There are two modes for this SOP:
Particles are created within a specified region based on various emission criteria from the input ocean layers. These particles could then be fed into any custom particle simulation for emission.
Foam particles are created according to the various emission criteria then run through a 2-D particle simulation that incorporates the ocean velocity and neighboring particle proximity to give realistic foam behavior. The output of this mode can be used directly for rendering foam with the Ocean Surface shader.
Emitter will create particles according to emission criteria.
Solver will also run those particles through a 2-d foam simulation.
This section controls foam particle emission.
The density of particles to emit per unit of area, before culling by the emission criteria. Increasing this value will give more detailed foam renders at the expense of a higher particle count.
The type of region used for the emission area.
Emit particles over the specified grid.
Emit particles within the frustum of the specified camera.
The world space size of the emission grid.
The world space center of the emission grid.
Restrict emission to the specified camera’s frustum.
The distance from the camera to start emitting foam.
The distance from the camera to stop emitting foam.
The min/max portions of the camera’s view for emission. This allows you to add padding to ensure good boundary conditions or focus into a key area of the scene.
Z Density Falloff
Areas that are farther from the camera along the z-axis will emit fewer particles with a larger radius for less expensive simulation and rendering at a distance. When set to 0, the distance from camera will have no effect on particle density.
This section controls the emission criteria. All enabled criteria must be met for emission.
Emit foam where the ocean waves are above this cusp level.
Emit foam where the ocean waves are moving faster than this speed.
Emit foam where the ocean waves are above this height.
This section controls how the input ocean layers are evaluated when generating and simulating foam.
The time at which to evaluate the ocean surface.
Downsample the incoming ocean spectra before evaluating any ocean values. This parameter specifies the number of powers of two to remove from the resolution of the incoming ocean spectrum. For example, if the spectrum was originally specified at resolution 10 to generate a 1024 x 1024 volume, downsampling by 2 will evaluate ocean volumes at resolution 8, a 256 x 256 volume.
By default the particles are output in 2-d "rest" space, as expected by the Ocean Surface shader. Enabling this option will output the particles displaced by the ocean waves, usually for custom simulation or later processing.
This section controls the foam simulation.
How long the foam particles will live (in seconds).
Foam particles will live the number of seconds in Life Expectancy, plus or minus this number of seconds. Use 0 for no variance.
The amount of horizontal ocean velocity to impart to the foam particles. Increasing this value will increase the amount of squashing and stretching of the foam on the surface.
Increase or decrease the lifespan of foam particles based on the local density of particles, which can help create clumps and streaks of foam on the ocean surface over time.
Min Foam Density
When the number of particles surrounding a foam particle lies in the range of this value down to zero, proportionally reduce its lifespan each timestep by the Reduction Rate.
Max Foam Density
When the number of particles surrounding a foam particle lies in the range of Min Foam Density up to this value, proportionally increase its lifespan each timestep by the Preservation Rate.
The proportional amount to increase the lifespan of a foam particle with sufficiently high local foam density. This value is the number of seconds to add per second, so if greater than one can effectively preserve high density foam clumps from ever being killed.
The proportional amount to decrease the lifespan of a foam particle with sufficiently low local foam density. This value is the number of seconds to reduce the lifespan per second.
The list of attributes to keep from the foam simulation. The defaults of
life are required for proper rendering with the Ocean Surface shader. Set this parameter to
* to keep all attributes.
Clears the entire simulation cache.
The starting frame for the simulation. Set this parameter earlier than your initial render frame to pre-populate the ocean with foam.
The number of substeps to take in the simulation.
Enables the simulation cache.
Cache Memory (MB)
Specifies how much memory in megabytes can be consumed by the cache for the foam simulation.