Products › BaseNode Packs › Ink & Engraving › Tutorial: Engraved map

Engraved map

An old engraved map of a small valley: a river in a gorge, two summits, a path, a border and a title. Every mark on it is a line of ink, and every line comes from one function, the height of the ground. The map is drawn as Grease Pencil strokes, and at the end it draws itself.

An engraved map on cream paper: two summits ringed by contour lines and short slope strokes, a dark cross-hatched north bank, a black river, a dashed path with an arrow, a braided border and a cartouche titled The Little Valley
Where we are going. Seven steps, each one a few lines more.

You will learn

Before you start

You need three things:

ModulePackWhat it gives
hachures2dInk & EngravingLehmann slope hachures, engraving cross-hatching (hatch_cross), guilloché curves, halftone dots.
deform2dInk & EngravingA pattern bent along a curve (flow_along_curve), ribbons, arrowheads.
ink2dInk & EngravingLiving ink: tapered ends, wobble, bleed, and strokes that write themselves on.
sdf2d, curves2dfree, in the add-onA distance to a segment, for a side stream; a wave along a curve, for the border.

This is not a first tutorial. If Geometry Nodes or .bn are new to you, start with Lunar ground: it explains a height made from a function, SetPosition, CombineXYZ and the way a step file is read.

Every block below is a complete .bn file, its code beside the nodes it builds. It opens on the graph the step adds or changes; the others are in the menu at the top of the block. Two ways to try a step:

Look at the map from above (Numpad 7), in Material Preview. The pictures are rendered from these exact files by render.py, which adds a sheet of paper under the map and an orthographic camera straight above it.

One height, three readings

An engraver has no grey: only black lines on white paper. To show a valley, they read the ground in three ways, and each reading becomes lines of its own:

In the file, these three are one function and its gradient. valley_height gives the height at any point; valley_slope measures how it changes. Contours, hachures and shade all call them, so they always agree.

1. A valley and its contour lines

The ground is a function, not a mesh: valley_height(p) is the height at the point p of the map. It adds a few simple shapes:

step1_contours.bn: contours, valley_height, valley_slope, river_course, summit, ink, engraved_map

contours draws one level per turn of a repeat zone. At each turn it takes a grid, deletes the faces below the level, and keeps the edges that are left with one face only: the border of the high ground, which is the contour. Those edges follow the grid, in small stairs. One step of Newton's method moves each point onto the exact level: down the slope by (height − level) / slope². That is what valley_slope is for here; the next steps use it again.

ink turns the curves into Grease Pencil strokes and gives them their colour. Their width is the curve's radius: every fifth contour, the index contour, is twice as thick, so the eye can count the levels. Mind instances_as_layers: false: with true, CurvesToGreasePencil makes a layer per instance, and plain curves give nothing at all.

Contour lines on paper: rings around two summits, bands along a valley, a side valley coming in from the top
Step 1. Sixteen levels, 0.1 apart. Where the lines crowd, the ground is steep.

Try: on the contours node, set interval to 0.05 and levels to 32: twice as many lines, the same ground.

2. Lehmann's hachures

Contours tell the height, but the eye reads them slowly. In 1799 Johann Georg Lehmann gave the slope its own sign: short strokes that run straight downhill, as water would. His rule: the steeper the ground, the thicker the stroke and the darker the slope. Flat ground stays white; a slope of 45° is nearly black.

step2_hachures.bn: hachures, engraved_map, Ink

  1. Where. The strokes start on the contours, every spacing along them: ResampleCurve puts a point there. They fill the band down to the next contour, as on the old maps.
  2. Which way. valley_slope points uphill; downhill is its opposite. atan2 turns it into an angle for the rotation of each stroke.
  3. How long. The next contour is interval lower, so it is interval / steep away. Each stroke covers 80 % of that and leaves a thin gap.
  4. How thick. lehmann_hachures makes one stroke, along X, one unit long. InstanceOnPoints scales it to its length along X and to steep / steepest across. Below flat, no stroke at all.

The strokes are flat meshes, not curves, so they cannot be Grease Pencil strokes. Ink is their material: an emission of the strokes' colour, unlit like a print.

The contour map with short strokes between the contours, dark and thick in the gorge and on the summits, absent on the flat valley floor
Step 2. The gorge and the summits come out dark; the plateaus and the valley floor stay white.

Try: set steepest of hachures to 1.0: every slope steeper than 1 is drawn at full weight, and the map darkens.

3. Cross-hatching in the shade

Hachures show how steep a slope is, not which way it faces. Light does that: on maps it comes from the north-west, the top left, by convention. shade compares the ground's normal with that light: 0 on the flat and the lit slopes, up to 1 on the slopes that turn away.

step3_shade.bn: cross_hatching, shade, ruling, engrave, engraved_map

hatch_cross is an engraver's tool: at a point and for a shade, it says whether the point is ink, 1, or paper, 0. Its lines lie on whole steps of (x cos a − y sin a) / spacing, and thicken with the shade: half the spacing wide at shade 0.5. ruling draws those lines, as the ruling machine of an engraver did: parallel, spacing apart, at angle. engrave then reads hatch_cross along each line: it cuts the line where it is paper. Elsewhere the amount it is given sets the width, here Clamp(s * 2.0), which grows with the shade as the lines of hatch_cross do.

The map with oblique hatching over the north bank and the east side of the southern summit, crossed in the darkest places
Step 3. The north bank faces south-east, away from the light: it is hatched, then crossed. The south bank, lit, keeps only its hachures.

Try: on the shade node, set light to (1.0, −1.0, 1.2): the light comes from the south-east, and the hatching moves to the other banks.

4. A guilloché border and a cartouche

A map needs a frame and a title. Engravers used guilloché for both: patterns of fine, interlaced curves, cut by a lathe, that were hard to forge. Banknotes still carry them.

step4_border.bn: frame, rosette, cartouche, clear, engraved_map

The map framed by a braided border between a thin and a thick line; a cartouche in the lower left with a rosette and the title The Little Valley
Step 4. The relief stops short of the cartouche, as an engraver would leave the plate clean there.

Try: on rosette, set waves to 9: fewer, larger loops. On frame, set waves to 80: a looser braid.

5. A river and a path, along their curves

The river runs on the floor of the gorge, on river_course, the same curve that dug it in step 1. The path climbs from the river to the southern summit. Both are drawn straight, then bent along a curve: that is what deform2d is for.

step5_river.bn: engraved_map, river, path, path_line

The map with a black river widening from west to east along the valley floor, and a dashed path from the river to the southern summit, ending in an arrowhead
Step 5. The river widens as it flows east. The relief steps back from the banks and from the path.

Try: change the handles of path_line, its second and third points: the dashes follow any course you give it.

6. Living ink

The map is exact, and that is its flaw: a machine drew it. A hand presses harder or lighter, and a burin's cut starts and ends in a point. ink2d adds that, without changing what the lines say.

step6_living_ink.bn: engraved_map

These act on the radius and the position of curve points: the meshes, hachures and river, stay as they are. Grease Pencil draws each stroke with the radius of each of its points, so the swelling shows.

Close to the northern summit before living ink: even contour lines, hatching of even width
Step 5, close to the northern summit: every line of even width.
The same place after living ink: contours that swell and thin, hatch strokes tapered at both ends
Step 6, the same place: the contours swell and thin, each hatch stroke tapers.
The whole map with living ink: the same map, its lines less regular
Step 6, the whole map.

Try: set radius_variation of living_ink to 0.0, then to 1.0, and watch the contours.

7. The map draws itself

Grease Pencil strokes are made to be animated. write_on trims each stroke to a part of its length, from 0 (nothing drawn) to 1 (all of it). Driven by the frame, it draws the map in 72 frames, three seconds at 24 frames per second.

step7_write_on.bn: engraver, engraved_map

Frame 18: only the western edge of the map is drawn, beside the cartouche
Frame 18.
Frame 36: the western half of the map is drawn, the border half done
Frame 36.
Frame 54: nearly all the map is drawn; the last strokes in the east are still short
Frame 54.

Press Space in Blender to play it. From frame 72 on, the map is whole: the picture at the top of this page.

The knobs

Every graph has its inputs, on its node. A few to start with:

WhereInputWhat it does
contoursinterval, levelsThe height between two contours, and how many there are. hachures has its own interval: keep the two equal.
hachuresspacing, weight, steepest, flatHow close the strokes are, how thick at most, the slope that gets full weight, the slope below which nothing is drawn.
shadelight, flatWhere the light comes from, and how far a slope must turn from it to be hatched.
cross_hatchingspacing, angleThe distance between hatch lines, and their direction.
frame, rosetteband, wavesThe width of the border, and how many loops the braid and the rosette make.
cartouchetitleThe name of your valley.
riverwidth, springHow wide the river ends, and over how much of its course it widens.
engraverdrawingHow many frames the map takes to draw itself.

Try: change valley_height: move a summit, add a third one with another summit. The contours, the hachures and the shade all follow, since they all read the same height.

Take it to Blender

The finished map, in one file. Drag the card onto empty space in Blender's 3D Viewport and keep Instantiate the Example: a new object carries engraved_map. A click on the card downloads the file.

The steps before it, to start again from any of them:

To render it as on this page: a camera straight above the map, Orthographic, Orthographic Scale 4.3; EEVEE; View Transform set to Standard, so the ink and the paper keep their colours. Under the map, a plane with a paper colour, unlit.

The files, with the script that renders this page's pictures, are in examples/tutorials/engraved_map/.