Element · surface

dirt

Textured bare earth: soil clods, grit and half-sunk pebbles over gentle rises. Nearly every tile starts with dirt: on its own it makes a plain earth tile, and under grass, rocks, water and cliffs it is the earth between them. It meets every tile edge at the same level, so any two tiles butt with no step.

Pebbles written inside dirt are a scatter of pebble.

Sizes
any tile size
Printing
no supports: one height field, so it cannot overhang
Bases
DungeonBlocks and OpenLOCK
In the library
ground/1x1-soil, and under most other tiles
Words used on this page
edge level
The height where ground meets every tile edge, so tiles butt flush.
rise
A gentle swell of the ground. Ground only rises from the edge level, never dips below it.
clod
A lumpy soil crumb, 1–5 mm across, with a flattish top.
tamped ground
Smoother patches between the cloddy ones.
pebble
A small faceted or worn stone, half sunk in the soil.
A one-square tile of bare earth: clods and pebbles
lib:tiles/ground/1x1-soil.dtile, built by the program today.

What it looks like

Miniature bare earth, readable at four scales at once. Broad, low rises swell up to about 3 mm from the edge level, with flat plains between. Over them lie soil clods: lumpy crumbs in patches, with smoother tamped ground between the patches. A fine grit and a few sand grains cover everything. Pebbles gather in loose clusters, mostly in the low ground, as if washed there: many small ones (0.5–1.5 mm) and some medium (2.2–4.5 mm). Dirt beds no larger stones: rocks on it are a scatter listed after it (scatter perSquare=1 { rock size="4dmm .. 8dmm" }), or a single rock. There are no footprints, no tracks and, by default, no cracks.

Every patch of the surface keeps at least one printed layer of relief, so a dark primer and a drybrush pick out the clod tops and pebble facets everywhere, not just in a render.

The dirt texture is also the exposed ground in every other lab: grass stands on it, water's shore and banks use it, and rocks sit in it.

Using it in a tile

The plainest tile is dirt on its own: the library's top, hills spanning 1dmm over the ground height. top sets how high it may be, bumpSize how wide its hills are, and clods how cloddy the soil is:

dharmatiles version="1.0.0"

tile size="1x1" seed=13 {
    stack {
        base
        dirt top="[$groundHeight .. $groundHeight + 2.5dmm]" bumpSize="14dmm" {   // hills up to 2.5dmm, about 14dmm across
            clods some                  // or: none, few, many
        }
    }
}

With clods=none the dirt is plain: its hills alone, with no soil roughness, clods, grit or pebbles. A pond's bed, or ground a tree or a wall stands on, can be written so.

Under other elements, write dirt first and let the rest stand on it. Restrict it to a region with at=:

dharmatiles version="1.0.0"

tile size="1x1" seed=42 {
    line margin wobble="5dmm" { through "n" "s" }
    region meadow { boundedBy margin; fill "(0.25sq, 0.5sq)" }
    stack {
        base
        dirt
        grass at=meadow
    }
}

Against a cliff, the bank is drawn: the dirt is pinned high under the cliff and given a wide band across the apron beside it, and a scatter written inside it lands on it (from 2x1-cliff). A second dirt laid on the cliff's stones lies on their tops, as it would on any surface:

dirt top="$dirtEdgeHeight" {
    pin top="[$dirtEdgeHeight .. $dirtEdgeHeight + 3.5dmm]" at=apron
    pin top="$dirtEdgeHeight + [1.5dmm .. 3.5dmm]" at=crag
    scatter perSquare=45 { pebble size="1dmm .. 2.2dmm" buried="20%..50%" }
}
dirt top="$bottom + [0.6dmm .. 1.2dmm]" at=crag     // 0.6 to 1.2dmm over whatever is under it, where that is under 35°

A dirt lies on loose rocks the same way, when it is listed after them: the stack is built in the order it is listed, so the rocks stand first, and the dirt lies on their tops where they are flat enough (a dome is steeper than 35°, so a flat-topped slab holds dirt and a boulder does not). The same holds for a scatter that mixes rocks with trees and flowers, and for a dirt listed after a tree: it banks against the trunk and never lies on a crown, and it covers the foot of a flower. A dirt listed before them is laid first, and they stand on it, the rocks bedding into it as always.

dirt
scatter count=2 { rock shape=flat size="14dmm .. 17dmm" }
dirt top="$bottom + [0.6dmm .. 1.2dmm]"   // on the tops of the flat ones

Reference

Kind
a layer, a surface: it paints the ground of its area
Place
at= region, line
Holds
a scatter inside it lands on it
Built
yes

Controls

ControlTakesDefaultWhat it does
topheight—the band the body fills over its region, as a height: $dirtEdgeHeight + 35dmm; the library's edge top when not written
bumpSizelength (dmm), 5 to 70—how wide the hills are in its band: broad and rolling, or choppy
clodswordsomelumps of earth on the surface
none
no clods: plain, untextured dirt
few
a scatter of clods (provisional)
some
clods here and there
many
crumbly, cloddy earth (provisional)
maxSlopeangle (deg), 5 to 8535degthe steepest surface under it that dirt stays on; on anything steeper it slides off and leaves it bare

In the library

Generated from dharmatiles elements dirt by cargo xtask docs.

Sizes and levels

Edges and joining tiles

Rules

What this element always does. A change to one of these is a change to the element.

Printing and painting

The full printing rules are on the printing page.

How it is made

Step by step

Dirt is one height field built up in order of scale. The layers are combined with a smooth maximum, not added: adding read as porridge, while the smooth maximum keeps every clod and pebble a distinct object sitting on the ground, with a soft fillet at its foot.

A 35 × 35 mm patch.

    The animation is a simplified stand-in for the idea, drawn in your browser; it is not the program's output. What the program does, in order:

    1. Hills: the calculator draws broad hills in the dirt's band, the smoothest surface the band allows plus noise spread over as much of the band as there is room, plus a low soil roughness. Where water covers the dirt the texture below fades out.
    2. Clods: patchy, by a 6 mm patch field that never drops below 30%; each clod is 1–3 lumpy lobes with a flattish tilted top, partly sunk and soft-maxed onto the soil.
    3. Grit: fine noise and sparse sand grains.
    4. Pebbles: dart-thrown into loose clusters biased into low ground, largest first; each a flattened cap cut by tilted planes, sunk 25–45%.
    5. Edge: the texture runs on to the rim; the kit sets it into the band's surface, so the rim is at most the edge level, and cuts the edge-round from the sharp corner.
    6. Printable texture: every patch keeps at least 0.2 mm of relief in any 1.5 mm window, so a drybrush finds it.

    The code: crates/dt-elements/src/dirt.rs.

    Seen from the language

    The guide pages that use dirt: The stack, Names, Heights, Defaults and the edge contract, Clouds, Things and layers, Worked tiles.