@margoengine/scenes 0.0.0-stage → 1.0.0
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/LICENSE +201 -0
- package/NOTICE +4 -0
- package/README.md +619 -2
- package/dist/dune-coast-info-D9yQIv8G.js +218 -0
- package/dist/dune-coast-info.d.ts +3 -0
- package/dist/dune-coast.d.ts +179 -0
- package/dist/dune-coast.js +778 -0
- package/dist/errors-fc4i1pSL.js +7 -0
- package/dist/fauld-blast.d.ts +165 -0
- package/dist/fauld-blast.js +1034 -0
- package/dist/fauld-countryside.d.ts +13 -0
- package/dist/fauld-countryside.js +10 -0
- package/dist/fauld-crater.d.ts +13 -0
- package/dist/fauld-crater.js +10 -0
- package/dist/fauld-dig.d.ts +89 -0
- package/dist/fauld-dustfall-fines-grid-MA6XPrq6.js +14 -0
- package/dist/fauld-dustfall-fines-grid.d.ts +11 -0
- package/dist/fauld-dustfall-grid-Bb4X8b-u.js +14 -0
- package/dist/fauld-dustfall-grid.d.ts +11 -0
- package/dist/fauld-explosion.d.ts +135 -0
- package/dist/fauld-grains.d.ts +27 -0
- package/dist/fauld-mud.d.ts +104 -0
- package/dist/fauld-surge.d.ts +71 -0
- package/dist/fauld-tunnels-info-8qv9X4OJ.js +70 -0
- package/dist/fauld-tunnels-info.d.ts +5 -0
- package/dist/fauld-tunnels-plan.d.ts +1069 -0
- package/dist/fauld-tunnels.d.ts +281 -0
- package/dist/fauld-tunnels.js +6801 -0
- package/dist/fauld-world-CNNSonJF.js +863 -0
- package/dist/fauld-world-info.d.ts +7 -0
- package/dist/fauld-world.d.ts +243 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +160 -0
- package/dist/library-mesh-CjTG-mVZ.js +329 -0
- package/dist/library-mesh.d.ts +108 -0
- package/dist/library-parts.d.ts +55 -0
- package/dist/library.d.ts +52 -0
- package/dist/library.js +48 -0
- package/dist/look-family.d.ts +63 -0
- package/dist/look-family.js +57 -0
- package/dist/shared/settings.d.ts +89 -0
- package/dist/shot-settings.d.ts +40 -0
- package/dist/shot-settings.js +94 -0
- package/dist/timber-valley-info-vVI2nwDs.js +253 -0
- package/dist/timber-valley-info.d.ts +3 -0
- package/dist/timber-valley.d.ts +229 -0
- package/dist/timber-valley.js +424 -0
- package/package.json +104 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SceneInfo } from './index.js';
|
|
2
|
+
/** The catalogue entry of the countryside round Hanbury and Fauld. */
|
|
3
|
+
export declare const fauldCountrysideInfo: SceneInfo;
|
|
4
|
+
/** The catalogue entry of the crater: the fresh 1944 crater or the wooded hollow today. */
|
|
5
|
+
export declare const fauldCraterInfo: SceneInfo;
|
|
6
|
+
/** The catalogue entry of the explosion of 27 November 1944 over the countryside, on film time. */
|
|
7
|
+
export declare const fauldBlastInfo: SceneInfo;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/// <reference lib="esnext.disposable" preserve="true" />
|
|
2
|
+
import type { EngineKernel, Mesh, Vec3 } from '@margoengine/core';
|
|
3
|
+
import { BiomeWorld } from '@margoengine/biomes';
|
|
4
|
+
import type { Exclusion } from '@margoengine/biomes/placement';
|
|
5
|
+
import '@margoengine/biomes/splines';
|
|
6
|
+
import { type Farmland } from '@margoengine/biomes/farmland';
|
|
7
|
+
import { BiomeView } from '@margoengine/biomes/view';
|
|
8
|
+
import { PresetScene } from '@margoengine/sky/scenes';
|
|
9
|
+
import { VolumetricClouds } from '@margoengine/sky/volumetric-clouds';
|
|
10
|
+
import { WeatherMachine } from '@margoengine/weather';
|
|
11
|
+
import { type Model } from '@margoengine/gltf';
|
|
12
|
+
import { Shadows } from '@margoengine/shadows';
|
|
13
|
+
import { DOF } from '@margoengine/dof';
|
|
14
|
+
/** World size, metres. */
|
|
15
|
+
export declare const FAULD_SIZE = 6400;
|
|
16
|
+
/** The world's centre (the crater) on the OS grid, metres. */
|
|
17
|
+
export declare const FAULD_CENTRE: Readonly<{
|
|
18
|
+
easting: 418225;
|
|
19
|
+
northing: 327725;
|
|
20
|
+
}>;
|
|
21
|
+
/** Height samples, metres apart. */
|
|
22
|
+
export declare const FAULD_STEP = 5;
|
|
23
|
+
/** Places on the ground, `[x, z]` metres from the crater. */
|
|
24
|
+
export declare const FAULD_PLACES: Readonly<{
|
|
25
|
+
crater: readonly [0, 0];
|
|
26
|
+
farm: readonly [0, 10];
|
|
27
|
+
hanbury: readonly [-1225, -175];
|
|
28
|
+
church: readonly [-1190, -190];
|
|
29
|
+
inn: readonly [-1120, -120];
|
|
30
|
+
works: readonly [43, -582];
|
|
31
|
+
reservoir: readonly [-61, -278];
|
|
32
|
+
dove: readonly [-300, -2600];
|
|
33
|
+
tutbury: readonly [3100, -1300];
|
|
34
|
+
}>;
|
|
35
|
+
/**
|
|
36
|
+
* The buildings, vehicles and cattle (Tripo models by Scott, 2026-11-24, decimated in Blender to real size): where each
|
|
37
|
+
* stands, its turn about the vertical in fractions of a full turn, the library model under
|
|
38
|
+
* `margo-library/fauld/buildings/` and the eras it stands in. Shots keep buildings at 150 m or more and under a quarter
|
|
39
|
+
* of the frame height (channel-films fauld-recut-plan section 4). The farmhouse slot has no model yet (drawn as nothing).
|
|
40
|
+
*/
|
|
41
|
+
export declare const FAULD_SLOTS: Readonly<{
|
|
42
|
+
church: {
|
|
43
|
+
at: readonly [-1190, -190];
|
|
44
|
+
turn: number;
|
|
45
|
+
model: string;
|
|
46
|
+
eras: string[];
|
|
47
|
+
};
|
|
48
|
+
inn: {
|
|
49
|
+
at: readonly [-1120, -120];
|
|
50
|
+
turn: number;
|
|
51
|
+
model: string;
|
|
52
|
+
eras: string[];
|
|
53
|
+
};
|
|
54
|
+
cottages: {
|
|
55
|
+
at: readonly [-1260, -90];
|
|
56
|
+
turn: number;
|
|
57
|
+
model: string;
|
|
58
|
+
eras: string[];
|
|
59
|
+
};
|
|
60
|
+
farmhouse: {
|
|
61
|
+
at: readonly [0, 10];
|
|
62
|
+
turn: number;
|
|
63
|
+
model: undefined;
|
|
64
|
+
eras: string[];
|
|
65
|
+
};
|
|
66
|
+
kilnWorks: {
|
|
67
|
+
at: readonly [43, -582];
|
|
68
|
+
turn: number;
|
|
69
|
+
model: string;
|
|
70
|
+
eras: string[];
|
|
71
|
+
};
|
|
72
|
+
guardHut: {
|
|
73
|
+
at: readonly [150, 120];
|
|
74
|
+
turn: number;
|
|
75
|
+
model: string;
|
|
76
|
+
eras: string[];
|
|
77
|
+
};
|
|
78
|
+
nfsTender: {
|
|
79
|
+
at: readonly [205, 150];
|
|
80
|
+
turn: number;
|
|
81
|
+
model: string;
|
|
82
|
+
eras: string[];
|
|
83
|
+
};
|
|
84
|
+
wvsVan: {
|
|
85
|
+
at: readonly [222, 162];
|
|
86
|
+
turn: number;
|
|
87
|
+
model: string;
|
|
88
|
+
eras: string[];
|
|
89
|
+
};
|
|
90
|
+
cattle: {
|
|
91
|
+
at: readonly [-160, 220];
|
|
92
|
+
turn: number;
|
|
93
|
+
model: string;
|
|
94
|
+
eras: string[];
|
|
95
|
+
};
|
|
96
|
+
}>;
|
|
97
|
+
/** The era of the ground: the farm before the explosion, the fresh 1944 crater, or the wooded crater today. */
|
|
98
|
+
export type FauldEra = 'before' | '1944' | 'today';
|
|
99
|
+
/** Sky and weather of a shot. */
|
|
100
|
+
export type FauldSky = 'dawn' | 'lowSun' | 'overcast' | 'grey' | 'dusk' | 'night' | 'snow' | 'rain' | 'mist';
|
|
101
|
+
/** Settings shared by both places. */
|
|
102
|
+
export interface FauldWorldSettings {
|
|
103
|
+
readonly era?: FauldEra;
|
|
104
|
+
readonly sky?: FauldSky;
|
|
105
|
+
/** Local solar time, hours. Default by `sky`. */
|
|
106
|
+
readonly hour?: number;
|
|
107
|
+
/** The shot's subject, `[x, z]` metres (kept for the shot files; the view draws round the camera). Default the crater. */
|
|
108
|
+
readonly focus?: readonly [number, number];
|
|
109
|
+
/** How far round the camera the view grows plants (hedges, trees, woods), metres, 200 to 3,000. Default 2,500. */
|
|
110
|
+
readonly radius?: number;
|
|
111
|
+
/** URL of the height grid (`fauld_sk12_sk23.f32` with its `.json` beside it). Default under `library`. */
|
|
112
|
+
readonly dem?: string;
|
|
113
|
+
/** URL of the asset library root. Default `/asset-library/`. */
|
|
114
|
+
readonly library?: string;
|
|
115
|
+
/** Whether the buildings, vehicles and cattle of `FAULD_SLOTS` are drawn. Default true. */
|
|
116
|
+
readonly buildings?: boolean;
|
|
117
|
+
/** The lens: an f-number (`stop`) and a focus distance in metres, drawn by `DOF` of @margoengine/dof on a Super 35
|
|
118
|
+
* sensor (24.89 mm across), so the focal length follows the camera's field of view. Default f/8 focused at 1,000 m
|
|
119
|
+
* (a landscape lens: the blur at f/8 on a 24 mm lens is under a pixel from about 12 m out). */
|
|
120
|
+
readonly lens?: {
|
|
121
|
+
readonly stop?: number;
|
|
122
|
+
readonly focusDistance?: number;
|
|
123
|
+
};
|
|
124
|
+
readonly seed?: number;
|
|
125
|
+
readonly signal?: AbortSignal;
|
|
126
|
+
}
|
|
127
|
+
/** The world handle. */
|
|
128
|
+
export interface FauldWorld extends Disposable {
|
|
129
|
+
readonly era: FauldEra;
|
|
130
|
+
readonly world: BiomeWorld;
|
|
131
|
+
readonly farm: Farmland;
|
|
132
|
+
readonly view: BiomeView;
|
|
133
|
+
readonly preset: PresetScene;
|
|
134
|
+
readonly clouds: VolumetricClouds;
|
|
135
|
+
readonly weather: WeatherMachine;
|
|
136
|
+
readonly shadows: Shadows;
|
|
137
|
+
/** The lens's depth of field (`settings.lens`). */
|
|
138
|
+
readonly dof: DOF;
|
|
139
|
+
readonly meshes: readonly Mesh[];
|
|
140
|
+
/** The slot models drawn, by slot name (cattle are one model per animal). */
|
|
141
|
+
readonly buildings: Readonly<Record<string, readonly Model[]>>;
|
|
142
|
+
height(x: number, z: number): number;
|
|
143
|
+
/** Puts the camera at a position looking at a target (field of view in degrees). */
|
|
144
|
+
look(position: Vec3, target: Vec3, fov?: number): void;
|
|
145
|
+
advanceTime(seconds: number): void;
|
|
146
|
+
settle(): Promise<void>;
|
|
147
|
+
dispose(): void;
|
|
148
|
+
}
|
|
149
|
+
/** How fast the winter haze thins with height over the Fauld ground, metres per e-fold (the sky fog's `scaleHeight`). */
|
|
150
|
+
export declare const FAULD_HAZE_SCALE_HEIGHT = 500;
|
|
151
|
+
/**
|
|
152
|
+
* The overcast deck of a grey November day, metres above the ground: a stratocumulus sheet, the common winter overcast
|
|
153
|
+
* over the English Midlands, with its base at 1,000 m and tops at 1,600 m (WMO International Cloud Atlas 2017,
|
|
154
|
+
* stratocumulus: base usually 500 to 2,000 m, https://cloudatlas.wmo.int/en/stratocumulus.html). The volumetric
|
|
155
|
+
* stratus default (300 to 900 m) put the film's 400 to 700 m drone cameras inside the cloud, so every aerial shot read
|
|
156
|
+
* as thick haze; a drone films under the deck, so its base stays above the highest camera plus the highest ground.
|
|
157
|
+
*/
|
|
158
|
+
export declare const FAULD_CLOUD_DECK: Readonly<{
|
|
159
|
+
bottom: 1000;
|
|
160
|
+
top: 1600;
|
|
161
|
+
}>;
|
|
162
|
+
/**
|
|
163
|
+
* The hedge shrubs and trees by plant mesh name (`library:<key>`): their model files under `margo-library/fauld/`,
|
|
164
|
+
* without `.gltf`.
|
|
165
|
+
*/
|
|
166
|
+
export declare const FAULD_PLANT_MODELS: Readonly<Record<string, string>>;
|
|
167
|
+
/** Ground scans (Poly Haven, CC0) under `margo-library/fauld/ground/`, the repeat in metres and the winter colour. */
|
|
168
|
+
/**
|
|
169
|
+
* November ground at field capacity (English soils return to it in autumn and hold it to spring) keeps 0.62 of its dry
|
|
170
|
+
* albedo: wet grains lose albedo by internal reflection in the water film (Lekner and Dorf 1988; Twomey, Bohren and
|
|
171
|
+
* Mergenthaler 1986), most of the drop coming with the first moisture (Lobell and Asner 2002): the terrain's share
|
|
172
|
+
* (1 - e^-3m) / (1 - e^-3) of its 0.6 at saturation, at m = 0.75.
|
|
173
|
+
*/
|
|
174
|
+
export declare const FAULD_WET_SOIL: number;
|
|
175
|
+
/** The earth a blast throws over the fields, linear RGB: the Mercia Mudstone's reddish soil (red sand), wet. */
|
|
176
|
+
export declare const FAULD_THROWN_SOIL: readonly [number, number, number];
|
|
177
|
+
/**
|
|
178
|
+
* The fields' looks: each scan's mean brought to a measured albedo (@margoengine/materials' ECOSTRESS surfaces, linear
|
|
179
|
+
* RGB): the pasture green grass, the stubble dry grass, the rough meadow half each (a model choice: its share of dead
|
|
180
|
+
* stems was not measured), the plough and the mud the reddish soil of the Mercia Mudstone (red sand) wetted to
|
|
181
|
+
* FAULD_WET_SOIL. They were set by eye at about twice the measured albedo, so the ground at eye height read pale.
|
|
182
|
+
*/
|
|
183
|
+
export declare const FAULD_GROUND_LOOKS: Readonly<Record<string, {
|
|
184
|
+
file: string;
|
|
185
|
+
repeat: number;
|
|
186
|
+
color: readonly [number, number, number];
|
|
187
|
+
bump?: number;
|
|
188
|
+
}>>;
|
|
189
|
+
/** The size and corner of a height grid, as the `.json` beside it says. */
|
|
190
|
+
export interface FauldDemMeta {
|
|
191
|
+
readonly width: number;
|
|
192
|
+
readonly depth: number;
|
|
193
|
+
readonly cellsize_m: number;
|
|
194
|
+
readonly xll_easting: number;
|
|
195
|
+
readonly ytop_northing: number;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* The OS Terrain 50 grid (float32 metres, row 0 the northmost) as the height at OS (easting, northing), bilinear between
|
|
199
|
+
* sample centres.
|
|
200
|
+
* @throws RangeError for a grid whose length is not width x depth.
|
|
201
|
+
* @example
|
|
202
|
+
* const meta = await (await fetch('/dem/fauld.json')).json();
|
|
203
|
+
* const dem = fauldDem(meta, new Float32Array(await (await fetch('/dem/fauld.f32')).arrayBuffer()));
|
|
204
|
+
* const metres = dem(FAULD_CENTRE.easting, FAULD_CENTRE.northing);
|
|
205
|
+
*/
|
|
206
|
+
export declare function fauldDem(meta: FauldDemMeta, data: Float32Array): (easting: number, northing: number) => number;
|
|
207
|
+
/** What {@link layFauldGround} builds from. */
|
|
208
|
+
export interface FauldGroundOptions {
|
|
209
|
+
/** Default `'before'`. */
|
|
210
|
+
readonly era?: FauldEra;
|
|
211
|
+
/** Default 1944. */
|
|
212
|
+
readonly seed?: number;
|
|
213
|
+
/** Height at OS (easting, northing): {@link fauldDem} of the OS Terrain 50 grid. */
|
|
214
|
+
readonly dem: (easting: number, northing: number) => number;
|
|
215
|
+
/** The era's crater model, of which only the heights are read. Default none (the ground before 1944). */
|
|
216
|
+
readonly crater?: {
|
|
217
|
+
readonly geometry: {
|
|
218
|
+
readonly positions: ArrayLike<number>;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
readonly signal?: AbortSignal;
|
|
222
|
+
}
|
|
223
|
+
/** The place without an engine: its biome world, farm, planting exclusions and ground height. */
|
|
224
|
+
export interface FauldGround extends Disposable {
|
|
225
|
+
readonly world: BiomeWorld;
|
|
226
|
+
readonly farm: Farmland;
|
|
227
|
+
/** Where nothing is planted: what the view and `BiomePlacement` take, so both place the same trees and hedges. */
|
|
228
|
+
readonly exclusions: readonly Exclusion[];
|
|
229
|
+
height(x: number, z: number): number;
|
|
230
|
+
dispose(): void;
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The ground of {@link attachFauldWorld} on the CPU alone, for tools that must know where the hills, hedges and trees
|
|
234
|
+
* stand without rendering them (such as keeping shot cameras clear with `@margoengine/cameras/clearance`).
|
|
235
|
+
* @throws RangeError for an unknown era; rejects with the signal's reason when aborted.
|
|
236
|
+
* @example
|
|
237
|
+
* using ground = await layFauldGround({ dem, era: 'before' });
|
|
238
|
+
* const placement = BiomePlacement.attach(ground.world, { exclusions: ground.exclusions });
|
|
239
|
+
* const trees = await placement.tile(12, 12);
|
|
240
|
+
*/
|
|
241
|
+
export declare function layFauldGround(options: FauldGroundOptions): Promise<FauldGround>;
|
|
242
|
+
/** Builds the shared Fauld ground, farmland, sky and weather into `engine`. */
|
|
243
|
+
export declare function attachFauldWorld(engine: EngineKernel, settings?: FauldWorldSettings): Promise<FauldWorld>;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** One setting of a scene: its default, and its range, unit or allowed values. */
|
|
2
|
+
export interface SceneSetting {
|
|
3
|
+
readonly default: unknown;
|
|
4
|
+
/** Lowest and highest allowed value of a number setting. */
|
|
5
|
+
readonly range?: readonly [number, number];
|
|
6
|
+
/** Unit of a number setting, such as `m`, `m/s`, `deg` or `h`. */
|
|
7
|
+
readonly unit?: string;
|
|
8
|
+
/** Allowed values of a choice setting. */
|
|
9
|
+
readonly options?: readonly string[];
|
|
10
|
+
readonly about: string;
|
|
11
|
+
}
|
|
12
|
+
/** One shot of a scene: how long, which camera keys it uses, the settings it holds or keys per target, what to check. */
|
|
13
|
+
export interface SceneShot {
|
|
14
|
+
readonly name: string;
|
|
15
|
+
/** Length in seconds. */
|
|
16
|
+
readonly seconds: number;
|
|
17
|
+
/** The scene's camera keys (view or anchor names) the shot moves between. */
|
|
18
|
+
readonly camera: readonly string[];
|
|
19
|
+
/** Per-target rows held or keyed over the shot, as `@margoengine/scenes/shot-settings` checks and evaluates them. */
|
|
20
|
+
readonly settings?: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
|
|
21
|
+
/** Named look probes the shot is judged on (three per shot). */
|
|
22
|
+
readonly probes?: readonly string[];
|
|
23
|
+
readonly about: string;
|
|
24
|
+
}
|
|
25
|
+
/** A catalogue entry: what the scene is, its settings, presets, anchors and views, and the entry that builds it. */
|
|
26
|
+
export interface SceneInfo {
|
|
27
|
+
/** Short name, also the entry's last path part. */
|
|
28
|
+
readonly name: string;
|
|
29
|
+
readonly title: string;
|
|
30
|
+
readonly about: string;
|
|
31
|
+
/** The module to import; it exports `attach(engine, settings)` and `info`. */
|
|
32
|
+
readonly entry: string;
|
|
33
|
+
readonly settings: Readonly<Record<string, SceneSetting>>;
|
|
34
|
+
/** Named setting sets, merged over the defaults. */
|
|
35
|
+
readonly presets: Readonly<Record<string, Readonly<Record<string, unknown>>>>;
|
|
36
|
+
/** Named places the scene's handle gives (`scene.anchors`). */
|
|
37
|
+
readonly anchors: readonly string[];
|
|
38
|
+
/** Named camera views (`scene.view(name)`). */
|
|
39
|
+
readonly views: readonly string[];
|
|
40
|
+
/** Names of the looks (picture styles) the scene takes: the families a film or shot may name, such as `natural`. */
|
|
41
|
+
readonly looks?: readonly string[];
|
|
42
|
+
/** The shots the scene is filmed in; `tools/shot` writes each shot file from these, so a shot is authored once. */
|
|
43
|
+
readonly shots?: readonly SceneShot[];
|
|
44
|
+
/** Target name to the package settings entry whose table it uses (`weather` to `@margoengine/weather/settings`); the names a shot's `settings` use. */
|
|
45
|
+
readonly targets?: Readonly<Record<string, string>>;
|
|
46
|
+
}
|
|
47
|
+
/** Every scene in the catalogue. Import an entry's `attach` to build it. */
|
|
48
|
+
export declare const scenes: readonly SceneInfo[];
|
|
49
|
+
/**
|
|
50
|
+
* The catalogue entry named `name`.
|
|
51
|
+
* @throws RangeError for a name not in the catalogue.
|
|
52
|
+
*/
|
|
53
|
+
export declare function sceneInfo(name: string): SceneInfo;
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { t as e } from "./dune-coast-info-D9yQIv8G.js";
|
|
2
|
+
import { t } from "./timber-valley-info-vVI2nwDs.js";
|
|
3
|
+
import { n } from "./fauld-tunnels-info-8qv9X4OJ.js";
|
|
4
|
+
//#region src/fauld-world-info.ts
|
|
5
|
+
var r = {
|
|
6
|
+
era: {
|
|
7
|
+
default: "before",
|
|
8
|
+
options: [
|
|
9
|
+
"before",
|
|
10
|
+
"1944",
|
|
11
|
+
"today"
|
|
12
|
+
],
|
|
13
|
+
about: "the farm before, the fresh 1944 crater, or the wooded crater today"
|
|
14
|
+
},
|
|
15
|
+
sky: {
|
|
16
|
+
default: "lowSun",
|
|
17
|
+
options: [
|
|
18
|
+
"dawn",
|
|
19
|
+
"lowSun",
|
|
20
|
+
"overcast",
|
|
21
|
+
"grey",
|
|
22
|
+
"dusk",
|
|
23
|
+
"night",
|
|
24
|
+
"snow",
|
|
25
|
+
"rain",
|
|
26
|
+
"mist"
|
|
27
|
+
],
|
|
28
|
+
about: "sky and weather of a late-November day at Fauld"
|
|
29
|
+
},
|
|
30
|
+
hour: {
|
|
31
|
+
default: 11.5,
|
|
32
|
+
range: [0, 24],
|
|
33
|
+
unit: "h",
|
|
34
|
+
about: "local solar time on 27 November (default by sky)"
|
|
35
|
+
},
|
|
36
|
+
radius: {
|
|
37
|
+
default: 2500,
|
|
38
|
+
range: [200, 3e3],
|
|
39
|
+
unit: "m",
|
|
40
|
+
about: "how far round the camera the view grows plants"
|
|
41
|
+
},
|
|
42
|
+
buildings: {
|
|
43
|
+
default: !0,
|
|
44
|
+
about: "draws the Tripo buildings, vehicles and cattle of FAULD_SLOTS for the era"
|
|
45
|
+
},
|
|
46
|
+
library: {
|
|
47
|
+
default: "/asset-library/",
|
|
48
|
+
about: "URL root of the asset library (margo-library/fauld and dem)"
|
|
49
|
+
}
|
|
50
|
+
}, i = [
|
|
51
|
+
"crater",
|
|
52
|
+
"farm",
|
|
53
|
+
"hanbury",
|
|
54
|
+
"church",
|
|
55
|
+
"inn",
|
|
56
|
+
"works",
|
|
57
|
+
"reservoir",
|
|
58
|
+
"dove",
|
|
59
|
+
"tutbury"
|
|
60
|
+
], a = {
|
|
61
|
+
name: "fauld-countryside",
|
|
62
|
+
title: "The countryside round Fauld and Hanbury (Staffordshire, November 1944)",
|
|
63
|
+
about: "The real hills round Hanbury and Fauld from Ordnance Survey OS Terrain 50, the hedged field quilt of the English lowland farm world, hedgerows and woods from library trees, Hanbury church, the Cock Inn, cottages, the kiln works and a grazing herd, under a late-November sky.",
|
|
64
|
+
entry: "@margoengine/scenes/fauld-countryside",
|
|
65
|
+
settings: r,
|
|
66
|
+
presets: {
|
|
67
|
+
morning: { sky: "dawn" },
|
|
68
|
+
day: { sky: "lowSun" },
|
|
69
|
+
after: {
|
|
70
|
+
era: "1944",
|
|
71
|
+
sky: "grey"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
anchors: i,
|
|
75
|
+
views: [
|
|
76
|
+
"aerial",
|
|
77
|
+
"lane",
|
|
78
|
+
"pasture"
|
|
79
|
+
]
|
|
80
|
+
}, o = {
|
|
81
|
+
name: "fauld-crater",
|
|
82
|
+
title: "The Fauld crater (Staffordshire, 1944 and today)",
|
|
83
|
+
about: "The crater the explosion of 27 November 1944 left where Upper Castle Hayes Farm stood, stamped into the real ground from its model: bare marl and gypsum in 1944, the wooded hollow today, with the farm quilt round it.",
|
|
84
|
+
entry: "@margoengine/scenes/fauld-crater",
|
|
85
|
+
settings: {
|
|
86
|
+
...r,
|
|
87
|
+
era: {
|
|
88
|
+
...r.era,
|
|
89
|
+
default: "1944"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
presets: {
|
|
93
|
+
fresh: {
|
|
94
|
+
era: "1944",
|
|
95
|
+
sky: "grey"
|
|
96
|
+
},
|
|
97
|
+
snow: {
|
|
98
|
+
era: "1944",
|
|
99
|
+
sky: "snow"
|
|
100
|
+
},
|
|
101
|
+
today: { era: "today" }
|
|
102
|
+
},
|
|
103
|
+
anchors: i,
|
|
104
|
+
views: [
|
|
105
|
+
"rim",
|
|
106
|
+
"aerial",
|
|
107
|
+
"floor"
|
|
108
|
+
]
|
|
109
|
+
}, s = {
|
|
110
|
+
name: "fauld-blast",
|
|
111
|
+
title: "The Fauld explosion (Staffordshire, 11:11 on 27 November 1944)",
|
|
112
|
+
about: "The countryside round Fauld at the moment of the explosion: two releases seconds apart rising as one merging mushroom cloud with fire at its foot, earth clods and gypsum blocks thrown out and landing with dust, the incendiary dump burning, and the mud of the burst reservoir pouring down to the works; every part on film time, so a seek shows the same frame.",
|
|
113
|
+
entry: "@margoengine/scenes/fauld-blast",
|
|
114
|
+
settings: {
|
|
115
|
+
...r,
|
|
116
|
+
sky: {
|
|
117
|
+
...r.sky,
|
|
118
|
+
default: "overcast"
|
|
119
|
+
},
|
|
120
|
+
time: {
|
|
121
|
+
default: 0,
|
|
122
|
+
range: [0, 3600],
|
|
123
|
+
unit: "s",
|
|
124
|
+
about: "film seconds since the first explosion"
|
|
125
|
+
},
|
|
126
|
+
mud: {
|
|
127
|
+
default: !1,
|
|
128
|
+
about: "the mud of the burst reservoir flows to the works (a GPU flood solver)"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
presets: {
|
|
132
|
+
eruption: { time: 2 },
|
|
133
|
+
column: { time: 60 },
|
|
134
|
+
mud: {
|
|
135
|
+
era: "1944",
|
|
136
|
+
time: 90,
|
|
137
|
+
mud: !0
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
anchors: i,
|
|
141
|
+
views: [
|
|
142
|
+
"aerial",
|
|
143
|
+
"valley",
|
|
144
|
+
"field"
|
|
145
|
+
]
|
|
146
|
+
}, c = Object.freeze([
|
|
147
|
+
e,
|
|
148
|
+
t,
|
|
149
|
+
n,
|
|
150
|
+
a,
|
|
151
|
+
o,
|
|
152
|
+
s
|
|
153
|
+
]);
|
|
154
|
+
function l(e) {
|
|
155
|
+
let t = c.find((t) => t.name === e);
|
|
156
|
+
if (!t) throw RangeError(`Unknown scene ${e}; pass one of ${c.map((e) => e.name).join(", ")}.`);
|
|
157
|
+
return t;
|
|
158
|
+
}
|
|
159
|
+
//#endregion
|
|
160
|
+
export { l as sceneInfo, c as scenes };
|