TechniquesNewFast rays through big meshes and many instances
Picking and line of sight that stay cheap when the scene is big.

The HaTac engine’s camera director, lifted whole and engine-free.
The HaTac engine’s camera director, lifted whole and engine-free: shots as recipes (eye, target, field of view, roll, a lens shift and the subject’s bounds) that frame their subject beside a column of text measured in screen heights, so a 16:9 screen and a 32:9 wall show the same composition and the wall shows more world either side; moves compiled on the show clock (a critically damped sweep, a ride along a centripetal Catmull–Rom rail walked by distance with speed profiles and look-ahead, a fly-over, a track that follows a recording’s own clock, push-in, orbit, crane, drift and cuts), random access for scrubbing, and live operator actions (hold, which stops the beat clock while the eye drifts; cue, which carries on from where it was; go, a new move from the displayed pose and velocity) with no jump in position or velocity. A preflight check traces the full-motion path against boxes, spheres and the ground; at run time the eye is lifted clear. A small standalone director hands you the camera-relative view-projection with its lens shift, last frame’s view-projection rebased onto this eye for temporal effects, and a cut flag for every cut, seek and jump. No three.js, no dependencies, no GPU needed to run it.
Measured 28 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 158, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged CPU 1.07–1.19 ms). What ran: The director alone, playing the 60-second show from its start: one frame of the compiled cue list (sweep, ride, fly-over, track, crane) with the collision clamp against 13 solids and the ground, the rebased previous view-projection, and the plan drawn in Canvas 2D (contours cached). Phones: tiers are being measured next.
Frames run on a 60 Hz timer (a page demo), so most frames take about one tick, 16.7 ms: the spread around it is what matters.
install("shot-director")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it upcut (TAA, motion blur, ambient occlusion, clouds): it is true on cuts, on seeks, on a jump back in time and on the first frame.From HaTac. Adapted from published work, named below.
Hannes Andersson: The HaTac engine’s camera director, its recipe kinds, decisions, tests and measurements; the library’s standalone director and demo.
Edwin Catmull & Raphael Rom, A class of local interpolating splines (1974): The spline the rails run through their control points (camera/path.ts).
Cem Yuksel, Scott Schaefer & John Keyser, Parameterization and applications of Catmull–Rom curves (2011): The centripetal parameterisation (alpha 0.5) and Barry and Goldman’s pyramidal evaluation, in camera/path.ts.
Timothy L. Kay & James T. Kajiya, Ray tracing complex scenes (SIGGRAPH 1986): The slab test camera/collision.ts traces each chord of the path against a box with.