Skip to content

[SITE] feat(site): draw the skin viewer with the skin renderer's wasm build - #1211

Draft
ugcodrr wants to merge 106 commits into
feat/site-guild-comparefrom
feat/site-skin-viewer
Draft

ugcodrr wants to merge 106 commits into
feat/site-guild-comparefrom
feat/site-skin-viewer

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Description: The skin viewer was a CSS model, so it didn't look like the bot's skin renders.

  1. The wasm renderer takes a cape, yaw and pose like the native one, and setYaw turns it.
  2. It no longer panics on a tab switch or resize, or when the Skin panel closes while it's starting, and draws right on WebGPU (it was darker, on black) and on WebGL-only browsers (it found no adapter).
  3. Its event loop sleeps when there's nothing to draw (it kept a CPU core busy), and on high-DPI screens the canvas keeps its size when you go to another player (it doubled).
  4. It's built for size and decodes only PNGs, 1,047 KB to 612 KB brotli, and only loads when the Skin panel opens.
  5. It starts downloading beside the skin's texture, so it's ready about a round trip sooner, and a download that failed is tried again the next time the panel opens instead of only after a reload.
  6. The CSS model shows while it loads and stays where there's no WebGPU or WebGL. Like the wasm one, it now only turns side to side.

Armor isn't in it yet, since which texture packs the site may serve is still open.

The bot's skin renders don't change.

It merges #1194, so review it after #1192 to #1194 merge.
It conflicts with #1210, which changes the same renderer files.

Testing:

  1. Open Skin on a player page and the model turns with a drag or the arrow keys.
  2. Go to another player with it open and the model stays the same size.

Depends on #1147.

…loser

The glint was added in linear space, which left a faint pink tint, so enchanted
armour now adds the game's squared layers to its gamma-encoded colour in one pass.
Armour boxes take the skin's z-fighting scale, and parts under leggings get the
flat outer layer so the leggings can keep the game's thickness.
# Conflicts:
#	packages/skin-renderer/src/renderer/mod.rs
# Conflicts:
#	packages/skin-renderer/src/model.rs
#	packages/skin-renderer/src/renderer/mod.rs
# Conflicts:
#	packages/skin-renderer/src/renderer/mod.rs
# Conflicts:
#	packages/skin-renderer/src/renderer/mod.rs
# Conflicts:
#	packages/skin-renderer/src/camera/orbital.rs
#	packages/skin-renderer/src/model.rs
#	packages/skin-renderer/src/renderer/mod.rs
# Conflicts:
#	packages/skin-renderer/src/error.rs
#	packages/skin-renderer/src/model.rs
#	packages/skin-renderer/src/renderer/mod.rs
@vercel

vercel Bot commented Nov 12, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/statsify-net?upgradeToPro=build-rate-limit

@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Resource is limited - try again in 1 day (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/statsify-net?upgradeToPro=build-rate-limit

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant