vector ocean_sample(string geometry, int phase, int frequency, int amplitude, float hscale, float time, int mode, int downsample, vector pos)
Evaluates the input ocean spectrum at the given time and position and returns the value specified by
mode. The input is typically the output of the Ocean Spectrum SOP.
The name of the geometry file to reference. Inside Houdini, this may be
op:full_path_to_sop to reference a SOP.
The primitive number of the volume representing wave phase.
The primitive number of the volume representing wave frequency.
The primitive number of the volume representing wave amplitude.
The amount to scale any horizontal motion in the ocean waves.
The type of value to sample from the ocean spectrum, where 0 means displacement, 1 means velocity, and 2 means horizontal spatial derivatives.
The number of times to downsample the input spectrum before evaluation. Each downsample level halves the resolution of the input.
The position in object space at which to sample the evaluated ocean.
Displace the point position by an ocean spectrum stored in a file.
@P += ocean_sample("spectrum.bgeo", 0, 1, 2, 0.7, @Time, 0, 0, @P);