← f_ notebook · ideas/f_splitscreen.md

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 angles a1 and a2.
  • Rect is the special case a1 = 0°, a2 = 90°: the pivot's x and y are the two split positions.
  • An axes menu (X / Y / XY) turns the second line off, so one line gives two regions and two lines give four.
  • Angle mode lets a1 and a2 move. 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) ​

ParamMeaning
modeRect, Angle or Ring (see Decisions)
ring_rRing radius around the pivot (Ring mode)
axesX, Y or XY
split_x, split_yPivot position, 0-1 (live; the main control)
angle1, angle2Line angles in degrees (Angle mode)
featherEdge softness, 0 = hard cut
gapDivider line width, with a color, so the cut can be visible
fitReveal or Fit (see below)

Outlets (draft) ​

  1. Composite texture.
  2. 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 fit menu. 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_splitscreen accepted.
  • Angle is aspect-corrected, measured on screen (not in UV), so 45° looks like 45° on any frame shape. No space menu. The line math works in aspect-scaled coordinates.

Design axes worth deciding ​

  1. 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).
  2. Angle space. Decided: aspect-corrected on screen (see Decisions).
  3. 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.
  4. Edges. Hard cuts alias on an angled line. feather of at least one pixel (a smoothstep on the signed distance to each line) is probably required, not optional.
  5. Pivot as a modulation target. Whether split_x / split_y also take a mod texture (for example luma-driven) touches gate P-mod-textures. A plain param, drivable by f_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_ngon folds the frame into a wedge, a kaleidoscope rather than a split. f_separate and f_vf_split split a source into channels or plates, not the frame into regions. f_crossover splits by spatial frequency. Nothing overlaps.
  • docs/max-reference/jit_fx.md (offline read, not verified in Max): the tr.* transitions (tr.gridwipe, tr.shrinkwipe, tr.vignettes, tr.slide) take two textures and a wipe position. They are the closest, but cover two inputs, no angle and no packed mask; none gives four regions (inferred). The co.* composites are per-channel blends, not spatial splits. No row in jit_fx_vs_ideas.md changes.
  • Name: f_vf_split already exists (it splits a vecfield into X and Y), so a bare f_split would be confusing. f_splitscreen is a placeholder; the name is Matt's call.
  • 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 space menu.
  • Q4. Name: answered, f_splitscreen.