Procedural maps with Perlin noise and erosion with leaflet and web workers
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js
LICENSE
README.md
index.html

README.md

leaflet-erosion

Generating erosioned-perlin-based procedural worlds with leaflet and web workers

I woked with leaflet-perlin () to include erosion and rivers. This is what I got, I hope you like it.

It is inspired by leaflet-fractal (github.com/aparshin/leaflet-fractal), uses code from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html for identifying points inside a simple polygon, and perlin noise is taken from Stefan Gustavson.

The grid is based in random quadrilaterals for future convenience. For the interpolation, I map the quadrilateral to a unit square and use a bilinear interpolation. (I also coded a weighted interpolation for the first tries, I kept the lines there in case.)

Do whatever you want with it, enjoy!

EntropicParticles

Blog: http://www.entropicparticles.com/6-procedural-maps-with-leaflet-ii/

DEMO: https://entropicparticles.github.io/leaflet-erosion/