Repository navigation
generated_world: district cores, graded streets, block-deep lots, procedural buildings - #973
Merged
Merged
Conversation
…cedural buildings The terrain lab's city, rebuilt on our own street and lot models (no code ported from elsewhere): - generate_roads gains, all opt-in: district centres (each seeds an arterial cross), a collector class, an urbanity field that packs local streets into the cores and fades them out at the edges, a grade limit that steers a steep segment toward the contour, a no-go mask (the water), a parallel-street check, and prune_roads for dead-end stubs. Branches are now spaced by the distance a road has run since its last branch, and a road continues along the field direction it is on (a minor-direction road used to turn onto the major one after a step, striping the classic network with parallel streets). - layout_lots gains, opt-in: lots that reach back to the middle of the block, a ground check (relief and water) that records each lot's ground range, district-scaled setbacks and gaps down to shared walls, whole street sides built or left empty, jittered frontages. - generate_world is roads-first with or without the Austin library: district cores on dry, gentle ground; lots filled from the cores out up to `buildings`; procedural massing without a library (lognormal heights rising with urbanity, gable-roofed houses, a rare podium tower); paved forecourts in the cores; trees kept off roads and buildings. Box massing on the scatter's sites and its painted streets are gone. - The terrain_lab_ari gallery entry gets a thumbnail; the roadmap records G2/G3's first pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The terrain lab's city, rebuilt on libcvc's own street and lot models. It takes ideas from the DBG scene generator (district cores, a street hierarchy, grade-limited streets, lots that back onto each other, core-first fill) and ports none of its code or fitted constants. This also adds the
terrain_lab_arigallery thumbnail.Streets (
generate_roads, all opt-in throughroad_params)centres): each centre seeds an arterial cross.collector_width,road_segment::kind): an arterial's branches are collectors a block apart, and they sprout the local streets.density): it packs local streets tighter in the cores (sparse_spacing,sparse_branch) and stops them at the district edges (local_min_urbanity).max_grade): a segment that is too steep turns toward the contour in 15° steps, either way, and is dropped if no turn fits.blocked): the water. Streets are steered away from the shore or stop there, instead of being cut off afterwards.parallel_gap): a street can't run alongside another a few metres away.prune_roads: trims dead-end stubs.Lots (
layout_lots, opt-in throughsite_params)The city (
generate_world)buildings. The slider now means something for both city types.Tested (Windows, Release, MSVC 14.44)
world_roads_test, 12 tests. New: GradeLimitSteersAlongTheContours, MaskKeepsRoadsOut, HierarchyAndDistricts, PruneTrimsShortStubs.world_sites_test, 14 tests. New: BlockDepthBacksOntoTheStreetBehind, GroundCheckLeavesWetAndSteepLotsEmpty, DistrictsBuildOutTheCores.world_generated_test, 8 tests. New: RoadsFirstCityWithoutALibrary, BuildingsAreBuildingSized (median roof 3–20 m, tallest at most 95 m, bases on dry ground).world_road_mesh_test,world_road_raster_test,world_buildings_test,world_raster_test,ariadne_loader_test(213) andcvcgl_ariadne_realizeall pass.ariadne|world_|lsys_|cvcgl_|terrain|physics_world|nav_worldpass.terrain_lab.ari, and the C++terrain_labruns with and without the Austin bundle.