Black Friday Get up to +40% bonus credits automatically on every top-up (+15% to +40%, up to $100 bonus) Up to +40% bonus credits on top-ups Claim bonus →

3D Game Builder

Build playable 3D games in Three.js or Godot 4 using Lumoz MCP for rigged characters, PBR meshes, 360 skyboxes, SFX, BGM, and visual QA

Install 3D Game Builder
npx lumoz-skills add 3d-game-builder

Adds SKILL.md and references to .agents/skills/3d-game-builder/.

https://lumozai.com/api/mcp

Connect Lumoz MCP once in Claude to get 3D Game Builder and every LumozAI skill automatically (lumoz_get_skill("3d-game-builder")). Setup guide →

git clone https://lumozai.com/skills/3d-game-builder .agents/skills/3d-game-builder

Clones the pinned, NVIDIA SkillSpector-verified mirror with all scripts and references.

Category
Media & Motion
Security
NVIDIA SkillSpector Passed
License
MIT (Free)
Compatible Runtimes
Antigravity, Claude Code, Cursor, Windsurf

3D Game Builder (Lumoz MCP + Three.js / Godot 4)

A complete engineering workflow for building real, playable 3D games in one pass with engine-ready assets generated on demand via Lumoz MCP.

1. Asset Pipeline (One-Call Packs & Async-Safe Jobs)

Slow jobs (lumoz_generate_3d_character, lumoz_generate_prop_kit, lumoz_generate_environment_pack, lumoz_generate_3d_asset for mesh_pbr / mesh_fast / sfx) run asynchronously and return a job_id immediately. Poll lumoz_check_3d_job(job_id) every 15-20 seconds until status: "completed". If a session resets or disconnects, call lumoz_list_3d_jobs to recover all past CDN URLs and rig_task_ids without paying again. Failed jobs charge $0.00.

Asset Need Lumoz MCP Tool Key Parameters Typical Cost
ONE-CALL Game-Ready Character Pack lumoz_generate_3d_character prompt (no cape/loose cloth, A-pose), animations: ["idle","walk","run","slash","death"], game_ready: true, face_limit: 35000 -> returns ONE ~2 MB WebP .glb facing +Z, root motion stripped, attacks trimmed, plus character_metadata $0.90 + $0.20/clip ($1.90 for 5 clips)
Themed 3D Prop Kit (2-6 Props in 1 Call) lumoz_generate_prop_kit theme (locked art style), items: [{name, prompt, target_height}, ...] -> runs in parallel, auto-grounds to y=0, scales in meters, WebP-compresses every .glb $0.20 / prop (opt included)
Paired Skybox + PBR Ground Pack lumoz_generate_environment_pack prompt, optional ground_prompt, resolution: "2k" ($0.08) or "4k" ($0.12) -> returns matched 2:1 skybox + tileable ground albedo + normal + roughness + lighting hex palette $0.08 (2K) / $0.12 (4K)
Extra Animations for Same Character lumoz_generate_3d_character Pass rig_task_id + animation (or animations[]): idle, walk, run, jump, slash, slash_fast, slash_heavy, death, hit_react, dodge_roll, shoot $0.20 each
Poll / Recover Async 3D Jobs lumoz_check_3d_job / lumoz_list_3d_jobs job_id: "job_3d_..." -> permanent CDN URL + rig_task_id + character_metadata / kit_manifest / lighting Free
Single Hero Prop / Weapon / Vehicle lumoz_generate_3d_asset asset_type: "mesh_pbr", prompt (OR image), enable_pbr: true, face_count: 40000 $0.20
Optimize & Ground Any Custom .glb lumoz_optimize_3d glb_url, pivot: "ground" (or "keep" + animation_glbs for characters), target_height, max_texture_size: 512, texture_format: "webp" $0.005
Game Sound Effects lumoz_generate_3d_asset asset_type: "sfx", prompt, duration_seconds: 2..5 $0.025
Background Music Loop lumoz_generate_bgm prompt, duration: 30..60 ~$0.60+
NPC Voice / Announcer Lines lumoz_generate_tts text, voice: "lumoz-roman" From $0.18/1K chars
Upload Local Screenshots (Sandbox QA) lumoz_create_upload_url filename: "shot.png" -> returns signed PUT URL for curl -X PUT --data-binary @shot.png <url> -> permanent CDN URL Free
Automated Viewport Visual QA lumoz_vision images: ["<cdn_url>"] (use lumoz_create_upload_url from sandboxes) $0.005 / image

Critical Rigging, Prompting & Animation Rules (Field-Tested in Three.js)

  1. Use One-Call Character Packs (animations: [...]): Always prefer lumoz_generate_3d_character(prompt, animations: ["idle","walk","run","slash","death"], game_ready: true). Lumoz runs all clips in parallel on one rig and returns one ~2 MB .glb already facing +Z, with horizontal root motion stripped (clean in-place loops), slash trimmed to 0.85s (slash_fast 0.55s, slash_heavy 1.10s, hit_react 0.45s, dodge_roll 0.70s), and a character_metadata JSON block (height_meters, clips.<name>.stride_meters, recommended_speed_mps, hit_window_seconds, rig_warnings).
  2. Clean Auto-Rigging Prompt Formula (No Loose Cloth): Capes, cloaks, skirts, and long hair get mis-skinned to legs/arms. Pass auto_rig_safe_prompt: true or write compact silhouettes explicitly:

    "Stylized chibi-proportioned young knight, compact rounded steel armor fitted close to the body, short sword in right hand, small round shield strapped to left forearm, no cape, no cloth, no long hair, clear gaps between arms and torso, full body A-pose, game-ready low-poly"

  3. Wire character_metadata Directly Into Gameplay:
    • Set character walk/run speed from clips.walk.recommended_speed_mps and clips.run.recommended_speed_mps so feet never slide.
    • Check melee hit detection only when slashAction.time >= hit_window_seconds[0] && slashAction.time <= hit_window_seconds[1].
    • For death (or fall), set action.setLoop(THREE.LoopOnce, 1); action.clampWhenFinished = true;.
  4. Bone Naming in Three.js: GLTFLoader strips colons (:) from Mixamo bone names (mixamorig:Hips becomes mixamorigHips).
  5. Never Share Raw Clips Across Different Characters: Extra clips only share a skeleton when generated from the same rig_task_id.
  6. Sandbox / Artifact Hosting: If shipping inside a single-file sandbox (claude.ai artifact) that cannot serve .glb files directly, base64-encode the single ~2 MB packed .glb into a JSON/JS module and decode via GLTFLoader.parse(arrayBuffer, "").

2. Three.js Architecture (Complete Playable Game, Not a Tech Demo)

Recommended project layout (Vite + Three.js):

game/
  index.html
  package.json          # three, vite (optional: @dimforge/rapier3d-compat for full rigidbody physics)
  public/assets/
    models/             # player_idle.glb, player_walk.glb, enemy_idle.glb, props/*.glb
    textures/           # ground_albedo.webp, wall_albedo.webp
    skybox/             # world_sky.webp
    audio/              # bgm.mp3, sfx_swing.wav, sfx_hit.wav, sfx_jump.wav
  src/
    main.js             # Renderer, ACESFilmicToneMapping, state machine (TITLE -> PLAYING -> VICTORY / GAME_OVER)
    physics.js          # Static AABB prop colliders + arena boundary + capsule-vs-box sliding resolution + ground height
    world.js            # Equirectangular skybox + PMREM IBL, tiled ground texture, level layout (walls, cover, landmarks)
    player.js           # GLTFLoader, AnimationMixer crossFadeTo(0.18s), WASD + Sprint + Jump + Attack cooldown + HP + i-frames
    enemies.js          # Enemy spawner + AI state machine (PATROL -> CHASE -> TELEGRAPH -> ATTACK -> HURT -> DEAD)
    combat.js           # Melee arc/range hit detection (distance <= range && dot(forward, toTarget) > 0.35), knockback, hit flash
    camera.js           # Smooth damped third-person follow camera + subtle hit screen-shake
    audio.js            # Web Audio API SFX pool + looping BGM (unlocked on first user gesture)
    controls.js         # Keyboard + mouse AND mobile touch virtual joystick + Jump/Attack buttons
    hud.js              # Health bar, wave/objective counter, start & restart overlays

Mandatory Gameplay Systems

  1. Collision & Physics (physics.js): Compute world-space THREE.Box3().setFromObject(prop) (inset 0.15m) for every static prop. Resolve actor movement (radius = 0.4m) along the shallowest X/Z axis for smooth wall-sliding, clamp to arena bounds, and clamp dt = Math.min(clock.getDelta(), 0.05).
  2. Enemy AI, Combat & Win/Lose Loop (enemies.js, combat.js): Clear win/lose objective (waves, boss, or relic hunt), real HP + 0.6s player i-frames, active strike window hit check (distance <= 2.4m && dot > 0.35), knockback, hit SFX, and one-click Restart.
  3. Level Layout & Skybox Lighting (world.js): Tileable ground texture (RepeatWrapping), perimeter walls, 3-5 cover clusters, central landmark, and EquirectangularReflectionMapping + PMREMGenerator from skybox_360.
  4. Mobile Touch Controls (controls.js): On matchMedia("(pointer: coarse)"), render a bottom-left thumb joystick and bottom-right Jump + Attack buttons.

3. Godot 4 Architecture (Native Desktop / Web / Mobile)

  • Drop .glb files into res://assets/models/ (Godot 4 imports Mixamo skeletons and AnimationPlayer tracks automatically; enable StaticBody3D collision on static props during import).
  • Skybox: WorldEnvironment -> Environment -> Sky -> PanoramaSkyMaterial -> assign the 2:1 lumoz-skybox .png.
  • Player: CharacterBody3D + CapsuleShape3D (height = 1.8, radius = 0.35), SpringArm3D + Camera3D, and AnimationTree (AnimationNodeStateMachine) blending idle, walk, run, jump, slash, and fall.

4. Mandatory Visual QA Gate (lumoz_vision)

  1. Run the game and capture 2-4 screenshots (spawn view, mid-combat, close-up of character + grounded props, HUD).
  2. Upload screenshots via lumoz_upload_media (recommended for large images) or pass data:image/png;base64,... directly to lumoz_vision.
  3. Ask lumoz_vision to check for floating/sunk meshes, dark/blown-out lighting, skybox seams, clipping geometry, and unreadable HUD text. Fix all reported issues before shipping.

5. Build & Publish

  • Three.js (Web): npm run build -> deploy dist/ to Cloudflare Pages, Vercel, Netlify, or zip dist/ for itch.io HTML5.
  • Godot 4: Project -> Export -> Web (HTML5) or desktop presets.

Frequently asked questions about 3D Game Builder

What does the 3D Game Builder AI agent skill do?

End-to-end blueprint for coding agents to design, generate assets for, assemble, and visually verify playable 3D games in Three.js or Godot 4 using Lumoz MCP (rigged animated characters, Hunyuan3D PBR props, 3D mesh optimization, 360 equirectangular skyboxes, game SFX, BGM, NPC voices, and multi-image visual QA).

How do I install 3D Game Builder in Claude Code, Cursor, or Antigravity?

Run `npx lumoz-skills add 3d-game-builder` in your project root, or clone https://lumozai.com/skills/3d-game-builder into `.agents/skills/3d-game-builder`. Compatible runtimes (Antigravity, Claude Code, Cursor, Windsurf) discover `.agents/skills/3d-game-builder/SKILL.md` automatically.

Is 3D Game Builder verified and safe to run?

Yes. 3D Game Builder passed NVIDIA SkillSpector security inspection with 0 critical or high findings and is pinned to immutable commit lumoz-o under LumozAI-com.

Can AI agents fetch 3D Game Builder automatically via MCP or REST API?

Yes. Agents connected to Lumoz MCP can call lumoz_get_skill("3d-game-builder"), or any pipeline can fetch raw Markdown from https://lumozai.com/api/skills/3d-game-builder/raw.