What it looks like
The cliff is built from broad, interlocking masses of stone of very different widths, not a pile of round boulders. Joints run mostly vertical, broken by short ledges. Columns of stone step forward and back, so the face casts deep shadows. About a third of the face is broken into clusters of smaller stones and cracks; the rest is quiet, flat rock. Edges carry a few crisp chips. Dirt lodges on the top and in hollows, and angular scree of the same stone lies at the foot.
No two seeds make the same cliff, but every seed reads as the same stone.
Shapes
One generator stacks every shape. The shape is the region and the band.
| Shape | How it is written |
|---|---|
| run | a region within "[10dmm .. 20dmm]" of=northEdge, band $dirtEdgeHeight + 35dmm |
| corner | two within lines (two edges) in one region |
| canyon | the west and east edges, "[8dmm .. 14dmm]" |
| escarpment | a run whose band ramps: $dirtEdgeHeight + 10dmm + 30dmm * sin(90deg * $x / 2) + [-4dmm .. 0dmm] |
| plateau | a disc within "26dmm" of=center, one height |
| massif, mound, spire | regions drawn as lumps, not circles: the outer one the cliff's own band, each inner one a pin with a wide band over it (the library tiles are drawn by hand) |
| needles | the pillars' feet as one region, a pin to each summit |
Using it in a tile
A cliff fills a region, its face toward the open ground. This is the library's run: the dirt is given a wide band across the apron beside it (the bank, drawn) and held at the standard edge height where the cliff meets the tile's edge, the cliff is a plane of stone tops 35dmm over the edge height, and dirt lies on its top:
dharmatiles version="1.0.0"
tile size="2x1" seed=1 {
region crag { within "[10dmm .. 20dmm]" of=northEdge } // its depth wanders along the edge
region apron { within "6.5dmm" of=crag }
stack {
base
dirt top="$dirtEdgeHeight" {
pin top="[$dirtEdgeHeight .. $dirtEdgeHeight + 3.5dmm]" at=apron
pin top="$dirtEdgeHeight" at=edges // the rim stays at the standard edge height
scatter perSquare=45 { pebble size="1dmm .. 2.2dmm" buried="20%..50%" }
}
cliff top="$dirtEdgeHeight + 35dmm" at=crag { // or leave top out: the library's 35dmm
rock mixed // or: columns, blocks, slabs
stoneSize massive // or: rubble, broken
shattered patches=3 width="5dmm .. 10dmm"
}
dirt top="$bottom + [0.6dmm .. 1.2dmm]" at=crag // dirt on its top
scatter at="foot(cliff)" perSquare=55 reach="4dmm" { stone size="low(1dmm .. 6dmm, 11)" }
scatter at="foot(cliff)" perSquare=2.5 { boulder size="4.5dmm .. 8dmm" }
}
}
A wide band makes a jagged crest: cliff top="$dirtEdgeHeight + [28dmm .. 42dmm]" at=crag has stone tops anywhere from 28 to 42 design millimetres over the edge height. A pin holds the band to a height at a place. A mound or a spire is a few lumps, each region a different shape and each pinned to a wide band (8dmm to 15dmm) that overlaps the next one's, so the stones land at their own heights and the steps read as rough crags; concentric circles with narrow bands make a wedding cake. A cliff steps to a pin; write slope "30deg" in its block to let the band ease between pins, which a stone only follows as far as it can lean.
Let neighbouring pins' bands overlap, so a stone that stands over two of them has room under the lower one's high. Write the pin's band wide enough for a stone: a stone's top is one plane, so a band that jumps across a stone (a pin's edge inside it) is not stacked across; the stacker keeps each stone to where the band holds its height.
Both ends of a run finish in the standard end section, so runs butt end to end. The stone face on the tile edge is textured to the plane and never passes it.
Reference
at= region, lineControls
| Control | Takes | Default | What it does |
|---|---|---|---|
top | height | — | the band the body fills over its region, as a height: $dirtEdgeHeight + 35dmm; the library's edge top when not written |
rock | word | mixed | what the cliff is stacked from, or weights
|
rock columns | number | — | weight of tall upright stones |
rock blocks | number | — | weight of chunky blocks |
rock slabs | number | — | weight of thin tilted slabs |
rock odd | number | — | weight of irregular lumps |
rock monoliths | number | — | weight of ground-to-top stones |
stoneSize | percent | rubble | small broken stones, or big masses
|
ledges | count, 0 to 2 | 1 | steps down the free faces: shelves a miniature can stand on |
ledges height | percent | drawn for each shelf | how far up the shelf is, as a share of the cliff |
shattered | group | — | broken patches with more cracks and scree |
shattered patches | count | drawn along the run | broken patches along the run |
shattered width | length (dmm), a number, a range or a weighted range | drawn for each patch | how wide each patch is |
In the library
1x1-cliff-corner.dtilelib:tiles/cliffs/1x1-cliff-corner.dtile1x1-cliff-mound.dtilelib:tiles/cliffs/1x1-cliff-mound.dtile1x1-cliff-spire.dtilelib:tiles/cliffs/1x1-cliff-spire.dtile1x1-cliff.dtilelib:tiles/cliffs/1x1-cliff.dtile2x1-cliff-blocks.dtilelib:tiles/cliffs/2x1-cliff-blocks.dtile2x1-cliff-escarpment.dtilelib:tiles/cliffs/2x1-cliff-escarpment.dtile2x1-cliff-needles.dtilelib:tiles/cliffs/2x1-cliff-needles.dtile2x1-cliff-rubble.dtilelib:tiles/cliffs/2x1-cliff-rubble.dtile2x1-cliff.dtilelib:tiles/cliffs/2x1-cliff.dtile2x2-cliff-canyon.dtilelib:tiles/cliffs/2x2-cliff-canyon.dtile2x2-cliff-corner.dtilelib:tiles/cliffs/2x2-cliff-corner.dtile2x2-cliff-massif.dtilelib:tiles/cliffs/2x2-cliff-massif.dtile2x2-cliff-plateau.dtilelib:tiles/cliffs/2x2-cliff-plateau.dtile
Generated from dharmatiles elements cliff by cargo xtask docs.
Sizes and levels
- Tile. Any size from 1×1 squares (35 mm each). A run fits on a 1×1.
- Height. The cliff top is
35dmmover the edge height by default, and flat: the top edge is straight, with dirt on it. - Foot. The ground in front of the cliff sits at the standard
3.4dmmedge level, so cliff tiles meet other ground tiles flush (see edges). - Stones. Widths vary at least four times over. Scree at the foot is
1dmm .. 6dmm, with a few fallen blocks of4.5dmm .. 8dmm.
Edges and joining tiles
- Every cliff ends in the same full-height end section, 4 mm long and 11 mm deep, at both tile ends. Two cliff tiles of different seeds butt into one long cliff; the seam reads as another joint.
- Rock faces on the tile boundary touch it at their high points and never cross it. No stone is cut flat at the edge; stones that would cross are shrunk to fit.
- Tile sizes, edge names and the edge contract are on the tile system page.
Rules
What this element always does. A change to one of these is a change to the element.
- A cliff fits a 1×1 tile: a thin band along the edge it stands on.
- Only the rim of a face that lies on the tile boundary is low relief; the middle of the tile can have deep cuts and big stones.
- Faces on the tile edge are textured right up to it, never cut flat. A stone is never clipped at the tile edge: it is shrunk back until it touches.
- Edge stones touch the boundary plane; inner stones may sit back from it.
- Stones fill the cliff's region; its tile-edge faces and ends are bound, its front is free. A single-height band is a plane every stone top touches, and its edge is straight. A stone is made to fit the band as it is stacked, never trimmed after, so there is no hollow behind or under it; one that reaches the band stands inside it over every node it stands on, and the grain is held under the band's high.
- The
rockword stands for the five kind weights in the schema (mixedis 38, 38, 12, 6 and 6 for columns, blocks, slabs, odd and monoliths;columnsleans on columns at 70, and so on), and the weights are relative. A number written with the word (rock columns columns=40, orrock mixed slabs=30) replaces that one weight and leaves the rest: the word is read first, then the numbers, whichever order they are typed in. Numbers with no word adjustmixed. - No flat ceilings: a resting stone has a sloped bottom that sinks into the stone below.
- Seams between stacked stones read as grooves. Cracks are thin, run their full width and depth to an edge, joint or other crack, and carry on round a convex corner onto the next face.
- The fine grain is strong enough to read and to drybrush at print scale.
- Run ends are a standard section, so runs meet end to end; a few millimetres of mismatch reads as one more joint.
- It is a body of the stack:
top=says how high its stones' tops may be, as a band (a height, or a range[low .. high]),pinlines hold the band to a height at a place, andat=names the region it fills. The library's default top is$dirtEdgeHeight + 35dmm. A cliff steps between its pins unless it is given aslope. A stone over the band's high is a bug in the body (dt::band), refused. See pin, let and heights. - Its core is the pile set in from its faces, laid as a rock layer of the terrain before the lift and kept clear of the stones' faces, so a gap between stones is a recess and nothing of the core stands loose. Dirt laid on the cliff (
dirt top="$bottom + [0.6dmm .. 1.2dmm]") is an ordinary dirt: it lies on the finished stones' tops, uneven as they are, and stays only where they are flatter than itsmaxSlopeand clear of a lip. So it slides off a face, never bridges the gap between two stones, and lies only on a stone that stands. - Where the cliff meets a tile's edge, write
pin top="$dirtEdgeHeight" at=edgesafter the dirt's other pins: the dirt keeps the standard edge height there, so the side of the tile under the stones carries the dirt's grain like the rest of the rim and the tile still butts a standard one.
Printing and painting
- No supports. Print base down at 0.2 mm layers with a 0.4 mm nozzle. Every overhang is aimed within 55° of vertical (65° at most, in small orange patches), and no layer reaches more than 0.6 mm past the one below.
- Cracks print as dark slots. They are 0.4–0.5 mm wide and cut straight in, so their tops bridge cleanly.
- No fragile bits. Nothing is thinner than one 0.45 mm line; there are no floating islands; every stone rests on the pile.
- Painting. Prime dark and drybrush: faces carry a fine grain (0.25 mm deep) that catches the brush, while joints and cracks stay dark. Joints read darker than cracks.
- Checked on every build. Each STL is one watertight body that survives a float32 reload, and every render paints any face past the overhang limit red.
The full printing rules are on the printing page.
How it is made
Step by step
A cliff is stacked, not carved. A form gives the height the cliff should reach; stones are dropped into the lowest pocket first, each resting on what is under it, until the pile fills the form. Because every stone is seated on its bed at the overhang limit, a stone that rests on rock has no flat ceiling to print.
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:
- Form: the region is the footprint and the body's heaved shape in its band is the target height field (a plane for one height); the outer strip of most masses is a shelf stepped down from it (
ledges). - Stack: stones are placed lowest pocket first, each resting on the highest supports under it; neighbouring tops never line up, which is what makes courses read. A stone that reaches the band is fitted to it (the nearest plane inside the band over every node it stands on) as it is stacked.
- Columns: stones that share a footprint stand in one column, cleaved by whole planes planned once on the column's hull.
- Cracks: each open face of the pile gets one crack network, planned once so a crack runs on across the joints between stones.
- Each stone: cut to its column's planes, grooved under the stone it carries, seated on its bed at the overhang limit, chipped, carved with the face relief and cracks, fitted to the tile (scaled back, never clipped) and grained.
- Core: a rock layer of the terrain behind the stones makes a gap between them a recess, never a hole through the cliff; dirt laid after the cliff lies on the stones' tops.
- Scale: the masses scale with the square; cracks, joints, chips and grain are printability sizes and do not.
The code: crates/dt-elements/src/cliff/.
Seen from the language
The guide pages that use cliff: Heights, Worked tiles.
