Skip to content

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 fileGLB (or glTF)
Unity with its default importer, or UnrealFBX
A DCC tool or renderer that reads USDUSD (.usda)
A tool that reads nothing elseOBJ

What each format carries ​

GLB / glTFFBXOBJ + MTLUSD (.usda)
Filesone .glb (or .gltf + .bin)one .fbxone .obj per LOD + one .mtlone .usda per LOD
All LODsin 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, alphayesyesyesyes
Normal mapyes (OpenGL)yesyes (norm)yes
Roughness / metallicpacked into one maplinked as filesmap_Pr, map_Pmyes
Occlusionyeswritten, not linked—yes
Heightwritten, listed in extraswrittendispdisplacement
Translucencywritten, listed in extraswritten——
Wind dataCOLOR_0, TEXCOORD_1, TEXCOORD_2vertex colours + UV sets 1–2noprimvars
Impostor atlasesyesyesyesyes
Impostor cardyesyesyes (*)yes (*)
Extra tree dataextras.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, alphaCutoff and doubleSided.
  • 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.
  • glb is one binary file; gltf is 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 blender makes 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.

powershell
.\askrgarden-cli.cmd import some_mesh.fbx     # what a mesh holds