Standard · every tile, every element

Tile system

How dharmatiles tiles are sized, what they clip into, and how they meet each other. A tile is built for one system at a time: DungeonBlocks (35 mm squares) or OpenLOCK (1-inch squares), chosen with --system or the editor's target. Tiles of the same system butt edge to edge with no step.

Square
35 mm (DungeonBlocks) · 25.4 mm (OpenLOCK)
Tile sizes
1×1, 2×2, 3×3 squares, and more
Ground at the edge
3.4 mm above the base
Files
stl/db/…-db.stl, stl/ol/…-ol.stl

Tile, square, cell

Three sizes, three names, used everywhere on this site.

NameWhat it isSize
tileThe whole printed piece.cols × rows squares, e.g. 2×2
squareOne grid unit of the game board.35 × 35 mm (DungeonBlocks); 25.4 × 25.4 mm (OpenLOCK)
cellOne step of the internal height grid.about 0.27 mm (128 per square)

A 35 mm unit is a square, never a “tile”. A 2×2 tile has four squares. Densities are always per square (“45 pebbles per square”), so they mean the same on a 1×1 and a 3×3 tile.

Two base systems

A system is the underside a tile clips into: DungeonBlocks or OpenLOCK. Any tile can be built for either. The OpenLOCK version is not a shrunk copy: it is a build of the same layout at 25.4 mm per square, so it has the same number of squares and detail suited to the smaller size.

Both bases end at the same plane, the datum (z = 0). The base is below it; the terrain is above it. All heights on this page are measured from the datum.

datum z = 0 DungeonBlocks flare 5.2 peg 5.7 / 11.4 35 mm square · 26 mm column OpenLOCK box 8.0 25.4 mm square · clip slots
Both bases end at the datum; the terrain (green) starts there. Drawn to scale, 6 px per mm; the OpenLOCK clip slots are shown in section.

DungeonBlocks base

DungeonBlocks is a commercial terrain system on a 35 mm grid. Each square gets one peg: a column that drops into the socket of the piece below. The geometry follows the published DungeonBlocks blank floor tile, so dharmatiles tiles mix with commercial pieces.

Partmm
Square35.0
Flare: the full square narrows to the column over this height5.2
Column cross-section26.0
Chamfer at the peg tip1.5
Short peg (below the flare)5.7
Tall peg11.4
Tall peg is used when anything on the tile is taller than15.0

The base is 10.9 mm deep with the short peg and 16.6 mm with the tall one, matching the commercial pieces: ground pieces use the short base, wall pieces the tall one. A lotus logo is inset into each peg tip.

OpenLOCK base

OpenLOCK, by Printable Scenery, is a 1-inch (25.4 mm) grid. Tiles join side by side with separate clips that slide into T-shaped slots in the base walls. Clip slots sit on the grid lines between squares: along an edge n squares long, one at each of its n − 1 interior lines, or one at the middle when n is 1 (a 2×2 has one per side). The official templates have a socket every 12.7 mm along a side; these are a subset of them. dharmatiles builds only the 25.4 mm version; the 25.0 mm metric variant does not tessellate with it.

Partmm
Square25.4
Base box height7.0
Clip slot: bottom edge above the base bottom1.4
Clip slot height4.2
Slot mouth width, at the tile face14
Slot width after the first 2 mm12
Slot inner width, 5–6 mm deep10
Pocket behind the slot, centred on it: along the edge18
Pocket depth, 6.0 to 10.7 in from the face4.7
Pocket: open through the bottom up to (above the base bottom)6.1
Strut between two pockets at a corner3.0

Standard OpenLOCK wall heights are 25.4 mm (half) and 50.8 mm (full). The OpenLOCK base has not yet been test-printed against a real clip.

Standard heights

Each kind of surface sits in a known height band, matched to commercial DungeonBlocks pieces so dharmatiles tiles sit level with them. Heights are above the datum.

SurfaceCommercial band (mm)dharmatiles (mm)
Water surface1.9–2.42.6
Ground at the tile edge—3.4
Outdoor dirt3.9–4.4about 4.5 inside the tile
Grass4.4–5.95.0
Outdoor stone path5.4–6.4about 6.0
Interior stone floor6.9–7.97.4
Themed ground (graveyard, swamp)7.4–8.9—
Rock ground (outcrop)≈ 9.4—
Standard wall top≈ 33.133.1; tall ≈ 72.3

In the tile language these are named levels (edge, ground, water, wall), so a tile writes level=ground rather than a number.

File names

A tile's file name says its size and what is on it:

stl/<db|ol>/<group>/<NxM>-<name>-<db|ol>.stl

For example stl/db/ground/1x1-soil+grass-db.stl. NxM is cols × rows; the group is ground, water, walls or floors; db or ol is the base system.

Terrain order

A mixed tile names its terrains from low to high, joined by +:

water < soil < grass < floors < walls / cliffs

1x1-soil+grass is soil and grass on one tile; 1x1-grass is grass alone. Words after a terrain describe content: 1x1-grass-tree, 1x1-wall-brick-corner. Rotations are not separate files: each shape has one standard orientation, and you turn the printed tile by hand.

Shape suffixes

A shape suffix says which terrain has the shape, by where it sits: before the + for the lower terrain (water-corridor+grass, a water corridor through grass), after it for the higher one (soil+grass-corner, a grass corner on soil).

SuffixThe named terrain…Edge pointsCanonical orientation
(none)fills one broad side (half the tile)0.50 (organic paths use 0.48 / 0.52)left/right boundary
corneroccupies one corner0.50 on two adjacent sidesbottom-left
angleoccupies two adjacent sides (an L)0.50 on two adjacent sidesL around a bottom-left cut-out
corridorconnects opposite sides0.33 and 0.67 on two opposite sidesleft to right
uenters and leaves by the same side0.33 and 0.67 on one sideright side
corridor-turnconnects two adjacent sides0.33 and 0.67 on bothleft to top
corridor-tconnects three sides0.33 and 0.67 on eachleft, right and top
corridor-xconnects all four sides0.33 and 0.67 on eachall four
corridor-openwidens from a corridor to a half-tile opening0.33 and 0.67 on one side; 0.50 on the two adjacent sidesenters left, opens right: left 0.33 → bottom 0.50, left 0.67 → top 0.50

Edges and orientation

A boundary between two terrains, such as a river bank, leaves the tile only at fixed points on its edges called seams, so it lines up with the next tile. The seams are the same on every square edge: a tile of several squares has them on each of its squares, so a 2×2’s north side is two square edges. Positions are measured from each square’s own corner, from the north-west end of the edge: left to right along the top and bottom, top to bottom along the sides. A line leaves a seam square to the side (and along the bisector at a tile corner), so two tiles that meet at a seam meet in the same direction.

The seam table

Squares are named column then row, counted from 1: C1 R1 is the north-west square. A seam is written as a point, "(1sq/3, 0sq)" (a third is exact; 0.33 is not a seam), and on a 2×2 the second column’s middle is "(1.5sq, 0sq)". A point on a tile side that is not a seam is dt::seam with a fix that snaps it to the nearest one on that square; a tile that must cross an edge elsewhere writes seams=free. The table is seams in library/parts/edges.dtile, and must be the same turned a quarter (t becomes 1 − t), which the program checks when it reads it.

Along a square’s edgenorthsouthwesteastAs a point, on a north side
1/3 (a third)nnwsswwnwene"(1/3sq, 0sq)"
1/2 (half)nswe"(1/2sq, 0sq)"
2/3 (two thirds)nnessewswese"(2/3sq, 0sq)"

The tile’s own corners: nw (north-west), ne (north-east), se (south-east), sw (south-west). They are always the tile’s corners and take no number.

north south west east .33.5.67 .33.67 t = 0 x, t
Seam positions. Green: a third and two thirds. Blue: the middle, a half. The origin is the top-left (north-west) corner: x runs across, down the sides is t.

Inside the tile a boundary may wander, but it passes exactly through its seams. x runs east (right) along a row and y runs south (down) a column, with the origin at the top-left, north-west corner; z is up from the datum. The tile language names edges by compass (north, south, east, west) and writes positions as "(across, down)" with units, from the north-west corner.

How tiles meet

The edge contract is what every tile does at its border so that two tiles side by side meet with no step: