Skip to content

fix: raise the camera anchor so the head fits the frame - #1

Open
liuzl wants to merge 1 commit into
pocket-stack:mainfrom
liuzl:fix/head-framing
Open

fix: raise the camera anchor so the head fits the frame#1
liuzl wants to merge 1 commit into
pocket-stack:mainfrom
liuzl:fix/head-framing

Conversation

@liuzl

@liuzl liuzl commented Jul 22, 2026

Copy link
Copy Markdown

Problem

The widget clips the top of the character's hair at the window edge — visible in the repo's own reference shots (docs/pocket-character-idle.png) as well as live. The parity reference (docs/airi-vrm-stage.png) frames the full head with headroom, so this is a framing divergence from the airi stage the README declares parity with.

Geometry: the anchor sits at 0.72 of model height with a 40° vertical fov at 1 m — the cone tops out a few cm below the crown on AvatarSample_A.

Fix

Anchor 0.72 → 0.78: the whole head lands inside the frame with headroom, matching airi's framing. One constant, comment updated with the reasoning.

Verify

target/release/pocket-character --headless-shot shot.png --ticks 90

Before: crown cut by the top edge (same as the committed reference shots). After: full head visible with headroom, body coverage down to the hips retained.

🤖 Generated with Claude Code

airi frames the full head with headroom (docs/airi-vrm-stage.png), but at
anchor 0.72 the 40-degree cone at 1 m tops out below the crown — the hair
top is clipped by the window edge, visible in the committed reference
shots too. 0.78 keeps the whole head inside the frame on AvatarSample_A,
matching airi's framing.

Verify: target/release/pocket-character --headless-shot shot.png --ticks 90
(before: crown cut by the top edge; after: full head with headroom).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant