Return to “Everything & Anything”

Post

Re: Procedurally Generated Medieval Cities

#7
Talvieno wrote:Not at all.
Flatfingers wrote:Like the subject line says, this is some nice work on how to procedurally (really more pseudo-randomly, but whatevs) generate medieval cities.
Procedural medieval cities, as was mentioned in both the title and first post. :)
Reddit OP wrote:I start with a Voronoi diagram. "Seeds" are placed spirally with random fluctuations to ensure resulting regions to be relatively evenly spread.
The first (central region) is assigned plaza, the next N regions are city wards within city walls, then comes a citadel. The rest of them are farms, plains and woods.
To make these regions look a bit less like a Voronoi diagram and create proper crossroads I merge close vertices.
I find a border of the the city wards, this polygon will be drawn as city walls. I smooth it to get a rounder shape.
Some vertices of the city walls will be city gates. Each gate is connected to the closest corner of the plaza by a wider street. Then the street is extended beyond city limits.
The last step is creating an inner structure of each ward. In most cases I just cut a ward into smaller pieces with or without gaps between them (with different parameters).
Or as the OP on Reddit states... :V

Code: Select all

<+BMRX> Silver Invokes Lewdly Verbose Experiences Readily With Absurd Rectal Expeditions
Post

Re: Procedurally Generated Medieval Cities

#9
Talvieno wrote:Well, this isn't Reddit. This is the LT forum, and as far as what was stated here, DF has completely accomplished it.
Just say "Shush and leave me alone. Dwarf Fortress did it before it was cool. Period." next time. :ghost:
Automation engineer, lateral thinker, soldier, addicted to music, books and gaming.
Nothing to see here
Flatfingers wrote: 23.01.2017: "Show me the smoldering corpse of Perfectionist Josh"
Post

Re: Procedurally Generated Medieval Cities

#15
Dinosawer wrote:It's a nice application of Voronoi diagrams. I like Voronoi diagrams.
(I have to, as I'm the official Voronoi diagram guy of our dev team :ghost: )
Could you explain these Voronoi diagrams to my friend? He doesn't quite get it, and I'm not really good at explaining...
Automation engineer, lateral thinker, soldier, addicted to music, books and gaming.
Nothing to see here
Flatfingers wrote: 23.01.2017: "Show me the smoldering corpse of Perfectionist Josh"

Online Now

Users browsing this forum: No registered users and 1 guest

cron