Skip to content
Back to skills

Godot 3d Models

ASecurity

Bring a glTF model into Godot: import settings, post-import script, materials, LODs, collision; audit it against a triangle and texture budget.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythongobashnodespring

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add tipoLi5890/game-studio --skill godot-3d-models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Godot 3d Models?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Godot 3d Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tipoli5890-godot-3d-models/badge)](https://www.skillsdirectory.com/skills/tipoli5890-godot-3d-models)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: godot-3d-models
description: >-
  Bring a glTF model into Godot: import settings, post-import script, materials, LODs, collision;
  audit it against a triangle and texture budget.
---

# godot-3d-models — a .glb in, a checked scene out

A `.glb` from the asset side imports headless, and its `.import` file carries every setting, so an
import is reproducible, reviewable in a diff and checkable in CI. This skill is the import half:
what Godot makes of the file, the settings that change it, and an audit that holds the result to
the class's budget row.

## Load what the situation needs

| The situation | Read |
|---|---|
| A `.glb` arrived; what an import writes and what the scene tree looks like | `reference/import-settings.md` §1 |
| Which `.import` key does what; `_subresources` per node, material and clip | `reference/import-settings.md` §2 |
| A script edited the `.import` and nothing changed | `reference/import-settings.md` §2, "whole seconds" |
| Collision from the model: `-col`, `-colonly`, `-rigid`, `-noimp`; a box or capsule on one node | `reference/import-settings.md` §3–4 |
| Materials to files, a project material instead of the file's, a default material nobody made | `reference/import-settings.md` §5 |
| Every re-import should run a script; what `_post_import` receives | `reference/import-settings.md` §6, `resources/post_import_audit.gd` |
| LODs: Godot's own levels, or hand-made ones from the asset side | `reference/import-settings.md` §7 |
| The model faces the wrong way, or sits at the wrong scale | `reference/import-settings.md` §8, §2 (`nodes/root_scale`) |
| Is this model inside its class's budget: triangles, materials, texture size, bones, MB | `reference/budget-audit.md`, `scripts/model_audit.py` |
| The default rows, the preset ladder, how a row is picked and read | `comfyui-asset-generation` → `reference/budgets.md` |
| The rung comparison: copies under the game camera, frame windows | `reference/budget-audit.md` §5 |

## The import, in five facts

1. **`--import` is the only step that writes**, and it exits by itself:
   `godot --headless -l en --path . --import`. It writes `<model>.import` beside the file, the
   imported scene under `.godot/imported/`, and an extracted `<model>_<image>.png` (plus its own
   `.import`) for each embedded image, all in one pass. Commit the `.import` files; never
   `.godot/`.
2. **Godot exits 0 whatever happened.** A corrupt `.glb` prints `ERROR: Error importing ...` and the
   exit code is still 0; a scene that instances a model nobody imported prints `No loader found`.
   Read the output for marker lines (`godot-verify` → `reference/markers.md`).
3. **The `.import` file is the configuration.** Root type, name and scale, LODs, materials,
   collision per node, loop mode per clip, the import script: all keys in `[params]`, most of them
   in `_subresources`.
4. **A re-import follows the file's modification time in whole seconds.** Edit, then make sure the
   time moved past the import's second, then `--import` again.
5. **`_post_import(scene)` runs headless** on every import of a file whose `import_script/path`
   names an `@tool extends EditorScenePostImport` script. It sees final nodes (MeshInstance3D with
   an ArrayMesh), and for a rigged model the already retargeted skeleton.

## The audit in one screen

```bash
python3 scripts/model_audit.py models/pickup/ --ceiling-tris 12000 --max-materials 2 --max-mb 3
```

It copies the models into a throwaway project (never yours), imports them with the defaults,
counts them with `resources/post_import_audit.gd` and checks the row's numbers: targets warn past
x 1.25, ceilings and `max_*` fail, a model that did not load fails. Exit 0 pass, 2 a gate failed,
3 nothing verified, 1 usage. `--json-out` writes gate/1 for the ledger. The numbers come from the
class's row in the project's `ART_DIRECTION.md`; this skill keeps no copy of the default table.

The same counter as an import script prints `IMPORT_AUDIT {json}` on every import and leaves the
counts in meta `import_audit` on the imported root, where a test can read them.

## Discipline

- **Configure in the `.import`** for anything the importer can do (collision, materials, loop
  modes, root type): a setting there is applied again on every import and shows in review.
- **Name things in the source.** Suffixes (`-col`, `-colonly`, `-noimp`, `-loop`) and material
  names decide the imported tree and the extracted file names; extracted materials are named after
  the material only, so two models can overwrite each other's file in one folder.
- **One material per surface you mean.** A primitive with no material gets a default one, and
  each counts against `max_materials`.
- **Collision: primitives for what moves, trimesh for what stays.** `-col` and `-colonly` build a
  concave (trimesh) static shape; anything that moves takes a convex or primitive shape.
- **Turn on a child, scale in the import.** Keep the asset root at the class's pivot; rotate a
  child under it, and set `nodes/root_scale` rather than scaling the instanced node.
- **Audit what Godot built.** The asset side checks the source file; the triangles, materials and
  texture sizes that reach the frame are the imported ones.
- **Throwaway projects for checks.** Importing writes `.godot/`, `.import` and `.uid` files beside
  everything; run probes in a temp project, as `model_audit.py` does.

## Scope — what this skill does NOT do

| Not here | Go to |
|---|---|
| A rigged humanoid: BoneMap, retarget, clip libraries, props on bones, spring chains | `godot-rigged-character` |
| Clips in play: AnimationPlayer, AnimationTree, root motion, events | `godot-animation` |
| The look: renderer, environment, lights, shadows, GI, materials and shaders | `godot-rendering-3d` |
| Bodies, layers and queries once the collision exists | `godot-physics` |
| What a model costs per frame, measured | `godot-profiling` |
| Running Godot, exit codes and marker lines in general | `godot-verify` · `godot-cli` |
| Generating the mesh, the preset ladder, the default budget rows | `comfyui-asset-generation` |
| A character's game mesh, retopology and LODs before rigging | `blender-character-rig` |
| Which model file is approved, and the evidence | `art-asset-registry` |

Files in this skill

  • SKILL.md6.1 KB
  • reference/budget-audit.md5.6 KB
  • reference/import-settings.md9.5 KB
  • resources/post_import_audit.gd4.2 KB
  • scripts/model_audit.py22.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.