{"id":42143066,"url":"https://github.com/goodpie/modular_tree","last_synced_at":"2026-02-16T16:01:04.854Z","repository":{"id":334733442,"uuid":"1142407532","full_name":"GoodPie/modular_tree","owner":"GoodPie","description":"Create dynamic trees in Blender 5. Fork of MTree (Modular Tree) ","archived":false,"fork":false,"pushed_at":"2026-02-10T09:13:53.000Z","size":6427,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-02-10T09:42:54.431Z","etag":null,"topics":["3d","blender","blender-addon","generation","mtree"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoodPie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-26T11:20:56.000Z","updated_at":"2026-02-10T09:08:24.000Z","dependencies_parsed_at":"2026-02-16T16:00:36.094Z","dependency_job_id":null,"html_url":"https://github.com/GoodPie/modular_tree","commit_stats":null,"previous_names":["goodpie/modular_tree"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/GoodPie/modular_tree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodPie%2Fmodular_tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodPie%2Fmodular_tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodPie%2Fmodular_tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodPie%2Fmodular_tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoodPie","download_url":"https://codeload.github.com/GoodPie/modular_tree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoodPie%2Fmodular_tree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29512228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["3d","blender","blender-addon","generation","mtree"],"created_at":"2026-01-26T17:44:09.171Z","updated_at":"2026-02-16T16:01:04.821Z","avatar_url":"https://github.com/GoodPie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mtree\n\n[![Build and Release](https://github.com/GoodPie/modular_tree/actions/workflows/CD.yml/badge.svg)](https://github.com/GoodPie/modular_tree/actions/workflows/CD.yml)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\nA procedural tree generator addon for Blender using a node-based workflow.\n\n\u003e **Note:** Maintained fork of [Mtree by MaximeHerpin](https://github.com/MaximeHerpin/modular_tree).\n\n## Features\n\n- **Quick Generate** - One-click tree generation with presets (Oak, Pine, Willow)\n- **Node-based workflow** - Build trees visually by connecting nodes for full control\n- **Procedural generation** - Control trunk, branches, and leaves with parameters\n- **Multi-level branching** - Chain branch nodes for complex tree structures\n- **Crown shapes** - 8 botanical envelope shapes (conical, spherical, flame, etc.) based on Weber \u0026 Penn\n- **L-system growth** - Biologically-inspired growth simulation with apical dominance\n- **Realistic physics** - Gravity, stiffness, and natural spiral patterns (phyllotaxis)\n- **Leaf distribution** - Automatic leaf placement on thin branches via geometry nodes\n- **Pivot Painter 2.0 export** - Export wind animation data for Unreal Engine 5\n- **Non-destructive** - Adjust parameters and regenerate anytime\n\n## Requirements\n\n- Blender 4.3 or later\n\n## Installation\n\n### Blender Extensions\n\nFind the extension on the Blender extension platform\n\nhttps://extensions.blender.org/add-ons/modular-tree/\n\n### Local Installation\n\n1. Download the latest release for your OS from [Releases](https://github.com/GoodPie/modular_tree/releases)\n2. In Blender: Edit -\u003e Preferences -\u003e Add-ons -\u003e Install\n3. Select the downloaded `.zip` file\n4. Enable \"Modular Tree\" in the addon list\n\n## Quick Start\n\n### Quick Generate (Easiest)\n1. Open the **3D View** sidebar (press `N`)\n2. Select the **MTree** tab\n3. Click **Generate Tree** and choose a preset (Oak, Pine, Willow, or Random)\n\n### Node Editor (Full Control)\n1. Open a **Node Editor** and select **Mtree** from the tree type dropdown\n2. Add a **Tree Mesher** node (Shift+A)\n3. Add a **Trunk** node and connect Tree Mesher's output to Trunk's input\n4. Add a **Branches** node and connect Trunk's output to Branches' input\n5. Click **Generate Tree** in the Tree Mesher node\n6. (Optional) Click **Add Leaves** to distribute leaves on the tree\n\n**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.\n\n## Node Types\n\n| Node | Description |\n|------|-------------|\n| **Tree Mesher** | Generates the final mesh; connect to Trunk |\n| **Trunk** | Creates the main trunk with length, radius, and shape controls |\n| **Branches** | Adds branches with density, angle, gravity, and split options |\n| **Growth** | L-system style growth with apical dominance and iterations |\n| **Radius Override** | Fine-tunes branch thickness along their length |\n| **Random Value** | Generates random values for parameter variation |\n| **Ramp** | Creates gradient values from start to end of branches |\n\n## Customization\n\n### Branch Parameters\nUse the **Presets** section in the inspector panel (`N` key) to apply Oak, Pine, Willow, or Random configurations, or manually adjust:\n- **Seed** - Controls randomization (same seed = same tree)\n- **Length/Radius** - Size and thickness\n- **Up Attraction/Gravity** - How branches grow relative to gravity\n- **Split** - Probability and angle of branch splitting\n- **Phyllotaxis** - Spiral angle between branches (137.5 is the golden angle)\n- **Crown Shape** - Control tree silhouette (Cylindrical, Conical, Spherical, Flame, etc.)\n\n### Crown Shape\nCrown Shape controls branch lengths based on height, creating realistic tree silhouettes. Available in the Branch node inspector panel under \"Crown Shape\":\n\n| Shape | Use Case |\n|-------|----------|\n| Cylindrical | Default, uniform branches |\n| Conical | Pine, fir, spruce (Christmas tree) |\n| Spherical | Oak, maple (round crown) |\n| Hemispherical | Dome-shaped canopy |\n| Flame | Cedar, cypress (pointed top) |\n| Inverse Conical | Wide bottom, narrow top |\n\nEnable **Preview in Viewport** to visualize the envelope. See [Crown Shape Guide](docs/crown_shape_guide.md) for details.\n\n### Growth Parameters (L-system)\n- **Iterations** - Number of growth cycles\n- **Apical Dominance** - How much the main stem suppresses side branches\n- **Grow/Split/Cut Thresholds** - Control branching behavior\n- **Gravitropism** - Response to gravity direction\n\n### Leaf Distribution\nAfter generating a tree, click \"Add Leaves\" in Tree Mesher to configure:\n- **Density** - Leaves per area\n- **Max Radius** - Only place leaves on thin branches\n- **Scale/Rotation Variation** - Natural randomness\n- **Leaf Object** - Use a custom leaf mesh\n\n### Pivot Painter 2.0 Export (UE5)\n\n\n\nExport hierarchical wind animation data for Unreal Engine 5:\n\n1. Generate a tree using the **Tree Mesher** node\n2. In the Node Editor, add an **Export \u003e Pivot Painter** node\n3. Connect your Tree Mesher output to the Pivot Painter node\n4. Set the export path and click **Export**\n\nThis creates two EXR textures and a UV2 layer compatible with Epic's\n`PivotPainter2FoliageShader` material function.\n\nSee [UE5 Material Setup Guide](python_classes/pivot_painter/UE5_MATERIAL_SETUP.md)\nfor detailed import and material configuration instructions.\n\n\u003e **Note:** Currently only Unreal Engine 5 export is fully tested. I am working towards testing properly in Unity\n\n## Development\n\nThis project uses modern Python tooling:\n\n- **[uv](https://docs.astral.sh/uv/)** - Fast Python package manager (used in CI)\n- **[Ruff](https://docs.astral.sh/ruff/)** - Fast Python linter and formatter\n- **[pre-commit](https://pre-commit.com/)** - Git hooks for code quality\n- **[clang-format](https://clang.llvm.org/docs/ClangFormat.html)** - C++ code formatting\n\nTo set up the development environment:\n\n```bash\n# Install pre-commit hooks (requires uv)\nuvx pre-commit install\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for full development setup and build instructions.\n\n## Contributing\n\nFor detailed build instructions, architecture overview, and C++ library usage, see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## License\n\n- Blender addon: [GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html)\n- Core library: [MIT](https://choosealicense.com/licenses/mit/)\n\n## Credits\n\n**Maintainer:** [GoodPie](https://github.com/GoodPie)\n**Original Author:** [MaximeHerpin](https://github.com/MaximeHerpin)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodpie%2Fmodular_tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoodpie%2Fmodular_tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoodpie%2Fmodular_tree/lists"}