Uploaded October 2026 | Updated November 2026, 4 days ago
Every mountain in WorldGen starts as noise: a smooth random number for every point. This video follows that number all the way to a lit triangle mesh, in three short chapters, with the real formulas on screen.
Noise to mountain: WorldGen's three noise layers, octaves, a mountain mask, a domain warp, the map to metres and droplet erosion. Heights to triangles: the 128 x 128 grid of a nearby 2 km WorldGen tile, two triangles per square, and the corner order that marks the front face. Normals and lighting: four neighbouring heights, two slopes and one cross product, and the extra ring of samples that keeps tile edges lit the same.
Along the way you see the same things in Unreal itself: the settings in WorldGen's Details panel, the real triangles in Unreal's wireframe view, and the normals in Unreal's World Normal view.
The diagrams are illustrations drawn in code. The footage is real WorldGen, rendered in Unreal Engine.
────────────────────────────────────────
🧩 GET IT
────────────────────────────────────────
► WorldGen on FAB: fab.com/listings/e4e93fbe-9326-40b8-a043-a809f788306a
► Free playable WorldGen demo: patreon.com/CodeLikeMe/posts/171656807
► Discord Community: discord.gg/jRhvJtw5r5
────────────────────────────────────────
🏔️ WHAT IS IN IT
────────────────────────────────────────
✔ WorldGen's three default noise layers: continents (10 km waves), ridges (2 km), detail (1 m)
✔ Octaves in WorldGen: each one twice as fine, and weaker by the persistence (0.38 for continents)
✔ Ridges only where the continent rises: mask = smoothstep((C + 0.25) / 0.30)
✔ A domain warp of up to 80 m first, so nothing lines up
✔ The mix runs -1 to 1 and maps to -1,750 m to +1,750 m, with the sea at 0 m
✔ Hydraulic erosion: water droplets, 30 steps each
✔ A nearby 2 km WorldGen tile: 128 x 128 points 15.75 m apart, 16,384 vertices, 32,258 triangles
✔ Two triangles per square, stored as indexes A C B, then B C D
✔ Seen from above with Unreal's axes the corners run counterclockwise: the front face
✔ Each WorldGen tile is built on a background thread and uploaded on the game thread
✔ WorldGen's normals from four neighbours: N = normalize(-(H_R - H_L), -(H_U - H_D), 2 step), flat ground gives (0, 0, 1)
✔ One extra ring of heights (130 x 130 for 128 x 128 vertices), so tile edges are lit the same
✔ Steep normals turn grass into rock between 25 and 50 degrees of slope
✔ The same terrain in Unreal: the Details panel, the wireframe view and the World Normal view
────────────────────────────────────────
📋 WHAT IT IS NOT
────────────────────────────────────────
✘ Not a tutorial or a build-along: it shows the maths WorldGen runs, not how to write it
✘ Not how every game makes terrain: many use sculpted or heightmap terrain; this is WorldGen's noise-based pipeline
✘ The diagrams are illustrations drawn in code on small grids (16 x 16, 48 x 48), not WorldGen's own output
✘ 128 x 128 is the detail of the tiles near you; farther rings default to 64 x 64
✘ The seam fix is shown between two tiles at the same detail; the video makes no claim about seams between detail rings
✘ The Details panel shown is the demo map (InfiniteTerrainMap), which tunes some values away from the defaults quoted in the video
✘ The World Normal view is the normals as Unreal draws them; up close the terrain material adds normal-map detail on top
────────────────────────────────────────
🎮 SUPPORT & COMMUNITY
────────────────────────────────────────
► Discord: discord.gg/jRhvJtw5r5
► Patreon: patreon.com/cw/CodeLikeMe
► Subscribe: youtube.com/codelikeme
#UnrealEngine #UE5 #GameDev #ProceduralGeneration #ProceduralTerrain #GameMath #Math #IndieDev #WorldGen #CodeLikeMe
0:00 Noise to mountain
0:40 Heights to triangles
1:20 Normals and lighting
Every mountain in WorldGen starts as noise: a smooth random number for every point. This video follows that number all the way to a lit triangle mesh, in three short chapters, with the real formulas on screen.
Noise to mountain: WorldGen's three noise layers, octaves, a mountain mask, a domain warp, the map to metres and droplet erosion. Heights to triangles: the 128 x 128 grid of a nearby 2 km WorldGen tile, two triangles per square, and the corner order that marks the front face. Normals and lighting: four neighbouring heights, two slopes and one cross product, and the extra ring of samples that keeps tile edges lit the same.
Along the way you see the same things in Unreal itself: the settings in WorldGen's Details panel, the real triangles in Unreal's wireframe view, and the normals in Unreal's World Normal view.
The diagrams are illustrations drawn in code. The footage is real WorldGen, rendered in Unreal Engine.
────────────────────────────────────────
🧩 GET IT
────────────────────────────────────────
► WorldGen on FAB: fab.com/listings/e4e93fbe-9326-40b8-a043-a809f788306a
► Free playable WorldGen demo: patreon.com/CodeLikeMe/posts/171656807
► Discord Community: discord.gg/jRhvJtw5r5
────────────────────────────────────────
🏔️ WHAT IS IN IT
────────────────────────────────────────
✔ WorldGen's three default noise layers: continents (10 km waves), ridges (2 km), detail (1 m)
✔ Octaves in WorldGen: each one twice as fine, and weaker by the persistence (0.38 for continents)
✔ Ridges only where the continent rises: mask = smoothstep((C + 0.25) / 0.30)
✔ A domain warp of up to 80 m first, so nothing lines up
✔ The mix runs -1 to 1 and maps to -1,750 m to +1,750 m, with the sea at 0 m
✔ Hydraulic erosion: water droplets, 30 steps each
✔ A nearby 2 km WorldGen tile: 128 x 128 points 15.75 m apart, 16,384 vertices, 32,258 triangles
✔ Two triangles per square, stored as indexes A C B, then B C D
✔ Seen from above with Unreal's axes the corners run counterclockwise: the front face
✔ Each WorldGen tile is built on a background thread and uploaded on the game thread
✔ WorldGen's normals from four neighbours: N = normalize(-(H_R - H_L), -(H_U - H_D), 2 step), flat ground gives (0, 0, 1)
✔ One extra ring of heights (130 x 130 for 128 x 128 vertices), so tile edges are lit the same
✔ Steep normals turn grass into rock between 25 and 50 degrees of slope
✔ The same terrain in Unreal: the Details panel, the wireframe view and the World Normal view
────────────────────────────────────────
📋 WHAT IT IS NOT
────────────────────────────────────────
✘ Not a tutorial or a build-along: it shows the maths WorldGen runs, not how to write it
✘ Not how every game makes terrain: many use sculpted or heightmap terrain; this is WorldGen's noise-based pipeline
✘ The diagrams are illustrations drawn in code on small grids (16 x 16, 48 x 48), not WorldGen's own output
✘ 128 x 128 is the detail of the tiles near you; farther rings default to 64 x 64
✘ The seam fix is shown between two tiles at the same detail; the video makes no claim about seams between detail rings
✘ The Details panel shown is the demo map (InfiniteTerrainMap), which tunes some values away from the defaults quoted in the video
✘ The World Normal view is the normals as Unreal draws them; up close the terrain material adds normal-map detail on top
────────────────────────────────────────
🎮 SUPPORT & COMMUNITY
────────────────────────────────────────
► Discord: discord.gg/jRhvJtw5r5
► Patreon: patreon.com/cw/CodeLikeMe
► Subscribe: youtube.com/codelikeme
#UnrealEngine #UE5 #GameDev #ProceduralGeneration #ProceduralTerrain #GameMath #Math #IndieDev #WorldGen #CodeLikeMe
0:00 Noise to mountain
0:40 Heights to triangles
1:20 Normals and lighting










