redblobgames / 1843-planet-generation

One week experiment: learn how to procedurally generate maps on a sphere. Code is messy but it runs.

Home Page:https://www.redblobgames.com/x/1843-planet-generation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 build, run ./build.sh . Then visit embed.html . ]

About

One week experiment: learn how to procedurally generate maps on a sphere. Code is messy but it runs.

https://www.redblobgames.com/x/1843-planet-generation/

License:Apache License 2.0


Languages

Language:JavaScript 96.7%Language:HTML 3.0%Language:Shell 0.3%