mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8481] [MERGED] feat(avatars): support PMX models and VMD motions #8628
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8628
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8481
Author: @SpicyMarinara
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/8473-mmd-pmx-avatars📝 Commits (10+)
e6196bbtest(avatars): reproduce missing PMX and VMD imports4398681feat(avatars): import and animate MMD PMX avatars34c86b7fix(avatars): bound MMD setup and keep its clock on demandb033145fix(avatars): protect MMD data from incompatible downgrades1ef9d02test(avatars): exercise PMX and VRM production chunks116fcdatest(avatars): isolate production MMD fixtures from service workers2edf709fix(storage): refuse unidentified shard downgrades before writesddcb3d3Merge remote-tracking branch 'origin/staging' into feat/8473-mmd-pmx-avatars8b3ba7dtest(avatars): change themes through canonical UI controlsd11599dfix(avatars): repair MMD blinking, shared draws and Finder ZIPs📊 Changes
37 files changed (+3414 additions, -167 deletions)
View changed files
📝
docs/TROUBLESHOOTING.md(+3 -1)📝
docs/UPGRADING.md(+4 -2)📝
docs/agents/avatars.md(+14 -2)➕
e2e/avatar-mmd.e2e.ts(+621 -0)📝
e2e/avatar-vrm.e2e.ts(+1 -1)📝
e2e/server-csp-fixture.ts(+11 -2)📝
packages/client/package.json(+2 -0)📝
packages/client/src/components/chat/AvatarLayoutSettings.tsx(+1 -1)📝
packages/client/src/features/avatars/contract.ts(+2 -0)➕
packages/client/src/features/avatars/renderers/mmd/MmdSetupPanel.tsx(+143 -0)➕
packages/client/src/features/avatars/renderers/mmd/mmd-renderer.ts(+468 -0)📝
packages/client/src/features/avatars/renderers/vrm/VrmSetupPanel.tsx(+10 -126)📝
packages/client/src/features/avatars/setup/AvatarAgentSetup.tsx(+1 -0)📝
packages/client/src/features/avatars/setup/AvatarSetupPreview.tsx(+1 -1)➕
packages/client/src/features/avatars/setup/ModelSetupControls.tsx(+133 -0)📝
packages/client/src/features/avatars/stage/AvatarStage.tsx(+1 -1)📝
packages/client/src/localization/locales/en.json(+22 -0)📝
packages/client/vite.config.ts(+21 -4)📝
packages/server/package.json(+1 -0)📝
packages/server/src/db/file-backed-store.ts(+3 -1)...and 17 more files
📄 Description
Linked issue
Closes #8473
Why this change
3D Avatars previously accepted VRM only. MMD users need to import a PMX model with local textures, map its expressions, and optionally play a compatible VMD motion without an AI service.
What changed
PMX 2.0 and compatible 2.1 files using 2.0 records are supported. QDEF, flip/impulse morphs, new 2.1 joint types and soft bodies are rejected. Physics, PMD, VPD and camera/light animation are outside this implementation. WebGL2 is required. Setup offers at most 256 morph names; texture tables allow 256 references of up to 512 characters. Import bytes, decoded textures, morph allocations and IK work are bounded.
Validation
Repair head:
d11599dc76b94aca71bd1e2772917e63de1ebbd9, including staging1403a981. Local repair gates are complete; final-head hosted checks and Dottore re-examination remain merge gates.pnpm checkandpnpm version:checkpass on the frozen repair. Both MMD regression files, avatar contract/stage/VRM/models/file-deletion, message-sharding and launcher-format suites pass (nine files). The full check ran on the frozen source and began before the commit; its client configured the previous build stamp. A subsequent supportedpnpm build:clientat committedd11599dcpassed. Actual served client/API stamps and both renderer HTTP hashes were then verified before the final replay. No app version bump.8b3ba7de(blink latching and Finder metadata); both were reproduced and repaired. Its viewport open question also reproduced with a fixed-frame before/after pixel mask. The substantive five-file repair review completed with zero findings; final-head hosted re-examination is pending.Final repair receipts:
/tmp/engine-8481-dottore-repairs-final-proof.json,/tmp/engine-8481-matched-compiled-build-proof.json,/tmp/engine-8481-dottore-repairs-coderabbit.log; compiled logs/results use/tmp/engine-8481-matched-final-{desktop,mobile-chromium,mobile-webkit}. Final phone persona-light and desktop persona-dark screenshots were visually inspected. Earlier local/storage/row proofs remain historical in/tmp/engine-8473-{final-local-proof,post-review-local-proof,staging-integration-invariant}.json. Raw failure recordings remain preserved, including verified lossless archives with per-file hashes.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.