/vibedgames:regenerate-3dfrom vibedgames
Generates a polished 3D character-selector scene using `vg generate` CLI with FLUX.2, Meshy v6, Seedance, and Three.js. Produces rigged GLB characters, companion creatures, PBR floors, looped video backgrounds, and palette-swapped UI.
Ships in vibedgames. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Runtime: Asset generation steps use the
vg generateCLI (FLUX.2 / GPT-Image-2 / Meshy v6 / Seedance / etc.); the final deliverable is a static HTML page with Three.js and the generated assets bundled in. The generation credentials live on the vibedgames server, so the only setup is a signed-invg. Ifvgisn't on PATH or says you're not logged in, follow thevg-setupskill (no global install needed:npx -y vibedgames@lateststands in forvg). See thegenerateskill for the command reference — including its async-job recovery rule (keep therequest_id, resume withstatus, never re-runafter an ambiguous failure).
End-to-end recipe to ship a polished, multi-character 3D web experience using generative models. This is the recipe that powers a cyberpunk character selector with 10 unique operatives, each with a matching companion creature, environment-themed floor texture, animated background and color palette.
For each character you get:
All packaged into a single static HTML page with a Three.js scene. ~25–35 MB of GLBs total after compression.
1. GPT-Image-2 → 1024x1536 character full-body T-pose (per character)
2. Meshy v6 → image-to-3d, enable_rigging=true, animation_action_id={chosen}
→ animated GLB (idle, dance, alert, etc.)
3. GPT-Image-2/edit → companion creature image, color-locked to character palette
4. Meshy v6 → image-to-3d, enable_rigging=false → static creature GLB
5. PATINA → fal-ai/patina/material/extract on the character image,
returns basecolor + normal + roughness + metalness for the floor
6. Seedance 2.0 → fal-ai/bytedance/seedance-2.0/fast/image-to-video, 8s loop
7. gltf-transform CLI → resize 1024 → webp q80 → draco
(typically 95–96% size reduction, ~400–800 KB final)
8. Three.js scene → MeshStandardMaterial floor with alphaMap circular cutout,
mirrored reflection (refl.y = root.y, scale.y = -1),
breathing animation on companions,
per-character palette via CSS custom properties (--c1/--c2/--c3),
per-character floor texture swap on character click,
transition lines + radial flash on swap
Auto-rigging quality is decided at image-generation time. For any character
image headed into enable_rigging=true:
Every generation step runs on your machine through vg generate, and the page ships the results as static files. A deployed game is untrusted code on its own subdomain: it gets no vibedgames session, and a VG_TOKEN (or any provider key) embedded in the page is a key every visitor can copy and spend.
For a create-your-own mode, pre-generate a pool of extra characters with the same pipeline (the fast path is fal-ai/flux-2/klein/9b → Meshy v6; costs per the table below) and let visitors pick or shuffle through it.
| Step | Endpoint |
|---|---|
| Character image (curated) | openai/gpt-image-2 |
| Character image (fast) | fal-ai/flux-2/klein/9b |
| Companion image | fal-ai/gpt-image-2/edit or fal-ai/flux-2/klein/9b/edit |
| 3D character/companion | fal-ai/meshy/v6/image-to-3d |
| Per-character floor PBR | fal-ai/patina/material/extract |
| Background video | fal-ai/bytedance/seedance-2.0/fast/image-to-video |
| Logo / icon cleanup | fal-ai/bria/background/remove |
Curated dance / idle action IDs (full list at https://docs.meshy.ai/en/api/animation-library):
| ID | Animation |
|---|---|
| 0 | Idle (default) |
| 2 | Alert |
| 36 | Confused (scratch) |
| 48 | Mirror viewing |
| 64 | All_Night_Dance |
| 405 | Joyful_Dance_with_Hand_Sway |
| 591 | Hip_Hop_Dance |
| 64–83 | Various Pop_Dance variants |
PlaneGeometry(7, 7, 220, 220) cut into a disc via radial-gradient alphaMap. High tessellation enables real displacementMap (uses basecolor as height).scale.y = -1, BackSide, depthWrite = false, renderOrder = -1. For characters whose origin is at the feet, refl.position.y = root.position.y produces a visible mirror; the floor's transparent = true; opacity ≈ 0.5 lets it bleed through.scale.setScalar(base * (1 + sin(t*1.3)*0.025)) + a small Y bob on companions. The reflection mirrors the bob so the mirror stays consistent.:root.style.setProperty('--c1', hex) etc. Every UI element (sparklines, pulses, bars, model pills, edge map dots) derives its color from var(--c1) / var(--c2).fit per skin, not a bake, so a regenerated model drops in unchanged. Compress with gltf-transform optimize in.glb out.glb --texture-compress webp --texture-size 1024. Budget ~$1/model.texLoader.load() 4 PBR maps from assets/floor/{charId}/, dispose old textures, set floorMat.color back to white (since the basecolor is already char-themed).@keyframes tfx-sweep) on character click + a radial flash; bg video crossfades between two <video> elements; character GLB slides out and the new one slides in.For one full character:
| Step | Approx. cost |
|---|---|
| 1 GPT-Image-2 (character) | $0.04 |
| 1 Meshy v6 rigged + animated | $0.80 |
| 1 GPT-Image-2/edit (companion) | $0.04 |
| 1 Meshy v6 static (companion) | $0.20 |
| 1 PATINA floor (4 maps) | $0.04 |
| 1 Seedance fast (bg video) | $0.08 |
| Total per character | ~$1.20 |
| 10 characters | ~$12 |
Runtime parallelizes well, the original 10-character set was generated in ~10 minutes wall-clock with 9 concurrent jobs per stage.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kyh/vibedgames --plugin vibedgames35 skills in this plugin
/animated-spritesheetsGenerate a character's animation frames (idle, run, attack, death…) as one labeled pose board, then slice, key and pack them into an engine-ready spritesheet./animationMake 2D sprite animation read well: frame budgets per clip, timing and spacing, cancel windows, smears, secondary motion, wiring clips in Phaser. Generating frames is pixel-art / animated-spritesheets./asepriteParse Aseprite files (.ase/.aseprite) — layers, cels, tags, slices, palettes, tilesets — into JSON, durations and bounds for engines and tools./ask-meInterview the user about a fuzzy game idea, one question at a time, until it is build-ready. Skip when they already know what to build./asset-pipelineAudit 2D game art on disk: validate an asset manifest against PNGs, probe sprite sheets and tilesets for occupied frames, report sizes, fix sprite baselines./capacitor-iosShip a Three.js + Vite app on Capacitor iOS: GLTF loading, animation UI, OrbitControls touch mapping, Swift Package Manager, iOS sync and run troubleshooting.Other plugins' skills for the same job