Log inGet started
Package

PropsStage.component

Newest version

README.md

PropsStage

Shot 9: the red curtain inhaling flat against the arch and releasing, the animatronic band twitching awake behind it, and the drum head thumping in time with the cloth. One instance, on P_Stage.

The curtain is a runtime mesh

No scene record can hold a cloth that changes every frame, so the component builds the geometry with renderer.mesh.create and puts the Model on P_Curtain itself. The surface is stage.curtainPoint(u, v, suck, t) — a pure function shared with the build, so neither side has to hold the other's state — lofted over cols x rows from demo.props.stage, which is where the cloth's tessellation is written once.

Normals come from two finite differences of the same function rather than from the triangles, so the folds shade smoothly at any tessellation.

Re-lofted on the film's frame grid

reloftHz quantises the re-loft to 24 a second. At 24 it is a cloth; at 120 it is the same cloth and four times the GPU upload — and quantising on the FILM clock rather than the engine's is what makes two takes the same cloth.

The two inhales

public:begin() marks the shot. breathA and breathB seconds later the sheet is drawn flat over drawIn, held for hold, and released over release. public:flatness() reads how flat it is right now: 0 through the shot's opening, about 0.89 at the first peak and 1.0 at the second.

The band

Three automatons on stepped joints — stepped() snaps between held poses at a rate that climbs as wake ramps, which is machinery waking rather than a creature moving. The drum head takes the curtain's own suck plus a pulse under it, so the thump and the inhale are the same beat.

Methods on the ref

begin, reset, flatness.