Skip to content
Back to skills

Material Maker

ASecurity

Create procedural PBR, stylized and pixel-art 3D materials with Material Maker (MIT, built on Godot 4.7): author or edit .ptex node graphs as JSON, export them from the command line with --export-material to Godot 4 (ORMMaterial3D/StandardMaterial3D .tres), Unity, Unreal, Blender or glTF, write custom GLSL nodes (.mmg), paint 3D models, and import the maps into the engine. Use when the user wants a procedural texture or material (bricks, rock, wood, metal, sci-fi panels, terrain textures), me...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 22, 2026
ai-agentspythongobashnodegit

Works with

  • cli

Security analysis

A100/100

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

Scanned November 22, 2026

npx -y skills add jasonmello/pixelstrata --skill material-maker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Material Maker?

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

Security grade badge for Material Maker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jasonmello-material-maker/badge)](https://www.skillsdirectory.com/skills/jasonmello-material-maker)

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: material-maker
description: >
  Create procedural PBR, stylized and pixel-art 3D materials with Material Maker (MIT, built on
  Godot 4.7): author or edit .ptex node graphs as JSON, export them from the command line with
  --export-material to Godot 4 (ORMMaterial3D/StandardMaterial3D .tres), Unity, Unreal, Blender
  or glTF, write custom GLSL nodes (.mmg), paint 3D models, and import the maps into the engine.
  Use when the user wants a procedural texture or material (bricks, rock, wood, metal, sci-fi
  panels, terrain textures), mentions Material Maker, .ptex, .mmg, ORM maps, tileable textures,
  or needs albedo/normal/roughness/height maps for a 3D game.
---

# Material Maker

[Material Maker](https://github.com/RodZill4/material-maker) (MIT) is a procedural texture and 3D
painting tool built on Godot. Version **1.8** (Oct 2026) runs on Godot 4.7.2. Its node graphs
compile to GLSL, so they are mostly resolution-independent. Download it from
[GitHub releases](https://github.com/RodZill4/material-maker/releases) or
[itch.io](https://rodzilla.itch.io/material-maker). Shared materials, brushes and nodes are on
[materialmaker.org](https://www.materialmaker.org).

Two facts make it agent-friendly: **`.ptex` graphs are plain JSON**, and **the CLI exports
materials without the UI.**

## When to use

- A 3D game needs tileable materials: ground, walls, props, terrain layers (`terrain3d`),
  stylized or pixel-art surfaces (`retro-3d`, `toon`, `realistic`, `pixel-3d` in PixelStrata's style catalog).
- Editing or batch-exporting existing `.ptex` files, or writing a custom GLSL node.

**Not this skill:** sprites and 2D pixel art → PixelLab via `pixelstrata`; shader code inside the
engine → `shader-programming` / `godot-shaders`; 3D modelling.

## Workflow

1. **Locate the executable.** Ask the user for the install path: `material_maker` on Linux,
   `material_maker.exe` on Windows, inside `Material Maker.app/Contents/MacOS/` on macOS. Check the
   exact name in the download.
2. **Start from an example, not a blank file.** Material Maker ships 43 `.ptex` examples in
   `material_maker/examples/` (bricks, wood, metal…), and materialmaker.org has hundreds more.
   Copy the closest one and change parameters.
3. **Edit the graph as JSON** (format below). Parameter names must match the node's `.mmg`
   definition in `addons/material_maker/nodes/`. Read that file before setting a parameter
   you haven't seen in an example.
4. **Export from the CLI:**
   ```bash
   mkdir -p assets/materials/bricks   # -o creates only the last folder
   material_maker --export-material -t "Godot/Godot 4 ORM" -o "$PWD/assets/materials/bricks" \
     --size 1024 "$PWD/materials/bricks.ptex"   # absolute paths: MM runs from its own folder
   ```
   It writes `<name>_albedo.png`, `_orm.png`, `_normal.png`, `_heightmap.png`, `_emission.png`
   (only for connected inputs) plus a `.tres` material. It prints `Done` per file and exits.
   It still starts the renderer, so it needs a GPU and a display session. Don't count on headless.
5. **Import into the engine** (below), assign the material to a mesh, then check it in a lit
   scene from a gameplay distance.
6. **Iterate visually in the UI** when the look needs judgement. Open the file with
   `material_maker bricks.ptex` and let the user tweak, then re-export from the CLI.

## `.ptex` format

```json
{
  "name": "bricks", "label": "Bricks", "type": "graph",
  "node_position": {"x": 0, "y": 0}, "parameters": {},
  "nodes": [
    {"name": "Perlin", "type": "perlin", "node_position": {"x": -400, "y": 0},
     "parameters": {"scale_x": 4, "scale_y": 4, "iterations": 3, "persistence": 0.5}, "seed_int": 0},
    {"name": "Colorize", "type": "colorize", "node_position": {"x": -150, "y": 0}, "parameters": {"gradient": {"...": "see example"}}},
    {"name": "Material", "type": "material", "node_position": {"x": 200, "y": 0},
     "parameters": {"albedo_color": {"r": 1, "g": 1, "b": 1, "a": 1, "type": "Color"},
                    "metallic": 0, "roughness": 1, "depth_scale": 0.5, "size": 11}}
  ],
  "connections": [
    {"from": "Perlin", "from_port": 0, "to": "Colorize", "to_port": 0},
    {"from": "Colorize", "from_port": 0, "to": "Material", "to_port": 0}
  ]
}
```

The parameter values shown are illustrative. Copy real ones from an example or the `.mmg` file.

**Material node input ports:** 0 albedo · 1 metallic · 2 roughness · 3 emission · 4 normal · 5 AO ·
6 depth/height · 7 opacity · 8 SSS. `size` is a power of two exponent (11 = 2048 px, 6–13 =
64–8192 px). The CLI `--size` overrides it.

**Material types** (switch from the node's context menu, or set `type`): `material` (Static PBR,
baked maps), `material_dynamic` (exported as a shader: animated, non-repeating),
`material_unlit`, plus `material_3d`, `material_raymarching`, `material_tesselated`
(displacement) and `material_dynamic_sky`.

**Node library** (`material_maker/library/base.json`): Simple (shapes, SDF2D), Noise, Pattern,
Filter (colorize, blend, blur, normal map, make tileable, pixelize), Transform (tiler, warp,
Tile 2x2), 3D (SDF3D, Tex3D), Workflow (Create Map → Mix Maps → Output: builds normal and AO from
height), Miscellaneous (Custom Shader, Export, Auto Export, Buffer).

More detail, CLI options and custom GLSL nodes: `references/cli-and-nodes.md`.

## Export targets and engine import

| Target (`-t`) | Writes | Notes |
|---------------|--------|-------|
| `Godot/Godot 4 ORM`, `Godot/Godot 4 Standard` | PNG maps + `.tres` | In the 1.8 app both wrote the same `StandardMaterial3D` (`format=2`) reading the packed `_orm.png` by channel (R AO, G roughness, B metallic); it loads in Godot 4.7. Check the `.tres` header if you need `ORMMaterial3D` |
| `Unity/3D`, `Unity/URP`, `Unity/HDRP` | `.mat` + `.png.meta` | URP/3D: `_metal_smoothness.png`; HDRP: `_maskmap.png` |
| `Unreal/Unreal Engine 5` | `.py` import script | add MM's `export` dir to UE Python paths, run the script |
| `Blender` | PNG + EXR | build with Node Wrangler "Principled Texture Setup" |
| `GLTF/Plane` | `.gltf` | quick preview anywhere |

Normal maps are exported OpenGL-style (Y+) for Godot, Unity, Blender and glTF, and DirectX-style
(Y−) for Unreal. Don't flip them again.

**Godot 4:** export straight into the project, assign the `.tres`, check that `_normal.png`
imported as a normal map. Height goes in as parallax (`heightmap_scale = 25 × depth_scale`,
deep parallax). For pixel-art materials set `texture_filter = NEAREST` on the material or the
project default.

## Recipes

- **Tileable:** patterns and noises tile on 0–1 UV already. Run any other source through
  Filter → Make Tileable. Break repetition with Transform → Tiler or Tile2x2.
- **Pixel-art / retro 3D:** `--size 64` or `128`, Filter → Pixelize (colour count, Bayer
  dithering), nearest filtering in the engine.
- **Stylized:** Colorize with hand-picked gradients, Quantize, Kuwahara filter, flat roughness.
- **Realistic:** Workflow chain (Create Map → Mix Maps → Output), warped noise for breakup,
  height-driven normals and AO.
- **Terrain3D layers:** export albedo+height and normal+roughness at the **same size**, then pack
  them as `terrain3d` requires.

## Pitfalls (symptom → cause → remedy)

- **Export lands in the app bundle or fails with `Cannot write file … (7)`** → relative `-o` or
  input paths resolve from Material Maker's own folder → pass absolute paths.
- **CLI prints "Using target …" with a different name** → no exact match, so it fuzzy-matched →
  pass the exact profile string from the table.
- **A map is missing from the export** → its Material input isn't connected → connect it or accept
  the default.
- **CLI hangs or crashes on a server** → it needs a renderer → run on the user's desktop session.
- **Lighting looks inverted on bumps** → normals flipped twice → use the target's own normal output.
- **Unknown parameter silently ignored** → name doesn't match the `.mmg` → read the node definition.

## References

- `references/cli-and-nodes.md`: full CLI flags, output-name tokens, website batch export,
  custom GLSL node (`.mmg`) structure, painting projects.
- Docs: https://rodzill4.github.io/material-maker/doc/ · CLI source:
  https://github.com/RodZill4/material-maker/blob/master/parse_args.gd
- Related: `terrain3d`, `shader-programming`, `godot-3d-essentials`, `pixelstrata`.

Files in this skill

  • SKILL.md8.2 KB
  • agents/openai.yaml207 B
  • references/cli-and-nodes.md3.3 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.