PROCEDURAL INTELLIGENT CONTENT GENERATION

Build the graph.
Keep the asset editable.

PICG is a procedural asset toolkit with a visual Web editor, a native C++ runtime and Unity integration. Author the graph yourself or let an AI client edit it through MCP. The .pcg file stays yours to inspect, change and run again.

PICG WEB EDITORlot-city-buildings-procedural.pcg
PICG Web editor showing white procedural city buildings beside their editable node graph
Lot city buildingsEditor capture
In active developmentWeb editor + Unity from sourceApache-2.0

HOW IT WORKS

One graph, from edit to export.

Keep the construction rules, not just the resulting mesh.

  1. AUTHOR

    Start with a graph.

    Wire nodes visually, open an example, or connect an external AI client to edit the same graph through the local MCP server.

  2. VALIDATE & COOK

    See what changes.

    Run the graph with the C++ core, then inspect the result in the Three.js preview. Change a parameter or seed and cook it again.

  3. USE THE RESULT

    Take it into a scene.

    Export GLB from the Web editor or work with graph assets, materials, terrain and splines in Unity.

Working today: local Web editor and Unity. The Unity Player path uses a same-machine pcg-server sidecar. Unreal, Blender, Godot and a standalone Three.js runtime are planned, not available integrations. Read the roadmap.

GRAPH LIBRARY

Open the source, not just the render.

Each example has an editable graph and a capture from the Web editor.

A wooden cabin and its wall, roof, and porch subgraphs in the Web editor

MODULAR BUILDINGS

Wooden cabin

Wall, roof and porch subgraphs assemble into a building.

View cabin graph
Spiral staircase preview alongside a node graph

SPLINES & INSTANCING

Spiral staircase

Build around a spline with sweep and instancing operations.

View staircase graph
Procedural terrain heightfield preview and its editable graph

HEIGHTFIELDS

Terrain demo

Combine terracing, blur, noise distortion and erosion.

View terrain graph
Browse all examples

LOCAL QUICKSTART

Run your first graph.

Start from source. You’ll need Node.js 20.19+ in the 20.x line or Node.js 22.12+, CMake 3.20+, and a C++17 compiler. On Linux, install libcurl development files if needed.

The editor and native server both run on your machine. After starting them, open the local bridge example. If it can’t connect, check the server health endpoint.

Windows PowerShell
# Terminal 1 · clone and start the server
git clone --recurse-submodules https://github.com/DJ-Huang/PCG-AI.git
cd PCG-AI
.\scripts\build-pcg-server.ps1 -Run

# Terminal 2 · from the same repository
cd web\pcg-editor
npm ci
npm run dev
macOS / Linux
git clone --recurse-submodules https://github.com/DJ-Huang/PCG-AI.git
cd PCG-AI
./scripts/run-pcg-web.sh