@bendyline/molen-tooling 0.0.16 → 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.
Files changed (37) hide show
  1. package/dist/capture/harness.js +466 -432
  2. package/dist/capture/worldgen-preview.js +405 -287
  3. package/dist/docs-src/guide/3d-art-guidelines.md +10 -7
  4. package/dist/docs-src/guide/building-interiors.md +59 -8
  5. package/dist/docs-src/guide/determinism.md +1 -1
  6. package/dist/docs-src/guide/earth-view.md +56 -11
  7. package/dist/docs-src/guide/entities.md +4 -1
  8. package/dist/docs-src/guide/graphics-performance.md +78 -6
  9. package/dist/docs-src/guide/medium-fi.md +40 -7
  10. package/dist/docs-src/guide/night-lighting.md +12 -2
  11. package/dist/docs-src/guide/recognizable-places.md +54 -5
  12. package/dist/docs-src/guide/regional-world.md +166 -36
  13. package/dist/docs-src/guide/rendering-backends.md +5 -2
  14. package/dist/docs-src/guide/sky.md +2 -1
  15. package/dist/docs-src/guide/surface-rendering.md +43 -6
  16. package/dist/docs-src/guide/typography.md +36 -0
  17. package/dist/docs-src/guide/vehicles.md +16 -1
  18. package/dist/docs-src/guide/worldgen.md +143 -7
  19. package/dist/docs-src/llms.txt +1 -1
  20. package/dist/docs-src/schemas/README.md +1 -0
  21. package/dist/docs-src/schemas/archstyle.md +209 -2
  22. package/dist/docs-src/schemas/components.md +41 -0
  23. package/dist/docs-src/schemas/region-atlas.md +2 -2
  24. package/dist/docs-src/schemas/regional-catalog.md +28 -2
  25. package/dist/docs-src/schemas/scatter.md +22 -2
  26. package/dist/docs-src/schemas/sign-looks.md +174 -0
  27. package/dist/docs-src/schemas/structure-placement-data.md +10 -0
  28. package/dist/docs-src/schemas/structure-placements.md +10 -0
  29. package/dist/docs-src/schemas/worldgen-batch.md +80 -0
  30. package/dist/templates/city-courier/gen/molen-types.ts +9 -1
  31. package/dist/templates/city-courier/scripts/molen-scripts.d.ts +8 -0
  32. package/dist/templates/index.json +17 -17
  33. package/dist/templates/skybound/gen/molen-types.ts +9 -1
  34. package/dist/templates/skybound/scripts/molen-scripts.d.ts +8 -0
  35. package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +8 -0
  36. package/dist/templates/top-down-arena/src/gen/molen-types.ts +9 -1
  37. package/package.json +12 -12
@@ -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.
@@ -4,7 +4,7 @@
4
4
  > three.js rendering client, authored through JSON schemas, a small typed API, and a headless
5
5
  > dev loop. This bundle is version-locked to the engine release.
6
6
 
7
- Engine version: 0.0.11. three.js peer range: >=0.184.0 <0.187.0 (developed against 0.184.0). Node ≥ 22.13, ESM only.
7
+ Engine version: 0.0.12. three.js peer range: >=0.184.0 <0.187.0 (developed against 0.184.0). Node ≥ 22.13, ESM only.
8
8
 
9
9
  ## Start here
10
10
 
@@ -32,6 +32,7 @@ Autogenerated from the schema registry `molen validate` checks against; `molen s
32
32
  - [Replay fixture](replay.md) — `molen/replay@1`
33
33
  - [Scatter rules](scatter.md) — `molen/scatter@1`
34
34
  - [Scene manifest](scene.md) — `molen/scene@3`
35
+ - [Storefront sign looks](sign-looks.md) — `molen/sign-looks@1`
35
36
  - [Sound bank](soundbank.md) — `molen/soundbank@1`
36
37
  - [Logical source bundle](source-bundle.md) — `molen/source-bundle@1`
37
38
  - [Runtime structure placements](structure-placement-data.md) — `molen/structure-placement-data@1`
@@ -434,6 +434,101 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
434
434
  },
435
435
  "description": "Weighted resizable plans for vacant lots; supplied outlines remain authoritative."
436
436
  },
437
+ "lots": {
438
+ "type": "object",
439
+ "properties": {
440
+ "compact": {
441
+ "type": "boolean",
442
+ "description": "Detached lots fill most of their frontage, close to the street."
443
+ },
444
+ "rows": {
445
+ "type": "number",
446
+ "minimum": 0,
447
+ "maximum": 1,
448
+ "description": "Share of invented blocks built as rows: fronts wall to wall along the street, in place of houses in yards."
449
+ },
450
+ "units": {
451
+ "type": "object",
452
+ "properties": {
453
+ "min": {
454
+ "type": "integer",
455
+ "minimum": 1,
456
+ "maximum": 4
457
+ },
458
+ "max": {
459
+ "type": "integer",
460
+ "minimum": 1,
461
+ "maximum": 4
462
+ }
463
+ },
464
+ "required": [
465
+ "min",
466
+ "max"
467
+ ],
468
+ "additionalProperties": false,
469
+ "description": "Buildings to each 16 m of a row frontage: 3 is a 5.3 m front, 1 a 16 m one."
470
+ },
471
+ "setback": {
472
+ "type": "object",
473
+ "properties": {
474
+ "min": {
475
+ "type": "number",
476
+ "description": "Minimum distance a row front stands behind the street footway, meters."
477
+ },
478
+ "max": {
479
+ "type": "number",
480
+ "description": "Maximum distance a row front stands behind the street footway, meters (>= min)."
481
+ }
482
+ },
483
+ "required": [
484
+ "min",
485
+ "max"
486
+ ]
487
+ },
488
+ "depth": {
489
+ "type": "object",
490
+ "properties": {
491
+ "min": {
492
+ "type": "number",
493
+ "description": "Minimum depth of a row building, meters."
494
+ },
495
+ "max": {
496
+ "type": "number",
497
+ "description": "Maximum depth of a row building, meters (>= min)."
498
+ }
499
+ },
500
+ "required": [
501
+ "min",
502
+ "max"
503
+ ]
504
+ },
505
+ "levels": {
506
+ "type": "object",
507
+ "properties": {
508
+ "min": {
509
+ "type": "number",
510
+ "description": "Minimum storeys of a row building."
511
+ },
512
+ "max": {
513
+ "type": "number",
514
+ "description": "Maximum storeys of a row building (>= min)."
515
+ }
516
+ },
517
+ "required": [
518
+ "min",
519
+ "max"
520
+ ]
521
+ },
522
+ "gap": {
523
+ "type": "number",
524
+ "minimum": 0,
525
+ "maximum": 1,
526
+ "description": "Share of row frontages left open: a yard, a lane, a vacant plot."
527
+ }
528
+ },
529
+ "additionalProperties": false,
530
+ "description": "How the style lays out lots it invents along a street where no building is mapped. Supplied outlines remain authoritative."
531
+ },
437
532
  "format": {
438
533
  "type": "string",
439
534
  "const": "molen/archstyle@1",
@@ -1138,8 +1233,19 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
1138
1233
  "fallback": {
1139
1234
  "default": "flat",
1140
1235
  "type": "string",
1141
- "const": "flat",
1142
- "description": "Always constructible fallback."
1236
+ "enum": [
1237
+ "flat",
1238
+ "hipped"
1239
+ ],
1240
+ "description": "Roof for a footprint the chosen pitched form cannot cover (irregular, too wide, around a courtyard): flat, or slopes rising from every wall to a level deck."
1241
+ },
1242
+ "partyRidge": {
1243
+ "type": "string",
1244
+ "enum": [
1245
+ "between",
1246
+ "along"
1247
+ ],
1248
+ "description": "Ridge of a building that shares walls with neighbours: from party wall to party wall, eaves to the street (between), or along the party walls, a gable to the street (along). Such roofs are gabled."
1143
1249
  },
1144
1250
  "features": {
1145
1251
  "type": "object",
@@ -1344,6 +1450,16 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
1344
1450
  "type": "boolean",
1345
1451
  "description": "Paired louvered shutters beside punched windows."
1346
1452
  },
1453
+ "paint": {
1454
+ "minItems": 1,
1455
+ "maxItems": 12,
1456
+ "type": "array",
1457
+ "items": {
1458
+ "type": "string",
1459
+ "pattern": "^#[0-9a-fA-F]{6}$"
1460
+ },
1461
+ "description": "Colors a building paints its shutters and door leaf, one drawn per building; without it they take the trim darkened."
1462
+ },
1347
1463
  "cornerBoards": {
1348
1464
  "type": "boolean",
1349
1465
  "description": "Trim boards up each outside wall corner, as on lap-sided houses."
@@ -1431,6 +1547,37 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
1431
1547
  }
1432
1548
  },
1433
1549
  "additionalProperties": false
1550
+ },
1551
+ "porch": {
1552
+ "type": "object",
1553
+ "properties": {
1554
+ "probability": {
1555
+ "default": 1,
1556
+ "type": "number",
1557
+ "minimum": 0,
1558
+ "maximum": 1,
1559
+ "description": "Share of buildings whose entrance gets the porch."
1560
+ },
1561
+ "depth": {
1562
+ "default": 1.1,
1563
+ "type": "number",
1564
+ "minimum": 0.4,
1565
+ "maximum": 2.5,
1566
+ "description": "Projection of the step and its canopy, meters."
1567
+ },
1568
+ "canopy": {
1569
+ "default": "pitched",
1570
+ "type": "string",
1571
+ "enum": [
1572
+ "none",
1573
+ "flat",
1574
+ "pitched"
1575
+ ],
1576
+ "description": "Roof over the entrance step, on two posts."
1577
+ }
1578
+ },
1579
+ "additionalProperties": false,
1580
+ "description": "A step in front of the entrance, under a small canopy."
1434
1581
  }
1435
1582
  },
1436
1583
  "additionalProperties": false,
@@ -1647,6 +1794,16 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
1647
1794
  "type": "string",
1648
1795
  "minLength": 1,
1649
1796
  "description": "Key of `palettes` that tints this choice instead of the part palette, so brick stays brick-colored and concrete stays concrete-colored."
1797
+ },
1798
+ "uvScale": {
1799
+ "minItems": 2,
1800
+ "maxItems": 2,
1801
+ "type": "array",
1802
+ "items": {
1803
+ "type": "number",
1804
+ "exclusiveMinimum": 0
1805
+ },
1806
+ "description": "Meters per texture repeat [u, v] for this choice instead of the part scale, so each material keeps its own course and board size."
1650
1807
  }
1651
1808
  },
1652
1809
  "required": [
@@ -1735,6 +1892,16 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
1735
1892
  "type": "string",
1736
1893
  "minLength": 1,
1737
1894
  "description": "Key of `palettes` that tints this choice instead of the part palette, so brick stays brick-colored and concrete stays concrete-colored."
1895
+ },
1896
+ "uvScale": {
1897
+ "minItems": 2,
1898
+ "maxItems": 2,
1899
+ "type": "array",
1900
+ "items": {
1901
+ "type": "number",
1902
+ "exclusiveMinimum": 0
1903
+ },
1904
+ "description": "Meters per texture repeat [u, v] for this choice instead of the part scale, so each material keeps its own course and board size."
1738
1905
  }
1739
1906
  },
1740
1907
  "required": [
@@ -1823,6 +1990,16 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
1823
1990
  "type": "string",
1824
1991
  "minLength": 1,
1825
1992
  "description": "Key of `palettes` that tints this choice instead of the part palette, so brick stays brick-colored and concrete stays concrete-colored."
1993
+ },
1994
+ "uvScale": {
1995
+ "minItems": 2,
1996
+ "maxItems": 2,
1997
+ "type": "array",
1998
+ "items": {
1999
+ "type": "number",
2000
+ "exclusiveMinimum": 0
2001
+ },
2002
+ "description": "Meters per texture repeat [u, v] for this choice instead of the part scale, so each material keeps its own course and board size."
1826
2003
  }
1827
2004
  },
1828
2005
  "required": [
@@ -1912,6 +2089,16 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
1912
2089
  "type": "string",
1913
2090
  "minLength": 1,
1914
2091
  "description": "Key of `palettes` that tints this choice instead of the part palette, so brick stays brick-colored and concrete stays concrete-colored."
2092
+ },
2093
+ "uvScale": {
2094
+ "minItems": 2,
2095
+ "maxItems": 2,
2096
+ "type": "array",
2097
+ "items": {
2098
+ "type": "number",
2099
+ "exclusiveMinimum": 0
2100
+ },
2101
+ "description": "Meters per texture repeat [u, v] for this choice instead of the part scale, so each material keeps its own course and board size."
1915
2102
  }
1916
2103
  },
1917
2104
  "required": [
@@ -2000,6 +2187,16 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
2000
2187
  "type": "string",
2001
2188
  "minLength": 1,
2002
2189
  "description": "Key of `palettes` that tints this choice instead of the part palette, so brick stays brick-colored and concrete stays concrete-colored."
2190
+ },
2191
+ "uvScale": {
2192
+ "minItems": 2,
2193
+ "maxItems": 2,
2194
+ "type": "array",
2195
+ "items": {
2196
+ "type": "number",
2197
+ "exclusiveMinimum": 0
2198
+ },
2199
+ "description": "Meters per texture repeat [u, v] for this choice instead of the part scale, so each material keeps its own course and board size."
2003
2200
  }
2004
2201
  },
2005
2202
  "required": [
@@ -2088,6 +2285,16 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
2088
2285
  "type": "string",
2089
2286
  "minLength": 1,
2090
2287
  "description": "Key of `palettes` that tints this choice instead of the part palette, so brick stays brick-colored and concrete stays concrete-colored."
2288
+ },
2289
+ "uvScale": {
2290
+ "minItems": 2,
2291
+ "maxItems": 2,
2292
+ "type": "array",
2293
+ "items": {
2294
+ "type": "number",
2295
+ "exclusiveMinimum": 0
2296
+ },
2297
+ "description": "Meters per texture repeat [u, v] for this choice instead of the part scale, so each material keeps its own course and board size."
2091
2298
  }
2092
2299
  },
2093
2300
  "required": [
@@ -12198,6 +12198,47 @@ Required: `style`, `outline`
12198
12198
  "type": "number",
12199
12199
  "exclusiveMinimum": 0,
12200
12200
  "maximum": 100
12201
+ },
12202
+ "sign": {
12203
+ "description": "A name set from the batch glyph atlas in place of the sign model text; without an atlas holding every character the sign model shows.",
12204
+ "type": "object",
12205
+ "properties": {
12206
+ "text": {
12207
+ "type": "string",
12208
+ "minLength": 1,
12209
+ "maxLength": 64,
12210
+ "description": "The name as shown; it may break over two lines."
12211
+ },
12212
+ "plate": {
12213
+ "type": "string",
12214
+ "pattern": "^#[0-9a-fA-F]{6}$"
12215
+ },
12216
+ "ink": {
12217
+ "type": "string",
12218
+ "pattern": "^#[0-9a-fA-F]{6}$"
12219
+ },
12220
+ "stripe": {
12221
+ "type": "string",
12222
+ "pattern": "^#[0-9a-fA-F]{6}$"
12223
+ },
12224
+ "font": {
12225
+ "description": "Glyph atlas role or face id.",
12226
+ "type": "string",
12227
+ "minLength": 1,
12228
+ "maxLength": 100
12229
+ },
12230
+ "letterSpacing": {
12231
+ "type": "number",
12232
+ "minimum": -0.1,
12233
+ "maximum": 0.5
12234
+ }
12235
+ },
12236
+ "required": [
12237
+ "text",
12238
+ "plate",
12239
+ "ink"
12240
+ ],
12241
+ "additionalProperties": false
12201
12242
  }
12202
12243
  },
12203
12244
  "required": [
@@ -175,8 +175,8 @@ Binds archstyles and scatter rule sets to places on Earth: prioritized lon/lat r
175
175
  "fallbackDistanceMeters": {
176
176
  "type": "number",
177
177
  "minimum": 0,
178
- "maximum": 5000,
179
- "description": "Optional nearest-outline fallback in local world meters, used only when no region contains the point. Compensates for coarse coastlines; default 0."
178
+ "maximum": 50000,
179
+ "description": "Optional nearest-outline fallback in local world meters, used only when no region contains the point. Compensates for coarse coastlines, which leave estuary, lagoon and inshore island cities outside every outline; default 0."
180
180
  },
181
181
  "regions": {
182
182
  "default": [],
@@ -681,9 +681,10 @@ Composable ecological and architectural channels with explicit dependency versio
681
681
  "canopy",
682
682
  "understory",
683
683
  "groundcover",
684
- "agriculture"
684
+ "agriculture",
685
+ "garden"
685
686
  ],
686
- "description": "Budget pool: canopy uses the batch instance and model caps; understory (shrubs and thickets) and groundcover (low patches) have independent caps and never thin canopy trees."
687
+ "description": "Budget pool: canopy uses the batch instance and model caps; understory (shrubs and thickets), groundcover (low patches) and garden (planted ornamental shrubs, hedges and small trees in yards, parks and verges) have independent caps and never thin canopy trees or each other."
687
688
  },
688
689
  "slopeMax": {
689
690
  "type": "number",
@@ -802,6 +803,12 @@ Composable ecological and architectural channels with explicit dependency versio
802
803
  "additionalProperties": false,
803
804
  "description": "Independent X/Z scale multiplier for crown width/bushiness; omitted means 1."
804
805
  },
806
+ "width": {
807
+ "type": "number",
808
+ "exclusiveMinimum": 0,
809
+ "maximum": 50,
810
+ "description": "Crown width in meters of the model at scale 1. A crowns rule fits the plant to its painted crown's width with it; scale then varies its height alone."
811
+ },
805
812
  "yaw": {
806
813
  "default": "random",
807
814
  "type": "string",
@@ -880,6 +887,19 @@ Composable ecological and architectural channels with explicit dependency versio
880
887
  },
881
888
  "description": "Weighted species."
882
889
  },
890
+ "crowns": {
891
+ "type": "object",
892
+ "propertyNames": {
893
+ "type": "string",
894
+ "minLength": 1
895
+ },
896
+ "additionalProperties": {
897
+ "type": "number",
898
+ "minimum": 0,
899
+ "maximum": 1
900
+ },
901
+ "description": "Stand one plant on each shrub crown the ground paints (see surface.detail), at its center and fitted to its width, in place of densityPerHectare. Maps a ground appearance class to the brush (0..1) the ground paints it with, normally that class's surface.detail brush. Up close the painted crown gives way to the plant. Crowns are kept whole: keepByTier only switches the rule off, and they stand outside their layer's instance cap (the rule's own cap bounds them). Needs a host that supplies the ground's crowns; populations should give their width."
902
+ },
883
903
  "lod": {
884
904
  "type": "object",
885
905
  "properties": {
@@ -968,6 +988,8 @@ Composable ecological and architectural channels with explicit dependency versio
968
988
  "vine",
969
989
  "mat",
970
990
  "fallenwood",
991
+ "hedge",
992
+ "rock",
971
993
  "crop"
972
994
  ]
973
995
  },
@@ -1028,6 +1050,10 @@ Composable ecological and architectural channels with explicit dependency versio
1028
1050
  "type": "string",
1029
1051
  "pattern": "^#[0-9a-fA-F]{6}$"
1030
1052
  },
1053
+ "bloom": {
1054
+ "type": "string",
1055
+ "pattern": "^#[0-9a-fA-F]{6}$"
1056
+ },
1031
1057
  "cropKind": {
1032
1058
  "type": "string",
1033
1059
  "enum": [