threejs-camera-direction
Installation
SKILL.md
Camera Direction
Treat the camera as an authored visual system, not a passive viewport. Compose the subject, establish scale, choose a stable up frame, and make every mode handoff explicit.
Build order
- Define the design frame: subject size, screen occupancy, lens, near/far, motion, and horizon/up convention.
- Build camera targets in semantic frames: ship, body surface, docking axis, or scene-authored shot.
- Derive position and orientation independently, then combine them once.
- Add input orbit/look only inside declared yaw/pitch and spatial constraints.
- Add frame-rate-independent follow or a bounded spring where the reference uses inertia.
- Snapshot and restore camera projection/state when a scene owns it.
- Test mode transitions, cuts, pointer-lock reacquisition, resize, and large coordinates.