Skip to content

What AskrGarden is ​

AskrGarden makes 3D trees, bushes and grass for games and for render. You describe a tree as a graph of nodes: a trunk, one or more levels of branches, leaves, the meshers that turn them into triangles, PBR materials and one output. AskrGarden builds the tree from that graph and writes it to the formats game engines read.

The editor with a tree, its graph and its properties

AskrGarden is the name of the product; its command line is askrgarden-cli (askrgarden-cli export). Project files keep the short name treegen: oak.treegen.json.

What you get ​

  • A local editor in your browser (or in its own window): the graph, a live 3D preview, the properties of the selected node with an explanation of every field in English or Portuguese.
  • A command line that does everything the editor does, for build scripts and batch work.
  • Exports to GLB/glTF, FBX, OBJ and USD, with the textures written beside the model.
  • Engine data: several levels of detail (LODs), wind data in vertex channels a shader can read, and an octahedral impostor for trees far away.
  • 47 ready trees to start from: 5 presets and a species library of 41 trees, palms and shrubs.

How it works, in one picture ​

text
  oak.treegen.json  ──►  treegen core (Python)  ──►  GLB · glTF · FBX · OBJ · USD
  (the graph)             builds the skeleton,         + textures, LODs, wind data,
                          the meshes, the LODs         impostor, _export.json
        ▲                         ▲
        │                         │
   editor (browser)          command line

Every front end calls the same core. The editor never builds geometry by itself: it asks the core and shows the result. That is why an export from the editor and askrgarden-cli export on the same file give the same bytes.

Three ideas to keep in mind ​

  1. The same file always builds the same tree. Randomness comes only from the project's seed and a stream per node. Change the seed for a sibling tree with the same character.
  2. Every generator makes stems. Trunk, branches and space colonization all add stems to one shared skeleton. Meshing, LODs, wind data and export do not care which node made a stem.
  3. Meters, +Y up. Trees grow from the origin along +Y. Each writer converts to what its format expects.

Where to go next ​

You want to…Read
Install and open the editorInstall and run
Build a tree from a template, step by stepYour first tree
Learn the panels of the editorTour of the editor
Understand nodes, links and varying valuesHow the graph works
Get the tree into Unity, Unreal or GodotFormats compared and Engines
Look up one node or one parameterNode reference