f_splitscreen — split the frame into up to four regions, one texture each
Captured 2026-11-27 from Matt's description. Status: ⚪ concept only. Nothing built, specced or run.
The idea
A compositing module that divides the frame with one or two dividing lines and shows a different texture in each region. The split positions are live params, so a split can be dragged, modulated by an LFO or animated.
- Rect mode: split on X, on Y, or on both. X and Y together make four rectangles, each with its own image.
- Radial / UV mode: the dividing line is set by an angle in degrees instead of being axis-aligned.
- Up to 4 texture inputs, one per region.
How it could work (a proposal, not a decision)
One cross-shaped partition covers both modes:
- A pivot point
(px, py)(the live split position) and two lines through it, at anglesa1anda2. - Rect is the special case
a1 = 0°,a2 = 90°: the pivot's x and y are the two split positions. - An
axesmenu (X / Y / XY) turns the second line off, so one line gives two regions and two lines give four. - Angle mode lets
a1anda2move. Both at once gives a rotated cross. Different angles give four unequal wedges, the radial case. - Region index per pixel is just which side of each line it falls on:
region = (side(line1)) + 2*(side(line2)). The same math works in both modes, so one pix codebox should cover it.
Region to input: A, B, C, D map to inlets in reading order (top-left, top-right, bottom-left, bottom-right in Rect mode). With one line, only A and B are used.
Params (draft)
| Param | Meaning |
|---|---|
mode | Rect, Angle or Ring (see Decisions) |
ring_r | Ring radius around the pivot (Ring mode) |
axes | X, Y or XY |
split_x, split_y | Pivot position, 0-1 (live; the main control) |
angle1, angle2 | Line angles in degrees (Angle mode) |
feather | Edge softness, 0 = hard cut |
gap | Divider line width, with a color, so the cut can be visible |
fit | Reveal or Fit (see below) |
Outlets (draft)
- Composite texture.
- Region mask, packed RGBA: R = A, G = B, B = C, A = D. This follows the f_ convention of a composite plus a mask, and lets a downstream module treat each region differently.
Decisions (Matt, 2026-11-27)
- Radial means both: wedges around a center (Angle mode) and a ring split (Ring mode, an inner disc and an outer ring around the pivot). Proposed way to reach four regions with a ring: ring boundary plus one angle line gives inner/outer x two sides. Not worked out yet.
- Reveal and Fit both stay, as a
fitmenu. Fit in Angle and Ring modes is still open (a wedge or ring has no natural rectangle; options: bounding box crop, or polar remap). - Name:
f_splitscreenaccepted. - Angle is aspect-corrected, measured on screen (not in UV), so 45° looks like 45° on any frame shape. No
spacemenu. The line math works in aspect-scaled coordinates.
Design axes worth deciding
- Reveal vs Fit. Reveal: every input is full-frame and the regions are windows onto them, like a wipe frozen in place. Fit: each image is remapped to fill its own region, a true multi-viewport. Fit is easy in Rect mode; in Angle mode a wedge has no natural rectangle, so Fit is probably Rect only (or crops to the wedge's bounding box).
- Angle space. Decided: aspect-corrected on screen (see Decisions).
- Missing inputs. An unconnected region could be black, or fall back to input A so the split reads as a split of one image. Black is the simpler default.
- Edges. Hard cuts alias on an angled line.
featherof at least one pixel (asmoothstepon the signed distance to each line) is probably required, not optional. - Pivot as a modulation target. Whether
split_x/split_yalso take a mod texture (for example luma-driven) touches gate P-mod-textures. A plain param, drivable byf_lfo, is enough for v1.
Overlap check
docs/f-reference/module-inventory.md(read this session): no module partitions the frame among several textures.f_ngonfolds the frame into a wedge, a kaleidoscope rather than a split.f_separateandf_vf_splitsplit a source into channels or plates, not the frame into regions.f_crossoversplits by spatial frequency. Nothing overlaps.docs/max-reference/jit_fx.md(offline read, not verified in Max): thetr.*transitions (tr.gridwipe,tr.shrinkwipe,tr.vignettes,tr.slide) take two textures and awipeposition. They are the closest, but cover two inputs, no angle and no packed mask; none gives four regions (inferred). Theco.*composites are per-channel blends, not spatial splits. No row injit_fx_vs_ideas.mdchanges.- Name:
f_vf_splitalready exists (it splits a vecfield into X and Y), so a baref_splitwould be confusing.f_splitscreenis a placeholder; the name is Matt's call.
Related
- A chain of existing modules can fake two regions with a mask and a crossfade, which is the workaround this module would replace.
ideas/circular_screen.md: on a circular surface, an angle-based split around the center is the natural form; a ring split (inner disc / outer ring) is a possible later extension. Not part of this capture.
Gates touched
Scanned .specify/gates.md: only P-mod-textures is related (item 5 above), and only if a mod texture is later wanted for the split position. No gate blocks this idea.
Open questions for Matt
See the reply that accompanied this note; also recorded here so they survive the chat:
- Q1. Answered: both wedges and ring.
- Q2. Answered: both Reveal and Fit; Fit for wedge/ring still open.
- Q3. Answered: aspect-corrected on screen, no
spacemenu. - Q4. Name: answered,
f_splitscreen.