Three.js-based tree growth simulator

Something I whipped up to help generate models for my project: https://github.com/viridia/sapling

It generates low-poly trees (all the leaves on a given branch are baked into a single texture) and supports exporting to GLTF. The tree-growth parameters are saved in the .glb file as user metadata, so you can just drag and drop the file onto the browser window to re-edit the same tree.

7 Likes

This is awesome! I have used many different tree generators in the past in other 3D programs like Maya. It great to see this in threejs. Thank you for sharing this!

One thing I have been considering is switching it from being a web-based app to using Electron. The reason is simply that for a tool like this, it’s much more convenient to be able to save models directly to the filesystem, than having to download and then transfer them to the proper directory.