Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Moneyl/World-Generator
Procedural world generator written in C++. Uses SFML for map rendering.
https://github.com/Moneyl/World-Generator
map-generator procedural-generation procedural-terrain world-generator
Last synced: 27 days ago
JSON representation
Procedural world generator written in C++. Uses SFML for map rendering.
- Host: GitHub
- URL: https://github.com/Moneyl/World-Generator
- Owner: Moneyl
- License: bsd-3-clause
- Archived: true
- Created: 2019-01-13T18:36:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-20T14:49:18.000Z (almost 5 years ago)
- Last Synced: 2024-08-04T02:11:01.130Z (4 months ago)
- Topics: map-generator, procedural-generation, procedural-terrain, world-generator
- Language: C++
- Homepage:
- Size: 17.5 MB
- Stars: 36
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - World-Generator
README
# World Generator
Archived as the code is a big mess and it'd be easier to start from scratch than to clean up this code.A procedural world generator initially inspired by Dwarf Fortress. This was my first large programming project so the code is pretty bad and has several multi-thousand LOC files, a mess of classes and functions, and poor documentation. I don't plan on working on this again any time soon, just keeping this here as a backup and as a good reminder for myself on how not to design software.
The generator first creates a height map using simplex noise, and then applies temperature, rainfall, and river simulations to it to form a world map. It represents the final world as a 2D map and has options for multiple map views, including the biome map, heightmap, temperature map, rainfall map, region map, water region map, and more.
## Gallery
This is a gallery of some select maps that had good generation results. The default generation settings might not create maps exactly like these without tweaks. The old noise library was replaced with something more versatile and generation settings that fit the old ones exactly haven't been found yet.![alt text](https://github.com/Moneyl/World-Generator/blob/master/Github%20Images/World_Generator_Sbvg45lKoY.png "Shaded biome map 400x256 world. blue = ocean, dark green = forests, light green = grasslands, sand colored = desert, golden = savannha.")
Shaded biome map for a 400x256 world. blue = ocean, dark green = forests, light green = grasslands, sand colored = desert, golden = savannha.![alt text](https://github.com/Moneyl/World-Generator/blob/master/Github%20Images/World_Generator_8ZgboOAyxh.png "Height map 400x256 world. The brighter the color the higher the elevation.")
Height map for a 400x256 world. The brighter the color the higher the elevation.![alt text](https://github.com/Moneyl/World-Generator/blob/master/Github%20Images/World_Generator_kmhuLwwyQq.png "Temperature map 400x256 world. Red is warmer, blue is colder.")
Temperature map for a 400x256 world. Red is warmer, blue is colder.