Video thumbnail
Thumbnail
Description
Changelog
Reviews (3)

Cosmo Tree Gen

Procedural tree generator for Godot 4. Create and tweak trees live in the editor, save them as presets, and export them to glb/glTF with LODs and collisions.

Mainly inspired by Dan Shiffman and EZTree.

100% Human made. No AI was or ever will be used in this project.

Showcase

Save and load presets fast Randomize by seed
presets seed
Live generation Curve editor for fine changes
livegen curves

More videos

Features

  • Live generation and auto-updated in the editor.
  • Configurable tree parameters using custom Resources.
  • Trunk and branches.
    • Multiple trunks per node, roots and broken branches by chance.
    • Branch level length and leaf card size by curve.
    • Optional flat shading for PSX/PS2 aesthetic.
  • Foliage.
    • Icospheres, with configurable subdivisions level.
    • Card leaves, configurable amount and double sided, with canopy normals and inner AO.
    • Leaves shader with wind sway and limited mipmaps, so alpha scissor doesn't make distant leaves disappear.
  • Automatic collision generation.
    • Three shape types: one convex shape per branch, one convex shape per branch segment, or a single trimesh.
    • Covers branches up to a configurable level (0 = trunk only).
    • Collision preview in the editor.
    • Foliage collision: hull (covers all the foliage), spheres on each leaf/branch end.
  • Automatic LOD generation.
    • LOD0, LOD1 and LOD2 MeshInstance3Ds can be generated with customizable ratios and distances.
    • Billboard impostor baked on export as the last LOD, static or octahedral: 2 triangles and 1 draw call for distant trees. See Impostor types
    • The trunk is simplified and the rest of the tris budget goes to the leaves.
    • Leaf cards are not simplified, fewer and bigger cards are kept instead.
  • Presets.
    • 4 premade presets included (Ash, Bush, Low Poly Bush and Low Poly Tree)
    • 7 more premade presets can be found in the demo folder.
    • Can be saved as CosmoTreePreset resources.
  • Export as glb/glTF with LODs, impostor and collisions, optionally linking the materials in the .import file.
  • Exposed API for script generation, see Batch Generation.
  • Editor toolbar: load/save presets, randomize seed, export, and it shows draw calls and tris counter per tree.

Requirements

Godot 4.6+ required. Developed in 4.6.2.stable.

Installation

Copy the addons/cosmo_tree_gen/ folder into your project, enable it.
You can see more examples and presets in the demo folder.

Usage

Add a CosmoTreeGen node and pick a preset from the toolbar.
See Getting Started for the full walkthrough.

Documentation

Roadmap

By priority.

  1. Add more low-poly foliage variations. (Pine, Boxes)
  2. Add a tree age slider. From sapling to old tree.
  3. Add min-max ranges to presets. It should define a species, from young to old.
  4. Hierarchical wind for trunk, branches and leaves.
  5. Shadow proxy. Low poly mesh for foliage with SHADOWS_ONLY.
  6. Bake tree in-place and make the node game-ready. So it can be used without extracting to .glb.
  7. Add stumps, fallen trunk and felled trees. From the same seed.
  8. Add flowers, fruits and mushrooms/fungus on the trunk/branches.
  9. Generate one texture atlas per bark+foliage to reduce 1 draw call.
  10. Make it compatible with older Godot versions.
  11. Preset gallery with preview.
  12. Branchlet texture generator.
  13. Graph editor.

Changelog for version v1.1.0

2026-11-17 17:30:00

No changelog provided for this version.

Reviews

Recommended by comehere128 - 11 November 2026

请问demo文件件夹在哪呢?谢谢!!!

Recommended by Alessandro Casalino - 17 November 2026
Recommended by Klavdij Voncina - 12 November 2026

Login to write a review.

Consider supporting the creators!

If you enjoyed this asset consider supporting its creator. Follow the link below.