home/ modules/ mapping-and-sequencing-with-vpt

Mapping and sequencing a show in VPT

  • learner can get media onto mapped layers through VPT's source-activate-then-assign workflow across its three windows
  • learner can mask, mix and transform layers and drive parameters with LFOs and audio triggers
  • learner can snapshot state as presets and sequence a whole show with the cuelist and OSC

Build and run a complete VPT show for a mapped surface: configure prefs.txt startup, activate sources onto masked layers, add an LFO and a SoundTrigger-driven audio-reactive parameter, save a preset sequence, and script a cuelist that advances the piece — verifying OSC loopreport sync to an external tool.

This module turns projection-mapping skill into a runnable show. The setting is a real gig: a sculptural surface or architectural facade, one projector on an extended display, an audio set playing alongside, and you as the sole operator — or no operator at all, for an installation that must boot into its opening state from prefs.txt and run unattended. VPT is the free workhorse for exactly this rig, and the whole task is to take it from empty project to a self-advancing, audio-reactive piece.

The arc starts supported. First you internalise the geography — which of the three windows edits, previews, and feeds the projector — and drill the two-step activate-then-assign move until routing any clip to any layer is reflexive. Next you shape the picture: draw a polygon mask in the mask editor, crop and reposition textures with tile and zoom, and pre-composite two feeds with the mix module. Then motion is delegated: the router’s controller-number mapping is the hinge that lets an LFO breathe a parameter and the SoundTrigger app push audio level into the visuals. Only then do you leave manual control behind — snapshot looks as state presets, and script the cuelist’s one-letter commands so fades, delays, and loops carry the piece on their own.

The required atoms are exactly what the capstone gates on: you cannot script the show without the cuelist grammar, address anything over OSC without the hierarchical path scheme, or verify external sync without loopreport events. Supporting atoms widen the rig — live camera capture, Video Trigger motion zones, Syphon/Spout hand-offs, Arduino serial bridges, and craft principles like solid-resolution mask quality — enrichments you will reach for on later shows, not prerequisites for this one.

Runnable examples

Generated from the context/ instrument corpus by concept (redistributable idioms only). Do not edit — regenerate with gen-module-examples.mjs.

oscillation

let y = height/2 + sin(frameCount * 0.05) * 100

p5live-0004 · CC0-1.0

float rings = abs(sin(length(uv)*20.0 - u_time*2.0));

glsl-0039 · public-domain

solid-fill

[0.1, 0.1, 0.2] >> rgb

punctual-0017 · CC0-1.0

solid(0.1, 0.1, 0.2).out()

hydra-0171 · MIT

Atoms in this module

Required — these gate the capstone

VPT splits into interface, preview and output windows, and only the output goes on the projector
Concept L2 First instrument I
Getting media onto a VPT layer takes two steps: activate a source, then select it in the layer's source menu
Procedure L2 First instrument I
A layer mask is drawn as a polygon in VPT's mask editor and saved as a black-and-white PNG
Procedure L2 First instrument I
VPT's mix module composites two sources with a blend mode before the result feeds a layer
Concept L3 Craft I
Tile and zoom crop and reposition a layer's texture without altering the source or the layer shape
Concept L2 First instrument I
VPT's built-in LFOs automate any routed parameter with sine, ramp, triangle or square waves
Concept L3 Craft IJ
VPT's SoundTrigger app maps left/right audio channels to VPT controllers for audio-reactive visuals
Fact L3 Craft IJ
VPT's router maps a numbered controller to any parameter via rows keyed by controller number
Concept L3 Craft IJ
A VPT preset stores the whole live state of layers and sources, not a rendered image
Concept L2 First instrument I
VPT's cuelist is a text script of one-letter commands that sequences presets and parameters
Concept L3 Craft IM
VPT's prefs.txt text file sets startup behaviour: framerate, screens, source bank and autostart
Fact L2 First instrument I
VPT emits OSC loopreport and cliptime events so external tools can sync to video progress
Fact L3 Craft IJ
OSC targets parameters with a left-to-right hierarchical address path plus a value
Concept L2 First instrument IJ

Supporting — enrichment, not gating

VPT 8 uses an FFmpeg video engine so it plays virtually any codec without transcoding
Concept L2 First instrument I
Inverting a mask on a black solid top layer turns it into a cutout window onto lower layers
Procedure L3 Craft I
Adding a layer forces you to re-save older presets, since they have no data for the new layer
Principle L2 First instrument I
VPT exposes its full parameter set as typed OSC commands across sources, layers, presets and control
Fact L3 Craft I
VPT's live inputs bring a connected camera in as a source and can record it into a source folder
Procedure L2 First instrument I
VPT's Video Trigger detects motion in camera zones by background subtraction to fire events
Concept L3 Craft IJ
Video feedback — pointing a camera at its own monitor output — generates complex self-similar dynamic imagery that responds to small parameter changes
Concept L2 First instrument IB
A VPT playlist auto-crossfades through a clip sequence, requiring each clip to outlast twice the crossfade
Concept L2 First instrument I
Restarting several clips together in VPT needs per-source trigger buttons or a shared router controller
Procedure L3 Craft I
Source presets store media state separately from VPT presets, so mapping and content recall independently
Concept L3 Craft I
VPT exchanges sensor and actuator data with Arduino over serial using an id-plus-value format
Procedure L3 Craft I
A solid source's resolution sets mask edge quality: higher resolution gives smoother edges
Principle L2 First instrument I
Syphon (Mac) and Spout (Windows) share live video streams between apps as VPT sources or outputs
Concept L2 First instrument IH