mrcalderon3d/everything-game-dev-code/web-3d-rendering
Claude Code and agent skill by mrcalderon3d/everything-game-dev-code
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Build real-time 3D scenes for browser games — scene/camera/light setup, glTF pipeline, GPU budgets, and disposal discipline.
Install
npx vskill@latest install mrcalderon3d/everything-game-dev-code/web-3d-renderingSKILL.md
The same SKILL.md was published earlier as mrcalderon3d/everything-game-dev-code/web-3d-rendering.
Web 3D Rendering
Purpose
Build real-time 3D scenes for browser games — scene/camera/light setup, glTF pipeline, GPU budgets, and disposal discipline.
Use When
- starting or reviewing a 3D browser game (Three.js, Babylon.js, or raw WebGL2)
- a 2D canvas project is moving to 3D and rendering conventions need definition
- frame time, GPU memory, or load time problems trace back to the 3D scene
Inputs
- chosen 3D stack and target browsers/devices (weakest device defines budgets)
- camera and unit-scale conventions, or the need to define them
- 3D asset inventory and export pipeline (DCC tool, formats)
- scene/screen flow so teardown boundaries are known
Process
- wrap the renderer, scene, camera, and resize handling in one rendering module; gameplay code talks to a scene API, never to the framework's globals
- integrate with the game loop: simulation updates on the fixed timestep, rendering interpolates and draws once per animation frame; cap devicePixelRatio and resize the drawing buffer explicitly
- define camera and unit conventions once (projection, FOV, near/far, meters-per-unit) and document them where asset exporters and gameplay code both see them
- load models through one glTF pipeline: a loader wrapper that applies compression decoders (Draco/Meshopt, KTX2 textures when adopted), normalizes scale/orientation, and hands ownership to the scene owner
- light deliberately: prefer baked or faked lighting for static content, budget dynamic and shadow-casting lights per scene, and configure tone mapping and color space at project start
- keep GPU cost visible: track draw calls, triangles, and texture memory via renderer statistics; use instancing for repeated meshes and share materials/geometries instead of cloning them per entity
- give every geometry, material, texture, and render target a disposal owner; scene teardown disposes what it owns, and a repeated enter/leave cycle is verified flat using renderer memory stats
Outputs
- rendering module design (renderer/scene/camera ownership, resize and DPR policy)
- camera and unit-scale convention notes
- glTF loading pipeline design with compression decisions
- per-scene GPU budgets (draw calls, triangles, texture memory, lights) and disposal checklist
Quality Bar
- gameplay code never touches the rendering framework directly outside the rendering module
- the simulation runs on the fixed timestep and rendering never mutates game state
- every model enters through the glTF pipeline at correct scale and orientation without per-asset hacks
- draw calls, triangles, and GPU memory are measurable and within the budgets set for the weakest target device
- repeated scene enter/leave cycles hold GPU memory flat (verified with renderer statistics, not assumed)
Common Failure Modes
- creating framework objects (materials, vectors, geometries) inside the frame loop, causing GC and GPU churn
- uncapped devicePixelRatio rendering at native density on mobile, silently consuming the frame budget
- per-entity cloned materials breaking batching, so draw calls scale with entity count
- disposing nothing on scene change because "the garbage collector handles it" — GPU memory grows until the tab dies
- mixing units and axes per asset, so every import needs a magic scale factor somewhere in gameplay code
Related Agents
- web-reviewer
- gameplay-programmer
- performance-reviewer
Related Commands
- web-review
- web-scene-audit
- perf-budget
Related Skills
- web-canvas-rendering
- web-performance
- web-game-architecture
Notes
- Keep this skill aligned with the relevant rules layer and current project documentation.
rules/web/rendering-3d.mdis the policy this skill implements;web-canvas-renderingremains the right skill for 2D canvas projects.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/web/web-3d-rendering/SKILL.md
Popularity
- Repository stars
- 88
- Repository forks
- 15
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 3 Oct 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/mrcalderon3d/everything-game-dev-code/web-3d-rendering)