Repository navigation
The MiiModel stand-in has a head with a drawn face (a stand-in: the same face on every Mii) - #2512
Open
secretlemur28 wants to merge 1 commit into
Open
secretlemur28 wants to merge 1 commit into
secretlemur28 wants to merge 1 commit into
Conversation
…lace of the facelines, and one drawn eye, eyebrow and mouth texture for every Mii on a mask surface over its front, so a Mii a game shows whole is not a body with nothing on its neck (Mario Golf: Super Rush's Golf Adventure) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The MiiModel archive the host writes (
dm_mii_standin) has every part empty, so a game that shows a Mii whole draws a body with nothing on its neck. Mario Golf: Super Rush's Golf Adventure plays as a Mii (#814); the player is a cap and a body with no head.The stand-in now has a head. Entries 4..15 of the shape table (the facelines) are an ellipsoid, and entries 16..27 (the masks, which the model draws its mask texture on) are the front of it, a little outside. The texture file gets three 64 × 64 R8_G8_B8_A8 parts: one eye, one eyebrow arc and one smile, which the SDK's own mask composition draws. No nose, no hair.
DM_MII_HEAD=0leaves the facelines empty as before;DM_MII_HEAD=cx,cy,cz,rx,ry,rz[,flags]andDM_MII_FACE=su,sv,ovplace the head and map the face for tuning.This is a stand-in. Every Mii gets the same head, eyes, eyebrows and mouth, whatever its CharInfo says. The head is sized so that Golf's cap sits on it, by eye, on that one game; other games' Mii models may sit differently (Mario Kart 8 Deluxe also builds Mii heads, and I have not run it).
Checked
pr-mii-head: two earlier commits, cut again from main at0c078130and squashed. They apply cleanly. The host builds.0c078130, host from this branch (theAppendMiichange is not in it; the save slot used already existed): Golf Adventure slot 1, story dialogue, first room. The player Mii now has a head with a face under the cap; on a host withAppendMiibut without this change the same screens show the cap and body with no head. Screenshots from both runs are inruns/adv-headandruns/adv-appendin my work folder.dm/tools/tests/test_docs.pyandtest_env_switches.pypass (a reference entry, "The Mii stand-in head", its symptom-index line and the two switches are added).regress.py check; iOS; whether the face reads well in motion or other views than the story's first room.Docs
docs/reference/services.md("The Mii stand-in head", and a pointer from "System data stand-in for the MiiModel archive"),docs/agents/symptoms.md(regenerated),docs/env_switches.tsv(DM_MII_HEAD,DM_MII_FACE)🤖 Generated with Claude Code