The export manifest
Every export writes <name>_export.json beside the model: a description of what was written and what each number means. An engine import script reads it to wire what a format cannot carry by itself (translucency, height, the impostor, wind channel meanings).
Top-level keys
| Key | Content |
|---|---|
format, generator | "treegen-export" and the treegen version |
name, species | the tree's name and species tag |
units, up_axis | "meters", "+Y" |
height_m, crown_radius_m, trunk_base_radius_m, bounds | placement data for scatter tools |
lods | per LOD: index, detail, suggested screen size, triangles, vertices, mesh names |
wind | the layout name and the meaning of each channel |
collision_capsules | capsules along the trunk and main boughs: two points and a radius |
wind_fade_distance_hint | a reminder to fade wind out before the last LOD switch |
impostor | grid, frame size, sphere, pivot, atlas files and channels, strip bounds, card names per format… (when exported) |
files | every file written |
materials | each material's slots with their source files, colour spaces and channels |
textures | each texture written: file, material, slot, colour space, packed channels, format |
formats | the formats of this export |
atlas | regions, size, wrap and UV rule (with --atlas) |
cards | planes, frame size, UV frames, azimuths, files, material and wind notes (with --cards) |
An excerpt
From an export of samples/broadleaf_textured.treegen.json (shortened):
json
{
"format": "treegen-export",
"generator": "treegen 1.0.0",
"name": "broadleaf_textured",
"units": "meters",
"up_axis": "+Y",
"lods": [
{ "index": 0, "detail": 1.0, "screen_size": 0.5, "triangles": 11865, "vertices": 10803,
"meshes": ["broadleaf_textured_LOD0_bark", "broadleaf_textured_LOD0_leaves"] },
{ "index": 1, "detail": 0.5, "screen_size": 0.225, "triangles": 3147, "vertices": 3818, "meshes": ["…"] },
{ "index": 2, "detail": 0.2, "screen_size": 0.02, "triangles": 800, "vertices": 1230, "meshes": ["…"] }
],
"wind": {
"layout": "treegen_wind_v1",
"COLOR_0.r": "detail flutter weight, 0 near the stem, 1 at leaf edges",
"COLOR_0.g": "phase, random per stem (per leaf on cards), 0-1",
"COLOR_0.b": "branch bend weight, 0 at the stem base, grows to the tip",
"COLOR_0.a": "crown ambient occlusion, darker inside",
"TEXCOORD_1.xy": "pivot of the stem this vertex bends around: x, y (object space, meters)",
"TEXCOORD_2.x": "pivot z",
"TEXCOORD_2.y": "hierarchy level, normalized: 0 trunk, 1 deepest"
},
"textures": [
{ "file": "broadleaf_textured_bark_metallic_roughness.png", "material": "bark", "slot": "metallic_roughness",
"color_space": "linear", "channels": { "G": "roughness", "B": "metallic" }, "format": "glb" }
]
}The glTF and GLB files also carry the tree data in extras.treegen (LODs, wind, impostor), so a GLB alone is enough for a loader that reads extras.