Terrain generator; cities, ports or villages
The aim of the project is to define a procedural terrain generator, which will take as input a geometric mesh (a set of polygons tiling the plane). Based on this mesh, the program will create a terrain (lakes, mountains, villages, roads, forests, etc.), and produce as output an "enriched" mesh that can be visualized.
Here is the Github repository
How to use the project?
After cloning the project you can compile it by running the following command
mvn clean package
Suppose you aim to create two archipelagos resembling atolls, each featuring three cities, two ports, five villages, and connecting roads. In this case, execute the following command:
./ptg.sh -i samples/sample-1000-1000-4096.mesh -o demo.mesh --shape atoll
--archipelago 2 --pois cities:3 --pois --ports:2 --pois villages:5 --roads
--water 1 --rivers 2 --seed 150
The above command will generate:
Tranquil Atolls: Twin Archipelagos in Serene Harmony