Skip to content

Generating aesthetic landscapes using midpoint displacement in two dimensional space

Notifications You must be signed in to change notification settings

s23tang/landscape-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2d Landscape Generator

Based on https://bitesofcode.wordpress.com/2016/12/23/landscape-generation-using-midpoint-displacement/.

The generation algorithm involves iteratively computing midpoints in a straight line segment, and vertically displacing the midpoints to random offsets producing a line segment with pseudo-unpredictable bend and turns throughout.

The generated line segment can then be sampled and drawn to create varying aesthetic landscapes.

Samples

Sample generated landscapes:

blue rolling hills

red rolling hills

Where to go from here?

Looking into procedurally generating moving wallpapers or screensavers, combining that with landscapes apart from simply rolling hill-like structures.

About

Generating aesthetic landscapes using midpoint displacement in two dimensional space

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages