Overview
Midpoint displacement subdivides segments or grids and offsets new midpoint values by decreasing random amounts.
Generates rough terrain or curves by recursively displacing midpoints.
Compact metadata for implementation and discovery.
Midpoint displacement subdivides segments or grids and offsets new midpoint values by decreasing random amounts.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(n)
mid = (left + right) / 2 + random(-scale, scale)Adds controlled random variation at each subdivision level.
Show the generation state evolving from seed values to the final artifact.
Midpoint Displacement should be used with the assumptions and tradeoffs of fractal Terrain in mind.
What each reference supports for this entry.
Procedural-generation reference for Midpoint Displacement's noise, texture synthesis, and terrain/shape generation use cases.
Good next jumps from the relationship graph, ranked for useful discovery.
Midpoint displacement is a simpler recursive fractal terrain method.
Both are heightfield terrain generation methods.