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
resolutionintGrid points per side (rounded to a power of two). 128-256 typical.
sizefloatPatch size in metres (the surface tiles seamlessly with this period).
centervector 3Centre of the patch (Y = mean sea level).
wind_speedfloatWind speed (m/s). Controls wave size: 5 calm, 10 moderate, 20 storm.
wind_directionfloatWind direction in degrees around Y (0 = +X, 90 = +Z).
amplitudefloatMultiplier on wave height.
choppinessfloatHorizontal displacement (sharp crests). 0 = smooth sine-like waves.
directionalfloatAlignment of waves with the wind (exponent). Higher = more parallel waves.
reflect_dampfloatSuppress waves travelling against the wind (0..1).
small_wavesfloatDamps wavelengths smaller than this fraction of the largest wave.
time_scalefloatSpeed of the animation.
time_offsetfloatSeconds added to the scene time.
foam_thresholdfloatFoam appears where the surface Jacobian drops below this (crest folding). Higher = more foam.
deep_colorcolourColour of troughs.
shallow_colorcolourColour of crests.
seedintRandom 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.