Skip to content

Switch to Arian's Mii renderer (Cleaned up) - #10

Draft
SkyeDoesThings1 wants to merge 5 commits into
devfrom
@skye/blinn
Draft

Switch to Arian's Mii renderer (Cleaned up)#10
SkyeDoesThings1 wants to merge 5 commits into
devfrom
@skye/blinn

Conversation

@SkyeDoesThings1

@SkyeDoesThings1 SkyeDoesThings1 commented Jan 7, 2025

Copy link
Copy Markdown
Member

Switched to Arian's Mii renderer, also added another Mii easter egg 👀

TODO:

  • Test if TVii supports WebP

Comment thread src/routes/api/miis.ts

let url: string | undefined;

switch (image) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be simplified, like if you created a table that maps the expression names you need to mine, then look that up in the table.
Then factor the "body_"/"portrait_" prefix separately.

@ariankordi

Copy link
Copy Markdown

I highly doubt that the TVii applet supports the webp format. You'll need to see if the Wii U CPU is powerful enough to justify using a WebP JS decoder.
Failing anything else... I don't know, I was thinking of supporting jpeg since it's very efficient. To make up for the lack of transparency, you could just use a static background color, if, in your app, Mii images are always displayed against one background color. If not, maybe you can concede and make the background color the Mii's favorite color or something like that, and failing all that... just go with PNG.

@SkyeDoesThings1

Copy link
Copy Markdown
Member Author

Yeah we need to test that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants