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.

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.
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.
| Control | Range or options | Default |
|---|---|---|
| resolution | Full, Half, Quarter | 1 |
| pressure iterations | 1 to 120 | 20 |
| viscosity | 0 to 0.2 | 0 |
| damping | 0 to 0.1 | 0.00499999989 |
| swirl | 0 to 2 | 0.300000012 |
| dye fade | 0 to 0.1 | 0 |
| image refresh | 0 to 1 | 0.00999999978 |
| force gain | 0 to 8 | 1 |
| stirrer | Off, Orbit, Pulse, Spin | 1 |
| stirrer strength | 0 to 4 | 1 |
| stirrer size | 0.01 to 0.3 | 0.0599999987 |
| view | Dye, Velocity, Pressure, Obstacles | 0 |
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