Animate a first-person Three.js camera for motivated head turns, tabletop push-ins and precise landings. Use when the virtual camera drifts, floats or loses the action.
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: block-first-person-camera-motiondescription: Animate a first-person Three.js camera for motivated head turns, tabletop push-ins and precise landings. Use when the virtual camera drifts, floats or loses the action.
Block first-person camera motion
Pick a target on the actual prop and a starting viewpoint. For a technician leaning toward a work mat, store the probe tip in the instrument's local coordinates. Transform it into world space after the prop pose updates. A moving wrist makes a poor target if the character is looking at the chip beneath it.
Block the move
Place the eye, prop and hands at consistent physical scale. Frame the establishing position and the landing first. Use camera translation for a lean that should reveal parallax between a near glove and a far window. Use a field-of-view change for an optical zoom. Review near clipping at the closest position.
Key the gaze separately from the eye position. Try letting the eye turn toward the target a few frames before the torso follows. At a landing, keep the gaze on the destination through the settle. Add breathing or shoulder drift only after the unadorned move reads.
Evaluate the pose from frame time so a paused frame, a reverse seek and an export reach the same position. For a short self-contained push, try the following normalized curve. Use a curve with a nonzero endpoint velocity when the movement continues across a cut.
const t = THREE.MathUtils.clamp((frame - startFrame) / (endFrame - startFrame), 0, 1);
const travel = t * t * (3 - 2 * t);
camera.position.lerpVectors(startEye, endEye, travel); // world space, unparented camera
camera.lookAt(gazeWorld);
camera.updateMatrixWorld();
Judge the move from the eye
Watch once at delivery speed, then step through the fastest frames. Check the target's screen position, the direction nearby edges travel, and the amount of margin around the fingers. If the landing hunts, lock the last gaze target. If the camera seems to zoom through the hand, inspect the eye path and near plane before adjusting easing. Reduce roll when a small turn makes the horizon swing farther than the subject.
block-first-person-camera-motion by MengTo · The Skill Leaderboard