1---2name: 3d-games3description: 3D game development principles. Rendering, shaders, physics, cameras. 4category: Creative & Media5source: antigravity6tags: [ai, workflow, rag]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/game-development/3d-games8metadata:9 source: https://skillmd.com/skills/sickn33/3d-games10---111213# 3D Game Development1415> Principles for 3D game systems.1617---1819## 1. Rendering Pipeline2021### Stages2223```241. Vertex Processing → Transform geometry252. Rasterization → Convert to pixels263. Fragment Processing → Color pixels274. Output → To screen28```2930### Optimization Principles3132| Technique | Purpose |33|-----------|---------|34| **Frustum culling** | Don't render off-screen |35| **Occlusion culling** | Don't render hidden |36| **LOD** | Less detail at distance |37| **Batching** | Combine draw calls |3839---4041## 2. Shader Principles4243### Shader Types4445| Type | Purpose |46|------|---------|47| **Vertex** | Position, normals |48| **Fragment/Pixel** | Color, lighting |49| **Compute** | General computation |5051### When to Write Custom Shaders5253- Special effects (water, fire, portals)54- Stylized rendering (toon, sketch)55- Performance optimization56- Unique visual identity5758---5960## 3. 3D Physics6162### Collision Shapes6364| Shape | Use Case |65|-------|----------|66| **Box** | Buildings, crates |67| **Sphere** | Balls, quick checks |68| **Capsule** | Characters |69| **Mesh** | Terrain (expensive) |7071### Principles7273- Simple colliders, complex visuals74- Layer-based filtering75- Raycasting for line-of-sight7677---7879## 4. Camera Systems8081### Camera Types8283| Type | Use |84|------|-----|85| **Third-person** | Action, adventure |86| **First-person** | Immersive, FPS |87| **Isometric** | Strategy, RPG |88| **Orbital** | Inspection, editors |8990### Camera Feel9192- Smooth following (lerp)93- Collision avoidance94- Look-ahead for movement95- FOV changes for speed9697---9899## 5. Lighting100101### Light Types102103| Type | Use |104|------|-----|105| **Directional** | Sun, moon |106| **Point** | Lamps, torches |107| **Spot** | Flashlight, stage |108| **Ambient** | Base illumination |109110### Performance Consideration111112- Real-time shadows are expensive113- Bake when possible114- Shadow cascades for large worlds115116---117118## 6. Level of Detail (LOD)119120### LOD Strategy121122| Distance | Model |123|----------|-------|124| Near | Full detail |125| Medium | 50% triangles |126| Far | 25% or billboard |127128---129130## 7. Anti-Patterns131132| ❌ Don't | ✅ Do |133|----------|-------|134| Mesh colliders everywhere | Simple shapes |135| Real-time shadows on mobile | Baked or blob shadows |136| One LOD for all distances | Distance-based LOD |137| Unoptimized shaders | Profile and simplify |138139---140141> **Remember:** 3D is about illusion. Create the impression of detail, not the detail itself.142143## When to Use144This skill is applicable to execute the workflow or actions described in the overview.145146## Limitations147- Use this skill only when the task clearly matches the scope described above.148- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.149- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.