← ClaudeAtlas

vrm-weblisted

Take a VRoid / VRM character to a light, good-looking, dancing character on a website with three.js and three-vrm. Packs the VRM (15 MB to about 1.5 MB gzipped with no visible loss), loads it gzipped, converts mocap FBX takes into compact clips any VRM plays, retargets Mixamo clips, drives a dance from a song's playback time, gives the face blinks and singing, and swaps MToon for a cel shader with its own key light. Use when the user has a VRM or VRoid model for a site, mentions three-vrm, MToon burning out, a character dancing to a song, mocap or Mixamo animations on a VRM, hair springs flailing, or a VRM that is too big to ship; also to check the licence of motion data before a commercial site uses it.
skyeyesec333/vrm-web · ★ 0 · Web & Frontend · score 72
Install: claude install-skill skyeyesec333/vrm-web
# VRM on the web: pack, load, animate, light From a VRoid Studio export to a character that dances in time with a song on a production site. The numbers below are from a real VRoid character: 15.3 MB as exported, 3.6 MB packed, 1.5 MB as served. ``` 1. pack scripts/vrm_pack.py in.vrm out.vrm -> out.vrm + out.vrmz (gzipped) 2. load web/vrmz-loader.js PackedVRMLoader -> inflates as it arrives; plain .vrm for old browsers 3. set up web/character.js setupCharacter -> clean-ups, sagging springs removed, face, spring resets 4. motion scripts/fbx_to_take.py (Blender) -> .take -> web/take-clip.js or web/mixamo-retarget.js for Mixamo-named glTF clips 5. dance web/song-dance.js createSongDance -> pose from the song's time, hand-offs, blends 6. light web/cel-material.js applyCel -> three hard bands, its own key light (optional) 7. licence references/motion-licences.md -> before a commercial site uses any motion data ``` `S` below is this skill's `scripts/` folder: `S="${CLAUDE_SKILL_DIR}/scripts"` (for a plugin or a copied skill alike). Copy the files in `$S/web/` into the user's project (they import `three`; the loader also uses `three/examples/jsm/loaders/GLTFLoader.js`); don't import them from the skill folder. ## 1. Pack the VRM ```sh python3 "$S/vrm_pack.py" character.vrm public/models/character.vrm [--dry-run] [--meta-restrict] [--meta-authors "Name"] [--meta-clear-contact] [--k