Randomly generating cities in a scene

Godot Version

4.5

Question

Nowaday for terrains, we have plugins such as GitHub - TokisanGames/Terrain3D: A high performance, editable terrain system for Godot 4. which could help creating a world of terrains. But to proceed further in this very quick moving world, we need to use faster tools or methods. I am thinking of a few things so if you got any suggestion, please feel free to suggest:

Note: I would like to create a city in the modern days, so I will need roads, buildings, etc.

  1. Creating a script to try generate cities : I could create an empty β€œcity” scene first, then use gdscript with @tool and define my own logic : Running code in the editor β€” Godot Engine (stable) documentation in English . This is definitely possible, but before going in there and start coding, I would like to know if there are other possibilities as well, to prevent re-inventing the wheels:

  2. Plugin/Tools: is there a plugin or a tool that could generate a scene and fill it with random objects? We see this with Terrain3D already, but specifically for cities generation, are there such plugins/tools that could do this?

Side Note: I also found https://www.youtube.com/watch?v=GDfF97SxGh8 but this is 7 years ago in Godot 3.

1 Like

City Generator by ProbableTrain

Subversion City Generator

Procedural city generation

There is an obvious problem here β€” there are few types of buildings, which are repeated many times. That is, to create a city generator, you need to start with a building generator so that buildings are not repeated. You can try using Sweet Home 3D as the basis for such a generator. And, of course, you need to take into account the terrain on which the city is located (curved streets, houses on a slope) β€” it is not always possible to find a perfectly flat surface of land the size of a city.

It’s a huge task.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.