Plumbline Relief Pro: User Guide
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
- The Pro lives in
Content/PlumblineReliefPro. The free version lives inContent/PlumblineRelief. Both can be in the same project: no file is shared, nothing is overwritten. Use one or the other in a given material. - Open
PlumblineReliefPro/Maps/L_ReliefPro_Showcase: a street cut in two (dry, puddles), stone tiles with the three example decals, a block with and without silhouette, and the ten photo surfaces. Camera actors namedCam_Show*are bookmarks for each part. - To start your own surface, duplicate a
Pro/Examples/MI_Example_*instance (or aPro/Surfaces/MI_Surf_*) and swap the three textures:BaseColor,Normal,HeightMap(red channel, white = high).
What goes with what
| Option | Mesh, UV | Mesh, triplanar | Landscape (M_Relief_Landscape) | Decal (M_Relief_Decal) | Nanite |
|---|---|---|---|---|---|
| Puddles | yes | not tested | not yet | no | yes |
| Painted puddle mask | yes (vertex colour G) | not tested | no | no | not tested |
| Rotated, mirrored, stretched UVs | yes | not needed | no | built in | yes |
| Depth in cm | yes | yes (TileSizeCm) | no | set by the decal size | yes |
| Silhouette | M_Relief_Silhouette only | no | no | no | yes (Masked) |
| Quality Low to Epic | yes | yes | yes | yes | yes |
| Debug view | yes | yes | modes 0 and 2 | modes 0 and 2 | yes |
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.
| Parameter | Default | What it does |
|---|---|---|
PuddleLevel | 0.35 | water level, 0 to 1 of the relief depth (0 = dry) |
PuddleVariation | 0.3 | how much the level changes from place to place (0 = flat water everywhere) |
PuddleScale | 3 | size of the wet and dry areas, in tiles |
PuddleShore | 0.02 | softness of the water edge |
WetBand | 0.08 | height of the wet band above the water |
Wetness, WetDarkening | how 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.
Height= depth of the hole / size of the decal (the examples are square decals).EdgeFade: fade at the border of the decal box.- Self shadow inside the hole follows the sun. It shows most under a low, side sun.
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.
- One face = one UV rectangle:
Tiling(andTilingVScalefor non-square faces),OffsetU,OffsetV. SilhouetteDepth(0 to 1 of the relief),SilhouetteMargin(widens or narrows the rectangle).JointMinU,JointMinV,JointMaxU,JointMaxVare Custom Primitive Data 0 to 3 on the mesh: set 1 where the face touches another block, the edge is never cut there.- UV mode only (not triplanar), not on Landscape or decals. It uses
Height, not the depth in cm.
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.
| Level | Street, mesh | 3-layer landscape |
|---|---|---|
| Low | 0.130 ms | 0.158 ms |
| Medium | 0.140 ms | 0.173 ms |
| High | 0.146 ms | 0.184 ms |
| Epic | 0.161 ms | 0.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
- POM moves the texture, not the geometry: outside
M_Relief_Silhouette, edges stay straight. - Self shadow follows the sun (directional light) only. A material cannot see every light in deferred rendering.
- Pixel depth offset is off by default: shadow passes ignore it (see the free README).
- Silhouette seen from above, at the top of a block: thin dark slits can show between stones where the cut opens the face; best on vertical faces seen from the front or the side.
- Puddles and silhouette are not on the Landscape material yet.
- Tested on Windows (DX12, SM6), RTX 4080. Other platforms and GPUs: not measured.
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.