Extensions
  • Home
  • Add-ons
  • Themes
  • Approval Queue
  • About
  • Upload Extension
  • Sign in
  • BLENDER.ORG

    • Download

      Get the latest Blender, older versions, or experimental builds.

    • What's New

      Stay up-to-date with the new features in the latest Blender releases.

    DEVELOPMENT

    • Roadmap

      See which projects are currently being worked on and what's next.

    • Documentation

      Guidelines, release notes and development docs.

    LEARNING & RESOURCES

    • Blender Studio

      Access production assets and knowledge from the open movies.

    • Manual

      Documentation on the usage and features in Blender.

    • Benchmark

      A platform to collect and share results of the Blender Benchmark.

    • Blender Conference

      The yearly event that brings the community together.

    DONATE

    • Development Fund

      Support core development with a monthly contribution.

    • One-time Donations

      Perform a single donation with more payment options available.

All Add-ons

Add-on Modular Tree
Modular Tree

Procedural node based 3D tree generation.
Add-on by Brandyn-Britton
About What's New Permissions Reviews Version History
Modular Tree Preview Easy tree generation Node Tree Generation Quick tree generation with presets Branches connected to the trunk

Modular Tree (MTree)

A procedural tree generator addon for Blender using a node-based workflow.

Note: Maintained fork of Mtree by MaximeHerpin.

Features

  • Quick Generate - One-click tree generation with presets (Oak, Pine, Willow)
  • Node-based workflow - Build trees visually by connecting nodes for full control
  • Procedural generation - Control trunk, branches, and leaves with parameters
  • Multi-level branching - Chain branch nodes for complex tree structures
  • Crown shapes - 8 botanical envelope shapes (conical, spherical, flame, etc.) based on Weber & Penn
  • L-system growth - Biologically-inspired growth simulation with apical dominance
  • Realistic physics - Gravity, stiffness, and natural spiral patterns (phyllotaxis)
  • Leaf distribution - Automatic leaf placement on thin branches via geometry nodes
  • Pivot Painter 2.0 export - Export wind animation data for Unreal Engine 5
  • Non-destructive - Adjust parameters and regenerate anytime

Requirements

  • Blender 4.3 or later

Installation

Blender Extensions

Find the extension on the Blender extension platform

https://extensions.blender.org/add-ons/modular-tree/

Local Installation

  1. Download the latest release for your OS from Releases
  2. In Blender: Edit -> Preferences -> Add-ons -> Install
  3. Select the downloaded .zip file
  4. Enable "Modular Tree" in the addon list

Quick Start

Quick Generate (Easiest)

  1. Open the 3D View sidebar (press N)
  2. Select the MTree tab
  3. Click Generate Tree and choose a preset (Oak, Pine, Willow, or Random)

Node Editor (Full Control)

  1. Open a Node Editor and select Mtree from the tree type dropdown
  2. Add a Tree Mesher node (Shift+A)
  3. Add a Trunk node and connect Tree Mesher's output to Trunk's input
  4. Add a Branches node and connect Trunk's output to Branches' input
  5. Click Generate Tree in the Tree Mesher node
  6. (Optional) Click Add Leaves to distribute leaves on the tree

Tip: Select a Branch node and press N to see organized parameter sections with descriptions, plus preset buttons (Oak, Pine, Willow, Random) to quickly configure branch characteristics.

Node Types

Node Description
Tree Mesher Generates the final mesh; connect to Trunk
Trunk Creates the main trunk with length, radius, and shape controls
Branches Adds branches with density, angle, gravity, and split options
Growth L-system style growth with apical dominance and iterations
Radius Override Fine-tunes branch thickness along their length
Random Value Generates random values for parameter variation
Ramp Creates gradient values from start to end of branches

Customization

Branch Parameters

Use the Presets section in the inspector panel (N key) to apply Oak, Pine, Willow, or Random configurations, or manually adjust:

  • Seed - Controls randomization (same seed = same tree)
  • Length/Radius - Size and thickness
  • Up Attraction/Gravity - How branches grow relative to gravity
  • Split - Probability and angle of branch splitting
  • Phyllotaxis - Spiral angle between branches (137.5 is the golden angle)
  • Crown Shape - Control tree silhouette (Cylindrical, Conical, Spherical, Flame, etc.)

Crown Shape

Crown Shape controls branch lengths based on height, creating realistic tree silhouettes. Available in the Branch node inspector panel under "Crown Shape":

Shape Use Case
Cylindrical Default, uniform branches
Conical Pine, fir, spruce (Christmas tree)
Spherical Oak, maple (round crown)
Hemispherical Dome-shaped canopy
Flame Cedar, cypress (pointed top)
Inverse Conical Wide bottom, narrow top

Enable Preview in Viewport to visualize the envelope. See Crown Shape Guide for details.

Growth Parameters (L-system)

  • Iterations - Number of growth cycles
  • Apical Dominance - How much the main stem suppresses side branches
  • Grow/Split/Cut Thresholds - Control branching behavior
  • Gravitropism - Response to gravity direction

Leaf Generation

Mtree generates fully procedural 3D leaves from math — no hand-modeling or textures needed. Each leaf is built through a pipeline:

  1. Shape — The outline is created using the Superformula, a single equation that can produce round, pointed, heart-shaped, or star-like forms by adjusting a few parameters.
  2. Edge detail — Teeth, scallops, or lobes are added to the outline to match real leaf margin types (serrate, dentate, crenate, lobed).
  3. Vein network — Veins grow using space colonization, which scatters "growth hormone" points across the leaf and lets veins grow toward them — producing realistic branching patterns that fill the available space.
  4. Surface curvature — The flat mesh is bent with midrib curvature, cross-cupping, edge curl, and raised ridges along vein paths.

Species presets (Oak, Maple, Birch, Willow, Pine) combine these parameters to match real leaves. See the Leaf Generation Guide for a full walkthrough.

Leaf Distribution

After generating a tree, click "Add Leaves" in Tree Mesher to configure:

  • Density - Leaves per area
  • Max Radius - Only place leaves on thin branches
  • Scale/Rotation Variation - Natural randomness
  • Leaf Object - Use a custom leaf mesh

Pivot Painter 2.0 Export (UE5)

Export hierarchical wind animation data for Unreal Engine 5:

  1. Generate a tree using the Tree Mesher node
  2. In the Node Editor, add an Export > Pivot Painter node
  3. Connect your Tree Mesher output to the Pivot Painter node
  4. Set the export path and click Export

This creates two EXR textures and a UV2 layer compatible with Epic's PivotPainter2FoliageShader material function.

See UE5 Material Setup Guide for detailed import and material configuration instructions.

Note: Currently only Unreal Engine 5 export is fully tested. I am working towards testing properly in Unity

Development

This project uses modern Python tooling:

  • uv - Fast Python package manager (used in CI)
  • Ruff - Fast Python linter and formatter
  • pre-commit - Git hooks for code quality
  • clang-format - C++ code formatting

To set up the development environment:

# Install pre-commit hooks (requires uv)
uvx pre-commit install

See CONTRIBUTING.md for full development setup and build instructions.

Contributing

For detailed build instructions, architecture overview, and C++ library usage, see CONTRIBUTING.md.

License

  • Blender addon: GPLv3
  • Core library: MIT

Credits

Maintainer: GoodPie


What's New

5.5.2 May 13th, 2026

What's New?

Official Blender 5.1 support for all platforms

See all versions


Permissions

This extension requests the following permission:

  • Files

    Export pivot painter textures

Developer
Brandyn-Britton
Rating
(12)
Version
5.5.2
Updated
1 mo
Published
Jan. 27th, 2026
Downloads
17397
Compatibility
Blender 4.3.1 and newer
Supported Platforms
  • macOS Apple Silicon, Intel
  • Windows
  • Linux
Website
github.com/GoodPie/modular_tree
Report Issues
github.com/GoodPie/modular_tree/issues
License
GNU General Public License v3.0 or later
Add Curve Mesh
Windows – 3.5 MB
...or download and Install from Disk
macOS - Intel – 3.1 MB
...or download and Install from Disk
macOS - Apple Silicon – 3.5 MB
...or download and Install from Disk
Linux – 3.6 MB
...or download and Install from Disk
  • Windows 3.5 MB
  • macOS Intel 3.1 MB
  • macOS Apple Silicon 3.5 MB
  • Linux 3.6 MB

Reviews

See all
  • gjKrypton
  • v5.5.2
  • 1 w

It is perfect, thank you.

  • Phurit-Chawong
  • v5.5.2
  • 2 w

Would be nice to have some tutorial on the newer version.

  • Maxime-Herpin
  • v5.5.0
  • 1 mo

This is very nice, thank you for keeping this project alive !

  • Brandyn-Britton replied
  • 1 mo

Appreciate all the effort you put in. Hopefully I haven't butchered it too much 😅

5.0

12 reviews
5
4
3
2
1
Rate this Add-on Report an issue
  • About
  • Privacy Policy
  • Terms of Service
About
  • Blender Foundation
  • Blender Institute
  • Blender Studio
  • License
  • Logo & Trademark
  • Credits
  • Privacy Policy
  • Code of Conduct
Organization
  • People
  • Jobs
Blender Network
Download
  • Latest Blender
  • Blender LTS
  • Previous Versions
  • Experimental Builds
  • Source Code
  • Requirements
  • Benchmark
  • Flamenco
Extensions
  • Add-ons
  • Themes
Developers
  • Get Started
  • Roadmap
  • Projects
  • Docs
  • Blog
  • Forum
  • YouTube
  • Python API
Blender Studio
  • Films
  • Training
  • Tools & Pipeline
Support
  • Manual
  • Community
  • FAQ
Get Involved
  • Documentation
  • Education
News
  • Press Releases
  • User Stories
Blender Conference
Follow Blender
Support Blender
  • Donate
  • One-time Donation
Artistic freedom starts with Blender The Free and Open Source 3D Creation Suite