One week experiment: learn how to procedurally generate maps on a sphere. Code is messy but it runs.
Switch branches/tags
Nothing to show
Clone or download
redblobgames Add installation instructions
* Add instructions for global packages (browserify, watchify, budo)
  and installing dependencies.
* Separate the interactive UI html into its own file, so you don't
  need emacs org-mode to get to it.
Latest commit 8559fac Nov 2, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
Makefile
README.org
colormap.js
embed.html
index.org
package.json
planet-generation.js
sphere-mesh.js
yarn.lock

README.org

http://unmaintained.tech/badge.svg

This was a 9 day (2.5hr/day) experiment to learn how to procedurally generate maps on a sphere. I hadn’t worked with this type of sphere geometry before and wanted to learn.

Geometry

Writeup - Fibonacci points, Delaunay triangles, Voronoi regions

https://www.redblobgames.com/x/1842-delaunay-voronoi-sphere/blog/fibonacci-sphere-voronoi.png

Maps

Writeup - tectonic plates, mountains, oceans, biomes, rivers, rendering

https://www.redblobgames.com/x/1843-planet-generation/blog/continent-boundaries-5-small.jpg

https://www.redblobgames.com/x/1843-planet-generation/blog/planet-12-small.jpg

Installation

To run in devel mode:

yarn global add browserify watchify budo
yarn install
make

Then visit the budo url (probably http://localhost:9966/embed.html).

Alernatively, if you use npm instead of yarn:

npm -g install browserify watchify budo
npm install
make

In production mode, run yarn run build and visit embed.html .