Skip to content

erniehs-zz/landscape

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

landscape generator

generates a fractal landscape, running water and erosion.

example landscape

features

  • rain
    • rain erosion
  • erosion
    • smooth out / collapse
  • settling of water
  • leveling of water

these features are toggled with the buttons or using the r, s, l, e keys.

landscape generation

to generate a world (2^n + 1) * (2^n + 1) using midpoint displacement.

var w = world(7);

the method uses recursion randomly generating heights as we recurse deeper

_scale = (n) => Math.exp(-n / 1.5)

todo

  • ux
    • make buttons show toggle status
    • add size, scaling and roughness controls
    • export function?
    • scaleable display (not fixed)
    • 3d representation?
  • geology
    • improve algorithm for water erosion
    • improve algorithm for natural erosion
  • javascript
    • optimise
    • parallel?

About

fractal landscape generator with rain and erosion

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published