Image generated with AI
Procedural Terrain in Blender: Heightmap to Landscape
Diego Cortés
Author
A procedural terrain in Blender does not start by sculpting mountains: it starts by deciding how many meters the world covers. Get scale and resolution wrong and no shader will save it.
What a Heightmap Is (and Why It Saves Half the Work)
A heightmap is a grayscale image that stores elevation: black is the lowest point, white is the highest, and every pixel is worth a height. Once that clicks you stop modelling a landscape and start describing one. These maps come from generators such as Gaea, World Machine, Terragen or Houdini, or they get painted by hand; on the platform, Create Realistic Mountains with Blender 5.0 and Gaea 2 by Maarten Nauta walks that whole path.
According to Epic's documentation for Landscape, the formats an engine expects to read are 16-bit grayscale PNG, 8-bit r8, 16-bit r16, or RAW with a JSON metadata file.
Black and White Is Not a Color: It Is Height
Bit depth decides how many steps the staircase has. Eight bits are 256 levels of gray and on a gentle slope they show as banding; sixteen are 65,536 and the step disappears. For terrain, always 16 bits. That same file sculpts, as a texture in the Displace modifier, and ships, imported as a Landscape in the engine.
The Base: One Grid and the Vertex Count Nobody Runs
The Grid node generates a subdivided mesh plane on the XY plane. Its inputs are Size X and Size Y, the length of the plane, and Vertices X and Vertices Y; if either vertex value drops below 2, the node generates no mesh. The defaults are misleading: Size 1.0 and Vertices 3. Three by three is not terrain, it is a card.
The count nobody says out loud: 1,000 by 1,000 vertices is one million vertices before any detail, and density is paid in memory and in the time spent building the acceleration structure. My rule: resolution for visible detail, not for covered area. A dense foreground plus a simple background costs less than one giant uniform mesh.
Don't Confuse the Grid with Volume Grids
The volume grids that arrived in Blender 5.3 are voxels for fluids, a different world: the Grid we mean here is a flat surface with vertices.
The Classic Route: the Displace Modifier
The Displace modifier moves vertices according to the intensity of a texture, procedural or from an image. Two parameters rule it: Direction (X, Y, Z, Normal, Custom Normal or RGB to XYZ) and Space (Local or Global when the direction is an axis). The formulas from the manual: displacement is the texture value minus Midlevel, and per vertex it is that result multiplied by Strength.
That is where the two mistakes I see every term come from. The default Midlevel is 0.5, so with a 0 to 1 texture the terrain rises and falls by half the distance; if you want the black of the map to be the ground, set it to 0. And the default Direction is Normal, not Z: on a slanted plane that pushes diagonally and the landscape twists. For a heightmap, Direction Z with Global Space.
It needs the mesh subdivided before it joins the stack and its effect can be limited with a vertex group. It is the right call with a single texture and a short project.
The Modern Route: Geometry Nodes, Same Heightmap, Field Control
The minimal chain is Grid and then Set Position, which rewrites the location of every point: you feed it a Position built from the original X and Y plus the height in Z. Careful: Offset is evaluated at the same time as Position, so it never sees the position you just changed.
For a shape with no file, the Noise node evaluates a fractal Perlin noise with several layers: Scale, Detail (octaves, and more octaves mean more render time), Roughness, Lacunarity, Offset, Gain and Distortion. With no Vector connected it uses the position attribute, which is what you want here. For the exact shape, the Image node, and there do wire Position into its Vector so the map covers the terrain edge to edge.
Settings That Decide Whether It Looks Good or Cheap
Three decisions. Interpolation on the Image node (Linear, Cubic, Closest): the manual says cubic is the one to use for height maps. Extension (Repeat, Extend, Clip, Mirror): Clip if you do not want repetition at the borders. And stacking two scales: the image gives the big shape, a high-frequency noise gives the detail, and both get multiplied by a value in meters; at 900 you have a mountain range.
Real-World Scale: How Many Meters Your World Covers
With Unit System set to Metric and Unit Scale at 1.0, one Blender unit reads as one meter. The catch from the manual: Unit Scale only changes what the interface displays, not internal behaviour, and dynamic simulations ignore it. It cannot be used to cheat.
Two kilometers across is 2,000 units, so tune the camera's Clip Start and End: that range defines where objects are directly visible, and anything outside still contributes because light bounces are not clipped. Height is decided separately: with a 0 to 1 map you pick the multiplier, and that number is what the engine later asks for to compute its Z scale.
Slope and Altitude as Attributes: What Makes Terrain Useful
This is what makes terrain useful. The Normal node returns one unit vector per element: in the Face domain the up direction of the face, in the Vertex domain the average of adjacent faces. Split out its Z component and you have the slope mask: near 1 means flat, near 0 means a wall. Store it with Store Named Attribute, which takes Name, Data Type and Domain; altitude is the Z of position.
With two attributes, slope and altitude, the project stops improvising: vegetation by slope, materials by elevation, water only below a certain height, snow up top. Scattering is already covered in landscape scattering with Geometry Nodes: here we build the surface, there you learn how to fill it.
Water, Edges and Horizon: The Three Details That Give Terrain Away
Water is a plane at a fixed Z, not a copy of the terrain; the material does the rest with depth-based color, foam at the shoreline and refraction. Ocean simulation is a different craft: realistic water in Blender.
Edges give it away: tile the terrain with independent noise and the seams do not match, so the grid shows. Sample the same function in global coordinates or cut one complete mesh; in the engine, Flip Y Axis exists for tiles that do not line up. And the horizon is solved with fog and a distant ridge hiding the cut, plus a proper sky and atmosphere with Sky Texture.
Performance: Four Million Polygons Don't Navigate
Dense terrain becomes unworkable fast. The Bake node stores intermediate geometry to speed up parts of the tree, with a caveat to respect: data written by one version is not guaranteed to load in another, so do not shelve a half-finished project on that cache.
Vegetation goes in as instances, never as real geometry, and if the scene will not fit, heavy scenes in Blender has the exits. My habit: density only where the camera is, silhouette plus texture for everything far away.
From Blender to the Engine: Mesh or Heightmap
Two deliveries, and it pays to choose before modelling. The mesh exports to glTF or FBX watching scale and orientation: scale and units when exporting and exporting models with glTF.
The heightmap is the route for large worlds: Landscape derives the resolution from the file itself and computes Z scale by multiplying the map's maximum height in meters by 100 and by 0.001953125; for enormous worlds there are tiles and World Partition. Producing that map from Blender is a technique, not a checkbox: an emission shader reading the Z position, rendered from an orthographic top-down camera at 16 bits, takes five minutes. On the engine side: environment art in Unreal Engine 5 and Master Nanite Displacement for Landscapes.
Conclusion
Two decisions and one habit: how many meters the world covers, how many vertices represent it, and storing slope and altitude as attributes before thinking about the render. That separates a landscape you can use from a pretty sculpture that serves no other purpose.
If you want to see the workflow in motion, the platform holds BlenderDude's procedural landscape series: Procedural Landscape Part 01, Modular Landscape Part 02 and Make a Grassy Meadow in Blender by Blender Guru.