Nodes/comfyui_cv/CV Wave Map
ComfyUI Node

CV Wave Map

Sinusoidal displacement: each row is shifted horizontally by amplitude_x * sin(2*pi * y / wavelength_x + phase) and each column vertically by the same construction on x - the classic flag/water ripple. Set an amplitude to 0 to disable that axis.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Wave Map
  • map_x
  • map_y
  • map_x
  • map_y
amplitude_x8.0
wavelength_x64
amplitude_y0.0
wavelength_y64
phase0
Categoryimage/CV/remap

Inputs (7)

NameTypeDefaultDescription
map_xNPARRAYIncoming source-x coordinate map to distort. Start the chain with 'CV Identity Map'; further remap nodes compose onto it.
map_yNPARRAYIncoming source-y coordinate map (must share map_x's shape - both come from the same chain).
amplitude_xFLOAT8.00–10000Horizontal shift in pixels (driven by y).
wavelength_xFLOAT640.1–100000Vertical period in pixels of the horizontal wave.
amplitude_yFLOAT0.00–10000Vertical shift in pixels (driven by x).
wavelength_yFLOAT640.1–100000Horizontal period in pixels of the vertical wave.
phaseoptFLOAT0-360–360Phase offset in degrees - animate it to make the wave travel.

Outputs (2)

NameTypeDescription
map_xNPARRAY
map_yNPARRAY