Installation
- Download the Flow Lab plugin
- Unzip the downloaded zip file
- Drag the
Flow Lab.zipfile onto the Cavalry interface - Find Flow Lab in the
Add Layerswindow
Flow Lab is an animated procedural shader for Cavalry. Use it to make flowing backgrounds, liquid marbling, folded ribbons, water-like textures and flame-inspired effects. It generates its own pattern as a fill.
Quick start
- Create a Background Shape, or select any text or shape you want to fill.
- Add Flow Lab from the shape's Add Shader menu. Press Play to see the default motion.
- Open the preset menu using the stars button in the Flow Lab Attribute Editor header. Try a preset from 1 Evolving, 2 Stretch & Fold or 3 Classic.
- Choose a preset from 4 Color, such as Electric Blue, to color the current flow. You can also switch Output to Color and edit the gradient yourself in the Color tab.
- Adjust Scale to set the feature size. Use Swirl Strength and Swirl Scale to shape the deformation, and Time Scale to set its pace.
- Once the look is working, enable Loop if the animation needs to repeat. Choose Loop Length for the required duration and review a full cycle.
Recommended workflow
Choose a flow model or motion preset first. Establish the large forms with Scale, Warp and the swirl controls before adding fine detail. Set the pace, then choose a palette and adjust the tones. Review looping after the main look is established, since enabling it can change the field's arrangement and motion.
Practical tips
Try color without losing the movement
Motion and color presets are separate. Once a flow looks right, browse the 4 Color group to compare palettes without resetting its motion, detail or timing. You can also change motion presets while keeping your edited gradient. Motion presets do change the shader's Angle, Offsets and Time Scale, but retain its Loop settings and native Time/FPS connections.
Use the right scale control
A higher Scale value makes the pattern's features smaller and more numerous. A higher Swirl Scale makes the swirls broader. If a texture has become crowded, lower Scale to open up its large forms, then adjust Swirl Scale for the size of the deformation. Horizontal and Vertical Stretch lengthen the pattern along one axis without changing the master Scale.
Type beyond the soft maximum
A soft maximum limits scrubbing. Type a higher value directly into the field, up to any hard limit. For example, Flow Sharpness scrubs to 20, but you can enter 1,000 for hard-edged bands.
Add detail after the broad forms work
Octaves adds noise layers; Detail Amount determines how strongly the finer layers contribute. For a detailed starting point, choose 1 Evolving - Razor Currents, which uses eight octaves and Detail Amount 0.65. For a softer result, lower Detail Amount before removing the large-scale motion. At zero, only the broadest noise layer contributes, even if Octaves is higher than one.
Look beneath the ribbons
Turn Ribbon Amount down to reveal more of the moving noise. At zero, the ribbons are removed entirely and Curve and Flow Sharpness become inactive. Try this with Pool Reflections to get the Pool Caustics treatment. For another softer look, compare Dense Marble with Liquid Ribbons, which uses no fine octave detail.
Separate travel from local movement
In Evolving Flow and Stretch & Fold, Drift Amount controls overall travel and Flow Evolution controls local change. Lower Drift Amount when the field is crossing the frame too quickly but the local movement feels right. Lower Flow Evolution when you want the forms to change more slowly. Time Scale changes the pace of both together.
Give a loop enough time
Start with the duration you need: an eight-second loop is 480 frames at 60 fps, 240 at 30 fps or 192 at 24 fps. Keep Time on its default composition connection while setting up the loop.
Short-travel loops may keep broad features in place while local motion repeats. This avoids squeezing the field into a visibly repeating strip. A longer Loop Length can restore directional travel.
Count both ends of the render range. Frames 0 to 499 need a Loop Length of 500; frames 0 to 500 need 501. Rendering frame 500 of a 500-frame loop repeats the first frame. Any other animated controls or custom Time behaviors must repeat over the same interval.
Use the gradient to keep the texture readable
The gradient maps low field values on its left to high values on its right. Give darker colors room in the lower part of the gradient and reserve the lightest colors for the upper part when you want the fine structure to stand out. A wide stretch of bright color through the midtones can flatten the appearance even when the underlying field still has detail.
Use Gamma to adjust the midtones and Contrast to separate light and dark areas. Raising Contrast far enough clips values at black and white. If highlights are losing texture, ease Contrast back and adjust the gradient's stop positions instead.
Resize a shape or scale its fill
Flow Lab's texture follows the shape as you move it. On a small shape, changing Width, Height or Radius reveals more or less of the texture. Use the shape layer's Scale to grow or shrink the visible texture along with the shape, such as when animating a circle's size.
Put one field across a word
Apply Flow Lab to a Background Shape and use your text as a mask. One continuous texture runs across the word instead of starting over in each letter. The same setup works with several shapes sharing one texture.
Control reference
Defaults describe a fresh Flow Lab instance. A grayed-out control retains its value. Slider is the usual editing range; values beyond a soft slider limit can be typed where the numeric range allows them. Connected Time and Composition FPS follow the composition rather than a fixed number.
Flow model and noise
Flow Model
Chooses the motion and deformation style.
- Classic Flow: a swirling field with its own travel direction. Useful for marbling, veins, bands and fire-like motion.
- Evolving Flow: a drifting field with changing local currents and swirls.
- Stretch & Fold: alternating stretches and shears that pull the field into elongated forms and folded patterns.
Default: Evolving Flow
Noise Type
Chooses the underlying noise independently of the flow model. Value produces a different field from Gradient; Cellular builds smooth point-cell structures. Model Default uses Value in Classic Flow and Gradient in the other two models.
Default: Model Default
Options: Model Default, Value, Gradient, Cellular
Seed
Selects a different repeatable pattern arrangement. Change it to explore compositions after choosing the general look.
Default: 0
Slider: 0 to 100
Range: 0 to 65535, whole numbers
Pattern
Scale
Sets overall pattern frequency. Higher values create smaller features; lower values create larger forms. It affects the whole pattern while keeping the horizontal/vertical stretch ratio.
Default: 3
Slider: 0.05 to 10
Range: 0.05 or higher
Warp
Sets the strength of broad distortion. Higher values bend and displace the field more strongly and can produce heavily folded forms.
Default: 2.2
Slider: 0 to 20
Range: 0 or higher
Horizontal Stretch / Vertical Stretch
Stretch the pattern along X or Y. Increasing either value lengthens features along that axis. Use Scale for a proportional size adjustment after setting the stretch ratio.
Default: 1 for each axis
Slider: 0.05 to 5
Range: 0.05 or higher
Curve
Sets the bending of the ribbon bands. Lower values make a straighter band structure; larger values give it stronger folds. It does not control the amount of underlying noise.
Default: 1
Slider: 0 to 5
Range: No fixed numeric limits
Inactive when: Ribbon Amount is 0
Ribbon Amount
Blends the underlying noise with the ribbon bands. At 0, only the noise is used. At 1, the output uses only the bands, whose shape still follows the field's deformation and noise.
Default: 0.78
Range: 0 to 1
Flow Sharpness
Sharpens the light/dark transitions within the ribbon bands. It is independent of Contrast and does not add more noise layers. Larger typed values are available for very crisp, graphic bands - for maximum binary sharpness, enter a value of 1,000.
Default: 0
Slider: 0 to 20
Range: 0 or higher
Inactive when: Ribbon Amount is 0
Detail
Octaves
Sets the number of noise layers. Higher counts can add finer detail and increase rendering cost. The layer weights are normalized, so adding octaves does not simply add brightness.
Default: 4
Range: 1 to 8, whole numbers
Detail Amount
Sets the contribution of finer noise layers. Zero keeps only the broadest layer; higher values give the smaller layers more influence. It also changes how those layers affect the deformation.
Default: 0.5
Range: 0 to 1
Inactive when: Octaves is 1
Lacunarity
Sets the frequency spacing between successive noise layers. Larger values separate their scales more strongly. Its effect depends on the octave count and Detail Amount.
Default: 2.03
Slider: 1 to 4
Range: 1 or higher
Inactive when: Octaves is 1
Flow and drift
Swirl Strength
Sets the strength of swirling deformation. Raise it for stronger marbling and more tangled structures. At zero, this deformation is removed; Warp and the remaining pattern controls still affect the field.
Default: 0.6
Slider: 0 to 5
Range: 0 or higher
Swirl Scale
Sets the size of the swirling deformation. Higher values make broader swirls. For a strong liquid-marble starting point, use the Evolving defaults with Swirl Strength 5 and Swirl Scale 3.
Default: 1
Slider: 0.05 to 5
Range: 0.05 or higher
Flow Evolution
Sets the rate of local change in Evolving Flow and Stretch & Fold. Zero keeps the local structure fixed while drift can continue. Negative values reverse local evolution without changing Drift Angle.
Default: 1
Slider: -10 to 10
Range: No fixed numeric limits
Applies to: Evolving Flow and Stretch & Fold
Drift Amount
Sets the amount of overall travel in Evolving Flow and Stretch & Fold. Zero removes base translation; negative values reverse the direction. Local evolution can continue at zero drift. Short-travel Loop mode may anchor broad features even with a nonzero Drift Amount.
Default: 1
Slider: -5 to 5
Range: No fixed numeric limits
Applies to: Evolving Flow and Stretch & Fold
Drift Angle
Sets travel direction in pattern space: 0 degrees points right and 90 points up. The shader's Angle and stretch settings also affect its visible direction. Classic Flow uses its own travel direction.
Default: -30 degrees
Range: No fixed numeric limits
Applies to: Evolving Flow and Stretch & Fold
Animation
Time
The frame-valued input driving animation. It connects to composition Time automatically. Keep that connection for normal playback, or use Cavalry behaviors and expressions to supply another time signal. It remains the input to both ordinary and looping animation.
Default: Connected to composition Time
Units: Frames
Time Scale
Scales the animation's time excursion. Positive values set the forward pace; negative values reverse it. Zero holds a still frame. In Loop mode it changes the excursion within the selected duration, while Loop Length sets the period with the default Time connection.
Default: 1
Slider: -10 to 10
Range: No fixed numeric limits
Time Offset
Offsets the source time in frames. In ordinary animation it moves to another point in the animation. In Loop mode it selects the source anchor without shifting the incoming loop phase.
Default: 0 frames
Range: No fixed numeric limits
Composition FPS
Connects to the composition's frame rate to keep animation speed consistent when FPS changes. Leave it connected for normal use. A custom Time behavior still supplies frame-valued input; this control does not change the behavior's own units or settings.
Default: Connected to composition FPS; 60 if unconnected
Range: 1 or higher
Loop
Enables the periodic motion construction. It can change the field's arrangement and motion compared with ordinary animation. Short-travel settings can anchor broad features while local motion repeats. Other settings retain directional travel through a repeating field.
Default: Off
Options: Off, On
Loop Length
Sets the loop's duration in frames with the default composition Time connection. Use composition FPS to convert a required duration in seconds to frames. Custom Time input changes how the phase is traversed.
Default: 480 frames
Slider: 2 to 1200
Range: 2 frames or higher, whole numbers
Active when: Loop is on
Tone
Contrast
Increases or reduces separation between light and dark values around the midpoint. Values are clamped to black and white after this adjustment, so strong contrast can flatten the ends of the tonal range.
Default: 1
Slider: 0 to 3
Range: 0 or higher
Gamma
Adjusts midtones after Contrast. Values above 1 darken them; values below 1 brighten them.
Default: 1
Slider: 0.01 to 3
Range: 0.01 or higher
Vertical Bias
Darkens toward the top of the field when positive and brightens it when negative. It is applied before Contrast and follows the vertical axis independently of the shader's Angle. Bonfire uses it to keep its base brighter.
Default: 0
Slider: -2 to 2
Range: No fixed numeric limits
Placement
Angle
Rotates the pattern around its center.
Default: 0 degrees
Range: No fixed numeric limits
Offset X / Offset Y
Translate the pattern horizontally or vertically in pixels. Positive X moves right; positive Y moves up. These directions stay horizontal and vertical when the shader's Angle changes.
Default: 0 pixels for each axis
Range: No fixed numeric limits
Color
Output
Chooses grayscale output or maps the field through the embedded color gradient. The gradient stays available when Output is Grayscale, but its editor is disabled. Switching back to Color restores access to the same gradient.
Default: Grayscale
Options: Grayscale, Color
Color Gradient
The embedded native Gradient Shader maps field values to color. Edit its stops, positions and interpolation, or apply a 4 Color preset. For conventional left-to-right value mapping, use Linear Gradient with Scale 1, Rotation 0 and Offset 0, 0.
The embedded shader's Blend Mode and Opacity do not affect Flow Lab's output. Use the shape's blend/opacity controls or edit individual gradient-stop alpha instead. For transparent color, retain the native gradient's Premultiply setting and use a transparent material/background and an export format with alpha.
The native gradient's other controls alter the color lookup, not the geometry of the flow. Its Screen Space setting does not provide a Screen Space switch for Flow Lab's field.
Default: Native Gradient Shader
Active when: Output is Color
Presets
Open the preset menu with the stars button in the Flow Lab Attribute Editor header. The bundle contains 31 presets:
| Group | Contents |
|---|---|
| 1 Evolving | Cellular Marble, Liquid Marble, Pool Caustics, Pool Reflections, Razor Currents, Ribbons, Slow Atmosphere, Value Billow |
| 2 Stretch & Fold | Dense Marble, Light Columns, Liquid Ribbons, Tidal Cells |
| 3 Classic | Bonfire, Cellular Veins, Gradient Silk, Graphic Bands, Liquid Marble |
| 4 Color | Arcade Siren, Aurora, Cosmic Pop, Electric Blue, Ink and Paper, Liquid Copper, Molten Lava, Neon Magenta, Rose Quartz, Scarlet, Sea Mist, Sizzurp, Solar Candy, 'Merica |
Motion presets change the field, Contrast, shader placement and Time Scale. They preserve Output, the gradient, Gamma, Loop settings, native layer transforms and Time/FPS wiring. Color presets change only Output and the native gradient, leaving motion, tone and timing intact.
For fire, combine 3 Classic - Bonfire with 4 Color - Molten Lava. For dense fluid detail, try 1 Evolving - Razor Currents with 4 Color - Electric Blue.
Output
Flow Lab uses floating-point shader output with no built-in 8-bit color quantization. Use Cavalry's 16-bit compositing and a 16-bit-capable format such as PNG when the output needs that precision.