Skip to content
AyberkA0Public

About

A desktop tool that generates PBR material maps (Height, Normal, Roughness, AO) from a single photo using Depth Anything V2 / Marigold.

Topics

Resources

Stars

22 stars

Watchers

1 watching

Forks

Repository files navigation

PBRCELAIN logo

PBRCELAIN

Turn a single photo into a clean, tileable height map — and a full PBR material around it.

4K 8K Unlimited resolution Seamless and tileable

Download for macOS or Windows

Buy Me a Coffee

PBRCELAIN main window on macOS: material slots and map settings on the left, 3D viewport on the right

PBRCELAIN is a free desktop app that turns an ordinary photo of a surface (stone, brick, wood, tiles, fabric…) into the texture maps a game engine or 3D renderer needs: Height, Normal, Roughness and Ambient Occlusion. An AI depth model estimates the relief from the photo, the other maps are built from it, and you see the result live on a 3D preview.

pbrcelain_promo_readme.mp4

Showcase

Materials generated from single photos, previewed in the built-in 3D viewport.

Mossy ground material rotating in the 3D viewport
Mossy ground (1254x1254)

Strange pebbles material rotating in the 3D viewport
Strange pebbles (1254x1254)

Broken blue-and-white porcelain tiles rotating in the 3D viewport
Porcelain (1254x1254)

Download

Ready-to-run builds for macOS (Apple Silicon) and Windows (64-bit) are on the Releases page — no Python needed. The app itself is a small download; the AI components are downloaded once, the first time you generate a Height map. On Windows with an NVIDIA graphics card you can pick the GPU (CUDA) version, about 2 GB, which runs the depth models much faster; the CPU version is about 180 MB. On a Mac they run on the GPU (about 160 MB).

Windows builds are to be signed with free code signing provided by SignPath.io, certificate by SignPath Foundation (application pending; current builds are unsigned). See the code signing policy.

First launch on macOS

The app is not notarized by Apple yet, so macOS blocks it the first time:

  1. Open the DMG and drag PBRCELAIN into Applications.
  2. Open it once. When macOS says it cannot verify the app, click Done.
  3. Go to System Settings › Privacy & Security, scroll down and click Open Anyway next to PBRCELAIN, then confirm.

You only need to do this once. If macOS instead says the app is damaged, run this in Terminal and open it again:

xattr -dr com.apple.quarantine /Applications/PBRCELAIN.app

Getting started

  1. Import a photo into the Albedo slot (the one that pulses).
  2. Select the Height slot and click Generate Height. The first run downloads the AI components and the depth model.
  3. Generate Normal, Roughness and Ambient Occlusion the same way, fine-tune them on the Adjustment page, then use Export to write every map to a folder.

Hover over any setting to see what it does. Projects are saved as .pcln files that keep everything, so you can reopen and keep adjusting without re-running the model.

Which depth model?

Important

The right model makes the biggest difference to the result.

  • Depth Anything V2: deep, uneven surfaces with lots of relief, like pebbles, gravel, rocks, bark and rubble.
  • Marigold: flatter, regular, patterned surfaces, like tiles, pavers, brick walls, planks and fabric.

Switch it in Height › Depth Model. If a result looks off, try the other one.

4K, 8K and beyond

General image AIs work at a small, fixed output size, so a 4K or 8K photo loses its fine relief. PBRCELAIN's Full Resolution with Chunk Estimation runs the depth model over the photo in overlapping chunks, so the height map keeps your photo's full resolution, with no upper limit, and stays as accurate as the AI model.

Use from scripts and AI agents

PBRCELAIN also runs without its window, so scripts and LLM agents (Claude Code, Cursor, Codex…) can generate maps with one command and read a JSON answer:

PBRCELAIN generate photo.jpg --out maps/

No extra setup: it is the same app binary (on macOS, /Applications/PBRCELAIN.app/Contents/MacOS/PBRCELAIN). See the command line guide for every option.

Learn more

  • How it works: the depth models, high-resolution and seamless generation, artifact correction, and how each map is derived.
  • Command line: generating maps from scripts and AI agents.
  • Running from source: installing with Python, GPU setup, file associations and project file details.
  • Changelog: what changed in each version.
  • Code signing policy: how Windows builds are signed, and what the app sends over the network (nothing about you).

License

PBRCELAIN is free software under the GNU General Public License v3.0.

The depth models are downloaded from Hugging Face and come with their own licenses. Depth Anything V2 Base and Large are licensed for non-commercial use only (CC BY-NC 4.0). For commercial work, use Depth Anything V2 Small (Apache 2.0), Marigold Fast (Apache 2.0) or Marigold Standard (CreativeML Open RAIL++-M).

About

A desktop tool that generates PBR material maps (Height, Normal, Roughness, AO) from a single photo using Depth Anything V2 / Marigold.

Topics

Resources

Stars

22 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages