A Blender 5.2 LTS extension for generating game-ready procedural trees without millions of individually modeled leaves.
Trees 2.0 combines low-sided woody geometry, instanced 2D foliage cards, competition-guided crown growth, exact parent/child branch junctions, generated LODs, wind metadata, and automatic multi-view impostors.
0.3.1 replaces the experimental whole-tree voxel-fusion system with Exact Boolean Junctions. Python syntax is checked in CI. Blender-runtime behavior should still be treated as beta until the topology-changing Boolean and render-baking paths have been exercised across several Blender 5.2 scenes.
- Download or clone the repository.
- Package the extension so
blender_manifest.tomland__init__.pyare at the ZIP root. - In Blender 5.2 open Edit > Preferences > Get Extensions > Install from Disk.
- Enable Trees 2.0 if needed.
- Open the 3D View sidebar (
N) and choose Trees 2.0.
The extension requests Blender's files permission because the impostor baker writes PNG atlases to disk.
The deterministic tree skeleton supports:
- root flare,
- trunk taper and irregularity,
- 1–4 branch levels,
- phyllotaxis, random, and whorled branch distribution,
- round, oval, columnar, conical, vase, and umbrella crowns,
- branch bend and droop,
- phototropism/upward growth,
- apical dominance,
- natural pruning,
- dead branches,
- branch collars.
When Space Competition is enabled, Trees 2.0 samples virtual attraction points throughout the crown volume. Growing branches are pulled toward nearby unclaimed targets while an occupied-space field repels them from existing woody segments.
New growth consumes nearby attraction points, so later branches preferentially fill empty canopy volume instead of repeatedly crossing existing limbs.
Controls include attraction-point count, influence radius, claim radius, branch clearance, attraction strength, avoidance strength, and the highest LOD that should run the competition pass.
Exact Boolean Junctions replaces the old whole-tree voxel remesh.
The generator builds the trunk and branch pieces as closed solids. Trunk and major branch levels are then progressively unioned with Blender's Exact Boolean solver. This changes topology only at actual intersections and leaves the rest of the trunk surface intact.
The default hybrid strategy is:
- trunk + primary branches: Exact Boolean,
- secondary branches: Exact Boolean,
- thinner/high-order twigs: cheap collar/intersection geometry.
You can control the highest branch hierarchy level and highest LOD that receive exact unions.
If one individual Boolean fails, Trees 2.0 keeps that branch as collar geometry rather than discarding the branch or returning a damaged trunk. If the exact-junction setup itself fails, the entire woody mesh falls back to the known-safe collar path.
After topology changes, Trees 2.0 can reproject the original branch hierarchy and wind attributes using nearest-point lookup. Bark image textures use box projection in Exact Boolean mode so junction topology changes do not produce broken UV patches.
The removed experimental voxel-fusion mode is no longer exposed because it could perforate otherwise valid trunk geometry.
Leaves are not modeled individually. Terminal living branches instance shared foliage cards through Geometry Nodes.
Card modes:
- Single — one bent card,
- Crossed — two crossed cards,
- Tri-Cross — three crossed cards.
A foliage card should normally represent several leaves and small twigs.
Configure Atlas Columns, Atlas Rows and Used Cells. Trees 2.0 builds one shared source card per used atlas cell and assigns every foliage point a trees2_atlas_index attribute. Geometry Nodes uses Pick Instance to choose the corresponding UV-mapped source.
Supported maps:
- leaf color + alpha,
- leaf normal,
- leaf roughness,
- bark color,
- bark normal.
The preset library includes more than thirty starting forms, including:
- English, holm and cork oak,
- birch, beech, maple, ash, elm, linden, chestnut and walnut,
- poplar, willow, cherry, apple and magnolia,
- eucalyptus, olive, acacia and baobab,
- Scots pine, stone pine, spruce, fir, cedar, Italian cypress and coast redwood,
- dead tree, windswept and sapling forms.
These are parameterized shape presets, not scanned species assets.
| LOD | Purpose | Default behavior |
|---|---|---|
| LOD0 | Hero | Full branch depth, competition growth, Exact Boolean major junctions |
| LOD1 | Near | Reduced radial/detail density, Exact Boolean major junctions |
| LOD2 | Mid | Reduced branch depth and foliage, collar junctions |
| LOD3 | Far | Minimal geometric tree |
| LOD4 | Impostor | Multi-view baked atlas + very-low-cost billboard mesh |
With Impostor as LOD4 enabled, Generate LOD Set creates LOD0–LOD3 as geometry and automatically bakes LOD4 from the LOD0 source.
The old procedural LOD4 proxy is still available manually.
Select a generated tree and click Bake Multi-View Impostor.
Trees 2.0 will:
- isolate the selected tree for rendering,
- create a temporary orthographic camera and neutral light rig,
- render evenly spaced azimuth views with a transparent background,
- pack the RGBA views into a PNG atlas,
- save atlas metadata on the tree,
- create an optional view-selecting billboard mesh,
- restore the original camera, render settings and object visibility.
The Blender preview impostor uses only two triangles per baked view. A game runtime can go even cheaper by using one camera-facing quad and selecting the atlas cell from camera azimuth.
See docs/advanced-growth-impostors.md for advanced controls and engine metadata.
Branches can contain:
trees2_branch_leveltrees2_branch_idtrees2_wind_weighttrees2_wind_phasetrees2_stiffness
Foliage points contain:
trees2_rotationtrees2_scaletrees2_atlas_indextrees2_wind_weighttrees2_wind_phasetrees2_stiffness
Exact Boolean branches can reproject the branch/wind attributes after topology changes.
Keep foliage unrealized while authoring. Use Bake Foliage for Export only when you need actual card geometry for a mesh export.
For a complete game asset, generate close LODs normally and bake an impostor atlas for the final distance tier.
Spend geometry where it produces visible silhouette and parallax:
- trunk and major branches — actual geometry,
- major visible junctions — exact solid unions,
- thin branches — progressively fewer radial sides and cheap collars,
- terminal detail — mostly foliage-card texture content,
- leaves — clustered 2D cards,
- very far distance — multi-view impostor.
GPL-3.0-or-later.