mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7622] [MERGED] feat(avatars): make a 3D model from a sprite with Tripo for 3D Avatars #7843
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#7843
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/7622
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara
Base:
staging← Head:feat/tripo-3d-avatars📝 Commits (10+)
7564879feat(avatars): make a VRM model from a sprite through Tripo (server)5f29fbdfeat(avatars): Make 3D model in 3D Avatars setup, a Tripo connection, and framing from the model's top4df68c3Merge branch 'staging' into feat/tripo-3d-avatars44fbfe1test(avatars): e2e for Make 3D model and the Tripo connection; docs for Tripo8b25aecMerge remote-tracking branch 'origin/feat/tripo-3d-avatars' into feat/tripo-3d-avatars146fc70fix(avatars): keep the not-enough-credits line out of a template literal5a72361refactor(connections): hide the Tripo editor's address and model fields without re-indenting them560cea4fix(avatars): say so when the model stream closes before it's done66e0601fix(avatars): leave a model's textures alone when a view points past its binary chunk38405b2fix(avatars): resize a texture shared by two images once, at the larger size📊 Changes
39 files changed (+3517 additions, -183 deletions)
View changed files
📝
docs/agents/avatars.md(+28 -0)📝
docs/connections/providers-reference.md(+8 -0)➕
e2e/avatar-vrm-generation.e2e.ts(+401 -0)📝
packages/client/src/components/agents/AgentEditor.tsx(+4 -22)📝
packages/client/src/components/chat/ChatSummaryPanel.tsx(+2 -4)📝
packages/client/src/components/chat/StoryboardChatSettingsPanel.tsx(+2 -7)📝
packages/client/src/components/connections/ConnectionEditor.tsx(+38 -37)📝
packages/client/src/components/panels/ConnectionsPanel.tsx(+6 -9)📝
packages/client/src/components/panels/settings/TTSConfigCard.tsx(+2 -4)📝
packages/client/src/features/avatars/generation/AvatarGenerationPanel.tsx(+4 -11)📝
packages/client/src/features/avatars/generation/MeshAvatarSection.tsx(+1 -1)📝
packages/client/src/features/avatars/generation/SpritePicker.tsx(+9 -0)📝
packages/client/src/features/avatars/generation/use-avatar-generation.ts(+122 -1)➕
packages/client/src/features/avatars/renderers/vrm/VrmModelMaker.tsx(+325 -0)📝
packages/client/src/features/avatars/renderers/vrm/VrmSetupPanel.tsx(+30 -8)📝
packages/client/src/features/avatars/renderers/vrm/vrm-motion.ts(+13 -4)📝
packages/client/src/features/avatars/renderers/vrm/vrm-renderer.ts(+9 -1)📝
packages/client/src/lib/connection-filters.ts(+2 -7)📝
packages/client/src/localization/locales/en.json(+31 -0)📝
packages/server/src/db/schema/connections.ts(+1 -0)...and 19 more files
📄 Description
Linked issue
No linked issue: requested by the maintainer on 2026-10-14.
Why this change
What changed
Connections: a Tripo provider
https://developers.tripo3d.ai/en/keys).GET /account/balance). That call is free.https://openapi.tripo3d.ai/v3.isChatProvider()(NON_CHAT_PROVIDERSinpackages/shared/src/constants/providers.ts).createLLMProviderrefuses it.3D Avatars: Make 3D model
Server
POST /api/avatar-generation/vrm-modelstreams progress events, then the draft.GET /api/avatar-generation/vrm-model/balancereturns the credits and the cost.image-to-imagewitht_pose.image-to-modelwith the tested settings. It never sendsexport_orientation,compressorquad.rigwith Mixamo.Retry-Afteris honoured up to 4 times, then "try again in a minute".DEBUG_AGENTSlog each request's settings and every task id throughlogDebugOverride. The key and download-link signatures never appear in a log line or an error.packages/server/src/services/avatars/generation/glb-to-vrm.ts) is plain JavaScript. It changes only the glTF JSON, and the binary chunk is copied byte for byte:Choices worth checking
metallicFactor0). The avatar scene has no reflections, so metal draws almost black. Tripo's metal maps average 0.05–0.20, and the colour map already paints the look of metal. The roughness stays.https://developers.tripo3d.ai/en/terms, §5.2, updated July 11, 2025) say Tripo keeps the rights to what free users make, and paid users own their outputs. I couldn't confirm the CC BY 4.0 detail for the free plan in Tripo's own terms. The sprite's art may also belong to someone else. So the file claims only:avatarPermission: onlyAuthorcommercialUsage: personalNonProfitallowRedistribution: falsemodification: allowModification(change it, but don't share the changed model)creditNotation: requiredotherLicenseUrl: Tripo's terms, which setup links as "Read the author's terms"["Tripo AI"]and the name is the owner's.3D chat framing (all VRMs)
Reuse
preferredMeshSourceandisFullBodySpritepick the sprite.avatarSourceSprites(SpritePicker.tsx), so both panels use one filter.findAvatarSpriteFileanddecodeAvatarSourceSprite. This is identical to the split in #7623, so the two PRs merge cleanly there.Related PRs
kind: "vrm") andavatarCutout, and the Tripo docs now sit under the guide's section.Docs:
docs/agents/avatars.mdhas a new section, Make a 3D model with Tripo, and a pointer from 3D avatars: VRM models.docs/connections/providers-reference.mdhas a new Tripo section. Translations: #7624.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (results):
node ./scripts/run-regressions.mjs --filter scripts/regressions/avatar-vrm-generation.regression.ts: passed. It mocks Tripo. The converter part covers:vrmImporteraccepting the result as body onlyRetry-After, polling, timeout, Cancel and downloads (HTTPS only, never with the key)node ./scripts/run-regressions.mjs --filter scripts/regressions/avatar-: 14/14 passed. This includes the new framing cases inavatar-vrm.regression.ts. They fail on the old framing ("tall hair stays in view"); I checked that by putting the old code back temporarily.avatar-vrm-generation,avatar-setup,avatar-2d,avatar-preview): 57 passed. After the later commits,avatar-vrm-generationpassed again on all three projects (9 passed).agent-activation-questions,atlas-cloud-options,connection-model-switcher,decision-chat-connection,mari-thread-connectionandavatar-vrm-generation): all passed.pnpm localization:check: passed.pnpm check: passed (exit 0) on the final code.full_neutral(Maukie).vrm, titleMaukie, authorsTripo AI).coderabbit review --agent --committed), first pass:9f8d11463) merged while GitHub's CodeRabbit review was in progress. A separate local review of it had 0 findings.Manual verification notes
full_neutralsprite and press Make 3D model.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)docs/agents/avatars.mdanddocs/connections/providers-reference.mdchanged. The translation follow-up is #7624. No version or storage-format change: Tripo connections are rows in the existing connections table, and the model is stored like any imported VRM.UI evidence (if applicable)
The e2e saves screenshots of the draft, the error state, the saved body-only model and the Tripo connection editor (
vrm-model-*.png,tripo-connection.png), on desktop and on phones. I didn't upload them here, because public image uploads are blocked for this agent.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.