darknecrocities/skillbuilder/3d
Claude Code and agent skill by darknecrocities/skillbuilder
- community
Checking that the SKILL.md file is still in the repository.
Interactive 3D WebGL, Three.js, and React Three Fiber (R3F) engineering skill. Enforces 60fps budgets, PBR materials, Draco compression, and studio lighting.
Install
npx vskill@latest install darknecrocities/skillbuilder/3dSKILL.md
The same SKILL.md was published earlier as darknecrocities/skillbuilder/3d.
Interactive 3D WebGL & Three.js Engineering (/3d)
Philosophy: Real-time 3D must be physically grounded and buttery-smooth. Enforce 60fps budgets, Draco compression, PBR physical materials, and strict memory disposal.
This skill establishes production engineering standards for interactive 3D web applications, real-time product visualizers (e.g., automotive/roadster showcases), Three.js, and React Three Fiber (R3F).
1. Quick Navigation & Progressive Disclosure
| Resource Type | Document | Description | |
|---|---|---|---|
| Reference | references/threejs-performance-optimization.md | 60fps/120fps frame budgets, geometry instancing, frustum culling, texture mipmapping. | |
| Reference | references/pbr-materials-and-draco.md | Physically-based materials, clearcoat setups, Draco glTF compression. | |
| Utility | scripts/verify_3d_performance.py | Audits Three.js source code for DPR clamping, disposal routines, and Draco decoders. | |
| Template | templates/ThreeRoadsterShowcase.tsx | Complete production Three.js automotive showcase component. |
2. Core 3D Architecture & The Roadster Pattern
Rule 1: Physically Based Rendering (PBR) Materials
For premium product visualizations (automotive car bodies, metallic chassis, high-end consumer hardware), use MeshPhysicalMaterial rather than basic Phong or Lambert materials:
- `clearcoat`:
1.0(simulates automotive polyurethane clearcoat layer). - `clearcoatRoughness`:
0.05to0.1(high-gloss specular reflections). - `metalness`:
0.8to0.95for metallic bodywork,0.0for plastics/leather. - `roughness`:
0.1to0.3for polished metallic paint,0.6to0.8for matte trim. - `envMapIntensity`:
1.2to1.5for balanced studio HDR reflections.
Rule 2: Studio Lighting & Contact Shadows
- Never rely solely on ambient light. Set up a balanced 3-Point Studio Rig:
- Key Light:
DirectionalLight(intensity1.5, soft shadows enabled). - Fill Light: Soft ambient light or HDRI environment map (intensity
0.8). - Rim / Specular Light: Backlight highlighting the vehicle silhouette.
- Use a Contact Shadow Plane (
ContactShadowsin R3F or blurred shadow render texture) directly beneath the vehicle chassis to anchor it to the ground plane without expensive real-time shadow map cascades.
Rule 3: Responsive Canvas & DPR Clamping
- Strict Guardrail: Always clamp device pixel ratio to a maximum of
2.0:
Unclamped Retina displays (3.0x - 4.0x DPR) render 9x to 16x more fragments, causing severe GPU throttling and battery drain on mobile devices.
2. Asset Pipeline & Draco Compression
| Asset Type | Prohibited Anti-Pattern | Mandatory Production Standard | |
|---|---|---|---|
| 3D Models | Uncompressed raw .obj or .gltf (> 20MB). | Binary .glb with Draco compression (< 5MB initial payload). | |
| Textures | Uncompressed 4K .png (> 10MB each). | Compressed .ktx2 / Basis Universal or downsampled 1024x1024 WebP textures. | |
| Draw Calls | Hundreds of separate meshes with distinct materials. | Merged geometries, InstancedMesh, and texture atlasing (< 50 draw calls). | |
| Render Loop | Creating new vectors or materials inside tick(). | Pre-allocated mutable vectors (THREE.Vector3) mutated in-place. |
Draco GLTF Loader Configuration
3. Lifecycle Memory Cleanup & Context Recovery
Every 3D component must dispose of GPU resources on unmount to prevent memory leaks:
4. 3D Performance Auditor CLI
Audit your 3D components for render loop memory allocations and missing DPR limits:
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/3d/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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/darknecrocities/skillbuilder/3d)