Formats compared
AskrGarden writes four formats with its own writers: nothing else to install. Every export also writes the textures beside the model and an export manifest (<name>_export.json).
Which one should I use?
| You want to… | Use |
|---|---|
| Unity with glTFast, Godot, three.js, a web viewer, or the most complete file | GLB (or glTF) |
| Unity with its default importer, or Unreal | FBX |
| A DCC tool or renderer that reads USD | USD (.usda) |
| A tool that reads nothing else | OBJ |
What each format carries
| GLB / glTF | FBX | OBJ + MTL | USD (.usda) | |
|---|---|---|---|---|
| Files | one .glb (or .gltf + .bin) | one .fbx | one .obj per LOD + one .mtl | one .usda per LOD |
| All LODs | in one file (<name>_LOD0, _LOD1…) | in one file; Unity builds an LOD Group | <name>.obj, <name>_LOD1.obj… | <name>.usda, <name>_LOD1.usda… |
| Base colour, alpha | yes | yes | yes | yes |
| Normal map | yes (OpenGL) | yes | yes (norm) | yes |
| Roughness / metallic | packed into one map | linked as files | map_Pr, map_Pm | yes |
| Occlusion | yes | written, not linked | — | yes |
| Height | written, listed in extras | written | disp | displacement |
| Translucency | written, listed in extras | written | — | — |
| Wind data | COLOR_0, TEXCOORD_1, TEXCOORD_2 | vertex colours + UV sets 1–2 | no | primvars |
| Impostor atlases | yes | yes | yes | yes |
| Impostor card | yes | yes | yes (*) | yes (*) |
| Extra tree data | extras.treegen | — | — | — |
(*) Implemented, not yet checked in an engine (roadmap impostor-other-formats). The FBX card is checked in Unity.
All formats are in meters, Y up (FBX: Y up, 1 unit = 1 m). glTF is the reference output: the others are checked against it by reading each file back with independent loaders.
GLB and glTF
- One mesh per LOD, one primitive per material. Leaves use
alphaMode: MASK,alphaCutoffanddoubleSided. - Bark tiling is baked into the UVs, so no texture-transform extension is needed.
- What glTF has no place for (LOD switch sizes, wind channel meanings, height and translucency textures) goes into
extras.treegen. glbis one binary file;gltfis JSON +.bin+ textures.
FBX
- Binary FBX 7.4 from AskrGarden's own writer: no Autodesk SDK, no Blender.
- A root object
<name>with one model per LOD,<name>_LOD<n>: the names Unity turns into an LOD Group. - Bark and leaves are two materials of one mesh per LOD (two submeshes in Unity).
- Materials link base colour (with alpha for cut-out leaves), normal, roughness and metallic files; the textures sit beside the FBX.
--fbx-via blendermakes the FBX with Blender instead, when Blender is installed. It is written but untested (Blender is not installed on the development machine).
OBJ
A fallback for tools that read nothing else: one .obj per LOD sharing one .mtl with PBR keywords. OBJ has no vertex colours and no second UV set, so there is no wind data.
USD
A text .usda per LOD with UsdPreviewSurface materials and the wind data as primvars, upAxis = "Y", metersPerUnit = 1. No usd-core dependency. USDZ is not written.
What is not exported
- Bones for skinned wind (roadmap
bone-export). - A tree as a base mesh plus instanced leaf clusters (roadmap
assembly-export).
Importing meshes
AskrGarden also reads GLB, glTF, OBJ and binary FBX, to bring a mesh into a Mesh input node (a custom leaf card, a fruit, a reference model). An imported tree stays a mesh: it does not become an editable graph.
.\askrgarden-cli.cmd import some_mesh.fbx # what a mesh holds