Skip to content

Your first tree ​

This walk-through starts from a template and ends with a GLB file you can open anywhere. It takes about ten minutes. You need the editor running (Install and run).

1. Start from a template ​

Press Ctrl+O (or File → New from a template…) and open the Templates tab. Pick broadleaf: a deciduous tree of about 9 m with an open crown. The tree appears in the preview and its graph in the Graph panel.

The five presets, left to right: broadleaf, conifer, birch, bush, colonized

The graph of broadleaf reads left to right like the tree grows:

text
Trunk ─► Branches (boughs) ─► Branches (twigs) ─► Radius rule ─┬─► Leaves ─► Leaf mesher ─┐
                                                              └─► Bark mesher ───────────┴─► Tree output
                                       PBR material (bark) ──► Bark mesher
                                       PBR material (leaves) ─► Leaf mesher

2. Shape the trunk ​

Click the Trunk node. The Properties panel shows its fields. Change Lean to about 12 degrees and watch the preview rebuild. Each field has a small info button that explains it.

Trunk lean 0°, 12° and 25°

Set Count above 1 for several stems from the ground, as in a bush or a coppiced tree.

3. Shape the branches ​

Click the first Branches node (boughs). Its Angle is not a single number: it is a curve along the parent, steeper at the base (70°) and more upright at the top (35°). Click the field's mode switch to see the three forms a number can take: Constant, ± variance and Curve (How the graph works).

Try a constant angle of 85°, then put the curve back with Ctrl+Z.

Bough angle 30°, 55° and 85°

4. Leaves ​

Click Leaves. Count is leaves per stem; Size is the card height in meters. In Leaf mesher, the Leaf shape fields fold, curl, cup and twist each card so leaves stop looking like flat paper (Leaves and leaf shape).

5. A sibling tree ​

The Seed box in the title bar holds the project's seed. Press R (or the dice button) for a new seed: you get a different tree with the same character. Each node also has its own Re-roll, which changes only that node and what depends on it.

6. Check it like an engine will ​

In the preview toolbar:

  • the LOD buttons 0 1 2 show each level of detail; the last button shows the Impostor;
  • the shading buttons show the wind channels R G B A an engine shader reads;
  • the toggles show the wireframe, the skeleton, the grid and the shadows.

The three LODs of broadleaf: 1.0, 0.5 and 0.2 of the detail

7. Save ​

Press Ctrl+S. The first save asks for a name, a kind (tree, bush, grass) and a category, and files the tree as Documents/AskrGarden/trees/<category>/<name>.treegen.json (Saving and files).

8. Export ​

Press Ctrl+E. Pick GLB, keep Include textures on and choose Download or a folder. You get <name>.glb with all LODs, the textures and <name>_export.json. Copy CLI copies the same export as a command:

powershell
.\askrgarden-cli.cmd export "C:\Users\me\Documents\AskrGarden\trees\oak\my_oak.treegen.json" -f glb -o out\my_oak

Next: Formats compared tells you which format to pick for your engine.