Undergrowth on the land
Agreed and built for the tree test area, 2026-11-13; on all the generated land since 2026-11-14, after the owner walked the test area. The plants are made (below); this is how they go onto the generated land. Agreed with the owner:
- Grown from the ground, not stored. Each game grows the same plants from the land itself, so the tiles stay small. Only plants that change (picked, once gathering comes) will be saved, the way felled trees are.
- Drawn to 60 m for grass and flowers, 150 m for the taller reeds, bracken and bushes (the owner needs 30 fps).
- Not on the home island, which keeps its hand-placed grass.
- The tree test area first (x 16,000 to 19,200, z −31,232 to −28,160),
then the rest of the land once the owner had walked it (done 2026-11-14:
areais null indata/undergrowth.json). - Lit like the ground on both sides (
models/plants/undergrowth.gdshader): drawn two-sided with an ordinary material, every card seen from behind was lit as if it faced down and came out near black. The plants whose pictures are darker than the meadow grass's are lifted towards it (light). - Waits for the water: a square is grown once the lakes round it and the rivers have come (at most 15 s), so the same spot grows the same plants.
The plants
Each is its own pair of scripts in tools/blender/plants/ (<plant>_card.py
draws the card, <plant>.py stands it up as clumps), with shared helpers in
plant_card.py and plant_clump.py. Models are in
godot_client/models/plants/<plant>_<n>.gltf.
| Plant | Clumps |
|---|---|
| Meadow grass | 1 short sward, 2 meadow tuft, 3 long grass in flower |
| Yarrow | 1 young, 2 in flower, 3 pink (rare) |
| Chamomile | 1 young, 2 in flower, 3 going over |
| Foxglove | 1 first-year rosette, 2 in flower, 3 white (rare), 4 going to seed |
| St John's wort | 1 young, 2 in flower, 3 going over |
| Comfrey | 1 young, 2 purple, 3 cream, 4 pink |
| Field poppy | 1 young, 2 in flower, 3 coming into flower, 4 going to seed |
| Ox-eye daisy | 1 young, 2 in flower, 3 opening, 4 going over |
| Common reed | 1 young shoots, 2 in flower, 3 gone to seed, 4 leafy canes |
| Bulrush | 1 young, 2 in flower, 3 gone to fluff, 4 leafy |
| Soft rush | 1 young, 2 in flower, 3 older, 4 big tussock |
| Bracken | 1 spring, 2 summer stand, 3 autumn stand, 4 tall frond |
| Male fern | 1 young, 2 full, 3 spring, 4 autumn |
| Bramble | 1 young canes, 2 in flower, 3 in fruit, 4 big tangle |
| Elder | 1 young, 2 in flower, 3 in fruit, 4 leafy |
| Blackthorn | 1 young suckers, 2 in blossom, 3 in fruit, 4 leafy |
The forms that belong to another season (bracken's autumn, foxglove's seed, blackthorn's blossom...) are mixed in lightly for now; when the calendar's next pass comes, the season will pick the forms.
How a spot is read
For any point of a generated tile, the client already knows:
- The ground's paint (the control map): grass (temperate, the slope shader), sparse grass (alpine), withered grass (dry), mud (marsh), beach sand, rock, snow, and the river beds.
- Height and slope, from the heights.
- Trees, from the tile's tree instances: under a canopy (a tree within its crown's reach), at a wood's edge (open ground within 15 m of trees), or open.
- Water: in a river (
Rivers.at), in a lake (water_surface_at), or on a bank or shore (water within 6 m, or the ground less than a metre above a lake's level close by).
From these, each spot is one kind of place:
| Place | What grows |
|---|---|
| Meadow (grass paint, open, flat to moderate slope) | meadow grass thick, ox-eye daisy, yarrow and St John's wort in drifts and patches |
| Thin ground (where the grass paint thins to rock or bare, field-edge-like noise patches) | short grass, poppy and chamomile in sheets, yarrow |
| Wood edge (open ground within 15 m of trees) | bramble banks, elder and blackthorn bushes, foxglove drifts, long grass |
| Under trees | male fern dotted about, bramble in gaps, sparse short grass; bracken on the upland and in open woods |
| Upland (sparse grass paint, below the tree line) | short sward, bracken in big stands on the lower slopes, a few yarrow |
| Dry (withered grass paint) | sparse short grass, St John's wort, poppy and chamomile, blackthorn scrub |
| Marsh (mud paint) | soft rush tussocks everywhere, comfrey, common reed and bulrush in the wettest |
| Bank and shore (within 6 m of a river or lake) | comfrey, soft rush, long grass; bulrush at the water's edge |
| Shallows (water under 1 m deep) | common reed beds and bulrush |
| Nothing | beach, rock, snow, river beds, deeper water, slopes over 35° |
Within each place, slow noise makes drifts and stands rather than an even sprinkle: a patch of daisies, a run of bramble, a sheet of poppies. The rarer forms (pink yarrow, white foxglove) are one in twenty of their plant.
How thick
- Grass: about one clump per square metre in meadows, a third of that on thin and dry ground and under trees.
- Flowers: in their patches, up to one every two or three square metres; outside them, now and then.
- Reeds and rush: dense where they grow (reed beds close-packed).
- Bracken: dense stands where it grows, nothing between.
- Bushes: bramble in banks, elder and blackthorn one here, a few there.
Numbers go in one table, undergrowth.json (as tile_trees.json for the
trees), so they can be tuned without touching the code.
Drawing
TileUndergrowth.gd (client) grows the plants in 32 m squares round the
camera, out to 150 m, a few squares a frame so moving never stutters; each
square's plants are one MultiMesh per model, the grass and flowers fading out
at 60 m, the rest at 150 m. The same spot always grows the same plants (a
seed from the tile and square). Plants share the trees' and grass's look:
lit like the ground, cut out by their cards' alpha.
The owner imports the new plant models in the editor (no headless import).
Built (2026-11-13)
godot_client/data/undergrowth.json: the plants' layers and forms, each place's mix, the area (null: all the generated land), the reaches.godot_client/scripts/terrain/TileUndergrowth.gd, made by TileTerrain beside TileTrees. A square with no lake or river near it skips the water questions (the dearest part); heights are read straight off the tile arrays. Squares are grown at most 3 ms a frame, nearest first.scripts/check_undergrowth_live.py: a headless client in the test area grows its surroundings and reports; it checks squares grown and their time, every plant held ready to draw, meadow grass the commonest, the places read, and that the same spot grows the same plants twice. On 2026-11-13: 104 squares, about 20 ms each on the R710's niced test client, 27,651 plants of 12 kinds (no water near that spot, so no reeds there).
Not yet
- Gathering (the wildflowers for chemistry, reeds for thatch, berries...): later; then the server grows the same plants with the same rules (one table, one seed), and only picked ones are saved, like felled trees.
- Stealth cover from undergrowth (hiding in bracken or reeds): later, with the server side.
Wind sway: built 2026-11-14. The plants bend in the trees' wind (tree_wind, set by Weather.gd), each by itsswayindata/undergrowth.json: grass and flowers freely, reeds and ferns about half, woody bushes a little.- Seasons: the season picking the forms, with the calendar's next pass.