Grove
Game trees grown from a recipe, through every season
The problem
Games need many trees, and they all need to look a bit different. Buying asset packs gives you the same few models everywhere, and modelling trees by hand is slow work that is hard to change later.
StellusOS games needed trees that come from rules instead: change a number and the tree regrows, pick a season and the leaves follow, and save the result straight into a game.
What I built
- Each species is a JSON recipe: height range, trunk (thickness, lean, root flare, gnarl, splits, stems), crown shape and size, branching, weeping, leaves, bark and wind.
- Broadleaf trees grow by space colonisation: branches reach toward points scattered in the crown. Conifers grow in whorls up a straight trunk.
- Branch thickness follows the pipe model, so the trunk carries the branches above it.
- Leaf clumps, bark pattern and colours for summer, autumn and spring are part of the recipe; winter drops the leaves of broadleaf trees.
- Three levels of detail per tree, down to a single card for far away, so a forest stays cheap to draw.
- Written from published research with no third-party code, models or tables, and checked for patents.
What it does
- Six built-in species: oak, silver birch, pine, weeping willow, hazel bush and apple tree.
- Spring, summer, autumn and winter, including apple blossom and bare winter branches.
- An age slider that grows the same tree from sapling to full size.
- Every recipe value as a slider or choice, with the tree regrowing as you change it.
- Height, volume of wood and triangle count shown under every tree, and Save to game.
- Works on a phone-sized screen.
Built with JavaScript (ES modules), Three.js / WebGL, Procedural generation, glTF/GLB export, 2026.