TypologySienna Chen
MotionLightweight

Cinematic camera rails

The camera rides a path the author drew.

The camera travels along a path the author drew, like a dolly shot in a film. The viewer scrolls or clicks and the camera glides; they never take the wheel. Fast turns cause motion sickness.

Breaks when
motion sickness with fast rolls
Also called
camera path, CatmullRomCurve3, camera keyframes, dolly

Prompts

Dolly through the product on scroll
A CatmullRomCurve3 through 6 hand-placed points around a glTF, closed = false, tension 0.4; the camera position is curve.getPointAt(u) with u from scroll progress through a 0.12 s exponential damp, and it looks at a second, simpler curve of targets (3 points) at the same u. Roll stays zero. Draw the curve with a Line while a ?debug flag is set. Add a 5% ease-out at both ends so the shot settles.
Keyframed shots with Theatre.js
Set up Theatre.js with an R3F scene: a sheet with the camera position, target and fov as animated props, three shots keyframed in the studio UI, exported to a JSON state and played on load without the studio bundle. Explain the workflow from studio to production.
Camera rig with a look-ahead
A rail camera that looks slightly ahead along the path (target = curve.getPointAt(u + 0.03)) with a lateral offset that the pointer can nudge ±0.3 units, and a subtle handheld sway from 2D noise (amplitude 0.02, 0.3 Hz). Provide a “motion sickness safe” toggle that removes sway and caps angular velocity.

Related

Resources · 2

  • Theatre.jsGUI keyframes for R3F cameras.theatre_jssite · code · demoJun 28, 2026
  • camera-controlsOrbitControls with smooth transitions and fit-to-box.yomotsuGitHub · code · demoMay 3, 2026