@bendyline/molen-tooling 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ catalogs across those packs, validates references, and passes plain documents to
22
22
  An architecture-only catalog works without an ecological atlas. A catalog scoped to a different
23
23
  style pack is omitted, so a custom style pack can retain the ecological content.
24
24
 
25
- The ecological atlas and catalog total about 169 KB gzip (173 KB as a content pack). Its 264 procedural plant presets need no
25
+ The ecological atlas and catalog total about 207 KB gzip (212 KB as a content pack). Its 546 procedural plant presets need no
26
26
  GLB downloads. The architectural atlas is about 313 KB gzip; ordinary regional recipes are small
27
27
  JSON files using the default pack's shared material graphs. Authored landmark GLBs continue to
28
28
  use the existing geographically sharded, lazy model archives.
@@ -39,10 +39,16 @@ observations. Actual local land cover controls whether a plant can be placed.
39
39
  Architectural envelopes derive from [Natural Earth 1:50m country outlines](https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/),
40
40
  which are [public domain](https://www.naturalearthdata.com/about/terms-of-use/). Exterior rings are
41
41
  simplified at 0.02 degrees and coordinates rounded to 0.001 degrees. The shipped atlas groups 241
42
- country/territory features into 53 broad envelopes, retaining the Pacific Northwest and US
43
- Southwest subregions. Exact containment wins; an optional nearest-outline fallback fills
44
- otherwise unclassified coastal gaps within 2.5 km in local world coordinates. These envelopes
45
- are visual priors, not building-style surveys or a political boundary service.
42
+ country/territory features into 51 broad envelopes, with ten subregions above them where a
43
+ building tradition changes inside one country or runs across several: the Pacific Northwest, the
44
+ US Southwest, the North American Northeast, the Cyclades, Mediterranean France, the English
45
+ limestone belt (Bath and the Cotswolds), central Italy, the Rif, and the western and central
46
+ Sahel. Each is a rectangle masked by its parent envelope's land. Exact containment wins; a
47
+ nearest-outline fallback fills otherwise unclassified coastal gaps within 15 km in local world
48
+ coordinates. Simplified outlines cut estuaries, lagoons and inshore islands off (central Lisbon,
49
+ Venice, Mumbai's Fort, Cartagena, Cádiz, Miami Beach), and a building stands on land, so the
50
+ nearest outline is its region. These envelopes are visual priors, not building-style surveys or
51
+ a political boundary service.
46
52
 
47
53
  Ecological lookup uses a separate grid, so a national border does not move a forest. Each plant
48
54
  candidate and each building centroid resolves its own profile. Ground meshes sample regional
@@ -105,15 +111,15 @@ placement seeds stay tied to individual scatter IDs/versions rather than unrelat
105
111
  ## Plant and building selection
106
112
 
107
113
  The plant families cover broadleaf, conifer, palm, cactus, succulent, bamboo, banana, grass, fern, reed,
108
- mangrove, deadwood, shrub, thicket, forb, vine, mat, and fallen-wood silhouettes. Habitats combine canopy, understory, ground cover, open land,
109
- parks, orchards, and wetlands. Regional refinements keep American cacti out of Old World wild
114
+ mangrove, deadwood, shrub, thicket, forb, vine, mat, fallen-wood, clipped hedge, and rock silhouettes. Habitats combine canopy, understory, ground cover, open land,
115
+ parks, yards, verges, orchards, and wetlands. Regional refinements keep American cacti out of Old World wild
110
116
  desert profiles and avoid applying Australian eucalyptus profiles to New Zealand.
111
117
 
112
- Each of the 88 plant forms has a base, spreading, and slender preset, available in
118
+ Each of the 182 plant forms has a base, spreading, and slender preset, available in
113
119
  every applicable habitat and crop rule. Optional `shapeSeed` varies branch/frond arrangements,
114
120
  crown contours and stem profiles independently of the placement seed. Dimensions, crown height,
115
121
  trunk lean and restrained foliage tones also vary; these are visual forms, not additional taxa.
116
- All 19 procedural families share the existing near/medium/far triangle limits.
122
+ All 21 procedural families share the existing near/medium/far triangle limits.
117
123
 
118
124
  ### Brush and ground coverage
119
125
 
@@ -125,7 +131,8 @@ trunk and hanging from their branches. They do not attach to arbitrary mapped tr
125
131
 
126
132
  Natural forest, wood, scrub and heath receive an `understory` scatter layer. Open grassland and
127
133
  savanna receive sparser brush. Cultivated polygons, parks, gardens and residential land do not
128
- receive wild overgrowth from these rules. Explicit wetland labels permit sedge patches; desert
134
+ receive wild overgrowth from these rules; yards and parks are planted instead (see
135
+ [Yards, parks and verges](#yards-parks-and-verges)). Explicit wetland labels permit sedge patches; desert
129
136
  profiles retain sparse dry forms and never acquire humid forest plants.
130
137
 
131
138
  The optional clustering `sharedSeed` coordinates broad patches across vegetation layers while
@@ -136,11 +143,79 @@ building clearances than trees; road surfaces, buildings and water remain exclud
136
143
 
137
144
  Earth tiles reserve `maxUnderstoryInstances` / `maxUnderstoryModels` separately from canopy and
138
145
  groundcover. At the finest level, Economy allows 450 brush instances/two models, Balanced
139
- 1,600/three, and High 2,400/four. One coarser level retains 80/250/400 instances respectively;
140
- coarser levels omit brush. Existing groundcover instance caps stay at 0/5,000/8,000, with
141
- 0/five/seven model slots. Economy keeps simplified shrub masses while omitting fine blades and
146
+ 1,800/four, and High 2,800/six. One coarser level retains 80/250/400 instances respectively;
147
+ coarser levels omit brush. Groundcover instance caps are 0/6,500/10,000, with
148
+ 0/seven/ten model slots. Economy keeps simplified shrub masses while omitting fine blades and
142
149
  litter. These are per-tile limits, not whole-scene frame-rate guarantees.
143
150
 
151
+ A model slot is what a walker reads as variety: a tile draws only its commonest species in each
152
+ layer, and the rest take the place of their rule's commonest one. Ground cover and beds, which
153
+ have no distant form, stop drawing about 165 m from the edge of their quarter of the tile at
154
+ High on a 1080-line view (sooner at lower quality). That is nearer than before, and it is what
155
+ pays for the larger counts: a tuft a quarter of a kilometer off is a pixel or two.
156
+
157
+ ### Yards, parks and verges
158
+
159
+ Planted ground has its own scatter layer, `garden`, with its own budget
160
+ (`maxGardenInstances` / `maxGardenModels`: 700/three at Economy, 5,000/nine at Balanced and
161
+ 9,000/fourteen at High on the finest level), so a wood in the same tile cannot thin a
162
+ neighborhood's planting and the planting cannot thin the wood. Each habitat plants by role:
163
+
164
+ | Rule | Land | What it places |
165
+ | --- | --- | --- |
166
+ | `yard_shrubs`, `yard_beds` | Residential land and inferred yards | Garden shrubs and clipped globes, with flower beds, ornamental grasses, ferns and mulch gathered round them |
167
+ | `yard_ornamentals` | The same | Small flowering and red-leaved trees, columnar conifers, hedge runs |
168
+ | `lawn_flowers` | Yards and parks | Clover, daisies and other low flowers in mown grass |
169
+ | `park_shrubs`, `park_beds` | Parks, gardens, cemeteries, greens | Larger shrub borders and planted beds |
170
+ | `street_planting` | Commercial, retail, civic, school and hospital land | Sparse landscaping shrubs and hedges |
171
+
172
+ Shrubs and beds share one density field, so a yard is planted in pockets a few meters across
173
+ with lawn between them. Rough ground is separate and stays in the wild layers: `verge_grass` and
174
+ `verge_brush` put rank grass, weeds, wildflowers and pioneer brush on unmapped ground, `waste_ground`
175
+ puts weeds on industrial and railway land, and `outcrops` puts stones on open dry, cold and
176
+ desert ground.
177
+
178
+ The 83 forms added for this are regional lists, not a planting survey: rhododendron, hydrangea
179
+ and sword fern in Pacific Northwest yards, sheared azalea mounds and cloud-pruned pines in
180
+ Japan, oleander, lavender and pencil cypress round the Mediterranean, hibiscus and croton in the
181
+ tropics, bottlebrush in Australia. A preset's optional `bloom` color draws blossom as part of the
182
+ plant's own mesh, and small ornamental trees carry theirs as the spring color of their
183
+ `phenology`, so a cherry is pink in its spring months.
184
+
185
+ A tile draws each garden model once per quarter, so the layer chooses its models quarter by
186
+ quarter and by role: each rule's commonest species there first, then each rule's second. A street
187
+ therefore differs from the next, and the few trees and hedges are not crowded out by the beds.
188
+ Lists are nearly flat for the same reason.
189
+
190
+ Limits: hedge runs are placed like any other plant, at a random bearing, and do not follow a lot
191
+ line or a fence. Blossom on shrubs and beds does not follow the month. Planting follows mapped
192
+ land use, so a yard mapped as nothing in particular gets verge grass, not a garden.
193
+
194
+ ### Shrubs on painted crowns
195
+
196
+ Dry ground paints its own shrubs. A scatter document's `surface.detail` gives each land class a
197
+ brush level, and the terrain ground material paints round shrub crowns at that level: one
198
+ candidate per 8 m cell, 2 to 5 m across, covering a tenth of the ground at full brush. Desert and
199
+ scrubland keep their speckle to the horizon without a model per shrub. Each crown is shaded as a
200
+ low dome, lit on the sun's side, with a leafy outline that resolves as the camera nears.
201
+
202
+ A rule with `crowns` stands a plant on each of those crowns. The plant sits at the crown's
203
+ center and is fitted to its width by the population's `width` (the model's crown width in meters
204
+ at scale 1); a wider crown also stands taller. Within about 25 to 60 m of the camera the painted
205
+ crown gives way to the plant, so the crown seen from the air is the shrub walked up to. The
206
+ regional catalog gives every habitat with ground detail a `ground_crowns` rule: creosote-like
207
+ resin bush, dryland shrubs and thorn thickets in deserts, and the habitat's own brush elsewhere.
208
+
209
+ Crowns are kept whole, because a crown left without its plant would vanish as it was reached.
210
+ `keepByTier` only switches the rule off (the catalog runs it on the finest tiles alone), a host's
211
+ quality keep does not thin it, and its plants sit outside their layer's instance cap, bounded by
212
+ the rule's own cap. A tile of open desert at Yuma, about a kilometer across, carries about 3,000.
213
+ The crown pattern is a host input (`ScatterSampleInput.crowns`): Earth tiles supply it, and
214
+ without it a `crowns` rule places nothing. Limits: the brush is matched by land class and
215
+ building coverage, so where two mapped land classes overlap and the ground and scatter pick
216
+ different ones, a crown at that edge can have no plant. Economy, which skips the finest
217
+ vegetation tier, shows the painted crowns only.
218
+
144
219
  The brush milestone's 234 recipes produce 324 appearances including deciduous seasons. All geometry
145
220
  is generated and shared by recipe and LOD; the brush expansion adds about 25 KB to the compressed
146
221
  ecology pack and no GLB downloads. Reproduce comparison captures with
@@ -211,33 +286,71 @@ tree line at sea level comes from the ecological atlas's tundra, not from this.
211
286
  own `altitude` limits still apply; pass `treeline` to the worldgen kernel's scatter sampler to
212
287
  use the mechanism elsewhere.
213
288
 
214
- The ordinary architectural catalog supplies 294 recipes across 14 construction families and seven
215
- uses: detached homes, attached homes, apartments, commercial, civic, industrial, and farm
216
- buildings. Mapped use wins over neighborhood inference. Taller measured residential buildings
217
- select compatible apartment recipes; source footprint, height, and levels still control the
218
- generated geometry. Named precedents from the 120-entry structure library remain available
219
- explicitly. Without evidence of age, the ordinary catalog does not randomly assign an iconic
220
- historic building type to an untyped home.
221
- Each family/use has three weighted recipes: base, compact facade, and open facade. Stable building
289
+ The ordinary architectural catalog supplies 608 recipes across 32 construction families and nine
290
+ uses: detached homes, attached homes, apartments, commercial, towers, civic, industrial, farm
291
+ buildings, and places of worship. Mapped use wins over neighborhood inference. Taller measured
292
+ residential buildings select compatible apartment recipes; source footprint, height, and levels
293
+ still control the generated geometry. Named precedents from the 120-entry structure library
294
+ remain available explicitly. Without evidence of age, the ordinary catalog does not randomly
295
+ assign an iconic historic building type to an untyped home.
296
+
297
+ A family is what an ordinary building in its regions is made of and roofed with: several wall
298
+ materials and roof coverings, each with its own palette and texture scale (brick colors stay on
299
+ brick), a roof pitch, the share of flat roofs, the colors shutters and doors are painted, and
300
+ which way a house in a row turns its ridge. Britain's is brick, render and sandstone under slate
301
+ with eaves to the street; the Low Countries' dark brick under pantiles with gables to it;
302
+ the Mediterranean's warm render and limestone under terracotta; the Cyclades' limewash under
303
+ flat roofs; the Maghreb's and South Asia's render under roof terraces; sub-Saharan Africa's and
304
+ the Pacific's under corrugated sheet. Where a town's larger buildings are built like its houses,
305
+ its flats, shops and civic buildings take the family's walls and keep a pitched roof through the
306
+ height those roofs were built to. They are also drawn as masonry blocks: storeys of 3.15–3.5 m
307
+ over a 3.7–4.3 m ground floor (so a mapped 21 m is five floors, not seven), windows taller than
308
+ wide over a low sill, a plinth, a string course to each floor and a cornice under a flat roof.
309
+ Elsewhere a block is rendered concrete under a flat roof, and one of its three facades is an
310
+ older building: brick in North America, Australia, the Pacific and South Africa, the family's
311
+ own wall materials in the rest, with the same tall windows, plinth and cornice. A town whose
312
+ blocks were all built in one decade reads as an office park.
313
+
314
+ A block of flats with no mapped height is guessed a storey taller than the family's row houses:
315
+ two to three floors in the Cyclades and the Sahel, three to five around the Mediterranean, four
316
+ to five in the North American Northeast. The upper figure is also the most the Earth binding
317
+ lets any unmeasured building of the region be guessed at; see
318
+ [how tall an unmeasured building is](worldgen.md#how-tall-an-unmeasured-building-is).
319
+
320
+ A building is its region's before it is anything else. The basemap does not keep a building's
321
+ type, and most towns have no land-use polygon, so each profile ends in rules for footprints
322
+ that are neither typed nor on labelled land: small ones are the family's houses, ones that share
323
+ their walls its row houses, large or tall ones its flats or commercial blocks. A footprint over
324
+ 35 m takes the glass-and-panel tower recipe only with a floor plate of 250 m² (50 m where towns
325
+ are built in masonry): a slender shaft is a bell tower or a minaret. See
326
+ [rows, shops and places of worship](worldgen.md#rows-shops-and-places-of-worship) for how
327
+ party walls, businesses and religion are read from the map.
328
+ Homes, attached homes, apartments, commercial buildings and towers each have three weighted
329
+ recipes per family: base, compact facade, and open facade. Civic, industrial and farm buildings
330
+ and places of worship, which stand alone in a street, have one. Stable building
222
331
  identity selects their window/bay rhythm, roof weighting, eaves, parapets and supported facade
223
332
  details. The facade names do not resize the mapped building. Explicit original recipe IDs remain
224
333
  available, and identity-free selection keeps the base recipe.
225
334
 
226
- For inferred vacant lots, regional `lotPlans` weights select cottages, L-shaped ranches,
227
- courtyards, compact homes, attached-garage plans or commercial shopfronts. The US Southwest has
335
+ For inferred vacant lots, the family's `lots` pattern first decides whether a block is rows at
336
+ the street or houses in yards (rows in most of the world, by a share and a rhythm per family;
337
+ yards in North America, Australia and the Pacific). In a block of yards, regional `lotPlans`
338
+ weights select cottages, L-shaped ranches, courtyards, compact homes, attached-garage plans or
339
+ commercial shopfronts. The US Southwest has
228
340
  its own stucco-and-ceramic-tile family; Washington uses the North American siding-and-shingle
229
- family. Each inferred lot reserves a path or driveway to its frontage street. Mapped land use
341
+ family, with a share of shingled and brick houses. Each inferred lot reserves a path or driveway to its frontage street. Mapped land use
230
342
  selects residential versus commercial pools; see [building infill](worldgen.md#inferred-buildings-where-outlines-are-missing).
231
343
 
232
344
  Near-detail ordinary facades include a bounded single, double, or service entrance. The inferred
233
345
  entrance fits an eligible exterior wall, reserves a ground-floor window bay, and yields to known
234
346
  structural openings, open ground floors, and raised buildings. It is a visual entrance; it does
235
- not create a traversable opening or claim a surveyed door position. Industrial and farm recipes
347
+ not create a traversable opening or claim a surveyed door position. A building drawn with the
348
+ simplified facade a crowded tile falls back to keeps the same entrance as a bare door leaf. Industrial and farm recipes
236
349
  also include high windows and larger service doors.
237
350
 
238
351
  ## Agricultural land use
239
352
 
240
- All 36 habitat profiles supply an independent `agriculture` channel, refined by ten worldwide
353
+ All 38 habitat profiles supply an independent `agriculture` channel, refined by ten worldwide
241
354
  agricultural overrides (including the Corn Belt, Cerrado/Pampas and Indus/Gangetic plains). It activates only on
242
355
  mapped or retrieved farmland, cropland, orchards, vineyards, plantations and pasture. Climate
243
356
  alone never turns natural habitat into a farm. Ordinary farmland receives agricultural
@@ -246,7 +359,7 @@ appearance from the ecology pack without another download.
246
359
  The 22 crop recipes cover maize, soybean, small cereals, rice, cotton, sugarcane, sunflower,
247
360
  rapeseed, root vegetables, sorghum; olive, fruit, date, coconut, oil-palm, coffee, tea, banana,
248
361
  rubber and grape cultivation; and pasture/fallow surfaces. Ten annual forms each have three
249
- procedural variants. The complete catalog now has 264 plant recipes and 474 appearances with
362
+ procedural variants. The complete catalog now has 546 plant recipes and 837 appearances with
250
363
  crop stages and deciduous seasons. Several source tags share a visual recipe: wheat, barley
251
364
  and rye use the small-cereal model. Preserve the source `crop` tag when presenting observations;
252
365
  `cultivation.crop` identifies a rendering recipe.
@@ -340,12 +453,12 @@ different order does not change selection. Earth and World Explorer load it by d
340
453
  is in the host's pack index. `ambient: { wildlife: false }` disables animals in `mountEarthView`;
341
454
  World Explorer accepts `?wildlife=0`. Frozen captures retain the existing ambient opt-in rule.
342
455
 
343
- The catalog has 90 recipes: three adult body/coat forms for each of 21 named mammal taxa and nine
344
- functional bird, reptile, fish, and insect groups. These are modest visual variations, not claims
456
+ The catalog has 111 recipes: three adult body/coat forms for each of 21 named mammal taxa and of
457
+ sixteen functional groups (birds, reptiles, fish, insects, and an unnamed cat and rabbit). These are modest visual variations, not claims
345
458
  about sex, age or subspecies. Each trio shares habitat/range/season gates and divides the previous
346
459
  visual density equally; total expected abundance and population caps stay unchanged. Mammal country membership comes from Mammal Diversity Database v2.5 under
347
460
  CC BY 4.0. A quarter-degree Natural Earth map-unit grid preserves overseas territory distinctions.
348
- The range document compresses to about 30 KB; the recipe catalog adds about 6 KB (40 KB as a content pack). No animal GLBs
461
+ The range document compresses to about 30 KB; the recipe catalog adds about 7.5 KB (41 KB as a content pack). No animal GLBs
349
462
  are downloaded. Source hashes, transformations, licenses, and limitations ship in the pack.
350
463
 
351
464
  Country membership is a coarse limit, not within-country occupancy. Named taxa require an
@@ -355,12 +468,26 @@ explicit mapped conservation habitat, and water-dependent animals require mapped
355
468
  An uncovered range cell cannot authorize a named mammal. Unnamed functional groups deliberately
356
469
  make no precise species claim. These choices and visual densities are authored priors, not a census.
357
470
 
358
- Wildlife reads the finest displayed land-cover and human-feature tiles. Unknown terrain, built
359
- areas, roads, buildings, water inappropriate to the animal, and steep slopes reject placement.
471
+ Seven of the functional groups live in towns: small songbirds, a crow-sized dark bird, pigeons,
472
+ waterfowl grazing lawns within 60 m of mapped water, butterflies, cats and rabbits. They carry no
473
+ taxon and no range: habitat places them, within broad biome limits for the waterfowl and
474
+ butterflies and on temperate Nearctic and Palearctic ground for the rabbit. Their
475
+ visual densities are several times the wild groups', because roads and houses leave only part of
476
+ a block to stand on and a small bird is seen from tens of meters, not hundreds.
477
+
478
+ Wildlife reads the finest displayed land-cover and human-feature tiles. Residential land is the
479
+ `yard` habitat: its lawns and gardens are usable between the houses and streets, which keep their
480
+ buffers. Gardens, cemeteries, village greens, recreation grounds and golf courses count as `park`,
481
+ and a park, lawn or wood mapped on residential land is that habitat, in whichever order the map
482
+ lists them. Unknown terrain, commercial, industrial and other built-up land, roads, buildings,
483
+ water inappropriate to the animal, and steep slopes reject placement.
360
484
  Island/courtyard holes remain usable. Swimming animals share the rendered water datum; flight
361
- uses a bounded clearance. The 20 Hz kernel uses stable world-grid candidates, independent seeds,
362
- plain restorable state, bounded wandering, and path substeps. Population, distance and pose caps
363
- follow Earth quality. Models share recipe geometry, use one opaque skinned draw per animal, and
485
+ uses a bounded clearance, and a flying animal may cross a road on its way but never a building
486
+ (the habitat has no building heights). The 20 Hz kernel uses stable world-grid candidates,
487
+ independent seeds, plain restorable state, bounded wandering, and path substeps. Earth quality
488
+ sets the population, the nearest candidates first: 6, 8, 12, 16, 24 and 32 animals from Minimum
489
+ to Ultra (`earthPerformanceTier(level).ambient.animals`). Distance and pose caps follow quality
490
+ too. Models share recipe geometry, use one opaque skinned draw per animal, and
364
491
  dispose with the terrain stream. Tiny animals disappear at short distances.
365
492
 
366
493
  An explicit vegetation month also suppresses the generic insect/lizard groups in the coarse
@@ -373,7 +500,10 @@ priors, not a migration simulation. They are independent of the named visual mam
373
500
  Crickets still use the generic recording gated by regional habitat and season. Both retain
374
501
  weather, height and vehicle suppression. Composing hosts supply `EarthAudioFrame.location`
375
502
  and `regionalAmbience` from `EarthWildlife.ambience`; older packs without a birdsong catalog
376
- retain the generic bird soundscape. See [Sound and music](audio.md).
503
+ retain the generic bird soundscape. A listener on a street or path hears the habitat the road
504
+ runs through; inside a building's footprint or on built-up land there is none. The habitat
505
+ reported in residential land is `yard`, so a birdsong profile is heard there only when its
506
+ `habitats` name it. See [Sound and music](audio.md).
377
507
 
378
508
  ## Authoring and verification in this repository
379
509
 
@@ -108,7 +108,8 @@ main thread each time it is drawn. `renderer.farShadowInfo` reports its radius,
108
108
  been drawn and how long the last drawing took.
109
109
  `renderer.shadowTexelSize` reports the meters one texel covers as of the last frame (`undefined`
110
110
  while sun shadows are off), for hosts that keep a subject the map cannot resolve out of the
111
- shadow pass (see `AircraftVisual.updateShadows` in the aircraft guide).
111
+ shadow pass (see `AircraftVisual.updateShadows` in the aircraft guide and
112
+ `VehicleVisual.updateShadows` in the vehicles guide).
112
113
  `sun.visible`/`moon.visible` control the disks independently of lighting. Use the corresponding
113
114
  light intensity to disable illumination. `sun.size` and `moon.size` are visual multipliers;
114
115
  the default 1 preserves real angular size. Larger values help stylized scenes and small displays.
@@ -266,6 +266,28 @@ await surfaces.setOptions({
266
266
  `details.inferStopSigns` to retain only mapped stops, or `details.roadSigns` to hide all signs.
267
267
  Historical and minimal styles omit signs. Sign faces and lettering are batched geometry with
268
268
  host-supplied fonts and no per-sign textures; the worker produces the same geometry as the direct renderer.
269
+ - Street names come from the roads' mapped `name`, styled by the sign profile's `streetNames`.
270
+ Each junction names the two streets that form one of its corners; the corner varies from
271
+ junction to junction. With `mount: "post"` (the default) both names share one corner post,
272
+ each panel running along the street it names and lettered on both faces: narrow `blade`s as
273
+ in North America, or taller `plate`s as on German and Swiss posts. With `mount: "wall"` each
274
+ street gets a plate on the corner building's wall that runs along and faces it, as in Britain,
275
+ France and Italy; where no wall stands near the corner, the plate stands on a low two-legged
276
+ frame at the back of the footway. A style with `mastArms` also hangs a panel from each signal
277
+ mast arm naming the street its traffic is about to cross (the named arm most nearly
278
+ perpendicular to the approach), beside the signal heads or past them on a longer arm, and
279
+ leaves those junctions' corners bare. `letterCase: "upper"` letters names in capitals. The
280
+ style's abbreviations turn spelled-out map names into what signs post ("Northeast 45th
281
+ Street" becomes "NE 45th St"); a direction or street type that is the whole name stays
282
+ spelled out ("North Street" becomes "North St"). The content catalog's U.S. profiles use white
283
+ blades and mast panels on green; Britain and Italy black capitals on white wall plates, France
284
+ white on blue; Germany Zeichen 437 plates and Switzerland white-on-blue plates on posts; the
285
+ generic fallbacks neutral plates on posts. Unnamed roads, paths, ramps, freeways and compound
286
+ connector labels ("A Street & B Avenue") get no sign, nor does a name the host's sign font
287
+ cannot letter (a Japanese name in a Latin face), and junctions on bridges or in tunnels get no
288
+ corner name. Names are never invented. Street names are a separate `surface:street-names`
289
+ mesh drawn within 250 m of the tile, nearer than the other boards' 900 m, since their
290
+ lettering is a pixel or two tall beyond that.
269
291
  - Parking, plazas, and pedestrian polygons are filled, with holes retained. Pedestrian polygons
270
292
  and mapped paths use distinct heights above parking pavement, including inferred lots, so
271
293
  overlapping sidewalk and asphalt fills remain stable at walking height. Land cover, paved
@@ -353,8 +375,11 @@ those tags. There are no live Overpass requests or extra network lookups during
353
375
  Numeric OSM speeds without a unit are km/h; explicit `mph` stays mph. Variable, conditional and
354
376
  country-code speed values are not interpreted. Road signs, gantry positions and sparse spacing
355
377
  are visual approximations, using a right-hand-traffic layout, with a maximum of 48 signs per
356
- detail tile inside its shared fixture budget. Labels fit uniformly within the panel (bounded to 80 characters); unsupported
357
- glyphs use a question mark. `stats().roadSigns` counts the placed boards. Ambient traffic uses
378
+ detail tile inside its shared fixture budget. Street names sit outside both limits: 64 named
379
+ corners per tile, and one mast panel per signal mast, so names never crowd out signals or lights.
380
+ Labels fit uniformly within the panel (bounded to 80 characters); unsupported
381
+ glyphs use a question mark. `stats().roadSigns` counts the placed boards, and
382
+ `stats().streetNameSigns` how many of them are street names. Ambient traffic uses
358
383
  the more conservative signal inference and treats mapped stop controls as give-way controls;
359
384
  this change does not add a full-stop/dwell simulation for the decorative signs.
360
385
 
@@ -732,7 +757,9 @@ See [Fonts and lettering](typography.md) for the shared layout engine and custom
732
757
  ## Road sign pattern library
733
758
 
734
759
  The world-explorer sample includes **Road sign library** (`road-signs.html`), linked from its
735
- main view. It renders ten patterns from synthetic semantic tiles through the production
760
+ main view. It renders twelve patterns in the United States and ten elsewhere (route markers and
761
+ mast-arm names are U.S. conventions; each region shows its own corner street names) from
762
+ synthetic semantic tiles through the production
736
763
  detector, with country/state selectors, a 50-state route-marker collection, searchable cards,
737
764
  rotatable 3D previews, and source-cue annotations. The samples
738
765
  are demonstrations, not records of surveyed signs. All hardware positions are estimated.
@@ -749,6 +776,9 @@ are demonstrations, not records of surveyed signs. All hardware positions are es
749
776
  | `attraction` | Ramp `destination` with aligned `destination:colour=brown` | Nearby tourism POIs alone do not establish an exit or driving distance |
750
777
  | `route-guide` | Motorway `ref`/`shield_text`, name, or destination | Omit when labels are unknown |
751
778
  | `route-marker` | Exact supported `network` plus `shield_text`/`ref`; explicit state reference; local `SR`/`SH` plus state geography | Omit ambiguous or unsupported networks; never invent a route number |
779
+ | `street-name-mast` | Signal junction plus a named cross street; a `streetNames` style with `mastArms` | No panel without a named cross street at 30 degrees or more |
780
+ | `street-name-blade` | Two differently named streets forming a corner (at signals too, unless mast arms carry the names) | No post for unnamed roads, ramps, paths, freeways or junctions on structures |
781
+ | `street-name-wall` | The same corner cues, a `mount: "wall"` style, and building footprints | A low frame where no wall runs along and faces the street near the corner |
752
782
 
753
783
  The MVT decoder retains `destination:colour` as `destinationColour`. Semicolon entries align
754
784
  with the destination list, including empty entries. A single brown colour applies to the
@@ -605,6 +605,16 @@ and `dispose()`. `signals` feeds the interior and `vehicle.visual.animation` bin
605
605
  them keep the wheels planted. The camera helper accepts a transform, `vehicle.spec`, view, look offsets, and an
606
606
  optional obstruction-distance callback.
607
607
 
608
+ While the view is from a vehicle's own seat (the cockpit view), hosts pass
609
+ `renderer.shadowTexelSize` to that vehicle's `visual.updateShadows(texel)` each frame, and
610
+ `undefined` for every other vehicle and view. From the seat the dashboard is under a meter away,
611
+ and the vehicle's roof, pillars and doors shaded it in blocks that jumped as it drove across the
612
+ sun shadow map's texel grid (a driving view's map spans hundreds of meters, 0.14 m texels on
613
+ High). Coarser than 0.027 m, the vehicle casts no sun shadow; at 0.025 m or finer it casts
614
+ again. It still receives shadows from terrain, buildings, trees, other vehicles and clouds.
615
+ `EarthVehicles` does this for the mounted vehicle from its `shadowTexel` field, which the Earth
616
+ view and the world explorer set each frame.
617
+
608
618
  Surface objects expose `userData.vehicles: VehiclePlacement[]`; each record has an `id`, external
609
619
  type `kind`, `color`, resolved `spec`, absolute metric `position`, and `yaw`, with optional
610
620
  terrain-alignment `pitch` and `roll`. IDs derive from world-space bay positions rather
@@ -130,6 +130,16 @@ pinpoint errors with did-you-mean hints for palette names. The sections:
130
130
  square plans). Roofs are built per wing: an L becomes two gable wings meeting in a valley.
131
131
  Outlines that do not decompose, cut pieces at tile edges, and anything beyond `maxWingSpan` fall
132
132
  back to flat (with a parapet when the choice has one) or, for small irregular plans, a skillion.
133
+ A parapet is drawn no taller than 0.9 m (`MAX_PARAPET_HEIGHT`) whatever the choice asks for, so
134
+ a walker who lands on a flat roof can jump onto it and over; under a mapped `height` the wall
135
+ below keeps whatever the parapet gives up. With `fallback: 'hipped'` a footprint the chosen
136
+ pitched form cannot cover (an irregular plan, a block round a courtyard, a hall wider than
137
+ `maxWingSpan`) takes slopes rising from every wall to a level deck instead of going flat, and
138
+ under a `mansard` choice the slopes are the steep lower pitch. A plan too thin to inset keeps
139
+ the flat or skillion roof. `partyRidge` turns the ridge of a building that shares walls with
140
+ its neighbours (a request's `partyEdges`): `between` runs it from party wall to party wall,
141
+ eaves to the street, and `along` runs it along them, a gable to the street. Such a roof is
142
+ gabled, since a hip would slope down onto the neighbours.
133
143
  - `facade`: bay widths, window rhythm, base bands, and cornice. Windows and trim are generated
134
144
  geometry with cell UVs for glass and metric UVs for solid materials.
135
145
  - `materials` and `palettes`: one weighted material choice per part (wall, roof, trim, foundation,
@@ -155,7 +165,9 @@ default pack asserts a mean luminance of at least 0.55 for every tinted material
155
165
 
156
166
  A material choice may name its own `palette`, which replaces the part's palette when that choice
157
167
  is picked. The material and the color are otherwise independent picks, so without it a brick wall
158
- can draw a concrete grey and a concrete panel can draw brick red. `materials.flatRoof` is an
168
+ can draw a concrete grey and a concrete panel can draw brick red. A choice may also carry its own
169
+ `uvScale`, so a style that mixes brick, render and boarding draws each at its own course and
170
+ board size instead of stretching all three to the part's scale. `materials.flatRoof` is an
159
171
  optional roof material used only when the style resolves a flat roof (a flat choice or the
160
172
  wide-footprint fallback). A pitched style keeps shingles or tile on its slopes and puts light
161
173
  membrane or gravel on its flat tops. Tile-edge cuts and dropped roof shapes keep `roof`, so a
@@ -172,6 +184,20 @@ storefront mullions, and projecting bands with exposed upper and lower faces. St
172
184
  frames remain open at every tier; simplified frames omit depth and hidden faces to conserve the
173
185
  geometry budget. Shared linear-filtered worldgen textures use mipmaps and anisotropic filtering.
174
186
 
187
+ `facade.details` adds near-detail ornament fitted to the live outline: an `entrance`, `shutters`,
188
+ `cornerBoards`, `balconies`, `framing`, `awnings`, a `veranda`, and a `porch` (a step in front of
189
+ the entrance under a small canopy on two posts, 44 vertices, on the seeded `probability` share of
190
+ the style's buildings). `paint` lists the colors a building paints its shutters and door leaf,
191
+ one drawn per building; without it they take the trim darkened.
192
+
193
+ A request's `partyEdges` names the outline edges it shares with a neighbouring building. The
194
+ walls are built, since neighbours differ in height, but take no windows, bands, ornament,
195
+ storefront or entrance, and no interior opening. A request's `crown` adds what a building is
196
+ known by from a distance, in the style's own wall and roof materials: a square tower under a
197
+ `spire` or a low-capped `belfry` at one end of the long axis, a `dome` on a drum over the middle,
198
+ a `minaret` at a corner, or a stepped `shikhara`. A crown is sized from the footprint, stands
199
+ inside it, and is omitted on one narrower than 3.5 m.
200
+
175
201
  `props` attach pack or builtin models: `roof-ridge` walks the ridge of the dominant wing
176
202
  (chimneys), `roof-flat` fills a flat roof with `margin` from every edge (rooftop units),
177
203
  `roof-edge` lines the outer edges at the parapet (canales), and `ground-any` sets models on the
@@ -253,7 +279,13 @@ tussock) and `builtin:groundcover.fern`, each under 70 triangles, plus small shr
253
279
  A rule joins it with `"layer": "groundcover"`, which gives it its own instance and model budget
254
280
  (`maxGroundCoverInstances`, `maxGroundCoverModels`), so thousands of clumps never thin the trees
255
281
  or take their model slots. Ground cover models draw only at the near level; the medium and far
256
- levels are empty, so the clumps fade out about 400 meters away instead of shimmering. The Earth
282
+ levels are empty, so the clumps stop drawing at 65% of the distance a shrub would hand over to
283
+ its medium level (about 165 meters from a batch's edge at High on a 1080-line view) instead of
284
+ shimmering. `"layer": "understory"` and `"layer": "garden"` are two more pools with budgets of
285
+ their own (`maxUnderstoryInstances`, `maxGardenInstances` and their `…Models`): shoulder-height
286
+ wild brush, and planted ground such as yards and park borders. The garden pool keeps models by
287
+ role, each rule's commonest species first, and chooses them separately in each quarter of the
288
+ batch, which is how a host draws them. The Earth
257
289
  adapter labels land that no map polygon covers `open_ground` (the `OPEN_GROUND_LABEL` export), as a
258
290
  tile-wide polygon that every mapped polygon paints over, so verges and unmapped meadows can carry
259
291
  ground cover too. The default packs place it in meadows, parks, yards, forest floors and open
@@ -323,6 +355,80 @@ styles prefer pitched roofs through three floors and flat roofs from four upward
323
355
  style also allows flat roofs on low buildings. Wide, clipped, or unsuitable footprints can still
324
356
  require a flat roof for geometric reasons.
325
357
 
358
+ ### Rows, shops and places of worship
359
+
360
+ A map draws a terrace or an old town's block as footprints that touch, and nothing in it says so.
361
+ The adapter probes every outline edge of a ground-standing mapped building: an edge whose far
362
+ side, 0.6 m out at three points along it, lies inside another building's footprint is a party
363
+ wall. Those edges become the request's `partyEdges`. A building of at least 40 m² that gives
364
+ 22% of its outline to neighbours (the end house of a terrace gives a quarter, a house with a
365
+ garage against it a seventh) also gains the `attached` label (`ATTACHED_LABEL`), which the
366
+ regional rules send to their row-house styles. A mapped part and what remains of its building
367
+ are one building, not each other's neighbours; generalized footprints, a host's buildings and
368
+ inferred ones take no part. `associatePartyWalls(pieces, tileSize)` and `isAttached` are
369
+ exported for other pipelines.
370
+
371
+ A recognized business gives its building a frontage and a sign. Whether it also replaces the
372
+ building depends on the region. A regional profile with a style rule for the class `shop_shell`
373
+ (`SHOP_SHELL_CLASS`; the default catalog's North American, Southwest and neutral profiles) builds
374
+ every low building with a business as a store, as an arterial strip is. Elsewhere the building
375
+ stays its region's unless it is purpose-built: free-standing on retail or commercial land, a
376
+ catalog chain's own building, or a single footprint of 600 m² or more. A shop in a row or under
377
+ flats keeps its walls and roof.
378
+
379
+ A POI that names a whole building (a hotel, a museum, a library, a theatre, a civic office)
380
+ changes its inside at any size and its outside only from the size of one: 900 m² or a mapped
381
+ 15 m for a lodging, 400–500 m² for the others. A guest house in a town house stays a town house.
382
+ Size alone is not enough in an old town, where a hotel, a school or a museum occupies a building
383
+ of the street: a footprint that is one of a row with no height mapped keeps its region's
384
+ exterior, and so does one that holds four other businesses or a second institution, since old
385
+ centers are often mapped a block to an outline (`BuildingUseEvidence.shared`).
386
+
387
+ ### How tall an unmeasured building is
388
+
389
+ A basemap carries a height or a level count for about one building in ten, and in many towns
390
+ for none (of 37 town tiles surveyed in November 2026, 21 had heights on 2% of their buildings or
391
+ fewer). Storeys therefore come from four places, in this order:
392
+
393
+ 1. **A mapped height.** The wall and roof fill it exactly; the style's storey height decides how
394
+ many rows of windows that is, and the rows are stretched to fit.
395
+ 2. **Mapped levels.** That many rows, at the style's storey height.
396
+ 3. **A dense-district prior** (`districtLevels`): an unmeasured block of 250 m² or more on ground
397
+ that footprints cover by a third or more, on commercial land or none, rises from 3 toward 10
398
+ levels as the cover does.
399
+ 4. **The style's fallback** (`massing.heightFallback`).
400
+
401
+ The last two are guesses, and a guess is bounded by its surroundings. `measuredStoreys(tile,
402
+ size)` reads how tall a place is built from its own map: the storeys four in five of its
403
+ measured buildings stay within, once at least eight footprints of 60 m² or more carry a height
404
+ or a level count (a smaller one is a mast or a minaret). `guessCeiling` is that figure or the
405
+ region's ordinary block of flats, whichever is greater: the upper end of the fallback of the
406
+ style the region's rules give a block of flats, three storeys in the Cyclades and five in
407
+ Naples. The district prior stops at the ceiling, and every mapped building with neither a height
408
+ nor levels carries it as the request's `fallbackLevelsMax`, which the recipe applies to a
409
+ fallback in levels (a hall's fallback in meters is one tall room and is left alone). A use says
410
+ what a building is for, not how tall it is: the hotel style's own fallback is five to twelve
411
+ storeys, and without the ceiling five lodgings in Mykonos were drawn seven storeys or taller
412
+ and one in Chefchaouen twelve.
413
+ Dense ground alone is not a downtown either; a medina covers as much of its ground at two
414
+ storeys. Where a core's towers are measured, its unmeasured blocks still rise with them.
415
+
416
+ A mapped height is the wall's height, not always a count of floors. `shaftLevels(height, area)`
417
+ recognizes a shaft: a whole building of under 250 m² (the plate a regional profile asks of its
418
+ tower style) standing 20 m or more and five and a half times its footprint's side, as a bell
419
+ tower, a tower house, a minaret, a chimney or a lighthouse does. It is drawn with a tier of
420
+ openings every 11 m in its region's masonry. Divided into storeys, the Torre del Mangia (102 m
421
+ on 21 m²) was 29 floors of flats. A slender part of a larger tower is that tower's and keeps
422
+ its storeys, and so does a building whose levels the map counts.
423
+
424
+ A place of worship takes its region's `worship` style and a crown from its religion, which the
425
+ basemap carries as the POI's `kind_detail`: `worshipCrowns(religion, regionId, areaM2)` returns a
426
+ dome for Orthodox and Oriental churches (by region), a spire or a belfry for Western ones, a dome
427
+ and a minaret for a mosque, a stepped tower for a Hindu or Jain temple, and nothing for
428
+ traditions told by their roof and walls alone. A footprint from 25 m² is recognized when it
429
+ carries the POI's id or holds its point alone; a hall up to 3,000 m² when the point is the only
430
+ business in it. These are the commonest forms for a region, not a record of the building.
431
+
326
432
  ### Inferred buildings where outlines are missing
327
433
 
328
434
  Earth views enable neighborhood building infill by default. `mountEarthView` and
@@ -359,6 +465,19 @@ edges: 650 meters of road in the full window, or 300 meters with explicit suitab
359
465
  Highways, paths, service roads, bridges and tunnels do not establish demand. Mapped buildings keep
360
466
  priority in the shared rendering budgets.
361
467
 
468
+ A house in a yard is one street pattern among several. The regional house style's optional
469
+ `lots` says how the lots it invents line a street: `rows` is the share of blocks built as rows,
470
+ fronts wall to wall at the back of the footway; `units` how many fronts stand to each 16 m of
471
+ frontage (three is a 5.3 m tube house, one a 16 m front); `setback`, `depth` and `levels` their
472
+ ranges; `gap` the share of frontages left open; and `compact` fills a detached lot's frontage
473
+ close to the street. A block of 128 m is rows or yards as a whole, so one street keeps one
474
+ pattern, and within a row the storeys and rear walls step from house to house while the fronts
475
+ hold the street line. Each front is its own building with its own door and path, its side walls
476
+ are party walls (`partyEdges`), and its style is the one the region's rules give the label
477
+ `terrace`. The default catalog builds rows in most of the world: a Moroccan medina, a British
478
+ terrace, Hanoi's tube houses and a Mexican street of continuous fronts are not suburbs. North
479
+ America, Australia and the Pacific keep houses in yards.
480
+
362
481
  The regional style's optional `lotPlans` weights select reusable, resizable plans: `cottage`
363
482
  (recessed porch), `ranch` (L-shaped), `front-garage`, `side-garage`, `courtyard`, `compact`, and
364
483
  `shopfront`. `createLotBuildingPlan(shape, width, depth)` is exported by worldgen's kernel for
@@ -493,7 +612,15 @@ plants on it unless a pack names its class.
493
612
  numbers are sized for real footprints: a zoom-15 suburb puts 800 to 1,600 houses in a zoom-14
494
613
  tile, and a downtown about 1,700 footprints and parts.
495
614
 
496
- A batch spends its budget in priority order, largest footprints first. First every building gets
615
+ A batch spends its budget in priority order, largest footprints first. That suits a view from the
616
+ air; for someone on the ground the buildings that matter are the nearest. `WorldgenBatchInput.focus`
617
+ (`{ x, z, radius }` in the buildings' frame) queues the buildings within `radius` of a viewer
618
+ nearest first, ahead of every other, so the same budget details and opens the doors of what the
619
+ viewer can walk up to. The Earth renderers set it themselves: once the position passed to
620
+ `updateInteriors` is down among the buildings and moving at a walk, the finest tiles within 90 m
621
+ are regenerated round it, and again each 36 m it moves (never while it is inside a building, and
622
+ the tile shown stays until its replacement is ready). In a dense Seattle tile of 1,091 buildings,
623
+ where the largest 75 were detailed, that details the nearest 148, out to 140 m. First every building gets
497
624
  walls and its roof shape (the style's coarsest tier); only when even that does not fit does a
498
625
  building become an instanced stand-in. Then buildings gain a simplified facade while it fits, then
499
626
  the largest (`detailedCount`) gain full detail. The simplified facade preserves the authored
@@ -539,7 +666,9 @@ cells draw only their active LOD; keep `maxPropModels` small because each model
539
666
  visible cell. The per-tile placement budgets still bound the resident instance data. Balanced quality
540
667
  allows 6,000 nearby placements, 2,400 one level below, and 800 two levels below. Economy uses
541
668
  2,200 / 800 / 200; high uses 9,000 / 3,600 / 1,200. Ground cover has its own budget on the finest
542
- level only: 5,000 placements and 3 models at Balanced, 8,000 and 4 at High, none at Economy.
669
+ level only: 6,500 placements and 7 models at Balanced, 10,000 and 10 at High, none at Economy.
670
+ Planted ground (the `garden` layer) has 5,000 placements and 9 models at Balanced and 9,000 and
671
+ 14 at High on the finest level, a few hundred one level below, and 700 and 3 at Economy.
543
672
  The forest rules fill nearby crowns while
544
673
  understory is limited to the finest tier; parks and yards retain lower densities and all
545
674
  placements retain road, building, and water clearances.
@@ -603,8 +732,10 @@ more triangles a frame, and 1.9 ms more main thread, so it is off unless a host
603
732
  optional fourth, horizon model (`ModelLibrary.prepare(ref, 'horizon')`): a conifer's far level
604
733
  keeps three plain skirts, so a stand of firs is not a field of cones from a few hundred meters,
605
734
  and hands over to the one-cone horizon model where 2.5 m of error fits the budget (about 930 m
606
- at 2.5 pixels on a 1080-line view). For every other model the horizon model is the far model
607
- and adds no level. That handover reads the policy's `horizonPixelError` (default
735
+ at 2.5 pixels on a 1080-line view). A broadleaf or mangrove tree in leaf, 2.5 m or taller, has
736
+ one too: its far crown with fewer faces and no trunk (30 triangles for 56), reaching a little
737
+ further and a little lighter so that a wood keeps its cover and tone where the two levels meet.
738
+ For every other model the horizon model is the far model and adds no level. That handover reads the policy's `horizonPixelError` (default
608
739
  `maxPixelError`): a host that relaxes `maxPixelError` with camera height, to shed leaf cards,
609
740
  keeps `horizonPixelError` at its base value, or every conifer under an aircraft is the cone. A
610
741
  batch within a quarter of a handover's distance asks for the material across it, so its shaders
@@ -639,7 +770,12 @@ changes and disposing when the entity goes away.
639
770
  - Protomaps business identity comes from optional POIs at the finest detail level. Buildings mostly carry `kind: building`; rules lean on footprint metrics, height
640
771
  presence, and the surrounding land use. Context is available when land use and buildings share
641
772
  one archive (the Sammamish package does).
642
- - Roofs of clipped tile-edge pieces are flat; secondary wings share the main eave height.
773
+ - Roofs of clipped tile-edge pieces are flat; secondary wings share the main eave height. The
774
+ hipped fallback ends in a level deck, not ridges: there is no straight skeleton.
775
+ - Party walls are found between separately mapped footprints. A terrace mapped as one long
776
+ outline is still one building under one roof.
777
+ - Crowns are five forms, placed by rule (a tower at one end, a dome over the middle), not where
778
+ the real building has them.
643
779
  - Windows are surface quads, not openings; dormers and setbacks are declared in the format but not
644
780
  built yet; the `wall-any` prop anchor places nothing yet. `ground-any` props do not know where
645
781
  driveways and paths run, so on a lot that is paved to the wall one can stand on the paving.