Plumbline

Plumbline Relief Pro: User Guide

The same cobblestone street, dry on the left and with puddles inside the relief on the right

Version 1.0.0, Unreal Engine 5.6, 5.7 and 5.8. Content only: no C++, no plugin, nothing to compile. Everything in the free Plumbline Relief README also applies to the Pro; this page covers what the Pro adds. Parameters are on M_Relief unless stated otherwise. Support: plumbline.tools@outlook.com

Install and first look

What goes with what

OptionMesh, UVMesh, triplanarLandscape (M_Relief_Landscape)Decal (M_Relief_Decal)Nanite
Puddlesyesnot testednot yetnoyes
Painted puddle maskyes (vertex colour G)not testednononot tested
Rotated, mirrored, stretched UVsyesnot needednobuilt inyes
Depth in cmyesyes (TileSizeCm)noset by the decal sizeyes
SilhouetteM_Relief_Silhouette onlynononoyes (Masked)
Quality Low to Epicyesyesyesyesyes
Debug viewyesyesmodes 0 and 2modes 0 and 2yes

Puddles

Puddles (switch). Water fills the low parts of the relief: the march stops on the water plane, so the high stones stay dry and keep casting their shadow on the water. The wet stone above the water is darker and smoother.

ParameterDefaultWhat it does
PuddleLevel0.35water level, 0 to 1 of the relief depth (0 = dry)
PuddleVariation0.3how much the level changes from place to place (0 = flat water everywhere)
PuddleScale3size of the wet and dry areas, in tiles
PuddleShore0.02softness of the water edge
WetBand0.08height of the wet band above the water
Wetness, WetDarkeninghow dark and smooth the wet stone gets

The level changes with a noise in world coordinates: two meshes side by side show no seam. The noise is turned off the texture axes, warped and layered (4 octaves), so the pools do not line up in rows when seen from far away. The wet street of the showcase uses PuddleLevel 0.5, PuddleVariation 0.65, PuddleScale 2.5: start from there. The water surface uses specular 1 (F0 8 %), above the physical 2 % on purpose: the pool has no refraction or depth, and at 2 % it reads as a darker blot rather than as water reflecting the sky.

Cost (2560 x 1440, base pass): no measurable cost, under 0.001 ms on a mesh and on Nanite (UE 5.8, 3 rounds). The wet parts are smooth, so Lumen reflections add about 0.9 ms on a street filling the screen: that is the price of any smooth surface in the engine, not of the shader.

Painted puddle mask

PuddleMaskFromVertexColor (switch): vertex colour green 0 keeps the surface dry (under a roof, on a slope). PuddleMaskLevel and PuddleMaskContrast tighten the transition on a low-density mesh (default 0.5 and 1 = the painted green as is). Reading the mask costs nothing measurable (0.129 ms against 0.132 ms without it).

Decals

M_Relief_Decal (deferred decal, DBuffer) and three examples, MI_Decal_Pothole, MI_Decal_Crack, MI_Decal_Plate. Drop a Decal actor, set its material, point it down. The decal only draws the dug part; the surface around stays visible. It works at any angle (the frame is rebuilt from the decal derivatives, no tangents needed), on any flat surface, including a surface that already has relief.

Cost: one pothole decal filling the screen, decal pass 0.027 ms flat, 0.094 ms with Relief (+0.067 ms).

Limits: no pixel depth offset on decals; at very grazing angles (about 3 degrees) the hole flattens, like any POM.

Silhouette

M_Relief_Silhouette (Masked). The pixels whose hit leaves the face are cut, so the edge of a block follows the stones instead of staying a straight line. Examples: MI_Example_Silhouette and MI_Example_Silhouette_Off.

Cost: +0.018 ms in the depth prepass, +0.060 ms in the Nanite visibility buffer (Masked materials cost more there).

Rotated, mirrored and stretched UVs

RotatedUVs (switch), TilingUV (negative = mirror), UVRotation (degrees). The march, the self shadow and the relief normals use a frame rebuilt from the screen derivatives of the UVs, so the relief and its shadow stay right when the UVs turn. Measured against a rotated mesh (exact reference): 0.4 to 0.8 / 255 apart with the switch, 24 to 48 / 255 without. Cost: +0.017 to +0.019 ms. UV mode only.

Depth in centimetres

DepthInCm (switch) + DepthCm (cm). The relief keeps the same real depth whatever the Tiling, the UV layout or the mesh scale. Height is ignored while the switch is on. In triplanar mode the size of one tile is TileSizeCm.

With stretched UVs, set the depth in cm. Height is a fraction of one UV unit, and once the UVs are stretched one UV unit no longer has a single size. Measured on a stone wall stretched 2 x 1 with RotatedUVs on: in cm the result stays within 1.0 to 4.2 / 255 of the reference; in Height, 17.2 to 22.9 / 255. The normal map does not follow a stretch either: lower DetailNormal on stretched surfaces.

Quality Low to Epic

One global setting for M_Relief, M_Relief_Decal and M_Relief_Landscape: the material parameter collection MPC_Relief, scalar Quality (0 Low, 1 Medium, 2 High, 3 Epic, default 2). High is the instance as you set it. Low: 0.375 x the steps, no self shadow, one refinement less, half the fade distance. Epic: 2 x the steps and the shadow reads, one refinement more, 1.5 x the fade distance.

LevelStreet, mesh3-layer landscape
Low0.130 ms0.158 ms
Medium0.140 ms0.173 ms
High0.146 ms0.184 ms
Epic0.161 ms0.213 ms

The pack has no code. To follow your game's graphics menu, add one Blueprint node where the menu applies its settings: Set Scalar Parameter Value (Collection MPC_Relief, Parameter Name Quality, Value 0 to 3). Switch QualityPresets (on by default) off on an instance: that instance ignores the global setting.

Debug view

DebugView (switch) + DebugMode: 0 march steps (blue few, green 32, red 64), 1 water (puddles), 2 share of the relief kept after the distance and grazing fades, 3 silhouette. In debug the base colour is black and the colours are emissive (no reflections, roughness 1). On M_Relief_Decal the colours go into the base colour (a DBuffer decal has no emissive), so they are lit by the scene, and the whole decal box is drawn.

Ready-made surfaces

PlumblineReliefPro/Pro/Surfaces/MI_Surf_*: ten photo surfaces (CC0, Poly Haven: cobblestone, red bricks, rubble wall, mud and leaves, rocky ground, planks, stone tiles, rock face, pebbles, sandstone paving) with the depth set in cm from the real surface (1.5 to 12 cm, estimated: the source photos do not give the height scale). TileSizeCm holds the real size of one texture repeat: on a mesh whose UVs are in metres, set Tiling to 100 / TileSizeCm; on a 0..1 UV plane of N metres, Tiling = N x 100 / TileSizeCm (the MI_Example_* instances do this for 3 m squares). The height and colour of cobblestone, red bricks and sandstone paving are high-pass filtered (1/16 of a repeat) when they are made: the large waves of the source photos no longer repeat as a checkerboard of light and dark squares, nor as a grid of puddles.

Cost, seen from above, surface filling the screen: flat material 0.077 ms; Relief +0.047 (stone tiles) to +0.072 ms (rock face, 12 cm), most +0.054 to +0.057 ms. Grazing view (camera 60 cm above the ground, tilted 25 degrees, the ground fills the screen from 0.6 to 9.8 m): flat 0.087 ms; Relief +0.056 (planks) to +0.102 ms (rocky ground), cobblestone +0.072 ms (UE 5.8; UE 5.6 and 5.7 within 0.01 ms). On a Nanite mesh (cobblestone, grazing view, Nanite base pass): UE 5.8 0.303 ms flat, 0.385 ms with Relief (+0.082 ms); UE 5.7 +0.132 ms; UE 5.6 +0.163 ms.

Limits, said plainly

Credits and licence

Photo textures: Poly Haven, CC0 (public domain). Decal textures and the free textures are generated by script. Built with AI-assisted scripting; no AI-generated images.

Everything in the free Plumbline Relief guide also applies to the Pro. The free version is on Fab.

Support

Something does not work? Write to plumbline.tools@outlook.com with your Unreal version, what you did and what happened (a screenshot helps). Answers within 2 working days. Bugs are fixed for free in updates, and each new Unreal version is supported within 30 days.