@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
@@ -442,9 +442,10 @@ Label-keyed deterministic prop placement (density, clustering, slope and clearan
442
442
  "canopy",
443
443
  "understory",
444
444
  "groundcover",
445
- "agriculture"
445
+ "agriculture",
446
+ "garden"
446
447
  ],
447
- "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."
448
+ "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."
448
449
  },
449
450
  "slopeMax": {
450
451
  "type": "number",
@@ -563,6 +564,12 @@ Label-keyed deterministic prop placement (density, clustering, slope and clearan
563
564
  "additionalProperties": false,
564
565
  "description": "Independent X/Z scale multiplier for crown width/bushiness; omitted means 1."
565
566
  },
567
+ "width": {
568
+ "type": "number",
569
+ "exclusiveMinimum": 0,
570
+ "maximum": 50,
571
+ "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."
572
+ },
566
573
  "yaw": {
567
574
  "default": "random",
568
575
  "type": "string",
@@ -641,6 +648,19 @@ Label-keyed deterministic prop placement (density, clustering, slope and clearan
641
648
  },
642
649
  "description": "Weighted species."
643
650
  },
651
+ "crowns": {
652
+ "type": "object",
653
+ "propertyNames": {
654
+ "type": "string",
655
+ "minLength": 1
656
+ },
657
+ "additionalProperties": {
658
+ "type": "number",
659
+ "minimum": 0,
660
+ "maximum": 1
661
+ },
662
+ "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."
663
+ },
644
664
  "lod": {
645
665
  "type": "object",
646
666
  "properties": {
@@ -0,0 +1,174 @@
1
+ # Storefront sign looks (`molen/sign-looks@1`)
2
+
3
+ Plate and letter colors, accent band, font role and case for signs that show mapped place names.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/sign-looks@1",
10
+ "version": 1,
11
+ "families": {
12
+ "cafe": [
13
+ {
14
+ "plate": "#4c4036",
15
+ "ink": "#f3e4c7",
16
+ "font": "serif"
17
+ },
18
+ {
19
+ "plate": "#efe9df",
20
+ "ink": "#1f5a46",
21
+ "font": "bold"
22
+ }
23
+ ]
24
+ },
25
+ "chains": {
26
+ "neighborhood_grocery": {
27
+ "look": {
28
+ "plate": "#bc2530",
29
+ "ink": "#ffffff"
30
+ }
31
+ }
32
+ }
33
+ }
34
+ ```
35
+
36
+ ## JSON Schema
37
+
38
+ ```json
39
+ {
40
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
41
+ "type": "object",
42
+ "properties": {
43
+ "format": {
44
+ "type": "string",
45
+ "const": "molen/sign-looks@1"
46
+ },
47
+ "version": {
48
+ "type": "integer",
49
+ "exclusiveMinimum": 0,
50
+ "maximum": 9007199254740991
51
+ },
52
+ "families": {
53
+ "type": "object",
54
+ "propertyNames": {
55
+ "type": "string",
56
+ "enum": [
57
+ "grocery",
58
+ "restaurant",
59
+ "cafe",
60
+ "pharmacy",
61
+ "shop",
62
+ "mall",
63
+ "department_store",
64
+ "outlet_mall",
65
+ "strip_mall"
66
+ ]
67
+ },
68
+ "additionalProperties": {
69
+ "minItems": 1,
70
+ "maxItems": 64,
71
+ "type": "array",
72
+ "items": {
73
+ "type": "object",
74
+ "properties": {
75
+ "plate": {
76
+ "type": "string",
77
+ "pattern": "^#[0-9a-fA-F]{6}$"
78
+ },
79
+ "ink": {
80
+ "type": "string",
81
+ "pattern": "^#[0-9a-fA-F]{6}$"
82
+ },
83
+ "stripe": {
84
+ "type": "string",
85
+ "pattern": "^#[0-9a-fA-F]{6}$"
86
+ },
87
+ "font": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "maxLength": 100
91
+ },
92
+ "case": {
93
+ "type": "string",
94
+ "enum": [
95
+ "as-is",
96
+ "upper"
97
+ ]
98
+ },
99
+ "letterSpacing": {
100
+ "type": "number",
101
+ "minimum": -0.1,
102
+ "maximum": 0.5
103
+ }
104
+ },
105
+ "required": [
106
+ "plate",
107
+ "ink"
108
+ ],
109
+ "additionalProperties": false
110
+ }
111
+ }
112
+ },
113
+ "chains": {
114
+ "type": "object",
115
+ "propertyNames": {
116
+ "type": "string",
117
+ "minLength": 1
118
+ },
119
+ "additionalProperties": {
120
+ "type": "object",
121
+ "properties": {
122
+ "display": {
123
+ "type": "string",
124
+ "minLength": 1,
125
+ "maxLength": 48
126
+ },
127
+ "look": {
128
+ "type": "object",
129
+ "properties": {
130
+ "plate": {
131
+ "type": "string",
132
+ "pattern": "^#[0-9a-fA-F]{6}$"
133
+ },
134
+ "ink": {
135
+ "type": "string",
136
+ "pattern": "^#[0-9a-fA-F]{6}$"
137
+ },
138
+ "stripe": {
139
+ "type": "string",
140
+ "pattern": "^#[0-9a-fA-F]{6}$"
141
+ },
142
+ "font": {
143
+ "type": "string",
144
+ "minLength": 1,
145
+ "maxLength": 100
146
+ },
147
+ "case": {
148
+ "type": "string",
149
+ "enum": [
150
+ "as-is",
151
+ "upper"
152
+ ]
153
+ },
154
+ "letterSpacing": {
155
+ "type": "number",
156
+ "minimum": -0.1,
157
+ "maximum": 0.5
158
+ }
159
+ },
160
+ "additionalProperties": false
161
+ }
162
+ },
163
+ "additionalProperties": false
164
+ }
165
+ }
166
+ },
167
+ "required": [
168
+ "format",
169
+ "version",
170
+ "families"
171
+ ],
172
+ "additionalProperties": false
173
+ }
174
+ ```
@@ -473,6 +473,16 @@ Geographic placement data with authoring explanations omitted.
473
473
  "replaceFootprint": {
474
474
  "type": "boolean"
475
475
  },
476
+ "surfacePassageIds": {
477
+ "minItems": 1,
478
+ "maxItems": 32,
479
+ "type": "array",
480
+ "items": {
481
+ "type": "integer",
482
+ "exclusiveMinimum": 0,
483
+ "maximum": 9007199254740991
484
+ }
485
+ },
476
486
  "buildingCutout": {
477
487
  "type": "object",
478
488
  "properties": {
@@ -487,6 +487,16 @@ WGS84 anchors for authored models; draft entries are indexed but not rendered.
487
487
  "replaceFootprint": {
488
488
  "type": "boolean"
489
489
  },
490
+ "surfacePassageIds": {
491
+ "minItems": 1,
492
+ "maxItems": 32,
493
+ "type": "array",
494
+ "items": {
495
+ "type": "integer",
496
+ "exclusiveMinimum": 0,
497
+ "maximum": 9007199254740991
498
+ }
499
+ },
490
500
  "buildingCutout": {
491
501
  "type": "object",
492
502
  "properties": {
@@ -364,6 +364,47 @@ A serialized generation request: labeled building outlines, optional labeled pol
364
364
  "type": "number",
365
365
  "exclusiveMinimum": 0,
366
366
  "maximum": 100
367
+ },
368
+ "sign": {
369
+ "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.",
370
+ "type": "object",
371
+ "properties": {
372
+ "text": {
373
+ "type": "string",
374
+ "minLength": 1,
375
+ "maxLength": 64,
376
+ "description": "The name as shown; it may break over two lines."
377
+ },
378
+ "plate": {
379
+ "type": "string",
380
+ "pattern": "^#[0-9a-fA-F]{6}$"
381
+ },
382
+ "ink": {
383
+ "type": "string",
384
+ "pattern": "^#[0-9a-fA-F]{6}$"
385
+ },
386
+ "stripe": {
387
+ "type": "string",
388
+ "pattern": "^#[0-9a-fA-F]{6}$"
389
+ },
390
+ "font": {
391
+ "description": "Glyph atlas role or face id.",
392
+ "type": "string",
393
+ "minLength": 1,
394
+ "maxLength": 100
395
+ },
396
+ "letterSpacing": {
397
+ "type": "number",
398
+ "minimum": -0.1,
399
+ "maximum": 0.5
400
+ }
401
+ },
402
+ "required": [
403
+ "text",
404
+ "plate",
405
+ "ink"
406
+ ],
407
+ "additionalProperties": false
367
408
  }
368
409
  },
369
410
  "required": [
@@ -486,6 +527,36 @@ A serialized generation request: labeled building outlines, optional labeled pol
486
527
  },
487
528
  "description": "Outline edge indices on the cut boundary."
488
529
  },
530
+ "partyEdges": {
531
+ "type": "array",
532
+ "items": {
533
+ "type": "integer",
534
+ "minimum": 0,
535
+ "maximum": 9007199254740991
536
+ },
537
+ "description": "Outline edge indices shared with a neighbouring building: walls with no openings or trim."
538
+ },
539
+ "fallbackLevelsMax": {
540
+ "type": "integer",
541
+ "minimum": 1,
542
+ "maximum": 200,
543
+ "description": "Most storeys the style may guess when neither height nor levels is supplied; ignored otherwise."
544
+ },
545
+ "crown": {
546
+ "maxItems": 3,
547
+ "type": "array",
548
+ "items": {
549
+ "type": "string",
550
+ "enum": [
551
+ "spire",
552
+ "belfry",
553
+ "dome",
554
+ "minaret",
555
+ "shikhara"
556
+ ]
557
+ },
558
+ "description": "Towers and domes the building carries, in its style materials."
559
+ },
489
560
  "style": {
490
561
  "type": "string",
491
562
  "pattern": "^[a-z][a-z0-9_]*(\\.[a-z][a-z0-9_]*)+$",
@@ -554,6 +625,15 @@ A serialized generation request: labeled building outlines, optional labeled pol
554
625
  "minimum": 0,
555
626
  "maximum": 4294967295,
556
627
  "description": "Owner seed for acceptance and appearance on the shared placement grid."
628
+ },
629
+ "appearance": {
630
+ "type": "string",
631
+ "minLength": 1,
632
+ "description": "The ground's appearance class here, the key a crowns rule looks its brush up by (default: label)."
633
+ },
634
+ "ground": {
635
+ "type": "boolean",
636
+ "description": "False for a polygon only scatter sees (an inferred yard): crowns rules look through it to the polygon beneath."
557
637
  }
558
638
  },
559
639
  "required": [
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by `molen types gen` — do not edit. inputs-hash: sha256:0e0ef0b0a9038d444744067291e674f3d2cca3b824fc638a669e61f63339a3ff
1
+ // AUTO-GENERATED by `molen types gen` — do not edit. inputs-hash: sha256:765ce3059be0697fed8a270545c6c148b4dd180cfb5375204aced1de45b2b53f
2
2
  // Regenerate after editing types/*.json; `molen types check` flags staleness.
3
3
  /** biome-ignore-all format: generated file (stable output beats house wrapping) */
4
4
  import { defineComponent, type JsonObject } from '@bendyline/molen-kernel';
@@ -1588,6 +1588,14 @@ export type WorldgenBuildingData = {
1588
1588
  signSize?: [number, number];
1589
1589
  accent: string;
1590
1590
  width?: number;
1591
+ sign?: {
1592
+ text: string;
1593
+ plate: string;
1594
+ ink: string;
1595
+ stripe?: string;
1596
+ font?: string;
1597
+ letterSpacing?: number;
1598
+ };
1591
1599
  }[];
1592
1600
  outline: [number, number][];
1593
1601
  holes?: [number, number][][];
@@ -1599,6 +1599,14 @@ type MolenWorldgenBuildingData = {
1599
1599
  signSize?: [number, number];
1600
1600
  accent: string;
1601
1601
  width?: number;
1602
+ sign?: {
1603
+ text: string;
1604
+ plate: string;
1605
+ ink: string;
1606
+ stripe?: string;
1607
+ font?: string;
1608
+ letterSpacing?: number;
1609
+ };
1602
1610
  }[];
1603
1611
  outline: [number, number][];
1604
1612
  holes?: [number, number][][];
@@ -208,22 +208,22 @@
208
208
  }
209
209
  ],
210
210
  "versions": {
211
- "@bendyline/molen-ambient": "0.0.17",
212
- "@bendyline/molen-client": "0.0.15",
213
- "@bendyline/molen-dioramas": "0.0.8",
214
- "@bendyline/molen-earth": "0.0.17",
215
- "@bendyline/molen-entities": "0.0.16",
216
- "@bendyline/molen-figures": "0.0.15",
217
- "@bendyline/molen-input-react": "0.0.14",
218
- "@bendyline/molen-kernel": "0.0.11",
219
- "@bendyline/molen-materials": "0.0.12",
220
- "@bendyline/molen-pack": "0.0.12",
221
- "@bendyline/molen-pathfinding": "0.0.11",
222
- "@bendyline/molen-physics-rapier": "0.0.11",
223
- "@bendyline/molen-schema": "0.0.11",
224
- "@bendyline/molen-terrain": "0.0.16",
225
- "@bendyline/molen-tooling": "0.0.16",
226
- "@bendyline/molen-worldgen": "0.0.15",
227
- "@bendyline/molen-worldgen-earth": "0.0.16"
211
+ "@bendyline/molen-ambient": "0.0.19",
212
+ "@bendyline/molen-client": "0.0.17",
213
+ "@bendyline/molen-dioramas": "0.0.10",
214
+ "@bendyline/molen-earth": "0.0.19",
215
+ "@bendyline/molen-entities": "0.0.17",
216
+ "@bendyline/molen-figures": "0.0.17",
217
+ "@bendyline/molen-input-react": "0.0.16",
218
+ "@bendyline/molen-kernel": "0.0.12",
219
+ "@bendyline/molen-materials": "0.0.13",
220
+ "@bendyline/molen-pack": "0.0.13",
221
+ "@bendyline/molen-pathfinding": "0.0.12",
222
+ "@bendyline/molen-physics-rapier": "0.0.12",
223
+ "@bendyline/molen-schema": "0.0.12",
224
+ "@bendyline/molen-terrain": "0.0.18",
225
+ "@bendyline/molen-tooling": "0.0.18",
226
+ "@bendyline/molen-worldgen": "0.0.17",
227
+ "@bendyline/molen-worldgen-earth": "0.0.18"
228
228
  }
229
229
  }
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by `molen types gen` — do not edit. inputs-hash: sha256:0e0ef0b0a9038d444744067291e674f3d2cca3b824fc638a669e61f63339a3ff
1
+ // AUTO-GENERATED by `molen types gen` — do not edit. inputs-hash: sha256:765ce3059be0697fed8a270545c6c148b4dd180cfb5375204aced1de45b2b53f
2
2
  // Regenerate after editing types/*.json; `molen types check` flags staleness.
3
3
  /** biome-ignore-all format: generated file (stable output beats house wrapping) */
4
4
  import { defineComponent, type JsonObject } from '@bendyline/molen-kernel';
@@ -1588,6 +1588,14 @@ export type WorldgenBuildingData = {
1588
1588
  signSize?: [number, number];
1589
1589
  accent: string;
1590
1590
  width?: number;
1591
+ sign?: {
1592
+ text: string;
1593
+ plate: string;
1594
+ ink: string;
1595
+ stripe?: string;
1596
+ font?: string;
1597
+ letterSpacing?: number;
1598
+ };
1591
1599
  }[];
1592
1600
  outline: [number, number][];
1593
1601
  holes?: [number, number][][];
@@ -1609,6 +1609,14 @@ type MolenWorldgenBuildingData = {
1609
1609
  signSize?: [number, number];
1610
1610
  accent: string;
1611
1611
  width?: number;
1612
+ sign?: {
1613
+ text: string;
1614
+ plate: string;
1615
+ ink: string;
1616
+ stripe?: string;
1617
+ font?: string;
1618
+ letterSpacing?: number;
1619
+ };
1612
1620
  }[];
1613
1621
  outline: [number, number][];
1614
1622
  holes?: [number, number][][];
@@ -1589,6 +1589,14 @@ type MolenWorldgenBuildingData = {
1589
1589
  signSize?: [number, number];
1590
1590
  accent: string;
1591
1591
  width?: number;
1592
+ sign?: {
1593
+ text: string;
1594
+ plate: string;
1595
+ ink: string;
1596
+ stripe?: string;
1597
+ font?: string;
1598
+ letterSpacing?: number;
1599
+ };
1592
1600
  }[];
1593
1601
  outline: [number, number][];
1594
1602
  holes?: [number, number][][];
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by `molen types gen` — do not edit. inputs-hash: sha256:c5abb35f85a45ce6f9c3983df369a03627aff8acb2cf8dd31a5fa142eb3618bd
1
+ // AUTO-GENERATED by `molen types gen` — do not edit. inputs-hash: sha256:d0b71d5f2b62528bd1e7ec36d6e1c8f508171466c914f88dffe90147695a97cf
2
2
  // Regenerate after editing types/*.json; `molen types check` flags staleness.
3
3
  /** biome-ignore-all format: generated file (stable output beats house wrapping) */
4
4
  import { defineComponent, type JsonObject } from '@bendyline/molen-kernel';
@@ -1588,6 +1588,14 @@ export type WorldgenBuildingData = {
1588
1588
  signSize?: [number, number];
1589
1589
  accent: string;
1590
1590
  width?: number;
1591
+ sign?: {
1592
+ text: string;
1593
+ plate: string;
1594
+ ink: string;
1595
+ stripe?: string;
1596
+ font?: string;
1597
+ letterSpacing?: number;
1598
+ };
1591
1599
  }[];
1592
1600
  outline: [number, number][];
1593
1601
  holes?: [number, number][][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bendyline/molen-tooling",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -49,17 +49,17 @@
49
49
  }
50
50
  },
51
51
  "dependencies": {
52
- "@bendyline/molen-ambient": "0.0.17",
53
- "@bendyline/molen-client": "0.0.15",
54
- "@bendyline/molen-figures": "0.0.15",
55
- "@bendyline/molen-kernel": "0.0.11",
56
- "@bendyline/molen-materials": "0.0.12",
57
- "@bendyline/molen-pack": "0.0.12",
58
- "@bendyline/molen-physics-rapier": "0.0.11",
59
- "@bendyline/molen-schema": "0.0.11",
60
- "@bendyline/molen-terrain": "0.0.16",
61
- "@bendyline/molen-worldgen": "0.0.15",
62
- "@bendyline/molen-worldgen-earth": "0.0.16",
52
+ "@bendyline/molen-ambient": "0.0.19",
53
+ "@bendyline/molen-client": "0.0.17",
54
+ "@bendyline/molen-figures": "0.0.17",
55
+ "@bendyline/molen-kernel": "0.0.12",
56
+ "@bendyline/molen-materials": "0.0.13",
57
+ "@bendyline/molen-pack": "0.0.13",
58
+ "@bendyline/molen-physics-rapier": "0.0.12",
59
+ "@bendyline/molen-schema": "0.0.12",
60
+ "@bendyline/molen-terrain": "0.0.18",
61
+ "@bendyline/molen-worldgen": "0.0.17",
62
+ "@bendyline/molen-worldgen-earth": "0.0.18",
63
63
  "@gltf-transform/core": "4.2.1",
64
64
  "@gltf-transform/extensions": "4.2.1",
65
65
  "@gltf-transform/functions": "4.2.1",