# Grounding: foundations, terrain, paths and planting

A build with no ground is a model on a table. A build with a convincing foundation, a path and
some planting looks like it has always been there. Voxyl projects start as empty space, so the
ground is part of what you design.

## Foundation

- **Hide the earth.** Take the foundation deep enough that dirt, sand and gravel never show
  under a wall. On a slope, step the foundation down so every side meets the ground.
- **Use a heavier, rougher block** than the wall above (rough stone, cobble, brick) for the
  first one or two cells, and step it out by a cell (a plinth, [depth.md](depth.md)).
- **Check all four sides**, and under porches and steps.
- **Entrance steps** from the ground level to the door, with a landing. A door flush with the
  ground and no step looks unfinished; a door with three steps looks welcoming.

## Adapt to the terrain

- Fit the building to the ground rather than levelling it. Split levels, a lower floor on the
  low side, a retaining wall, a stair down to a cellar entrance.
- A building on level ground can still raise its floor by a step or two to give the doorway
  presence.
- If you are making the ground yourself: avoid one flat sheet. Vary the height by a cell or
  two with gentle rises, a bank, a ditch. Keep grade changes soft. Use slabs and snow layers
  for half-steps.

## Ground cover is a gradient

Flat green under a house is an empty page. Ground is a place for the gradients in
[gradients-and-wear.md](gradients-and-wear.md):

- **Around the building:** a band of gravel, dirt, coarse dirt or flagstone, then grass beyond.
  Wear paths in the grass where people walk (to the door, the well, the gate).
- **Mix grass tones** and add patches of dirt, flowers, tall grass and leaf litter.
- Give the ground **two or three roles** (`Ground`, `Path`, `Verge`), not one.
- Extend the ground at least **four to six cells beyond the build**, and break its edge. A
  neat square of lawn ending in void reads as a stage.

## Paths

- Lead the path **to the focal point** (the door), and make it curve. A straight path in a
  rustic scene looks surveyed.
- Width one to three cells. Vary the edge so it is ragged, and mix two or three blocks
  (gravel, cobble, coarse dirt, stepping stones).
- Add small things on it: a lamp post at a bend, a bench, a signpost, a fence.
- Where a path meets a door, widen it into a small landing.

## Planting

- **Layer it:** tall (trees), medium (shrubs, hedges, tall flowers), low (grass, flowers, ferns).
  A bare trunk with nothing under it looks sparse.
- **Cluster in odd numbers** (three shrubs, five flowers) with irregular spacing. Plant more
  near walls, corners, fences and the foot of steps, where gardens grow.
- **Grow trees, do not stamp one.** A row of identical trees reads as a copy. `run_script` has
  `voxyl.kit.tree`, which grows one from a seed (an oak with branches and a lumpy crown, a slim
  birch, a spruce in tiers, a pine, a bush) and never picks a block: you give it the trunk and
  leaf roles, the most height and breadth it may have, and an optional `cell(c)` that is asked
  about every cell it would place (keep it, change it, drop it, add a snow layer on each leaf
  that faces up, a vine under the ones that hang). Each place grows a different tree, so a grove
  is one loop. Mix kinds and sizes; let trunks lean (`lean`); keep a few trees two cells across
  (`width: 2`) for the big ones. A canopy is an irregular mass: give leaves a second sibling
  role for a few patches.

```call-live
run_script {"source": "const kinds = ['oak', 'spruce', 'birch', 'oak', 'pine'];\nconst spots = [[-9, -4], [-12, 5], [-5, 13], [3, -8], [14, -6]];\nspots.forEach(([x, z], i) => voxyl.kit.tree({\n  at: [x, 1, z], height: 9 + (i % 3), radius: 4, kind: kinds[i],\n  trunk: 'Trunk', leaves: 'Leaves',\n  cell: (c) => c.part === 'leaves' && c.exposed ? [c.default, { at: [c.x, c.y + 1, c.z], semantic: 'SnowLayer', tags: { layers: 3 } }] : undefined }));"}
```

  Height and radius are the most a tree may be, measured from the trunk's base: a tree comes
  out somewhere between three quarters of them and all of them (`variation` changes that), so
  size them for the biggest tree you want. The trunk starts in the cell you give as `at`, the
  first one above the ground. A bush is `kind: "bush"`, `height: 2` or `3`.
- **Box a planting.** A shrub, a flower bed or a crop ringed with open trapdoors reads as a
  planter ([details.md](details.md), "Planter boxes").
- **Soften hard edges.** Vines on walls, shrubs at corners, a creeper over a fence, a
  planter box at a window.
- Hedges, fences and walls define yards and boundaries. A low wall or fence around a yard
  gives a sense of private space.

## Water

Ponds, streams and moats need irregular edges and depth. Frame them with rocks and reeds, plan
where the bank slopes, and give the water a darker bed so it reads as deep.

## Props and context

- A well, a cart, a woodpile, a bench, a signpost, a lamp post, a fence gate, laundry, a
  garden bed: tell a story about who lives or works here ([details.md](details.md)).
- Make **neighbours**: a village looks richer with buildings of different sizes, a shared
  street, and spaces between. An isolated building on a lawn is a sculpture.
- Frame a **view**: the path leads to the door, which frames a lamp, which frames a window.
  Think about where the viewer first sees the build from.

## Quick check

- Does any wall end in empty space or in raw dirt?
- Does the ground have more than one tone, and does its edge break up?
- Does the path lead to a door, with a landing, and not run dead straight?
- Is there something tall, something medium and something low around the build?
- Does it look as though someone lives or works here?
