[PR #7620] [MERGED] feat(avatars): add a Get a 3D model guide and prompt to 3D Avatars #7840

Closed
opened 2026-10-24 04:08:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/7620
Author: @SpicyMarinara
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feat/3d-avatar-model-guide


📝 Commits (8)

  • aba974d feat(avatars): add a "Get a 3D model" guide and prompt to 3D Avatars
  • 6873abb Merge remote-tracking branch 'origin/staging' into feat/3d-avatar-model-guide
  • 8a7a1d0 docs(avatars): name the look's sources plainly and fit the help text to personas
  • 8ab6679 fix(avatars): drop other macros from the copied 3D model prompt
  • a5871a3 fix(avatars): skip a blank appearance in the 3D model prompt and note VRoid item terms
  • 32967fb Merge branch 'staging' into feat/3d-avatar-model-guide
  • 6db7e4f Merge branch 'staging' into feat/3d-avatar-model-guide
  • 3b8964b Merge branch 'staging' into feat/3d-avatar-model-guide

📊 Changes

5 files changed (+293 additions, -17 deletions)

View changed files

📝 docs/agents/avatars.md (+16 -0)
📝 e2e/avatar-setup.e2e.ts (+143 -3)
📝 packages/client/src/features/avatars/renderers/vrm/VrmSetupPanel.tsx (+60 -14)
➕ packages/client/src/features/avatars/renderers/vrm/vrm-model-prompt.ts (+68 -0)
📝 packages/client/src/localization/locales/en.json (+6 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No linked issue: requested by the maintainer on 2026-10-14.

Why this change

  • The 3D Avatars page asks for a .vrm file, but people who don't have one get no help making one. The maintainer asked for a guide plus a ready-to-paste prompt, next to the VRM import. A one-click Tripo option will come in a separate PR.
  • Before recommending a tool, I checked which ones really give a VRM whose face moves (expressions and lip sync). Only VRoid Studio could be confirmed, so the guide recommends only VRoid Studio.

What changed

  • 3D Avatars page: a new Get a 3D model box sits under VRM model, both before and after a model is imported. It has one sentence and two buttons:
    • Read the guide opens the in-app docs at the new section.
    • Copy prompt copies a short English prompt and shows the usual toast.
  • The prompt includes only the owner's name and look:
    • The look comes from the Image Appearance Override tags when they're on, otherwise the appearance, otherwise the description. This is the same order the server's avatar generation uses. A field with only spaces counts as empty, so a blank appearance falls back to the description.
    • {{char}} (or {{user}} for a persona) is replaced with the name. Any other macro, such as {{user}} in a character's look, is dropped, because it means nothing to an outside tool.
    • It asks for a full-body anime-style 3D character in a T-pose, front view, neutral face, plain white background, and asks to show hair, eye colour, body type, outfit colours and accessories clearly.
    • It never includes other card fields or chat text.
    • Characters and personas have no separate outfit field. The outfit in the tracker is chat state, so it is left out on purpose. The outfit comes in only when the appearance text describes it.
  • Docs: a new section, docs/agents/avatars.md → Get a 3D model:
    • step by step: VRoid Studio, then export VRM (1.0 or 0.0; the importer takes both), then Import VRM
    • a note that a few VRoid Studio built-in items and any bought textures have their own terms (VRoid Studio Guidelines)
    • what the prompt is for
    • what moves
    • It doesn't describe Tripo, which doesn't exist yet. It doesn't name the AI websites that claim this, because their claims couldn't be confirmed.
  • Code: the prompt builder is in vrm-model-prompt.ts. The box is a small GetModelSection in VrmSetupPanel.tsx, and its button row is where a "Make with Tripo" button can go later.

Tool check (2026-10-14)

Tool Result Evidence
VRoid Studio (pixiv) Recommended. Free; Windows, macOS, iPad; "Models you create on VRoid Studio are yours to use freely"; every model exports as VRM. vroid.com/en/studio, read 2026-10-14. Two real VRoid Studio exports, both VRM 0.x: 1.29.4 (vrm.json) and VRoid Hub's AvatarSample_B, 1.26.0. Both carry Neutral, A/I/U/E/O, Blink, Angry/Fun/Joy/Sorrow and a custom Surprised, each with a bind. I ran the Engine's own vrmImporter.validate + buildVrmImport on AvatarSample_B: all 12 slots bound (11 from VRM presets, Surprised by name), with no warnings.
Neural4D AnimeArt Not recommended or named. Vendor pages contradict each other. The feature page says VRM 0.x with "52 facial blendshapes", but also that one expression is "baked into your VRM model". The how-to says it's Pro-only, while the blog mentions free credits. I found no independent test. (feature page, how-to, read 2026-10-14)
Virmii, MetaPerson/VTubeMe, Sideload Not recommended. From the earlier research: Virmii drops expressions from downloads, MetaPerson and VTubeMe work from photos, and Sideload is paid in crypto.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Commands run by the agent (results as reported; boxes above are left for the human reviewer):

  • New e2e 3D Avatars links the 3D model guide and copies a prompt with the owner's name and look only (e2e/avatar-setup.e2e.ts):
    • Before the change: failed on desktop-chromium. The "Get a 3D model" section was not found.
    • After: passed on desktop-chromium, mobile-chromium and mobile-webkit.
    • What it checks: the section shows on the 3D Avatars page, and Read the guide loads agents/avatars.md and scrolls the Get a 3D model heading into view. Copy prompt copies a prompt with the character's name and appearance. A persona with a blank appearance falls back to its description. A persona with Image Appearance Override on gets the override text instead of its appearance. Neither prompt has leftover {{ macros, including a {{user}} in the character's look and a {{char}} in the persona's, and neither has any of the description, personality, scenario, greeting or chat text.
  • playwright test e2e/avatar-setup.e2e.ts e2e/avatar-2d.e2e.ts, all three projects: 42 passed before merging staging. After the merge and the copy fixes, I reran only the new test and the existing VRM panel test, on all three projects: 6 passed.
  • pnpm localization:check: passed.
  • pnpm check: passed, before and after merging staging.
  • Local CodeRabbit, coderabbit review --agent --committed --base-commit $(git merge-base HEAD origin/staging):
    • First run: 2 minor copy findings, both valid and both fixed. The docs used the internal term "image appearance override", so they now name the visible Appearance and Image Appearance Override fields. The help text said "this character" for personas too, and implied the prompt goes into VRoid Studio; it now says the prompt is for making a picture to work from.
    • Rerun: 0 findings.
  • Follow-up review fix: a {{user}} (or any macro other than the owner's own) in the look was pasted as written. It is now dropped. The e2e fixtures gained a {{user}} in the character's look and a {{char}} in the persona's description:
    • Before the fix: the new test failed on desktop-chromium (Look: … She keeps the scarf {{user}} gave her.).
    • After: e2e/avatar-setup.e2e.ts passed on all three projects (12 passed). pnpm check and pnpm localization:check passed.
  • GitHub CodeRabbit review, 3 threads, all fixed, replied to and resolved:
    • A persona appearance of only spaces won over the description, so the prompt had no look. Each field is now trimmed before the fallback. Before the fix, the e2e (persona with appearance: " ") failed on desktop-chromium because the look line was missing; after the fix it passes.
    • The test now covers Image Appearance Override with a second persona that has the override on.
    • The guide now says that a few VRoid Studio built-in items and any bought textures have their own terms.
    • After these fixes: e2e/avatar-setup.e2e.ts + e2e/avatar-2d.e2e.ts, all three projects, 45 passed. pnpm check and pnpm localization:check passed.
    • Local CodeRabbit rerun: 1 trivial finding, not applied. It asked to split the What the prompt is for paragraph and to say "character" instead of "card". The paragraph is already four short sentences, and "no appearance" already covers a blank one. "Card" is the word the app and other guides use, for example "character card" in docs/characters/bot-browser.md.

For the maintainer to decide

  • The older Make your own model → VRoid Studio steps and the A 3D model table row in docs/agents/avatars.md cover part of the new Get a 3D model section, and one step is repeated word for word. They were left unchanged. Options: link them to #get-a-3d-model, or remove the older steps.
  • VRoid Studio has no box for a prompt, so the guide uses Copy prompt for making an optional picture to work from. The prompt will be more useful once the Tripo option exists.

Manual verification notes

  • Manually verify in the browser: open Agents → 3D Avatars, pick a character with no VRM. The Get a 3D model box shows under VRM model, with Read the guide and Copy prompt.
  • Manually verify that Copy prompt puts a prompt on the real clipboard (not the test stub) with the character's name and appearance, and shows "Prompt copied." Try a persona too.
  • Manually verify that with Image Appearance Override on and filled in for a character (the e2e covers only a persona), the prompt uses those tags instead of the appearance.
  • Manually verify that Read the guide opens the docs on the Get a 3D model section, on desktop and on a phone.
  • Manually verify that the box still shows after a VRM is imported, between the model box and Faces and mouth shapes.
  • Manually verify the box in light mode and dark mode.
  • Optionally, run the guide end to end: make a model in VRoid Studio, export it as VRM 1.0, and import it. Check that the faces, mouth shapes and blink are all filled in. Only VRM 0.x VRoid exports were checked here.

Docs and release impact

  • No docs changes needed

  • Updated docs (README / CONTRIBUTING / android/README) as needed

  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)

  • Version/release files updated (only if this PR includes a version bump)

  • New section Get a 3D model in docs/agents/avatars.md. Translation follow-up: #7621.

  • No CHANGELOG or version changes.

UI evidence (if applicable)

  • The new e2e test saves a screenshot of the section (avatar-3d-model-guide.png) for each project in its output folder.
  • The box reuses the VRM panel's own section and button styles and theme tokens; there are no new colours.

Summary by CodeRabbit

  • New Features
    • Added a “Get a 3D model” section to avatar setup, with a guide link and an option to copy an appearance prompt for characters and personas.
    • Added guidance on creating and importing a VRM model, including how facial animation depends on the model’s expressions.
    • Added confirmation and error messages when copying a prompt.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/7620 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feat/3d-avatar-model-guide` --- ### 📝 Commits (8) - [`aba974d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aba974dbfdb142cb85c5f82887ff2e25052a55d3) feat(avatars): add a "Get a 3D model" guide and prompt to 3D Avatars - [`6873abb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6873abba500b4bd8bc972be2b9a1f048a70e30cd) Merge remote-tracking branch 'origin/staging' into feat/3d-avatar-model-guide - [`8a7a1d0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8a7a1d056cca15d6b114bca813f050d0872cf21b) docs(avatars): name the look's sources plainly and fit the help text to personas - [`8ab6679`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8ab66790ed19439c8e3041737572b6f47c8c47d5) fix(avatars): drop other macros from the copied 3D model prompt - [`a5871a3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a5871a38af8ecd5300c18771ceee395ff804193b) fix(avatars): skip a blank appearance in the 3D model prompt and note VRoid item terms - [`32967fb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/32967fbc88e62a7a7508fd74e9e223115c8209cb) Merge branch 'staging' into feat/3d-avatar-model-guide - [`6db7e4f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6db7e4fb6b0eb3217cc39a41cf163119a11ae3e5) Merge branch 'staging' into feat/3d-avatar-model-guide - [`3b8964b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3b8964b03268160fbaadf420749e2ff563ac5ac9) Merge branch 'staging' into feat/3d-avatar-model-guide ### 📊 Changes **5 files changed** (+293 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `docs/agents/avatars.md` (+16 -0) 📝 `e2e/avatar-setup.e2e.ts` (+143 -3) 📝 `packages/client/src/features/avatars/renderers/vrm/VrmSetupPanel.tsx` (+60 -14) ➕ `packages/client/src/features/avatars/renderers/vrm/vrm-model-prompt.ts` (+68 -0) 📝 `packages/client/src/localization/locales/en.json` (+6 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue No linked issue: requested by the maintainer on 2026-10-14. ## Why this change - The 3D Avatars page asks for a `.vrm` file, but people who don't have one get no help making one. The maintainer asked for a guide plus a ready-to-paste prompt, next to the VRM import. A one-click Tripo option will come in a separate PR. - Before recommending a tool, I checked which ones really give a VRM whose face moves (expressions and lip sync). Only VRoid Studio could be confirmed, so the guide recommends only VRoid Studio. ## What changed - **3D Avatars page:** a new **Get a 3D model** box sits under **VRM model**, both before and after a model is imported. It has one sentence and two buttons: - **Read the guide** opens the in-app docs at the new section. - **Copy prompt** copies a short English prompt and shows the usual toast. - **The prompt** includes only the owner's name and look: - The look comes from the Image Appearance Override tags when they're on, otherwise the appearance, otherwise the description. This is the same order the server's avatar generation uses. A field with only spaces counts as empty, so a blank appearance falls back to the description. - `{{char}}` (or `{{user}}` for a persona) is replaced with the name. Any other macro, such as `{{user}}` in a character's look, is dropped, because it means nothing to an outside tool. - It asks for a full-body anime-style 3D character in a T-pose, front view, neutral face, plain white background, and asks to show hair, eye colour, body type, outfit colours and accessories clearly. - It never includes other card fields or chat text. - Characters and personas have no separate outfit field. The outfit in the tracker is chat state, so it is left out on purpose. The outfit comes in only when the appearance text describes it. - **Docs:** a new section, `docs/agents/avatars.md` → **Get a 3D model**: - step by step: VRoid Studio, then export VRM (1.0 or 0.0; the importer takes both), then **Import VRM** - a note that a few VRoid Studio built-in items and any bought textures have their own terms ([VRoid Studio Guidelines](https://vroid.com/en/studio/guidelines)) - what the prompt is for - what moves - It doesn't describe Tripo, which doesn't exist yet. It doesn't name the AI websites that claim this, because their claims couldn't be confirmed. - **Code:** the prompt builder is in `vrm-model-prompt.ts`. The box is a small `GetModelSection` in `VrmSetupPanel.tsx`, and its button row is where a "Make with Tripo" button can go later. ### Tool check (2026-10-14) | Tool | Result | Evidence | | --- | --- | --- | | **VRoid Studio** (pixiv) | **Recommended.** Free; Windows, macOS, iPad; "Models you create on VRoid Studio are yours to use freely"; every model exports as VRM. | [vroid.com/en/studio](https://vroid.com/en/studio), read 2026-10-14. Two real VRoid Studio exports, both VRM 0.x: [1.29.4 (`vrm.json`)](https://github.com/amateurK/3D-Base/blob/main/TestGame/resource/testData/vrm.json) and VRoid Hub's AvatarSample_B, 1.26.0. Both carry Neutral, A/I/U/E/O, Blink, Angry/Fun/Joy/Sorrow and a custom Surprised, each with a bind. I ran the Engine's own `vrmImporter.validate` + `buildVrmImport` on AvatarSample_B: all 12 slots bound (11 from VRM presets, Surprised by name), with no warnings. | | Neural4D AnimeArt | **Not recommended or named.** | Vendor pages contradict each other. The feature page says VRM 0.x with "52 facial blendshapes", but also that one expression is "baked into your VRM model". The how-to says it's Pro-only, while the blog mentions free credits. I found no independent test. ([feature page](https://www.neural4d.com/features/animeart), [how-to](https://www.neural4d.com/how-tos/how-to-use-animeart), read 2026-10-14) | | Virmii, MetaPerson/VTubeMe, Sideload | Not recommended. | From the earlier research: Virmii drops expressions from downloads, MetaPerson and VTubeMe work from photos, and Sideload is paid in crypto. | ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Commands run by the agent (results as reported; boxes above are left for the human reviewer): - New e2e `3D Avatars links the 3D model guide and copies a prompt with the owner's name and look only` (`e2e/avatar-setup.e2e.ts`): - **Before the change:** failed on desktop-chromium. The "Get a 3D model" section was not found. - **After:** passed on desktop-chromium, mobile-chromium and mobile-webkit. - **What it checks:** the section shows on the 3D Avatars page, and **Read the guide** loads `agents/avatars.md` and scrolls the **Get a 3D model** heading into view. **Copy prompt** copies a prompt with the character's name and appearance. A persona with a blank appearance falls back to its description. A persona with **Image Appearance Override** on gets the override text instead of its appearance. Neither prompt has leftover `{{` macros, including a `{{user}}` in the character's look and a `{{char}}` in the persona's, and neither has any of the description, personality, scenario, greeting or chat text. - `playwright test e2e/avatar-setup.e2e.ts e2e/avatar-2d.e2e.ts`, all three projects: 42 passed before merging `staging`. After the merge and the copy fixes, I reran only the new test and the existing VRM panel test, on all three projects: 6 passed. - `pnpm localization:check`: passed. - `pnpm check`: passed, before and after merging `staging`. - Local CodeRabbit, `coderabbit review --agent --committed --base-commit $(git merge-base HEAD origin/staging)`: - First run: 2 minor copy findings, both valid and both fixed. The docs used the internal term "image appearance override", so they now name the visible **Appearance** and **Image Appearance Override** fields. The help text said "this character" for personas too, and implied the prompt goes into VRoid Studio; it now says the prompt is for making a picture to work from. - Rerun: 0 findings. - Follow-up review fix: a `{{user}}` (or any macro other than the owner's own) in the look was pasted as written. It is now dropped. The e2e fixtures gained a `{{user}}` in the character's look and a `{{char}}` in the persona's description: - **Before the fix:** the new test failed on desktop-chromium (`Look: … She keeps the scarf {{user}} gave her.`). - **After:** `e2e/avatar-setup.e2e.ts` passed on all three projects (12 passed). `pnpm check` and `pnpm localization:check` passed. - GitHub CodeRabbit review, 3 threads, all fixed, replied to and resolved: - A persona appearance of only spaces won over the description, so the prompt had no look. Each field is now trimmed before the fallback. Before the fix, the e2e (persona with `appearance: " "`) failed on desktop-chromium because the look line was missing; after the fix it passes. - The test now covers **Image Appearance Override** with a second persona that has the override on. - The guide now says that a few VRoid Studio built-in items and any bought textures have their own terms. - After these fixes: `e2e/avatar-setup.e2e.ts` + `e2e/avatar-2d.e2e.ts`, all three projects, **45 passed**. `pnpm check` and `pnpm localization:check` passed. - Local CodeRabbit rerun: 1 trivial finding, not applied. It asked to split the **What the prompt is for** paragraph and to say "character" instead of "card". The paragraph is already four short sentences, and "no appearance" already covers a blank one. "Card" is the word the app and other guides use, for example "character card" in `docs/characters/bot-browser.md`. ### For the maintainer to decide - The older **Make your own model → VRoid Studio** steps and the **A 3D model** table row in `docs/agents/avatars.md` cover part of the new **Get a 3D model** section, and one step is repeated word for word. They were left unchanged. Options: link them to `#get-a-3d-model`, or remove the older steps. - VRoid Studio has no box for a prompt, so the guide uses **Copy prompt** for making an optional picture to work from. The prompt will be more useful once the Tripo option exists. ### Manual verification notes - Manually verify in the browser: open **Agents → 3D Avatars**, pick a character with no VRM. The **Get a 3D model** box shows under **VRM model**, with **Read the guide** and **Copy prompt**. - Manually verify that **Copy prompt** puts a prompt on the real clipboard (not the test stub) with the character's name and appearance, and shows "Prompt copied." Try a persona too. - Manually verify that with **Image Appearance Override** on and filled in for a character (the e2e covers only a persona), the prompt uses those tags instead of the appearance. - Manually verify that **Read the guide** opens the docs on the **Get a 3D model** section, on desktop and on a phone. - Manually verify that the box still shows after a VRM is imported, between the model box and **Faces and mouth shapes**. - Manually verify the box in light mode and dark mode. - Optionally, run the guide end to end: make a model in VRoid Studio, export it as VRM 1.0, and import it. Check that the faces, mouth shapes and blink are all filled in. Only VRM 0.x VRoid exports were checked here. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) - New section **Get a 3D model** in `docs/agents/avatars.md`. Translation follow-up: #7621. - No CHANGELOG or version changes. ## UI evidence (if applicable) - The new e2e test saves a screenshot of the section (`avatar-3d-model-guide.png`) for each project in its output folder. - The box reuses the VRM panel's own section and button styles and theme tokens; there are no new colours. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a “Get a 3D model” section to avatar setup, with a guide link and an option to copy an appearance prompt for characters and personas. * Added guidance on creating and importing a VRM model, including how facial animation depends on the model’s expressions. * Added confirmation and error messages when copying a prompt. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:08:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7840
No description provided.