Skip to content

Commit e89f576

Browse files
committed
feat(L1): wire 6 Mixamo mocap clips; gitignore FBX binaries; opt-in moves via clip directive
Clips sourced from Mixamo, kept out of the repo (loaded from public/clips, gitignored for storage/CDN). Mapped walk/squat/bicycle-crunch/jab-cross/jumping-jacks/shuffling in the playground; squat/jumping-jacks/jab-cross/bicycle-crunch opt in with clip "<name>". Verified: squat plays the retargeted Back Squat clip (clipActive=true), no console errors.
1 parent b634ba1 commit e89f576

6 files changed

Lines changed: 21 additions & 1 deletion

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ coverage/
66
.vite/
77
.vercel
88
.claude/worktrees/
9+
10+
# Mocap clip binaries: sourced from Mixamo, loaded from storage/CDN, not committed.
11+
playground/public/clips/*.fbx
12+
playground/public/clips/*.glb
13+
playground/public/clips/.DS_Store

playground/src/main.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,18 @@ void import("posecode-render").then(({ createViewer }) => {
548548
// clips.ts). Only fetched when a loaded movement names the clip, so this
549549
// never slows the default page. Disabled with the classic figure, which has
550550
// no skinned mesh to retarget onto.
551-
...(classicFigure ? {} : { clips: { walk: "/clips/walk.fbx" } }),
551+
...(classicFigure
552+
? {}
553+
: {
554+
clips: {
555+
walk: "/clips/walk.fbx",
556+
squat: "/clips/back-squat.fbx",
557+
"bicycle-crunch": "/clips/bicycle-crunch.fbx",
558+
"jab-cross": "/clips/jab-cross.fbx",
559+
"jumping-jacks": "/clips/jumping-jacks.fbx",
560+
shuffling: "/clips/shuffling.fbx",
561+
},
562+
}),
552563
});
553564
// Exposed for capture/e2e tooling (frame capture drives README GIFs).
554565
(window as unknown as Record<string, unknown>).__posecodeViewer = viewer;

spec/examples/bicycle-crunch.posecode

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
posecode exercise "Bicycle crunch"
22
rig humanoid
3+
clip "bicycle-crunch"
34
pose start = supine
45

56
step "Set" 0.8s ease-in-out:

spec/examples/jab-cross.posecode

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
posecode exercise "Jab-cross"
22
rig humanoid
3+
clip "jab-cross"
34
pose start = standing
45

56
step "Jab" 0.4s ease-out:

spec/examples/jumping-jacks.posecode

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
posecode exercise "Jumping jacks"
22
rig humanoid
3+
clip "jumping-jacks"
34
pose start = standing
45

56
step "Out" 0.5s ease-out:

spec/examples/squat.posecode

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
posecode exercise "Body-weight squat"
22
rig humanoid
3+
clip "squat"
34
pose start = standing
45

56
step "Descend" 1.6s settle:

0 commit comments

Comments
 (0)