Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

godot-3d-essentials — Claude Code skill: scenes, cameras, lights

Skill for quickly building 3D scenes in Godot 4.7: place cameras, add lights, set up environment and materials. Use it when you're building 3D levels or configuring lighting and post-processing effects.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill godot-3d-essentials -a claude-code
Open on GitHub

What godot-3d-essentials does

The skill provides ready-to-use patterns for Node3D, Camera3D, DirectionalLight3D, OmniLight3D, WorldEnvironment with post-effects, and GridMap for level blockouts. Code examples include a follow camera, sun and environment setup, material assignment, and tile placement on a grid.

Core workflow: every 3D object is a Node3D with Transform3D; cameras must be set as current (current = true or make_current()); without lights and ambient, scenes render black; GridMap requires a MeshLibrary to place tiles. The skill covers this foundation—scenes, lighting, environment, materials.

Out of scope: spatial shaders go to godot-shaders, physics and raycasts to godot-physics, character animation to godot-animation. Requires Godot 4.7 and works with .tscn scene files.

What it helps with

  • Build a 3D scene with camera, lights and environment
  • Configure DirectionalLight3D, OmniLight3D and post-processing in WorldEnvironment
  • Apply StandardMaterial3D to a MeshInstance3D
  • Create a smooth follow camera for third-person view
  • Place GridMap tiles on a coordinate grid

Example prompts for the agent

  • Create a Godot 4.7 3D scene with camera, sun and sky
  • Help me place GridMap tiles across a level
  • Write code for a follow camera with smooth movement

How to install godot-3d-essentials

1Skills CLI (Vercel)

npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill godot-3d-essentials -a claude-code

2Manually: put the files in place

~/.claude/skills/godot-3d-essentials/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/godot-3d-essentials/

From the same set40

The whole set →
game-feel gamedev-skills Teaches the agent to add feedback to game actions: camera shake, hit-stop, eased tweens, squash and stretch, knockback. For mechanics that work but feel weightless. Claude Code CX Codex Cursor +1 9,400installs game-ui-ux gamedev-skills Engine-neutral game UI architecture skill for responsive layouts, screen stacks, gamepad focus, and event-driven HUD updates. Claude Code CX Codex Cursor +1 9,200installs level-design gamedev-skills Plans playable game levels from blockout through playtesting, covering routes, pacing, gates and encounters. Use it when working on whiteboxes, critical paths or room flow. Claude Code CX Codex Cursor +1 7,500installs camera-systems gamedev-skills Engine-neutral patterns for 2D and 3D game cameras: smooth follow, deadzones, look-ahead, bounds clamping, and third-person collision. Claude Code CX Codex Cursor +1 7,100installs audio-design gamedev-skills A skill that treats game audio as a mixer graph: buses, gain in decibels, sidechain ducking, adaptive music and beat-synced events. Samples use Godot 4.7, Unity gets notes. Claude Code CX Codex Cursor +1 7,100installs performance-optimization gamedev-skills A skill that turns “the game runs slow” into a measured bottleneck and a specific fix: profile first, then pool objects, batch draw calls, cut allocations. Claude Code CX Codex Cursor +1 7,100installs game-ai gamedev-skills Designs NPC decision-making, behavior trees, steering forces, and A* pathfinding. Useful when building game enemy logic across engines. Claude Code CX Codex Cursor +1 7,100installs input-systems gamedev-skills Engine-neutral input system: map keys to named actions, rebinding with conflict detection, keyboard, gamepad and touch support, analog deadzones, input buffering and coyote time. Claude Code CX Codex Cursor +1 6,800installs

Similar

showcase-video rehan-remade Records the game window with the game's own audio, then cuts a short clip or trailer about a mod: titles, transitions, music, fade-out. Claude Code CX Codex Cursor +1 1,400installs fal-assets rehan-remade Generates sprites, tileable textures, 3D models, SFX, and music via fal. Built for modders and game developers who need ready-to-use visual and audio assets directly in their workspace. Claude Code CX Codex Cursor +1 1,400installs orbit-card heygen-com Adds a 10-second 1920×1080 HyperFrames motion block where a single feature card orbits a dot sphere using exported Blender camera paths. Claude Code CX Codex Cursor +1 9,800installs sdf earthtojake This skill authors and validates SDFormat files for models and worlds, then helps prepare them for simulator handoff. Claude Code CX Codex Cursor +1 10,500installs urdf earthtojake This skill helps create, validate, and debug URDF robot descriptions. Use it when working with links, joints, geometry, meshes, or inertial data. Claude Code CX Codex Cursor +1 10,400installs hatch-pet official openai Creates and packages animated pets and spritesheets for Codex. Use it to turn a character concept, reference image, or brand cues into a pet. Claude Code CX Codex Cursor +1 3,300installs gcode earthtojake Slices STL, 3MF, and OBJ models into printer-ready G-code through OrcaSlicer. Use it when you need a print file without connecting to the printer. Claude Code CX Codex Cursor +1 9,500installs dxf earthtojake Generates and validates 2D DXF drawings from Python build123d scripts: outlines, gaskets, panels, flat patterns for cutting. Claude Code CX Codex Cursor +1 9,100installs

Questions about godot-3d-essentials

How do I install godot-3d-essentials in Claude Code?

Run npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill godot-3d-essentials -a claude-code, then npx skills add gamedev-skills/awesome-gamedev-agent-skills --skill godot-3d-essentials -a claude-code, and check ~/.claude/skills/godot-3d-essentials/SKILL.md.

What does godot-3d-essentials do?

It provides patterns and code examples for building 3D scenes in Godot 4.7: place cameras and lights, configure environment and post-processing, assign materials, and set up GridMap tile placement.

What do I need to use this skill?

A Godot 4.7 project with .tscn scenes. For GridMap, you need a MeshLibrary. For post-processing, you need a WorldEnvironment with an Environment resource.

Source text

SKILL.md · Apache-2.0
---
name: godot-3d-essentials
description: >
  Set up a Godot 4.7 3D scene: Node3D transforms, Camera3D, lighting
  (DirectionalLight3D/OmniLight3D), WorldEnvironment for sky/ambient/tonemap/post,
  MeshInstance3D materials, and GridMap for tile-based 3D levels. Use when building
  a 3D scene in a Godot project, placing cameras/lights, configuring environment and
  post-processing, or working with Node3D/.tscn 3D content and GridMap.
---

# Godot 3D Essentials (4.x)

Assemble a working 3D scene: transforms, camera, lights, environment/post, materials, and
`GridMap` blockouts. Targets **Godot 4.7**.

## When to use

- Use when starting or fixing a 3D scene: positioning a `Camera3D`, adding lights, setting
  up a `WorldEnvironment` (sky, ambient, tonemap, glow/SSAO), assigning materials, or
  building levels with `GridMap`.

**When *not* to use:** writing spatial shaders → `godot-shaders`; 3D physics bodies and
raycasts → `godot-physics`; character animation blending → `godot-animation`; full FPS
template → the `fps-shooter` genre skill.

## Core workflow

1. **Everything 3D is a `Node3D`** with a `Transform3D` (position, rotation basis, scale).
   Move with `global_position`, rotate with `rotate_y(angle)` or `look_at(target)`.
2. **Add a `Camera3D`.** Mark it `current` (or call `make_current()`); set `fov`, `near`,
   `far`. Parent it to a rig/pivot for orbit or follow cameras.
3. **Light the scene.** A `DirectionalLight3D` is the sun; `OmniLight3D`/`SpotLight3D` are
   local; `AreaLight3D` (4.7+) is a rectangular panel light that costs more than omni/spot.
   Enable shadows per light. Without lights and ambient, surfaces render black.
4. **Add a `WorldEnvironment`** with an `Environment` resource: background (sky/color),
   ambient light, tonemap, and post (glow, SSAO, fog, adjustments).
5. **Give meshes materials** (`StandardMaterial3D` or a `ShaderMaterial`) on
   `MeshInstance3D`.
6. **Block out levels with `GridMap`**, which places `MeshLibrary` items on a 3D grid
   (the 3D analog of a tilemap).

## Patterns

### 1. A follow camera (third-person, smoothed)

```gdscript
extends Camera3D

@export var target: Node3D
@export var offset := Vector3(0, 4, 8)
@export var smooth := 6.0

func _physics_process(delta: float) -> void:
    if target == null:
        return
    var desired := target.global_position + offset
    global_position = global_position.lerp(desired, smooth * delta)  # smooth follow
    look_at(target.global_position, Vector3.UP)                      # face the target
```

### 2. Sun + environment in code

```gdscript
func _ready() -> void:
    var sun := DirectionalLight3D.new()
    sun.rotation_degrees = Vector3(-45, -30, 0)
    sun.shadow_enabled = true
    add_child(sun)

    var we := WorldEnvironment.new()
    var env := Environment.new()
    env.background_mode = Environment.BG_SKY
    env.sky = Sky.new()
    env.sky.sky_material = ProceduralSkyMaterial.new()
    env.ambient_light_source = Environment.AMBIENT_SOURCE_SKY
    env.tonemap_mode = Environment.TONE_MAPPER_FILMIC
    env.glow_enabled = true
    we.environment = env
    add_child(we)
```

### 3. Assign a StandardMaterial3D from code

```gdscript
func tint_mesh(mesh: MeshInstance3D, color: Color) -> void:
    var mat := StandardMaterial3D.new()
    mat.albedo_color = color
    mat.metallic = 0.0
    mat.roughness = 0.6
    mat.emission_enabled = true
    mat.emission = color * 0.3
    mesh.material_override = mat       # overrides the mesh's surface materials
```

### 4. Place tiles into a GridMap

```gdscript
@onready var grid: GridMap = $GridMap   # cell_size + mesh_library set in the editor

func build_floor(width: int, depth: int, item_id: int) -> void:
    for x in width:
        for z in depth:
            # set_cell_item(Vector3i cell, int item, orientation = 0)
            grid.set_cell_item(Vector3i(x, 0, z), item_id)
```

## Pitfalls

- **Scene renders black** → no lights and no ambient. Add a `DirectionalLight3D` and/or a
  `WorldEnvironment` with ambient/sky. New scenes have neither by default.
- **No camera / wrong camera.** If nothing shows, no `Camera3D` is `current`. Set
  `current = true` or `make_current()`; only one camera renders per viewport.
- **Confusing local vs global transforms.** `position`/`rotation` are relative to the
  parent; `global_position`/`global_transform` are world space. Mixing them under a rotated
  parent gives surprising results. `look_at` uses global coordinates.
- **Scaling physics/lights.** Non-uniform `scale` on a `Node3D` distorts child collisions
  and lights; prefer scaling the mesh asset or using uniform scale.
- **`look_at` does nothing and prints an error** → the target equals the node's position, the
  `up` vector is parallel to the look direction (e.g. looking straight down with
  `Vector3.UP`), or the node is not in the tree yet. Keep an offset, pass a different `up`, or
  use `look_at_from_position()` before the node enters the tree.
- **GridMap with no `MeshLibrary`** places nothing. Create a `MeshLibrary` (from scenes)
  and assign it; `set_cell_item(cell, -1)` clears a cell.
- **HDR/glow too strong** → check `tonemap_mode` and glow thresholds; raw emissive values
  bloom hard under filmic tonemapping.

## References

- For Transform3D math, camera projection modes, light/shadow params, the full
  Environment/post-processing options, `MeshLibrary` creation, and `ReflectionProbe`/
  `LightmapGI` lighting, read `references/scene-and-environment.md`.

## Related skills

- `godot-physics` — 3D bodies, areas, and raycasts.
- `godot-shaders` — spatial shaders for custom 3D surfaces.
- `godot-animation` — `AnimationTree` for 3D characters.
- `camera-systems` — third-person orbit / first-person look rigs, framing, and collision.
- `performance-optimization` — keep 3D scenes within frame budget (draw calls, lights, LOD).
- `fps-shooter` — composes 3D movement, input, and AI into a game.

© gamedev-skills · Apache-2.0 · gamedev-skills/awesome-gamedev-agent-skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor