constants.module
README.md
constants
The single place the film's numbers live: the palette, the layout grid, the lens table, the two camera stations that must never drift apart, the fourteen shots, and the two moments several slices have to agree on to the tenth of a second.
Every slice reads it as K:
local K = require("demo.constants")
Nothing in the demo hardcodes one of these numbers twice. A value written down in two files is a value that will be changed in one of them.
Exports
| Name | What it is |
|---|---|
TITLE | The cutscene's name. cutscene.status().name is compared against it to tell this film from any other. |
DURATION | 100.0 s. film.module refuses to load if its camera moves no longer sum to it. |
C | The palette, as linear colour. Bone, red, yellow, violet, mildew, the eye glow, sodium, lightning. |
L | The layout grid: every room's extents, the ceiling hole, the proscenium, the two clerestory discs, the chandelier's rest and nose, and the envelope nothing may be authored outside. |
FOV | The three lenses: wide 72 (21 mm), base 62 (24 mm), long 24 (85 mm). |
STATION | The eye, look point and lens shot 6 and shot 14 share. To the millimetre, because that match cut is the film, and both shots read this rather than repeating it. |
IMPACT | 70.75, the film second the chandelier lands. The sound, the light drop, the plaster burst and the props slice's own landing check all read it. |
DRESSING | The dressing-room bulb run: how many, when the first dies, how long the run takes, and the order they go in. |
bulbDeath(i) | The second bulb i goes dark, from DRESSING. |
SHOTS | The fourteen shots: cumulative time, duration, beat, lens, camera path, look point, and what MOVES in it that is not the camera. Shot 8 also carries its 85 mm insert. |
shotAt(t) | The shot whose window holds t. |
shot(n) | A shot by number. |
The two things not to move
STATION. Shot 6 and shot 14 are the same frame of two different rooms, and
that is the whole film. Both read STATION, so they cannot drift apart; moving
it moves both, which is the only correct way to move it. It stands at
(0, 1.35, −16.0), in the ENTRY HALL, looking through the hall's doorway into the
ballroom, so the doorway is the frame the face is composed inside, and shot 3
has to stop well short of it.
The t column. It is cumulative and authoritative: the film's cues key off
it, and every slice's schedule is written against it. A shot re-timed here is a
shot re-timed everywhere, which is the point.