@bendyline/molen-tooling 0.0.11 → 0.0.13
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.
- package/dist/capture/harness.js +682 -293
- package/dist/capture/worldgen-preview.js +396 -298
- package/dist/cli.mjs +2 -2
- package/dist/docs-src/guide/3d-art-guidelines.md +34 -10
- package/dist/docs-src/guide/3d-model-assets.md +27 -2
- package/dist/docs-src/guide/adaptive-performance.md +42 -7
- package/dist/docs-src/guide/aircraft.md +249 -27
- package/dist/docs-src/guide/ambient-life.md +28 -5
- package/dist/docs-src/guide/audio.md +19 -5
- package/dist/docs-src/guide/boats.md +9 -4
- package/dist/docs-src/guide/boost-mode.md +64 -0
- package/dist/docs-src/guide/building-interiors.md +7 -2
- package/dist/docs-src/guide/determinism.md +1 -1
- package/dist/docs-src/guide/dioramas.md +17 -4
- package/dist/docs-src/guide/earth-view.md +225 -24
- package/dist/docs-src/guide/entities.md +87 -5
- package/dist/docs-src/guide/figures.md +31 -7
- package/dist/docs-src/guide/graphics-performance.md +203 -24
- package/dist/docs-src/guide/input.md +34 -1
- package/dist/docs-src/guide/liveries.md +167 -0
- package/dist/docs-src/guide/livery-catalog.md +2659 -0
- package/dist/docs-src/guide/livery-gallery.md +2684 -0
- package/dist/docs-src/guide/medium-fi.md +279 -27
- package/dist/docs-src/guide/navigation.md +5 -2
- package/dist/docs-src/guide/night-lighting.md +96 -0
- package/dist/docs-src/guide/project.md +6 -1
- package/dist/docs-src/guide/recognizable-places.md +6 -0
- package/dist/docs-src/guide/regional-fleets.md +94 -0
- package/dist/docs-src/guide/regional-world.md +19 -6
- package/dist/docs-src/guide/rendering-backends.md +6 -2
- package/dist/docs-src/guide/sky.md +36 -3
- package/dist/docs-src/guide/structure-library.md +4 -1
- package/dist/docs-src/guide/surface-rendering.md +276 -2
- package/dist/docs-src/guide/terrain.md +43 -0
- package/dist/docs-src/guide/typography.md +105 -0
- package/dist/docs-src/guide/vehicle-interiors.md +169 -9
- package/dist/docs-src/guide/vehicles.md +26 -3
- package/dist/docs-src/guide/weather.md +15 -8
- package/dist/docs-src/guide/worldgen.md +100 -13
- package/dist/docs-src/llms.txt +9 -1
- package/dist/docs-src/schemas/README.md +3 -0
- package/dist/docs-src/schemas/archstyle.md +65 -0
- package/dist/docs-src/schemas/components.md +2009 -213
- package/dist/docs-src/schemas/fleet-catalog.md +113 -0
- package/dist/docs-src/schemas/landmark.md +10 -0
- package/dist/docs-src/schemas/matgraph.md +11 -1
- package/dist/docs-src/schemas/pack-source.md +11 -1
- package/dist/docs-src/schemas/pack.md +1 -1
- package/dist/docs-src/schemas/project.md +1 -1
- package/dist/docs-src/schemas/regional-catalog.md +39 -0
- package/dist/docs-src/schemas/scatter.md +36 -0
- package/dist/docs-src/schemas/structure-placement-data.md +753 -0
- package/dist/docs-src/schemas/structure-placement-index.md +87 -0
- package/dist/docs-src/schemas/structure-placements.md +274 -0
- package/dist/docs-src/schemas/transport-network.md +8 -0
- package/dist/docs-src/schemas/types.md +1 -1
- package/dist/docs-src/schemas/worldgen-batch.md +145 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +1 -1
- package/dist/{mcp-BbxqqnD1.mjs → mcp-BXaK46X-.mjs} +1 -1
- package/dist/{ops-b4Pag8U-.mjs → ops-Cm7WNvb9.mjs} +55 -22
- package/dist/templates/city-courier/gen/molen-types.ts +240 -17
- package/dist/templates/city-courier/scripts/molen-scripts.d.ts +240 -17
- package/dist/templates/figures-gallery/test/headless.test.ts +2 -1
- package/dist/templates/index.json +17 -17
- package/dist/templates/skybound/gen/molen-types.ts +240 -17
- package/dist/templates/skybound/scripts/molen-scripts.d.ts +240 -17
- package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +240 -17
- package/dist/templates/top-down-arena/src/gen/molen-types.ts +240 -17
- package/package.json +13 -13
|
@@ -70,14 +70,15 @@ is the road surface height.
|
|
|
70
70
|
| `stations[]` | `id`, `at: [x, z]`, `kind` (`rail`, `bus` or `ferry`), `dwell` in seconds. Trains stop at the rail station nearest their track |
|
|
71
71
|
| `signals[]` | `at: [x, z]` and `kind`. A `light` signalises the junction nearest the point. A `stop` or `yield` sign makes the arm it stands on give way |
|
|
72
72
|
| `aerodromes[]` | `id`, `at: [x, z]`, `heading`, `length`. Some aircraft fly its approach and departure |
|
|
73
|
-
| `drivingSide` | `right` (default) or `left` |
|
|
73
|
+
| `drivingSide` | `right` (default) or `left`; individual `ways[].drivingSide` can override it |
|
|
74
74
|
| `sidewalks` | Infer walk lanes along streets that have no mapped path nearby (default false) |
|
|
75
75
|
|
|
76
76
|
The network is built into a lane graph when it is added:
|
|
77
77
|
|
|
78
78
|
- **Lanes.** A way carries `lanes` in total, split between directions (all forward when `oneway`).
|
|
79
79
|
Without `lanes`, the count follows the width. Lanes sit to the right of travel for right-hand
|
|
80
|
-
traffic.
|
|
80
|
+
traffic and to the left for left-hand traffic. One-way point order is unchanged; only lateral
|
|
81
|
+
lane order and turn permissions mirror. Mixed-side networks retain each road's rule on export.
|
|
81
82
|
- **Junctions.** Ways that share a point, cross, or end on another way at the same `layer` are
|
|
82
83
|
joined. Different layers, and bridges over roads, never connect mid-way. Each lane gets a curved
|
|
83
84
|
connector to every exit it may take, and movements that cross each other take turns.
|
|
@@ -278,7 +279,21 @@ function frame(dt: number) {
|
|
|
278
279
|
|
|
279
280
|
`installAmbient` takes `traffic`, `classes`, `policy`, `types`, `templates`, `ground` and `seed`.
|
|
280
281
|
For streamed maps, `registerTile` and `unregisterTile` add and drop one tile's transportation
|
|
281
|
-
features. Changes queue until
|
|
282
|
+
features. Changes queue until a tick applies them, so a tile never changes the network mid-step;
|
|
283
|
+
unregistering a key drops its registration if that is still queued. With `registrationsPerTick`
|
|
284
|
+
a tick applies at most that many registrations, and with `removalsPerTick` at most that many
|
|
285
|
+
removals, in queue order (the defaults apply all); a key's registration waits behind its own
|
|
286
|
+
removal when that is left for a later tick.
|
|
287
|
+
A registration's `bounds` (`[minX, minZ, maxX, maxZ]`, world metres) builds only that part of the
|
|
288
|
+
tile, so a large tile can join in parts, each under its own key; part edges stitch like tile edges.
|
|
289
|
+
`EarthAmbient` registers displayed tiles up to 3 km across, one per sync, and none while the
|
|
290
|
+
observer moves faster than 80 m/s or did in the last 3 seconds: a coarse tile beneath a climbing
|
|
291
|
+
aircraft carried a whole town's roads, and a jet passes a tile's traffic too quickly to see it, for
|
|
292
|
+
a dropped frame per tile. One speed sample between syncs is noisy; a dip let tiles through at 300 m/s.
|
|
293
|
+
It registers tiles of 500 m and more in parts at least 125 m wide, nearest first, handing the
|
|
294
|
+
kernel one part per sync (a frame) to apply at its next tick: a dense Kyoto tile of 1-2 km built
|
|
295
|
+
its network in 20-95 ms at once, and a part a tick let a late frame's catch-up ticks build several.
|
|
296
|
+
A departing tile's parts leave four a tick.
|
|
282
297
|
`blocks(box)` answers whether an ambient car overlaps a box, for a vehicle solver's obstacle test.
|
|
283
298
|
|
|
284
299
|
`createAmbientRenderer` draws pedestrians with `AmbientFigures`, which a host can also use for its
|
|
@@ -305,7 +320,13 @@ const view = await mountEarthView({
|
|
|
305
320
|
trafficButton.onclick = () => view.setAmbientEnabled(!view.ambientEnabled);
|
|
306
321
|
```
|
|
307
322
|
|
|
308
|
-
`density` scales how busy the streets are, from 0 to 1. `cars`, `pedestrians`, `rail`, `aircraft` and `boats` switch classes
|
|
323
|
+
`density` scales how busy the streets are, from 0 to 1. `cars`, `pedestrians`, `rail`, `aircraft` and `boats` switch classes.
|
|
324
|
+
Earth resolves driving side from its road-sign country atlas at each terrain tile's centre,
|
|
325
|
+
including Japan, Australia and other left-driving regions. The same rule places road markings,
|
|
326
|
+
signals and signs. `drivingSide` explicitly overrides this selection; missing geographic content
|
|
327
|
+
defaults to right. Custom hosts pass `drivingSideAt` to `EarthAmbient`, or `drivingSide` on each
|
|
328
|
+
`AmbientTileInput` to a streamed network. Water traffic still keeps starboard.
|
|
329
|
+
`ambient: false` turns the
|
|
309
330
|
layer off entirely. `stats().ambient` reports the counts on screen and the tiles in use.
|
|
310
331
|
|
|
311
332
|
The quality tier caps the numbers:
|
|
@@ -384,7 +405,9 @@ and `cars` how many cars a train has.
|
|
|
384
405
|
The `molen.entities` pack gives roles to its eleven road vehicles, a city bus, a light-rail car, an airliner
|
|
385
406
|
the P-51 and OH-6 aircraft, and eight watercraft. See [Reusable entities](entities.md). Near the
|
|
386
407
|
camera the Earth view draws cars, trains and vessels with their full models, painted in the
|
|
387
|
-
agent's colour.
|
|
408
|
+
agent's colour. Their glazing (a transparent material named like `glass` or `glazing`) is tinted
|
|
409
|
+
dark and glossy, at least 62% opaque, so a passing car does not read as an open frame of pillars
|
|
410
|
+
and seats; a car the player drives keeps its authored glass. Further
|
|
388
411
|
out, and without content, every vehicle is a proxy shape built from its dimensions.
|
|
389
412
|
|
|
390
413
|
## Water traffic
|
|
@@ -17,7 +17,7 @@ play without opening a browser.
|
|
|
17
17
|
| `molen.audio.*` | scene scripts | `play`, `stop` and `music`, emitted as `audio.*` events |
|
|
18
18
|
| `@bendyline/molen-client/audio` | the page | `createAudioLayer` loads banks and plays what the rules ask for |
|
|
19
19
|
|
|
20
|
-
The `molen.sounds` content pack carries
|
|
20
|
+
The `molen.sounds` content pack carries 165 CC0 sounds (ambience, vehicles, footsteps, impacts,
|
|
21
21
|
foley, UI, stings and six music tracks). Fetch it into a project with:
|
|
22
22
|
|
|
23
23
|
```sh
|
|
@@ -203,10 +203,24 @@ Every game sample does exactly this in its `src/audio.ts`. Hosts without a Worke
|
|
|
203
203
|
`setBusGain('music', 0)` drive a settings menu.
|
|
204
204
|
|
|
205
205
|
`mountEarthView` plays the Earth soundscape on its own when its content includes the
|
|
206
|
-
`molen.sounds` pack:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
`molen.sounds` pack: 88 recorded ambience beds and 12 walking surfaces, plus engines on the cars
|
|
207
|
+
and aircraft you board. Birds favor the morning; warm nights bring crickets/frogs and warm days
|
|
208
|
+
bring cicadas. Broad geographic palettes select local recordings. Wind and rain follow weather,
|
|
209
|
+
surf follows mapped ocean shores, rivers follow flowing water, and traffic follows streets.
|
|
210
|
+
Ground ambience requires a known terrain height and fades with altitude; enclosed cockpits attenuate the outdoors to 18%. Open
|
|
211
|
+
boats and exterior cameras retain outside ambience. Only one bed per category plays, with
|
|
212
|
+
staggered rotation and five-second crossfades. See [Earth view](earth-view.md) for host inputs.
|
|
213
|
+
Pass `audio: false` to turn it off, and use `view.audio` for volume.
|
|
214
|
+
|
|
215
|
+
Sound packs can also provide a `birdsong` document (`molen/earth-birdsong@1`). The default pack
|
|
216
|
+
contains eight CC0 regional recordings, selected by geography, observed habitat, calendar month
|
|
217
|
+
and local sunlight. Dawn choruses peak near sunrise, breeding songs quieten outside their authored
|
|
218
|
+
season, and uncovered places stay quiet. A catalog replaces broad bird palettes as well as the
|
|
219
|
+
legacy park chorus. Curated birds fade out inside enclosed vehicles. The catalog's bounds are
|
|
220
|
+
conservative playback areas,
|
|
221
|
+
not surveyed species ranges. Composing hosts pass `EarthAudioFrame.location` (latitude, longitude,
|
|
222
|
+
sky `utcMs` and `sunAltitudeDeg`) and `regionalAmbience.habitat`; the standard Earth view and
|
|
223
|
+
World Explorer supply these automatically, including changes to the sky date/time controls.
|
|
210
224
|
|
|
211
225
|
## Make your own sounds
|
|
212
226
|
|
|
@@ -23,14 +23,19 @@ A host can supply measured depths through `waterAt`.
|
|
|
23
23
|
|
|
24
24
|
Swells lift, pitch and roll the hull, and turns produce a small bank. Currents carry an unanchored
|
|
25
25
|
boat; the helm needs forward motion or propeller wash to turn. Rendered water uses the same
|
|
26
|
-
analytic swell slopes and simulation time as the hull
|
|
27
|
-
|
|
26
|
+
analytic swell slopes and simulation time as the hull, with smaller visual wind ripples layered
|
|
27
|
+
over them. Those ripples drift in several directions and scales, with varying local strength;
|
|
28
|
+
both the base reflection and clearcoat follow their normals. Mip filtering smooths the fine
|
|
29
|
+
detail at a distance, and subpixel swells fade to avoid shimmering bands. The shoreline polygons
|
|
30
|
+
stay flat: this version adds moving normals, not displaced surf, breaking waves, tides or a fluid
|
|
31
|
+
simulation.
|
|
28
32
|
Wind-driven sailing, capsize/damage, deck walking, and carrying loose cars/cargo are not included.
|
|
29
33
|
|
|
30
34
|
## Host API
|
|
31
35
|
|
|
32
|
-
`mountEarthView` accepts `water: { waves, current }`. Empty `waves`
|
|
33
|
-
`current` is `[east, south]` in meters per second. Each swell
|
|
36
|
+
`mountEarthView` accepts `water: { waves, current }`. Empty `waves` removes hull swells while
|
|
37
|
+
keeping fine visual wind ripples. `current` is `[east, south]` in meters per second. Each swell
|
|
38
|
+
has `amplitude` and `wavelength`
|
|
34
39
|
in meters, `direction` in radians (zero towards +Z/south), and propagation `speed` in m/s.
|
|
35
40
|
The default is mild coastal chop with no current. A host can author stronger seas and currents
|
|
36
41
|
for a route or challenge; these are authored conditions, not live ocean observations.
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Boost mode
|
|
2
|
+
|
|
3
|
+
Boost mode makes people and vehicles travel at **4× normal speed**. It starts off. In Earth view,
|
|
4
|
+
press **T** while walking, driving or piloting to toggle it, or use the host API:
|
|
5
|
+
|
|
6
|
+
```ts
|
|
7
|
+
const view = await mountEarthView({ ...options, boostMode: true });
|
|
8
|
+
view.setBoostMode(false);
|
|
9
|
+
view.on('boostchange', ({ enabled }) => updateBoostButton(enabled));
|
|
10
|
+
console.log(view.boostMode);
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
The setting persists across navigation changes and geographic re-anchors. It covers walking and
|
|
14
|
+
running, companions and NPC actors, cars, cycles, boats, fixed-wing aircraft, helicopters and
|
|
15
|
+
powered-lift aircraft. Ambient traffic and pedestrians also use it, including trains and vessels.
|
|
16
|
+
Software controls can trigger the same toggle with the `nav-boost` navigation action.
|
|
17
|
+
|
|
18
|
+
This is a travel assist. At a given power setting, a plane that cruises at 250 knots travels at
|
|
19
|
+
about 1,000 knots in boost mode. Acceleration and translation scale together; steering, flight
|
|
20
|
+
controls, engine spool, gear/flap travel and the world clock keep their normal response times.
|
|
21
|
+
The flight solver uses normal handling speeds for aerodynamic forces, stalls and overspeed
|
|
22
|
+
limits, then reports the boosted velocity, airspeed, equivalent airspeed and Mach. A 4× speed
|
|
23
|
+
readout therefore does not by itself trigger a stall, excessive lift or an overspeed warning.
|
|
24
|
+
Aircraft climb and descent are boosted too. Ground vehicles retain their ordinary suspension
|
|
25
|
+
and gravity; people retain their normal jump height. Waves and buoyancy keep their normal timing.
|
|
26
|
+
Wind and water currents stay in world meters per second.
|
|
27
|
+
|
|
28
|
+
Changing modes immediately rescales travel velocity without changing position, attitude or
|
|
29
|
+
throttle. This is useful for returning to normal speed near a destination. Collision and
|
|
30
|
+
terrain-coverage checks still apply; missing terrain pauses movement instead of allowing a
|
|
31
|
+
vehicle to travel through an unloaded area. Braking takes roughly the same time, so stopping
|
|
32
|
+
distances and turn radii are longer at boosted speed.
|
|
33
|
+
|
|
34
|
+
## Headless worlds and scenes
|
|
35
|
+
|
|
36
|
+
Author one `boostMode` component on a settings entity:
|
|
37
|
+
|
|
38
|
+
```json
|
|
39
|
+
{ "id": "travel-settings", "components": { "boostMode": { "enabled": true } } }
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Or change it through the kernel:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import { isBoostMode, setBoostMode } from '@bendyline/molen-kernel/world';
|
|
46
|
+
|
|
47
|
+
setBoostMode(world, true);
|
|
48
|
+
console.log(isBoostMode(world));
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The built-in character, vehicle, aircraft, boat and ambient systems read it each tick. It is ECS
|
|
52
|
+
state, so checkpoints preserve it. For deterministic input replay, invoke the setter from a
|
|
53
|
+
registered command handler, or patch the settings component from a scene command script.
|
|
54
|
+
|
|
55
|
+
Direct `stepVehicle`, `stepAircraft` and `stepBoat` callers can pass `boostMode: true` in their
|
|
56
|
+
environment. Installed vehicle systems and `installCharacterController` accept the same optional
|
|
57
|
+
override; leaving it unset follows the world's setting. A standalone client `WalkController`
|
|
58
|
+
has a mutable `boostMode` property.
|
|
59
|
+
|
|
60
|
+
Vehicle, aircraft, boat and ambient state carry an optional, kernel-owned `boosted` flag so
|
|
61
|
+
switching modes and restoring snapshots do not apply the multiplier twice. Their speed fields
|
|
62
|
+
remain actual travel speeds in m/s. Autopilots comparing telemetry against unboosted authored
|
|
63
|
+
specifications should divide speed by `boostSpeedMultiplier(state.boosted)`, exported alongside
|
|
64
|
+
`BOOST_SPEED_MULTIPLIER` from `@bendyline/molen-schema`. Leave the flag intact when copying state.
|
|
@@ -145,9 +145,14 @@ and failures.
|
|
|
145
145
|
Structure, furnishings and glass share materials across interiors. Four shared 256² detail maps
|
|
146
146
|
supply wood grain/boards, ceramic grout, fabric weave and plaster grain, using metric UVs and
|
|
147
147
|
mipmaps. These neutral maps combine with household vertex colors; no texture is allocated per
|
|
148
|
-
building. Their fixed shared memory is separate from the resident geometry counter.
|
|
148
|
+
building. Their fixed shared memory is separate from the resident geometry counter. Room surfaces
|
|
149
|
+
return under half the daylight that reaches them (a room sees only the sky its windows frame),
|
|
150
|
+
so from outside they read dimmer than the day, as real rooms do, not as pale smudges behind
|
|
151
|
+
the glass. Furniture is merged instead
|
|
149
152
|
of spawning one scene object per shelf product. Ceilings use simple bright fixture geometry;
|
|
150
|
-
there are no per-building dynamic lights or additional shadow maps.
|
|
153
|
+
there are no per-building dynamic lights or additional shadow maps. Interior structure and the
|
|
154
|
+
opaque portal covers cast the sun's shadow like the walls around them (furniture and glass do
|
|
155
|
+
not), so a building's shadow stays solid where its windows line up. The walking octree uses
|
|
151
156
|
the same published geometry, except that visible stair steps are skipped (`walkIgnore`) and
|
|
152
157
|
a closed wedge supplies smooth stair collision. The published proxy is marked
|
|
153
158
|
`walkCollisionOnly` and has rendering layers disabled. Hosts using the kernel buffers directly
|
|
@@ -135,7 +135,7 @@ Two constants live in `packages/kernel/src/version.ts` and they do different job
|
|
|
135
135
|
|
|
136
136
|
| Constant | Today | Role |
|
|
137
137
|
|---|---|---|
|
|
138
|
-
| `ENGINE_VERSION` | `0.0.
|
|
138
|
+
| `ENGINE_VERSION` | `0.0.9` | metadata. Written into a keyframe's `engine` field so a save says which build wrote it. **Never compared on load, never hashed.** |
|
|
139
139
|
| `STATE_FORMAT` | `1` | the gate. Written into a keyframe under the reserved `plugins.$format` key, compared by `applyKeyframeTo`, and folded into `stateHash` as `stateFormat`. |
|
|
140
140
|
|
|
141
141
|
So a release — even one that moves every package — keeps your keyframes
|
|
@@ -10,8 +10,8 @@ The content pack includes a high-school football stage: two uniform palettes, fo
|
|
|
10
10
|
players running a repeated play, sixty seated/standing spectators, stands, goalposts and a
|
|
11
11
|
scoreboard with changing digits and a pulsing light. Its 24-second cycle lines up, runs,
|
|
12
12
|
celebrates and returns. The scores are decorative choreography. Content lives in the separate
|
|
13
|
-
`molen.dioramas` content pack, outside the npm runtime.
|
|
14
|
-
little league, fireworks, a fair and a Saturday market. Every scene is a self-contained source
|
|
13
|
+
`molen.dioramas` content pack, outside the npm runtime. Seven more scenes stage an airport ramp,
|
|
14
|
+
flight-school briefing and maintenance, cargo handling, little league, fireworks, a fair and a Saturday market. Every scene is a self-contained source
|
|
15
15
|
bundle with a typed script, local bounds and fixed entity pools.
|
|
16
16
|
|
|
17
17
|
## Definition and local simulation
|
|
@@ -54,6 +54,8 @@ const director = new DioramaDirector({
|
|
|
54
54
|
root: viewer.renderer.worldRoot,
|
|
55
55
|
camera: viewer.renderer.camera,
|
|
56
56
|
// assets: a host-owned AssetCache, when the scene uses glTF refs
|
|
57
|
+
// A large streamed world keeps the diorama's own lights out (see below).
|
|
58
|
+
localLights: false,
|
|
57
59
|
}),
|
|
58
60
|
onError: (error, id) => console.error(id, error),
|
|
59
61
|
});
|
|
@@ -76,6 +78,10 @@ director.update(cameraPosition, elapsedSeconds, Date.now());
|
|
|
76
78
|
director.dispose();
|
|
77
79
|
```
|
|
78
80
|
|
|
81
|
+
A diorama's point and spot lights light the host scene by default. In a large streamed world, pass
|
|
82
|
+
`localLights: false` (Earth hosts do): three compiles the scene's lights into every lit shader, so a
|
|
83
|
+
light that arrives and leaves with a diorama rebuilds every object in view in one frame.
|
|
84
|
+
|
|
79
85
|
The loader is a host callback: use an allowlisted dynamic import, HTTP URL or your pack reader.
|
|
80
86
|
The runtime never chooses content hosts. `loadDioramaScene` fetches the scene and relative `.js`
|
|
81
87
|
scripts with the supplied AbortSignal. For `.ts`, use `molenScripts()` with a lazy `?raw` import
|
|
@@ -103,8 +109,8 @@ lighting, weather or sky clock.
|
|
|
103
109
|
## Earth placement
|
|
104
110
|
|
|
105
111
|
World Explorer enables the shipped placement catalog by default. Its **Living places** checkbox
|
|
106
|
-
controls playback; its place picker and **Visit** button open any of the
|
|
107
|
-
Direct links accept `?diorama=football`, `airport`, `little-league`, `fireworks`, `fair` or `market`.
|
|
112
|
+
controls playback; its place picker and **Visit** button open any of the eight registered scenes.
|
|
113
|
+
Direct links accept `?diorama=football`, `airport`, `flight-school`, `airport-cargo`, `little-league`, `fireworks`, `fair` or `market`.
|
|
108
114
|
Visit framing adapts to the viewport and fits above the loaded terrain; explicit camera
|
|
109
115
|
parameters take precedence. `?dioramas=0` disables playback. Source locations and orientation are data in
|
|
110
116
|
`content/dioramas/placements.json`. Content and script text stay in a separate lazy chunk until
|
|
@@ -140,6 +146,13 @@ Local axes are east/up/south, and positive yaw rotates +Z toward east. Geographi
|
|
|
140
146
|
survive terrain re-anchoring; old instances are disposed and recreated in the new frame.
|
|
141
147
|
Automatic matching of map features to dioramas is a future host policy, not silently enabled.
|
|
142
148
|
|
|
149
|
+
The Boeing Field flight-school and cargo placements reserve their footprints in the airport layout.
|
|
150
|
+
Their crews, carts and forklift stay in these small service areas. Aircraft are separate entities
|
|
151
|
+
in the host's flight world: walking up to one and pressing E boards it, and flying it away leaves
|
|
152
|
+
its stand empty. The ground scenes contain no decorative aircraft. Other useful airport scenes
|
|
153
|
+
include passenger turnaround, hangar maintenance, fuel service and a fire/rescue station; author
|
|
154
|
+
their service areas with the same clearance from taxiways and parked airframes.
|
|
155
|
+
|
|
143
156
|
## Shipped performances
|
|
144
157
|
|
|
145
158
|
| Set piece | Geometry and roles | Choreography |
|