Procedural Voxel Tree + Pine Tree Generator for MagicaVoxel
Generate beautiful, customizable .vox trees using palettes, sliders, and pure Python magic.
Built with Python, Tkinter, and NumPy — no external 3D tools required.
- 🌳 Treegen – Oak-style branching tree generator
- 🌲 Pinegen – Pine tree generator with cone-shaped leaf clusters
- 🎨 Custom Palettes – Use .png palettes for different tree types
- 🧩 Tabbed GUI – Switch between tree and pine generation in one app
- 🎛️ Sliders for Everything – Size, twist, branch density, leafiness, and more
- 🪟 Preview Window - Visualize your output in real-time before you generate
- 💾 .VOX Export – Compatible with MagicaVoxel
- 📁 Organized Output – Saves to output/tree/ and output/pine/
- Install dependencies
pip install pillow numpy
- Run the app
python treegen-pinegen.py
You can also find the pre-compiled .exe under Releases to get right in.
You can compile it into a standalone executable using PyInstaller:
pyinstaller --onefile --windowed --icon=treegen_icon.ico ^
--add-data "treegen_brand.png;." ^
--add-data "pinegen_brand.png;." ^
--add-data "palettes;palettes" ^
treegen-pinegen.py
💡 On macOS/Linux, replace
;
with:
in --add-data paths.
Each palette is a 256x1 PNG image with indexed colors.
- Tree palettes:
palettes/tree/
- Pine palettes:
palettes/pine/
- Make sure to add new palettes to the appropriate internal dictionary in the script.
Created by NGNT
With GUI and architecture support from Cursor and ChatGPT 🤖
Inspired by nature.
MIT — Free to use, remix, and plant digital forests 🌳🌲