Compositing node

Fluid

GPU stable fluids with multigrid pressure, vorticity, obstacles, a force input and a built-in stirrer. Ink or any image is carried along by the flow.

Download the patchRead in the manual

The Fluid node in Infinite, showing its inputs, controls and outputs.

What it does

Fluid is a compositing node: it layers, masks and routes pictures. It takes picture in and gives picture out.

Try it

Use the Optical Flow of a dancer as the force input and let the ink follow them.

VideoOptical FlowFluid

Inputs and outputs

Inputs

  • picture image
  • picture force
  • picture obstacles

Outputs

  • picture out

Controls

Every control with a range can be driven by a modulator, a note, an audio level or a sketch.

ControlRange or optionsDefault
resolutionFull, Half, Quarter1
pressure iterations1 to 12020
viscosity0 to 0.20
damping0 to 0.10.00499999989
swirl0 to 20.300000012
dye fade0 to 0.10
image refresh0 to 10.00999999978
force gain0 to 81
stirrerOff, Orbit, Pulse, Spin1
stirrer strength0 to 41
stirrer size0.01 to 0.30.0599999987
viewDye, Velocity, Pressure, Obstacles0

Example patch

This patch wires Fluid to what it needs and shows the result. Download it, then use File, Open in Infinite, or read it here: it is plain text.

infinite-patch 1
rev 2
# Fluid: a starting patch for the Fluid node
node 1 Compositing Fluid
  id node
  pos 520 300
end
node 2 Source Ramp
  id in0
  pos 0 220
end
node 3 Source Ramp
  id in1
  pos 0 510
end
node 4 Source Ramp
  id in2
  pos 0 800
end
node 5 Utility Output
  id out
  pos 1080 300
end
cable node 0 in0
cable node 1 in1
cable node 2 in2
cable out 0 node

More compositing nodes