Fluid node · time dependent

ocean

Deep-water spectral ocean (Tessendorf FFT, Phillips spectrum) as an animated polygon grid. Wave height follows the wind speed (Pierson-Moskowitz: wind 10 m/s ~ 2 m significant height), choppiness sharpens crests, and foam comes from the Jacobian of the horizontal displacement (folding crests). Output: (res+1)^2 grid of quads in XZ with point attribs N, Cd (deep->shallow by height, white foam), foam (0..1), height, uv; detail ocean_size. Tiles seamlessly every `size` metres. Time-dependent: plays with the timeline. Example: ocean wind_speed 12 size 60 resolution 256.

Inputs

None: this node generates geometry from its parameters.

Parameters 16

resolutionint
Default 128Range 16 to 1024

Grid points per side (rounded to a power of two). 128-256 typical.

sizefloat
Default 50Range 0.1 to …

Patch size in metres (the surface tiles seamlessly with this period).

centervector 3
Default [0, 0, 0]

Centre of the patch (Y = mean sea level).

wind_speedfloat
Default 10Range 0.1 to …

Wind speed (m/s). Controls wave size: 5 calm, 10 moderate, 20 storm.

wind_directionfloat
Default 0

Wind direction in degrees around Y (0 = +X, 90 = +Z).

amplitudefloat
Default 1Range 0 to …

Multiplier on wave height.

choppinessfloat
Default 1.2Range 0 to 3

Horizontal displacement (sharp crests). 0 = smooth sine-like waves.

directionalfloat
Default 2Range 0 to 8

Alignment of waves with the wind (exponent). Higher = more parallel waves.

reflect_dampfloat
Default 0.7Range 0 to 1

Suppress waves travelling against the wind (0..1).

small_wavesfloat
Default 0.002Range 0 to 0.1

Damps wavelengths smaller than this fraction of the largest wave.

time_scalefloat
Default 1

Speed of the animation.

time_offsetfloat
Default 0

Seconds added to the scene time.

foam_thresholdfloat
Default 0.8Range -1 to 1.5

Foam appears where the surface Jacobian drops below this (crest folding). Higher = more foam.

deep_colorcolour
Default [0.02, 0.1, 0.18]

Colour of troughs.

shallow_colorcolour
Default [0.07, 0.32, 0.4]

Colour of crests.

seedint
Default 0

Random seed of the spectrum.

Use it

Add it from the node menu (right-click empty graph space or Tab, then type ocean), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"ocean","name":"my_ocean","params":{},"inputs":[]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.