AI Material Generator
Turn natural language descriptions into complete Blender shader node trees powered by LLMs.
The AI Material Generator is a Blender addon that turns natural language descriptions into complete shader node trees. Describe the material you want -- "weathered copper with green patina" or "holographic carbon fiber" -- and the addon generates a fully connected node tree ready for rendering. Built by StraySpark. Licensed under the MIT License.
Feature Overview
| Feature | Details |
|---|---|
| LLM Providers | Ollama (local, free), OpenAI (GPT-4o), Anthropic (Claude) |
| Presets | 50+ built-in presets across 5 categories (Metals, Wood, Stone, Fabric, Sci-Fi) |
| Node Types | 30+ validated Blender shader node types |
| Complexity Levels | Low, Medium, High -- controls node tree depth and detail |
| Blender Version | 4.2 or later |
| Dependencies | Zero -- pure Python addon with no external packages required |
How It Works
The addon enriches your description with context about Blender's node system, sends it to the configured LLM, validates the returned JSON against known node types and socket compatibility, then builds and auto-layouts the shader tree.
User describes material
|
v
Prompt enrichment (complexity, node constraints)
|
v
LLM generates JSON (node definitions + connections)
|
v
Node validation (type checking, socket matching)
|
v
Shader tree creation (bpy.data.node_groups)
|
v
Auto layout (even spacing, left-to-right flow)
Each step includes error handling. If the LLM produces an invalid node type or connection, the validator strips it and logs a warning rather than failing the entire generation.
Quick Start
Get your first AI-generated material in under five minutes:
- Install the addon zip in Blender.
- Configure a provider (Ollama is free and runs locally).
- Open the N-Panel, type a description, and click Generate.
See the Getting Started guide for detailed instructions.
Next Steps
- Getting Started -- Install the addon and generate your first material
- Providers -- Configure Ollama, OpenAI, or Anthropic
- Presets -- Browse 50+ built-in material presets
- Tweak Mode -- Modify existing materials with natural language
- Node Reference -- All 30+ supported shader node types
- API Reference -- Operators, properties, and preferences