<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
raiinman/skill-library/3d-games
──Details
PublishedOctober 22, 2026 at 04:33 PM
Content Hashsha256:f4920fa2ef4d720e...
Git SHA594499cb9a84
──Files
Files (1 file, 3.3 KB)
SKILL.md3.3 KBactive
SKILL.md · 154 lines · 3.3 KB

version: "1.0.0"



name: 3d-games description: 3D game development principles. Rendering, shaders, physics, cameras. metadata: upstream_frontmatter: risk: none source: community date_added: '2026-02-27' source_repository: sickn33/antigravity-awesome-skills source_path: skills/game-development/SKILL.md#bundled/3d-games source_commit: b84d35abf733cbbc3400dbc0e16fbbdc2a4fe97e


3D Game Development

Principles for 3D game systems.

1. Rendering Pipeline

Stages

1. Vertex Processing → Transform geometry
2. Rasterization → Convert to pixels
3. Fragment Processing → Color pixels
4. Output → To screen

Optimization Principles

TechniquePurpose
Frustum cullingDon't render off-screen
Occlusion cullingDon't render hidden
LODLess detail at distance
BatchingCombine draw calls

2. Shader Principles

Shader Types

TypePurpose
VertexPosition, normals
Fragment/PixelColor, lighting
ComputeGeneral computation

When to Write Custom Shaders

  • Special effects (water, fire, portals)
  • Stylized rendering (toon, sketch)
  • Performance optimization
  • Unique visual identity

3. 3D Physics

Collision Shapes

ShapeUse Case
BoxBuildings, crates
SphereBalls, quick checks
CapsuleCharacters
MeshTerrain (expensive)

Principles

  • Simple colliders, complex visuals
  • Layer-based filtering
  • Raycasting for line-of-sight

4. Camera Systems

Camera Types

TypeUse
Third-personAction, adventure
First-personImmersive, FPS
IsometricStrategy, RPG
OrbitalInspection, editors

Camera Feel

  • Smooth following (lerp)
  • Collision avoidance
  • Look-ahead for movement
  • FOV changes for speed

5. Lighting

Light Types

TypeUse
DirectionalSun, moon
PointLamps, torches
SpotFlashlight, stage
AmbientBase illumination

Performance Consideration

  • Real-time shadows are expensive
  • Bake when possible
  • Shadow cascades for large worlds

6. Level of Detail (LOD)

LOD Strategy

DistanceModel
NearFull detail
Medium50% triangles
Far25% or billboard

7. Anti-Patterns

❌ Don't✅ Do
Mesh colliders everywhereSimple shapes
Real-time shadows on mobileBaked or blob shadows
One LOD for all distancesDistance-based LOD
Unoptimized shadersProfile and simplify

Remember: 3D is about illusion. Create the impression of detail, not the detail itself.

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
All versions