@bendyline/molen-tooling 0.0.3 → 0.0.5

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 (50) hide show
  1. package/README.md +4 -4
  2. package/dist/capture/harness.js +231 -231
  3. package/dist/capture/worldgen-preview.js +206 -206
  4. package/dist/cli.mjs +54 -2
  5. package/dist/docs-src/guide/adaptive-performance.md +5 -2
  6. package/dist/docs-src/guide/aircraft.md +12 -0
  7. package/dist/docs-src/guide/ambient-life.md +389 -0
  8. package/dist/docs-src/guide/browser-mount.md +5 -0
  9. package/dist/docs-src/guide/capability-authoring.md +5 -0
  10. package/dist/docs-src/guide/determinism.md +24 -16
  11. package/dist/docs-src/guide/earth-view.md +108 -20
  12. package/dist/docs-src/guide/entities.md +8 -0
  13. package/dist/docs-src/guide/examples.md +4 -1
  14. package/dist/docs-src/guide/figures.md +3 -0
  15. package/dist/docs-src/guide/game-samples.md +1 -1
  16. package/dist/docs-src/guide/markers.md +7 -1
  17. package/dist/docs-src/guide/navigation.md +10 -1
  18. package/dist/docs-src/guide/sky.md +5 -0
  19. package/dist/docs-src/guide/surface-rendering.md +7 -4
  20. package/dist/docs-src/guide/terrain.md +58 -3
  21. package/dist/docs-src/guide/vehicles.md +14 -1
  22. package/dist/docs-src/guide/worldgen.md +30 -17
  23. package/dist/docs-src/llms.txt +7 -4
  24. package/dist/docs-src/schemas/README.md +1 -0
  25. package/dist/docs-src/schemas/components.md +530 -1
  26. package/dist/docs-src/schemas/scene.md +105 -0
  27. package/dist/docs-src/schemas/terrain-package.md +102 -0
  28. package/dist/docs-src/schemas/transport-network.md +351 -0
  29. package/dist/index.d.mts +44 -1
  30. package/dist/index.mjs +81 -4
  31. package/dist/{mcp-BTVwVKFb.mjs → mcp-DKm1h9hD.mjs} +22 -1
  32. package/dist/{ops-BPdHodFR.mjs → ops-DHyZWZUE.mjs} +291 -66
  33. package/dist/templates/city-courier/README.md +1 -1
  34. package/dist/templates/city-courier/delivery-run.replay.json +151 -151
  35. package/dist/templates/city-courier/gen/molen-types.ts +82 -2
  36. package/dist/templates/city-courier/package.json +1 -0
  37. package/dist/templates/city-courier/scene.json +99 -282
  38. package/dist/templates/city-courier/scripts/game.ts +2 -14
  39. package/dist/templates/city-courier/scripts/molen-scripts.d.ts +86 -13
  40. package/dist/templates/city-courier/src/worker.ts +3 -1
  41. package/dist/templates/city-courier/test/headless.test.ts +3 -2
  42. package/dist/templates/data-viz/README.md +1 -1
  43. package/dist/templates/index.json +19 -1
  44. package/dist/templates/skybound/gen/molen-types.ts +82 -2
  45. package/dist/templates/skybound/scripts/molen-scripts.d.ts +81 -1
  46. package/dist/templates/terrain-flyover/README.md +2 -2
  47. package/dist/templates/top-down-arena/README.md +1 -1
  48. package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +81 -1
  49. package/dist/templates/top-down-arena/src/gen/molen-types.ts +82 -2
  50. package/package.json +13 -12
@@ -5,7 +5,8 @@ composes:
5
5
 
6
6
  - streamed terrain from a `molen/terrain-package@1`;
7
7
  - worldgen buildings, street surfaces, trees and parked cars from content packs;
8
- - orbit, walk and drive navigation;
8
+ - traffic, pedestrians, trains and aircraft that come and go around the viewer;
9
+ - orbit, walk, drive and fly navigation, with cars and aircraft the host can put the viewer in;
9
10
  - markers placed by latitude/longitude;
10
11
  - sky, haze and adaptive quality.
11
12
 
@@ -55,7 +56,21 @@ reuses its filtered texture until lighting changes; camera movement does not reg
55
56
  Pass `reflections: false` for the legacy light-only appearance. A host-assigned
56
57
  `view.viewer.renderer.scene.environment` takes precedence if you supply your own HDR environment.
57
58
 
58
- `touchJoystickContainer` adds an on-screen movement stick while walking or driving. By default it
59
+ `style` sets the look: `sky.sunElevation` and `sky.sunAzimuth` (degrees; the azimuth is a
60
+ compass bearing, 0 north and clockwise) place the sun, and unless `environment.sun.direction` is
61
+ given the sunlight comes from the same point, so lit faces agree with the glow in the sky. `fog`,
62
+ `water`, `background` and the rest of `environment` (ambient light, tone mapping, exposure) follow.
63
+ `ground` recolors the terrain package's bare-ground surface layers by name (for example
64
+ `{ lowland: '#8b9e70' }`), and `landcover` sets landcover class colors (forest, grass, park,
65
+ residential, commercial…) over the style pack's palette; an unlisted class falls back to a
66
+ neutral olive.
67
+
68
+ Buildings, trees and landmarks cast sun shadows onto everything around what the camera frames:
69
+ the orbit target (sized to the view), or a little ahead of the walker, car or aircraft. The
70
+ shadow map follows that focus in whole texels, so edges hold still as it moves. Adaptive quality
71
+ turns shadows off at its two lowest levels; `shadows: false` turns them off entirely.
72
+
73
+ `touchJoystickContainer` adds an on-screen movement stick while walking, driving or flying. By default it
59
74
  appears only on touch devices; pass `touchJoystick: 'always'` to show it everywhere.
60
75
 
61
76
  ## Modes
@@ -63,25 +78,52 @@ appears only on touch devices; pass `touchJoystick: 'always'` to show it everywh
63
78
  - **orbit** (default): the map camera from [camera navigation](navigation.md). `flyTo(target)`
64
79
  animates and `jumpTo(target)` moves at once. The target takes `latitude`, `longitude`, and
65
80
  optionally `range` in meters, `heading` (a compass bearing in radians) and `pitch` (radians of
66
- tilt below the horizon).
81
+ tilt below the horizon). The camera stays within `earthOrbitMaxRange(viewDistance)` of its target
82
+ (45% of the current performance tier's terrain view distance, at least 2 km), so it cannot pull
83
+ back past where the scene still draws; a farther `range` is clamped, and the limit follows
84
+ adaptive quality.
67
85
  - **walk**: `setMode('walk')` drops a walker at the view center. It has capsule collision against
68
86
  terrain, buildings and props, WASD or the touch stick to move, mouse-look with pointer lock, and
69
87
  Space to jump.
70
88
  - **drive**: while walking, press E (or `setMode('drive')`) next to a parked car to get in. W/S
71
- drive, A/D steer, Space brakes, V switches between cockpit and chase views, and E gets out. Cars
72
- come from the entities content pack. `message` events explain when entering or leaving is
73
- blocked, for example "Move closer to the door".
89
+ drive, A/D steer, Space brakes, V switches between cockpit and chase views, and E gets out. A car
90
+ at rest with no throttle holds itself, even on a slope. Cars come from the entities content
91
+ pack. `message` events explain when entering or leaving is blocked, for example "Move closer to
92
+ the door". From any mode, `setMode('drive', { vehicle: true })` puts the viewer in a car in the
93
+ nearest mapped road lane (or `vehicle: '<entity type id>'` for a particular car).
94
+ - **fly**: `setMode('fly')` starts an aircraft from the entities pack (the P-51D, or
95
+ `{ aircraft: 'molen.entities.aircraft.oh6' }` for the helicopter) already flying: engine
96
+ running, gear up, heading the way the view faced. From orbit it starts a little behind the view,
97
+ flying toward it, at a height matched to the orbit camera; `airborne: { altitude, speed }`
98
+ chooses meters above the ground and m/s, and `airborne: false` parks it on the ground with the
99
+ engine off. The `pilot` input profile flies it (see [navigation](navigation.md)); V switches
100
+ cockpit and chase views, R recovers after an impact (`view.recover()`), and E leaves once it
101
+ has landed, stopped and shut down. See [aircraft](aircraft.md) for the flight model.
102
+
103
+ Drive and fly need the ground under their start, and drive a road lane, so `setMode` switches at
104
+ once and boards when that has streamed in, keeping the orbit camera on the spot meanwhile. With no
105
+ lane after a few seconds the car takes the nearest open ground, never a roof, deck or catalogued
106
+ landmark. Leaving follows the vehicle's rules (stop, land, shut down); a host control such as a
107
+ mode menu passes `{ force: true }` to step out at once, which also removes a vehicle `setMode`
108
+ added.
109
+
110
+ `view.vehicleStatus()` describes the car or aircraft the viewer is in for a HUD: speed and
111
+ heading for a car; airspeed, altitude and height above ground, vertical speed, attitude, power,
112
+ engine, gear, flaps and stall/impact flags for an aircraft (SI units, compass radians).
113
+ `view.setThrottle(power)` sets an aircraft's throttle or collective from an on-screen lever.
74
114
 
75
115
  Listen for `modechange`. The input profile, clip planes and touch stick follow the mode
76
116
  automatically.
77
117
 
78
118
  ## Frames and long trips
79
119
 
80
- Heights stay in meters. Horizontal distances are exact at the frame latitude and drift by about
81
- 1–1.5% per degree away from it (see [terrain](terrain.md)). The view anchors its frame at the
82
- starting latitude. After a `flyTo` of more than about a degree north or south, or after panning
83
- that far, it re-anchors: it rebuilds the terrain stack in a new frame at the destination while
84
- keeping the viewer, input and markers. With `terrainSource`, a longitude-only trip also checks
120
+ Heights stay in meters. Horizontal distances are exact at the frame latitude and drift away from it
121
+ by about 1.75% × tan(latitude) per degree: 1% at 30°, 1.5% at 40°, 2% at Seattle's 47.6°, 3% at 60°
122
+ (see [terrain](terrain.md)). The view anchors its frame at the starting latitude. After a `flyTo`
123
+ of more than about a degree north or south, or after panning that far, it re-anchors: it rebuilds
124
+ the terrain stack in a new frame at the destination while keeping the viewer, input and markers.
125
+ Walking, driving and flying keep their frame, so a long flight north or south slowly stretches
126
+ distances by the same rule; return to orbit to re-anchor. With `terrainSource`, a longitude-only trip also checks
85
127
  the destination's terrain region. `stats().frameLatitude` reports the current anchor.
86
128
 
87
129
  ## Content and packages
@@ -151,12 +193,33 @@ const view = await mountEarthView({
151
193
  });
152
194
  ```
153
195
 
154
- The host can return `archives` in the result to fetch tiles from its own PMTiles service. Keep
196
+ The host can return `archives` in the result to fetch tiles from its own PMTiles service
197
+ (`elevation`, `landcover`, `features`, and `buildingDetail` for a package's finer building tier;
198
+ see [terrain](terrain.md)). A building-detail archive that fails to open is reported as an error
199
+ and the view carries on with the feature tiles' own footprints. Keep
155
200
  pack attribution visible through `view.credits`, which follows the active terrain source. Listen
156
201
  for `terrainchange` to refresh an attribution panel when the package changes. Direct jumps and
157
202
  completed flights resolve the destination immediately; manual panning rechecks the host source
158
203
  after about five kilometers. A second jump while a region is loading follows the latest target.
159
204
 
205
+ ## Ambient life
206
+
207
+ Cars drive the mapped roads, pedestrians walk the footways, trains run the railways and aircraft
208
+ pass overhead. They appear out of sight around the viewer and leave once it moves on. The layer is
209
+ on by default:
210
+
211
+ ```ts
212
+ const view = await mountEarthView({ canvas, terrain, content, camera, ambient: { density: 0.4 } });
213
+ view.setAmbientEnabled(false);
214
+ ```
215
+
216
+ `density` runs from 0 to 1 (default 0.6). `cars`, `pedestrians`, `rail` and `aircraft` switch a
217
+ class off, and `ambient: false` removes the layer. The quality tier caps how many agents run and
218
+ how many cars get full models. With the entities pack in `content`, vehicles use its car, bus,
219
+ light-rail and airliner models near the camera. The car you drive stops against ambient traffic,
220
+ and traffic waits for it. See [Ambient life](ambient-life.md) for the tier table and how the
221
+ simulation works.
222
+
160
223
  ## Geographic structures and regional styles
161
224
 
162
225
  The Earth pack may provide a `molen/structure-placements@1` document. Each record binds a
@@ -230,9 +293,13 @@ model eviction. `build-copernicus-bridge-evidence.py` and the capture runner's
230
293
  neither capture set substitutes altered heights to make a bridge fit. These reports are research
231
294
  evidence and are excluded from the Earth runtime pack.
232
295
 
233
- If `replaceFootprint` is set, a nongeneralized mapped building is suppressed only when the
234
- anchor falls inside its polygon and the replacement model has loaded. Failed models keep the
235
- procedural building. An Earth pack without a placement document still loads.
296
+ If `replaceFootprint` is set, a mapped building is suppressed only when the anchor falls inside
297
+ its polygon and the replacement model has loaded. Failed models keep the procedural building.
298
+ Generalized sources (Protomaps below zoom 15, and tiles overzoomed from them) merge neighboring
299
+ footprints, so there the polygon is suppressed only when neither side exceeds the loaded model's
300
+ horizontal extent by more than 1.6 times plus 12 meters; a larger polygon is a merged block of
301
+ other buildings and keeps its procedural shell. An Earth pack without a placement document still
302
+ loads.
236
303
 
237
304
  For unsurveyed orientation, `orientation: 'mapped'` requires an explicit
238
305
  `mapIdentity: { wikidata: 'Q…', maxDistance: 150 }`. The viewer admits that model only after a
@@ -272,8 +339,8 @@ uniformly scale native models, bounded from 0.2 to 5 times native dimensions; fo
272
339
  adjusts the three dimensions independently. Explicit source `direction`
273
340
  or compass bearings take priority; otherwise footprints use their longest axis and points
274
341
  default north. This default is an estimate, especially for rotatable turbine nacelles.
275
- Rules with `replaceFootprint: true` can also replace a nongeneralized footprint containing a
276
- matching POI, after the asset loads. This is useful when a windmill is a POI plus an unclassified
342
+ Rules with `replaceFootprint: true` can also replace a footprint containing a matching POI,
343
+ after the asset loads, under the same size rule for generalized footprints. This is useful when a windmill is a POI plus an unclassified
277
344
  building outline; the default leaves point features independent of building shells.
278
345
 
279
346
  The renderer admits at most 64 category models per tile and obeys each rule's smaller budget.
@@ -414,7 +481,28 @@ These regional forms are visual priors, not surveyed attributes of individual bu
414
481
  - `view.credits` holds the package's required attributions, OpenStreetMap first with its link.
415
482
  Keep them visible whenever the view is.
416
483
  - `quality: 'auto'` adapts terrain budgets, building detail and pixel ratio to measured frame
417
- times (`stats().qualityLevel`, 0-5). A preset pins the quality.
484
+ times (`stats().qualityLevel`, 0-5, with `stats().qualityReason`). A preset pins the quality.
485
+ It starts at `earthInitialQualityLevel()`: level 1 on touch devices and at 2 GiB or less, 2 at
486
+ 4 GiB, otherwise 3, and climbs no higher than `maxQualityLevel` (default 3; above it buildings
487
+ switch to the high preset, which rebuilds them across the view). Where the browser can time the GPU (`renderer.createGpuTimer()`), the view
488
+ reports GPU and CPU work per frame, so slow frames while tiles stream in lower the level only
489
+ when rendering itself is the cost; without GPU timing it goes by frame times alone. The view
490
+ first calibrates quickly, so a slow device settles within seconds. Once a level has held for
491
+ 12 s it turns sticky, because a level change swaps resolution and detail across the view: down
492
+ after 2.5 s of sustained overload, up after 20 s of headroom, at least 6 s apart. Any change
493
+ waits until the camera has been still for 0.6 s (at most 4 s); memory pressure above 1.25
494
+ applies it at once.
495
+ - Ground 20° past each side of the view stays loaded as bare terrain (the stream's
496
+ `peripheralDegrees`), so turning the camera reveals ground at once and its buildings and trees
497
+ follow.
498
+ - Memory pressure (`stats().memoryPressure`) is the geometry on screen over `memoryBudget`, a
499
+ fixed per-device budget: `earthMemoryBudget()` gives 96 MiB per GiB the browser reports within
500
+ 192–768 MiB, or 256 MiB on touch devices and 512 MiB elsewhere without a report. Above 1 the
501
+ level steps down, and since stepping down selects fewer, coarser tiles, pressure falls rather
502
+ than cascading to the minimum. The terrain cache keeps at least the budget, so ground just left
503
+ is still warm when the view pans back.
504
+ - `stats().worldgen` counts styled building generation since the current terrain stream started
505
+ (with content packs): tiles generated, buildings drawn as geometry, and instanced stand-ins.
418
506
  - `setPaused(true)` stops rendering while the view is hidden, and `dispose()` releases the GPU
419
507
  context, workers and listeners. Mounting is abortable through `signal`.
420
508
 
@@ -439,6 +527,6 @@ same soundscape for a host that composes its own view. See [Sound and music](aud
439
527
  rule format.
440
528
 
441
529
  The composing pieces are exported too, for hosts that build their own view: `createEarthWorldgen`,
442
- `EarthVehicles`, `createEarthSky`/`createEarthFog`, `createEarthAudio`, `earthPerformanceTier` and
443
- `earthCredits`.
530
+ `EarthVehicles`, `EarthAmbient` with `observeSemanticTiles`, `createEarthSky`/`createEarthFog`,
531
+ `createEarthAudio`, `earthPerformanceTier` and `earthCredits`.
444
532
  The [World Explorer](https://molen.dev/play/world-explorer/) sample is built from them.
@@ -56,3 +56,11 @@ sidecar, types document, project, or gallery scene is stale.
56
56
  `molen.entities.aircraft.p51d` and `molen.entities.aircraft.oh6` add the Mustang and OH-6
57
57
  helicopter, including GLBs, flight components and pilot seats. The pack's asset provider
58
58
  serves them like any other model. See [Aircraft](aircraft.md) for world-view controls, physics and integration.
59
+
60
+ ## Transit and background traffic
61
+
62
+ `molen.entities.transit.bus` is a 12 m city bus, `molen.entities.transit.lightrail` a 27 m
63
+ two-section light-rail car, and `molen.entities.aircraft.airliner` a narrow-body airliner. They are
64
+ models for background traffic, not mountable vehicles. [Ambient life](ambient-life.md) spawns them
65
+ through their `ambientRole` component, as it does the pack's five cars and the two aircraft above.
66
+ In the engine repository, `content/entities/scenes/transit.scene.json` shows them side by side.
@@ -5,7 +5,7 @@ meant to be copied. Three ways in, none of which needs a clone of the engine rep
5
5
 
6
6
  - **Play** any sample in the browser at [molen.dev/play](https://molen.dev/play/).
7
7
  - **Copy** a sample into your own npm project with `--template`. The templates ship inside
8
- `@bendyline/molen-tooling`, locked to the engine version you install, so they work offline:
8
+ `@bendyline/molen-tooling`, locked to the package versions released with that CLI, so they work offline:
9
9
 
10
10
  ```sh
11
11
  npx @bendyline/molen-tooling new my-game --template skybound
@@ -65,6 +65,9 @@ reference for streaming and for a glTF asset pipeline, so read them on GitHub.
65
65
  adapter and region atlas; `/client` terrain tile renderers.
66
66
  - **Figures** (`@bendyline/molen-figures`): `/kernel` descriptors, rigs, gaits, `figureState`,
67
67
  sockets and attachments; `/client` the `figure` renderable kind (procedural skinned bodies).
68
+ - **Ambient life** (`@bendyline/molen-ambient`): `/kernel` transport networks, the spawn ring and
69
+ NPC cars, pedestrians, trains and aircraft; `/client` instanced vehicle proxies, pooled models
70
+ and pedestrian figures. See [ambient life](ambient-life.md).
68
71
 
69
72
  ## Start from scratch
70
73
 
@@ -111,6 +111,9 @@ State is written only when something changes: speed is quantized to 0.05 m/s, th
111
111
  anchored to a tick, so a steadily walking figure sends no deltas. `figureIntent.mode` forces a
112
112
  mode; `lookAt` aims the head at a point or an entity.
113
113
 
114
+ Pedestrians in [ambient life](ambient-life.md) are figures moved this way: the ambient kernel
115
+ writes their transform along footways and `speedSource: 'transform'` animates the gait.
116
+
114
117
  ## Sockets and attachments
115
118
 
116
119
  Sockets are named points on the rig, evaluated under the current pose. An entity with
@@ -7,7 +7,7 @@ restart, and a tested win condition.
7
7
 
8
8
  | Sample | Play | Loop | Engine services |
9
9
  |---|---|---|---|
10
- | City Courier | [molen.dev/play/city-courier](https://molen.dev/play/city-courier/) | Five deliveries, traffic, damage and a time limit | XZ kinematics, hierarchy, follow camera |
10
+ | City Courier | [molen.dev/play/city-courier](https://molen.dev/play/city-courier/) | Five deliveries, traffic, damage and a time limit | XZ kinematics, hierarchy, follow camera, ambient traffic |
11
11
  | The Lantern Vault | [molen.dev/play/lantern-dungeon](https://molen.dev/play/lantern-dungeon/) | Key, melee combat, healing, gate and relic | XZ kinematics/raycast, seeded RNG, hierarchy, tween, local follow camera |
12
12
  | Skybound | [molen.dev/play/skybound](https://molen.dev/play/skybound/) | Islands, seeds, stomps, hazards, checkpoint and finish | XY platform controller, hierarchy, world follow camera |
13
13
 
@@ -3,7 +3,13 @@
3
3
  `@bendyline/molen-client/markers` draws screen-sized billboards pinned to world positions: photo
4
4
  pins, labels you render to images, waypoints. A marker keeps a constant on-screen size. It sits on
5
5
  the ground, re-snapping as finer terrain streams in, hides behind hills and buildings through the
6
- depth test, and can fade with distance. Markers are budgeted so the nearest or most important ones
6
+ depth test, and can fade with distance. With `declutter: true` a pin whose on-screen footprint
7
+ overlaps a more important one is hidden: higher `priority` first, then pins already on screen, then
8
+ the nearest. A pin on screen keeps its place until the inner part of its footprint is covered,
9
+ while a newcomer needs its whole footprint clear, so pins do not flicker as the camera moves. Pins
10
+ fade in and out over `fadeMs` (default 180; 0 pops), and a pin fading out no longer takes taps.
11
+ The Earth view declutters its markers. They ignore the scene's fog, so distance haze never washes a
12
+ pin into a blank card; the layer's own `fade` handles distance. Markers are budgeted so the nearest or most important ones
7
13
  draw, and `pick(x, y)` resolves a click or tap to a marker id.
8
14
 
9
15
  ```ts
@@ -48,7 +48,10 @@ zoom). Motion eases toward a goal, so every change feels smooth.
48
48
  `flyTo({ target, range, heading, pitch }, { durationMs })` animates to a framing. It rises
49
49
  mid-flight on long hops so the camera clears the scenery, and any direct input cancels it.
50
50
  `set(state)` jumps immediately, and `state` reads the current framing. The target settles onto the
51
- ground as finer terrain arrives, and the camera never dips below `minClearance`.
51
+ ground as finer terrain arrives, and the camera never dips below `minClearance`. `minRange` and
52
+ `maxRange` (default 20 m and 400 km) bound the distance; `setRangeLimits({ minRange, maxRange })`
53
+ changes them later, for example when the distance a scene draws changes, and a camera outside the
54
+ new limits eases back inside them. `rangeLimits` reads them.
52
55
 
53
56
  ## Fly
54
57
 
@@ -114,6 +117,12 @@ Default profiles come from `navigationInputProfiles()`:
114
117
  |---|---|---|
115
118
  | `orbit`, `fly` | WASD/arrows move, Q/E down/up, Shift sprint | left stick move, right stick look, bumpers up/down |
116
119
  | `walk`, `drive` | WASD/arrows move, Space jump/brake, E or F interact, V view, Shift sprint | left stick move, right stick look, A jump, X interact, Y view |
120
+ | `pilot` | W/S or ↑/↓ nose down/up, A/D or ←/→ bank, Q/Z rudder, Shift/Ctrl (or +/−, Page Up/Down) power, I engine, G gear, F flaps, R recover, Space brake, V view, E exit | left stick pitch/bank, right stick look, triggers power, bumpers rudder, A brake, B engine, X exit, Y view |
121
+
122
+ In the `pilot` profile each `NavigationInput` also carries `pilot`: the held `throttle` and `yaw`
123
+ axes (-1..1) and edge-triggered `engine`, `gear`, `flaps` and `recover` presses. Pitch is
124
+ `-move.forward` and bank is `move.right`, so the touch stick flies too; hold-to-throttle buttons
125
+ can drive `NAVIGATION_ACTIONS.throttleUp`/`throttleDown` with `input.map.setVirtual(...)`.
117
126
 
118
127
  Call `input.setProfile(mode)` when navigation changes. The walk profile also turns on pointer lock
119
128
  for mouse-look, with drag-look as the fallback when pointer lock is declined. Replace any profile
@@ -88,6 +88,11 @@ When enabled, sky lighting replaces `environment.ambient` and `environment.sun`.
88
88
  instead. Sunlight fades around the horizon; moonlight depends on altitude, phase and darkness.
89
89
  Only the Sun casts a sky shadow in phase 1. Shadows also require `environment.shadows` and
90
90
  scene geometry that casts/receives shadows; their local frustum follows the camera.
91
+ `renderer.setShadowQuality('off' | 'low' | 'medium' | 'high')` turns sun shadows on or off at a
92
+ map resolution without rebuilding the environment, and `renderer.setShadowFocus({ center,
93
+ radius })` aims them at a point in absolute world coordinates covering ±`radius` meters — for a
94
+ large world, what the camera frames rather than the camera itself. The box moves in whole
95
+ shadow-map texels so edges do not shimmer; `setShadowFocus(undefined)` restores the default.
91
96
  `sun.visible`/`moon.visible` control the disks independently of lighting. Use the corresponding
92
97
  light intensity to disable illumination. `sun.size` and `moon.size` are visual multipliers;
93
98
  the default 1 preserves real angular size. Larger values help stylized scenes and small displays.
@@ -99,7 +99,9 @@ await surfaces.setOptions({
99
99
  ## What is drawn
100
100
 
101
101
  - Modern streets use asphalt, exposed shoulder strips, curb/sidewalk bands, lane dividers, edge paint, stop
102
- bars and zebra crossings. Mapped paths are cut at same-grade carriageway edges, so footway
102
+ bars and zebra crossings. Shoulders, like the other street details, are drawn on the finest
103
+ detail tiles only: a few decimeters wide, they are below a pixel on the coarser tiles kilometers
104
+ away, where draping them segment by segment once cost more memory than the roads themselves. Mapped paths are cut at same-grade carriageway edges, so footway
103
105
  fills cannot compete with asphalt at walking height; paths beneath bridges remain continuous.
104
106
  Nearby nodes on divided roads form one junction; crossings follow
105
107
  the external approaches, and short turning links receive no independent crossings. Same-grade
@@ -144,7 +146,8 @@ and explicit `width`. Properties absent from the source use class-based defaults
144
146
  omitted; bridges and differing layers do not form surface junctions. Bridge ribbons retain the
145
147
  existing approximate terrain-relative elevation; this renderer does not build engineered bridge
146
148
  decks. Crossing paint, inferred sidewalks, signal placement and parking occupancy are decorative,
147
- not traffic-control or navigation data.
149
+ not traffic-control or navigation data. [Ambient life](ambient-life.md) builds its own lane graph
150
+ from the same features for NPC traffic.
148
151
 
149
152
  Ground surfaces render at all available semantic levels. Fine markings and fixtures default to
150
153
  the finest pyramid level; `detailLevelsBelowMax` extends them to coarser levels. Fixture/car and
@@ -199,5 +202,5 @@ For a utility corridor, use narrow elevated bands and widely spaced pole repeate
199
202
  width across the route, height, and length along it. Band `dash: [length, gap]` and `phase` use
200
203
  world units along the path; callers can carry phase across tile fragments when their source
201
204
  provides route chainage. `terrainLinePath` and `sampleTerrainLine` are exported for custom
202
- attachment/model placement. Railway switches, wire sag, traffic simulation, and route-level
203
- cross-tile topology are separate consumers of this foundation.
205
+ attachment/model placement. Railway switches, wire sag and route-level cross-tile topology are
206
+ separate consumers of this foundation, and traffic simulation is [ambient life](ambient-life.md).
@@ -176,7 +176,9 @@ movement trigger coherent grid-snapped rebases for every engine-owned object aut
176
176
 
177
177
  `terrainStreamBudgetForQuality('economy' | 'balanced' | 'high')` returns portable residency and
178
178
  concurrency budgets. `stream.stats()` reports decoded samples, geometry bytes, triangles, draw
179
- calls, instances, loading/failure counts, and evictions for live quality diagnostics.
179
+ calls, instances, loading/failure counts, and evictions for live quality diagnostics. It walks
180
+ every resident tile's objects to count them, so call it for diagnostics, not every frame:
181
+ `stream.loading()` (tiles and layers loading now) and `stream.pressure()` are constant-time.
180
182
 
181
183
  ## 4. Screenshot it headlessly
182
184
 
@@ -295,15 +297,28 @@ function frame(position: [number, number, number]) {
295
297
 
296
298
  The selector measures projected source-sample spacing, adapts its error/range to the selected-tile
297
299
  budget, requests ancestors before descendants, and retains a displayed parent until all selected
298
- descendant coverage is resident. `stream.stats()` adds selected/displayed counts, effective
300
+ descendant coverage is resident. A selected tile that is not resident yet shows through its
301
+ nearest cached ancestor, except where finer ground is already on screen over it, which stays until
302
+ the tile arrives. When the warm cache has lost the intermediate levels, that ancestor can be far
303
+ coarser than the view; it stands in only if it would not hide detail on screen elsewhere, and
304
+ otherwise the new tile's patch waits briefly empty rather than the whole area dropping to the
305
+ coarse tile. `stream.stats()` adds selected/displayed counts, effective
299
306
  screen-space error, displayed-level range, and leaf fallback count. Quality presets set explicit
300
307
  error, view-distance, concurrency, selection, and residency budgets. Include `direction` and
301
308
  `aspect` in each view update to reject tiles safely outside a guarded horizontal camera cone while
302
- retaining direction-independent coarse coverage to the configured distance. In-flight surface
309
+ retaining direction-independent coarse coverage to the configured distance. `peripheralDegrees`
310
+ widens that cone for ground only: tiles up to that many degrees past it stay selected at reduced
311
+ detail (`peripheralDetail`, default 0.4, weighs their error) as bare terrain, without layers, so
312
+ turning the camera reveals ground that is already there; layers build once the tile is in view. In-flight surface
303
313
  requests finish into a bounded warm cache instead of being restarted on every small camera turn;
304
314
  hidden cached tiles are evicted only when capacity is needed. Sparse descendants also share a
305
315
  bounded decoded-ancestor cache, avoiding repeated PNG decode/resample work while panning.
306
316
 
317
+ With `shadows: true` every tile surface and layer mesh receives sun shadows, and layer meshes
318
+ taller than `shadowCasterHeight` (default 1.5 m: buildings, trees, landmarks) cast them. A layer
319
+ marks draped parts with `userData.shadowCaster = false` (inherited by their children; landcover,
320
+ water and road surfaces are marked) and water with `userData.shadowReceiver = false`.
321
+
307
322
  `TerrainPyramidTileLayer` provides the same classification/hydrology/human-feature lifecycle over
308
323
  adaptive tiles. Its optional inclusive `minLevel`/`maxLevel` bounds keep expensive decoration off
309
324
  coarse fallback and horizon tiles. Layer objects become visible only with their selected surface,
@@ -345,6 +360,13 @@ they share one `features` PMTiles sidecar. When both sections reference one MVT
345
360
  renderer layers share one in-flight range read and full decode; decoded semantic documents are not
346
361
  retained as a second long-lived cache.
347
362
 
363
+ Polygonal water is flat: a lake's level is the lower quartile of the elevation inside it, so shore
364
+ samples cannot lift it onto its banks. For projected Earth, pass `seaLevel` in the mesh options
365
+ (the Earth view does): water whose floor reaches within 2 m of it is the sea, a harbor or a tidal
366
+ river, and draws at one level 1.5 m above sea level in every tile. Coastal elevation is noisy
367
+ around zero and bathymetry differs from tile to tile, so a sampled level would let the ground poke
368
+ through and step at tile seams.
369
+
348
370
  The opposite split works too: when the terrain refines past a sidecar's last level (a zoom-13 vector
349
371
  archive under zoom-14 elevation), the finer tiles overzoom the sidecar's finest tiles by default.
350
372
  `overzoomTerrainSemanticTile` rescales an ancestor's normalized geometry onto the descendant, clips
@@ -355,6 +377,39 @@ ancestors, since one ancestor serves up to four children at a time. Layers creat
355
377
  `createTerrainPackageSemanticLayers` then reach the package's `maxLevel`; pass `overzoom: false`
356
378
  to stop them at the sidecar's levels.
357
379
 
380
+ Basemaps also generalize buildings below their last zoom: Protomaps keeps almost no footprints
381
+ below zoom 15, so a zoom-13 or zoom-14 feature tile shows streets and trees but no houses. A
382
+ package can carry that last zoom separately, often only near where people look, as a building
383
+ detail sidecar:
384
+
385
+ ```json
386
+ "features": {
387
+ "source": { "kind": "pmtiles-set", "url": "https://tiles.example/archive-set.json" },
388
+ "encoding": "mvt",
389
+ "layers": ["water", "transportation", "building", "poi"],
390
+ "profile": "protomaps-basemap@1",
391
+ "buildingDetail": {
392
+ "source": { "kind": "pmtiles-set", "url": "https://tiles.example/hd/archive-set.json" },
393
+ "level": 15
394
+ }
395
+ }
396
+ ```
397
+
398
+ The human-feature layer then takes its buildings and places from the detail level for tiles up to
399
+ two levels coarser (`buildingDetail: { maxDepth }` on `createTerrainPackageSemanticLayers`, or
400
+ `false` to keep the generalized footprints); roads, water and land use stay as the feature tiles
401
+ have them. `composeTerrainBuildingDetail` assembles a coarser tile from its detail descendants
402
+ (4 or 16 tiles): a footprint seen by several descendants is matched by its source id and its
403
+ clipped copies are unioned, so each building appears once, whole, cut exactly where a real tile
404
+ at the coarser level with a proportionally narrower buffer would cut it. `buildingSourceLevel` on
405
+ the composed tile tells renderers that narrower buffer, so tile-edge ownership still agrees between
406
+ neighbours. Descendants the archive lacks keep the coarse tile's buildings in their part of the
407
+ tile. `createBuildingDetailTerrainSemanticSource` wraps any feature source this way and keeps
408
+ recently loaded detail tiles, since a tile and its children share them. Only the `building` and
409
+ `poi` layers of detail tiles are decoded. The detail archive is optional: if it cannot be opened,
410
+ `openTerrainPackageSemantics` reports `buildingDetailError` and the feature tiles carry on alone.
411
+ Hosts with their own transport pass `buildingDetailArchive`.
412
+
358
413
  The package elevation pyramid may be sparse. `createTerrainPackagePyramidHeightSource` walks to the
359
414
  nearest declared ancestor when an exact tile is absent, then crops and resamples that ancestor into
360
415
  the requested tile bounds. This supports broad coarse coverage plus a small regional detail window
@@ -77,7 +77,9 @@ fixtures and buildings. Terrain gaps pause motion; abrupt steps and slopes above
77
77
  the car. Cockpit views use the full chassis quaternion; chase views shorten at obstructions.
78
78
 
79
79
  This is a grounded driving foundation. It does not implement rigid-body rollovers, crash deformation,
80
- traffic AI, passenger animation, multiplayer ownership, or disk persistence. Without collision hooks,
80
+ passenger animation, multiplayer ownership, or disk persistence. Background traffic is a separate
81
+ package: [ambient life](ambient-life.md) moves NPC cars along lanes without this solver, and they
82
+ stop for a car someone is driving. Without collision hooks,
81
83
  the reusable kernel solver supplies terrain driving only. Do not attach a second physics body to the
82
84
  same vehicle; the vehicle solver owns its transform.
83
85
 
@@ -85,6 +87,17 @@ All durable simulation state and mount relationships live in ECS components and
85
87
  and replay. Install the same systems/environment when restoring. Host streaming and render resources
86
88
  are separate from those checkpoints.
87
89
 
90
+ ## In an Earth view
91
+
92
+ `mountEarthView` drives the parked cars its street surfaces place, and can add one:
93
+ `view.setMode('drive', { vehicle: true })` puts the viewer in a car in the nearest mapped road
94
+ lane. `EarthVehicles` exposes the pieces for hosts that compose their own view: `spawn(kind,
95
+ position, yaw)` at an exact spot, `spawnNear(kind, x, z, yaw, { avoid })` on the nearest open
96
+ ground (under open sky, never a roof or deck), `board(id)` without walking to the door, and
97
+ `release()` to step out at once. A standing spawned car settles onto finer terrain as it streams
98
+ in. The entity's `vehicle.color`, when set, paints the model's `paintMaterial`; without one the
99
+ authored paint stays.
100
+
88
101
  ## Engine sound
89
102
 
90
103
  Every `molen.entities` vehicle type carries an `audioSource`: the compact, sedan and SUV run
@@ -329,22 +329,35 @@ Containment is a spatial inference because stock Protomaps does not publish pare
329
329
 
330
330
  ## 8. Budgets and quality
331
331
 
332
- `worldgenTileBudgetForQuality(quality, levelBelowMax)` caps buildings and vertices per tile.
333
- Building batches reserve simple architecture before allocating extra detail to the largest
334
- footprints. The budget fallback preserves the authored footprint, roof shape, and (where the
335
- active style tier permits them) up to three window columns and two rows per wall, using shared
336
- vertex-colored materials during reservation. Eligible simplified buildings recover their shared
337
- textures when material groups fit, even if no geometric detail fits. High admits 24 material
338
- groups at the finest level, including flat fallback slots. The fallback omits raised window
339
- surrounds, trim bands, overhangs, separate foundation meshes, and roof
340
- props. Simplified and coarse buildings extend their walls below the lowest sampled ground,
341
- keeping roofs and windows level without gaps on downhill sides or extra vertices and draw calls.
342
- Box fallbacks do the same; intentionally elevated `minHeight` parts retain their clearance.
343
- `detailedCount` limits eligibility for extra detail; it no longer turns all later buildings into
344
- boxes. Vertex and material-group caps still apply, with boxes used when the simple geometry
345
- cannot fit or the requested tier is beyond the style's last tier. Buildings beyond
346
- `maxBuildings` are still omitted. Quality and detail remain tile-based, not camera-distance
347
- updates per building.
332
+ `worldgenTileBudgetForQuality(quality, levelBelowMax)` caps buildings and vertices per tile. The
333
+ numbers are sized for real footprints: a zoom-15 suburb puts 800 to 1,600 houses in a zoom-14
334
+ tile, and a downtown about 1,700 footprints and parts.
335
+
336
+ A batch spends its budget in priority order, largest footprints first. First every building gets
337
+ walls and its roof shape (the style's coarsest tier); only when even that does not fit does a
338
+ building become an instanced stand-in. Then buildings gain a simplified facade while it fits, then
339
+ the largest (`detailedCount`) gain full detail. The simplified facade preserves the authored
340
+ footprint, roof shape and, where the active style tier permits them, a window on every floor:
341
+ walls with up to three bays keep their real windows, and longer walls draw each floor's punched or
342
+ grid windows as one strip whose window texture repeats once per bay, four vertices a floor and
343
+ wall. It uses shared vertex-colored materials during reservation; eligible simplified buildings
344
+ recover their shared textures when material groups fit, even if no geometric detail fits. Interior
345
+ openings come with full detail only: cut into every budget facade they would cost a crowded
346
+ neighbourhood its windows. High admits 24 material groups at the finest level, including flat
347
+ fallback slots. The fallback omits raised window surrounds, trim bands, overhangs, separate
348
+ foundation meshes, and roof props. Simplified and coarse buildings extend their walls below the
349
+ lowest sampled ground, keeping roofs and windows level without gaps on downhill sides or extra
350
+ vertices and draw calls. Stand-ins do the same; intentionally elevated `minHeight` parts retain
351
+ their clearance.
352
+
353
+ Stand-ins are instanced: `builtin:box` for flat-roofed buildings, and `builtin:box.gable` (set
354
+ `buildings:box.gable`) for pitched ones, a box whose walls stop at the eave (`GABLE_BOX_EAVE` of
355
+ its height) under a roof ridged along its longer side, the roof shaded darker than the walls. From
356
+ the air a neighbourhood of stand-ins still reads as roofs. `buildingBoxGeometry(modelRef)` returns
357
+ the shared geometry for either. Buildings beyond `maxBuildings` are still omitted. Quality and
358
+ detail remain tile-based, not camera-distance updates per building. `worldgenBuildingCellSize`
359
+ batches the finest level's buildings into 512 m cells and coarser levels' into 1024 m cells, since
360
+ each cell is a draw.
348
361
 
349
362
  Generation is cooperative: the renderer yields between chunks of both reservation and detail
350
363
  work, and aborts when a tile is evicted. The explorer HUD reports buildings, boxes, and generation
@@ -353,7 +366,7 @@ time per tile.
353
366
  Detail tiers come from the level below the finest (tier 0 at the finest level, 1 one level
354
367
  below, ...) plus one at economy quality. A style's `lod.tiers` say which features survive each
355
368
  tier: roof shape, roof features, facade windows, facade bands, props; beyond the last tier the
356
- building is a tinted box. `maxMaterialGroups` caps the mesh groups (draw calls) of one batch:
369
+ building is a stand-in. `maxMaterialGroups` caps the mesh groups (draw calls) of one batch:
357
370
  once a batch would exceed it, later buildings render their textured parts as vertex colors
358
371
  (`stats.materialsCollapsed`), so the largest buildings keep their textures first.
359
372
 
@@ -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.3. 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.4. 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
 
@@ -29,7 +29,7 @@ downloads them into a project and pins them in project.json.
29
29
  - [Input profiles and joysticks](guide/input.md): keyboard/controller remapping, raw axes, walking/driving/flying profiles, analog commands, and optional React controls.
30
30
  - [Camera navigation](guide/navigation.md): orbit, fly, walk (capsule collision against streamed geometry) and follow cameras for `createViewer` hosts; one input model across keys, gamepad, pointer gestures and an on-screen touch stick.
31
31
  - [World markers](guide/markers.md): screen-sized photo pins and labels pinned to world positions, ground-snapped, occluded, faded, budgeted and pickable.
32
- - [Earth view](guide/earth-view.md): `mountEarthView` from `@bendyline/molen-earth` — real-world terrain, buildings, orbit/walk/drive, drivable cars, lat/lon markers, credits and adaptive quality in one call.
32
+ - [Earth view](guide/earth-view.md): `mountEarthView` from `@bendyline/molen-earth` — real-world terrain, buildings, landmarks, orbit/walk/drive/fly (cars on the nearest road, airborne P-51 or OH-6), a `vehicleStatus()` HUD feed, decluttered lat/lon markers, credits and adaptive quality in one call.
33
33
  - [WebGPU and WebGL](guide/rendering-backends.md): the `backend` option ('auto' | 'webgl' | 'webgpu') on the asynchronous client factories, legacy WebGL fallback, compatible materials, and world-explorer comparisons.
34
34
  - [Earth and authored skies](guide/sky.md): day/night cycles, geographic Sun/Moon positions and lunar phases, catalog stars, simulation clocks, custom-world palettes, and the sky observatory.
35
35
  - [Weather and physical atmosphere](guide/weather.md): independent clouds, precipitation and visibility; profiles, temperature/pressure/wind for simulation and aircraft physics; cloud/rain/snow rendering.
@@ -54,6 +54,7 @@ downloads them into a project and pins them in project.json.
54
54
  - [Aircraft](guide/aircraft.md): P-51D and OH-6 assets, flight physics, cockpit instruments, practice airfield and controls.
55
55
  - [Vehicle interiors and model signals](guide/vehicle-interiors.md): model-owned cabins, declarative simulation-to-GLB bindings, script-owned telemetry, and nearby detail loading.
56
56
  - [Figures](guide/figures.md): stylized humans, bipeds and quadrupeds: presets and descriptors, canonical rigs and sockets, deterministic gaits, `figureAttachment` accessories, riders, and `molen figure preview`.
57
+ - [Ambient life](guide/ambient-life.md): NPC cars, pedestrians, trains and aircraft that spawn around an observer on a transport network (the scene `ambient` block, `molen/transport-network@1`, `molen.ambient.*`, the Earth view's `ambient` option, `ambientRole` content).
57
58
  - [Complete game samples](guide/game-samples.md): city driving, first-person dungeon, and platformer; shared follow cameras and XY platform physics.
58
59
  - [Samples gallery](guide/examples.md): every sample with its molen.dev/play link and `--template` id, plus the capability layers (kinematics,
59
60
  character, pathfinding, physics-rapier, terrain) — copy-and-modify starting points.
@@ -87,7 +88,8 @@ All formats carry a `"format": "molen/<kind>@<n>"` (or `"kind"`) envelope and ar
87
88
  with `molen validate <file>`, which prints precise, fixable errors. The shipped specs (JSON
88
89
  Schema + example, generated from the registry) live in [schemas/](schemas/README.md):
89
90
 
90
- - [Scene manifest](schemas/scene.md) (`molen/scene@3`: entities, prefabs, `commands`, `components`, camera, input, physics, terrain)
91
+ - [Scene manifest](schemas/scene.md) (`molen/scene@3`: entities, prefabs, `commands`, `components`, camera, input, physics, terrain, ambient)
92
+ - [Transport network](schemas/transport-network.md) (`molen/transport-network@1`: roads, railways and paths for ambient traffic)
91
93
  - [Command envelope](schemas/command.md) · [Assertions](schemas/assert.md)
92
94
  - [Keyframe](schemas/keyframe.md) · [Delta](schemas/delta.md) · [Replay](schemas/replay.md)
93
95
  - [Components](schemas/components.md) — every component with units and axis conventions
@@ -124,6 +126,7 @@ Schema + example, generated from the registry) live in [schemas/](schemas/README
124
126
  - `molen docs search <query> [-k N] [--design]` · `molen describe [op]`
125
127
  - `molen worldgen preview [style.json] [--pack p] [--style id] [--batch f] [--angles N] --out p.png` — generate buildings and render them headlessly · `worldgen bake [batch.json] [--outline "x,z;…" --style id] --out <assets-dir> [--id id]` — bake to a glTF asset + sidecar · `worldgen stats <terrain-package.json> [--tile z/x/y | --auto] [--dump batch.json]` — generate one real tile and report
126
128
  - `molen figure preview [descriptor.figure.json] [--preset id[,id]] [--lineup humans|bodies|species|all] [--mode idle|walk|run|sit|jump|fall] [--angles N|review] --out p.png` — render figures headlessly · `figure presets [--json]` — list the shipped presets
129
+ - `molen network bake <terrain-package.json> (--tile z/x/y [--radius N] | --bbox w,s,e,n) --out network.json [--classes road,rail,path] [--heights]` — bake mapped roads, railways and paths into a transport network for ambient traffic
127
130
  - `molen mcp` — start the MCP server (stdio)
128
131
 
129
132
  ## MCP tools (the server mirrors the CLI 1:1; `molen describe` cross-references both)
@@ -134,7 +137,7 @@ Schema + example, generated from the registry) live in [schemas/](schemas/README
134
137
  `check_types`, `reserve_type`, `generate_types`, `import_asset`, `inspect_asset`, `pack_asset`, `stage_assets`,
135
138
  `list_assets`, `drive_scene` (returns frames as IMAGES), `play_experience` (plays a built browser app and returns frames as IMAGES), `screenshot_asset` (turntable images),
136
139
  `test_types`, `worldgen_preview` (generated buildings as IMAGES), `worldgen_bake`, `worldgen_stats`,
137
- `figure_preview` (figures as IMAGES), `list_figure_presets`, `plan_audio`, `import_sound`, `check_soundbank`. Call `describe_op` for I/O contracts.
140
+ `figure_preview` (figures as IMAGES), `list_figure_presets`, `network_bake`, `plan_audio`, `import_sound`, `check_soundbank`. Call `describe_op` for I/O contracts.
138
141
 
139
142
 
140
143
  ## Design reference (for deeper questions; the historical design plan, on GitHub)
@@ -34,6 +34,7 @@ Autogenerated from the schema registry `molen validate` checks against; `molen s
34
34
  - [Style pack manifest](stylepack.md) — `molen/stylepack@1`
35
35
  - [Terrain descriptor](terrain.md) — `molen/terrain@2`
36
36
  - [Terrain package manifest](terrain-package.md) — `molen/terrain-package@1`
37
+ - [Transport network](transport-network.md) — `molen/transport-network@1`
37
38
  - [Entity type registry](types.md) — `molen/types@1`
38
39
  - [UV paint sidecar](uvpaint.md) — `molen/uvpaint@1`
39
40
  - [Worldgen batch](worldgen-batch.md) — `molen/worldgen-batch@1`