[FEATURE] Protected region and generation skipping
I think it should be a natural idea to generate a rough big-scale structure of a city using this tool and create personal small details in game, so this might indicate a requirement of defining 'protected region' in an existing world.
With this feature, one can:
- manually modify / add specific structures after the generation by program
- update other program-generated structures by running it again, and without overwriting his own personal region
To achieve this, we might need 2 steps:
- Detect protected region
- Skip generation
For detection, the ways I can figure out are:
- Cover the region using predefined 'protection blocks' in the base to label it.
- Manually create a list config file for the bounding boxes.
For the skipping, there are 2 main jobs concerned:
- Terrain (elevation): offset in y but not modifying the protected structures (or at least should have an option to turn this on), since structures are generally built relatively to the ground.
- Structures: completely skip it (or should have an option to abort if the position has conflicts of some types of structures, since this might indicate some unexpected shift compared to what is generated last time)
To realize the detection for solution 1, we might just need to add something to the code related to ground level.
To realize the skipping, I found out it can perfectly fit in the xzbbox architecture I am developing: simply modifying the mask in xzbbox and nothing further is needed to be changed (The xzbbox with mask variation is being debugged now because rotation needs it too).
I am looking forward to some better ideas of defining and detecting protection regions.
Thanks a lot for the idea, I like this! My preferred approach would be to bring this feature into the 'main processing pipeline', possibly with a toggle button in the settings to manually deactivate this feature.
While Arnis should definitely allow people to generate a first rough city structure for later manual improvements, I'd like to keep the primary idea of an as realistic as possible generation.
I've been experimenting a lot with building variations in the last months because I definitely want that in for the next - hopefully soon - release, but just couldn't get this right yet.
Do you have any ideas for processing steps on how to make the buildings look not so simple as they currently look? I've been thinking about balconies, different windows and different wall block variations.
Here's what I thought about making building better:
-
For special buildings that don't follow the style of general office buildings, the direct way is to utilize 3d geometry files, and I believe a lot of people want to see the typical landmarks of a city most. Google maps have them but don't provide API.
-
I follow the idea to let the professionals do their jobs. We should open the interface and space to let those experts work freely. That's also what open source is for.
It is possible in my protected region design to reversely read in a manmade region, decode to some patterns if applicable, and link it to the target building in either a storage server or a file. (A possible extension in very long future, after Python shell, would be to link a building pattern to an osm element pattern, like machine learning.) This is one possible interface we can provide for those who are experienced in Minecraft building but are not programmers.
Another group of people are those architects and designers who use cad format. I need to consult some of my friends first to get deeper insights into this.
Now let's limit our scope to the general building style, something maybe you really want to know right now.
-
Entrance, or first floor variation. Same thing, roof shape
-
Maybe some fascia signs and varying their color, position, and shape. Imagine removing all these and neon lights on Tokyo streets, they would be boring.
-
Lights color variation.
-
Align to 90 degrees if possible. This is a feature that I will provide in map transformation.
-
In the city I'm living in, the small buildings (residential houses along the street) are built in red bricks.
-
For elevation, I saw the buildings are deformed in wavy shape in my tests couple of weeks ago, because they are simply piling up relative to local ground blocks. A flat base should be added before building on wavy ground.