Texture packs and PBrokkR
PBrokkR (formerly PBRGenerator, command pbrgen) is a separate tool that makes tileable PBR texture sets from a photo, a height map or a normal map. AskrGarden reads what it writes in three ways:
| Route | You give AskrGarden | Fills |
|---|---|---|
| Manifest | the folder's <prefix>_manifest.json | every slot, colour space, channel, normal convention, tile size |
| Texture pack | one .pbrpack file (or a .zip of a set) | the same, plus material settings (alpha, two-sided, atlas…) |
| Make textures | a photo; AskrGarden runs PBrokkR for you | the same as a pack |
A manifest
Set the material's PBRGenerator manifest field to <prefix>_manifest.json (or drop the manifest on the node). For each map the manifest lists the file, its channels, bit depth, colour space and normal convention, and AskrGarden takes them from there, never guessing.
- The first matching row per slot wins, so a loose
roughnessmap beats a packed channel of the same set. - Maps a tree material has no slot for (
curvature,cavity) are skipped quietly; an unknown map gives a warning. - A slot you set by hand on the node always wins over the manifest.
- Engine-profile sets of PBrokkR (
unity_urp,unity_hdrp,unreal,godot) work too: packed channels are mapped through the manifest. For bark, thestandaloneprofile is the simplest: loose maps, and AskrGarden packs them for each export target.
A texture pack: .pbrpack
One file instead of a folder: a zip holding the manifest, every map it lists and a small pbrpack.json with the material settings a manifest does not carry.
{
"format": "pbrpack",
"pack_version": 1,
"name": "bark_ropes",
"kind": "bark",
"manifest": "bark_ropes_manifest.json",
"material": { "tile_size_m": 0.8, "alpha_mode": "opaque", "double_sided": false }
}kind is bark, leaf, ground or generic and only chooses defaults: bark and ground are opaque and one-sided; leaf is mask, cutoff 0.5, two-sided. The material keys are the PBR material's own fields: tile_size_m, alpha_mode, alpha_cutoff, double_sided, atlas, normal_scale, translucency_factor.
Import a pack in the editor
On a PBR material, under the manifest field, click Import texture pack… and pick a .pbrpack or a .zip — or drop the pack on the material node in the graph. The maps are unpacked into <project folder>/textures/<pack name>/, and the manifest and settings are applied as one undoable edit. A message lists what was set.
From the command line
.\askrgarden-cli.cmd import bark.pbrpack # describe it, write nothing
.\askrgarden-cli.cmd import bark.pbrpack --extract textures # unpack into textures\<pack name>\
.\askrgarden-cli.cmd pack-textures bark_manifest.json --kind bark --tile-size 0.8 # make a pack from a setWhat a pack may not contain
Readers refuse packs with absolute or .. paths, sub-folders, links, files that are not .png or .json, a PNG without the PNG signature, more than 64 files, a file over 64 MiB or more than 256 MiB in total, two manifests, or a version newer than the reader. Notes such as *_IMPORT_NOTES.md and OS clutter are skipped. The same set always gives the same bytes.
Make textures with PBrokkR
AskrGarden can run PBrokkR for you: it starts PBrokkR's own program as a separate process, takes the pack it writes and imports it as above. PBrokkR is found, first hit wins, in: the path saved in the editor's settings, the TREEGEN_PBRGEN environment variable, or a sibling folder of the repository (../PBRGenerator, ../PBrokkR, ../pbr-generator).
.\askrgarden-cli.cmd pbrgen # where PBrokkR was found, and its version
.\askrgarden-cli.cmd make-textures photos\oak_bark.jpg --kind bark --project my.treegen.jsonThe new set goes to <project folder>/textures/<name>/. See make-textures for every option.
In the editor
Select a PBR material node. Under its manifest field, next to Import texture pack…, click Make with PBrokkR…. In the dialog:

- Choose an image from your computer. It is copied to
<project folder>/textures/source/when you press Make. - Say what the image is: a photo, a height map or a normal map.
- Pick the texture kind (bark, leaf, ground or generic), the set name and, if you want, a PBrokkR preset.
- Adjust the options PBrokkR offers: size, seam mode, tile size in metres and normal strength. Their choices and help come from PBrokkR itself. For a bark or ground photo the seam mode starts on periodic, so the set tiles.
While PBrokkR works, the dialog shows the time spent and the last lines it printed. When it finishes, the manifest and the material's textures are set in one step that Undo reverts, like an imported pack. If it fails, the message and the log stay in the dialog.
When PBrokkR is not found, the dialog says why and lets you pick its folder or Detect by itself. The same location is in Preferences > Files > PBrokkR location.
Limits: the input is an image, not a text description; one run at a time; no cancel button (the dialog stays open while it runs); a run stops after 300 seconds.