@bendyline/molen-tooling 0.0.17 → 0.0.19
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 +492 -426
- package/dist/capture/worldgen-preview.js +447 -284
- package/dist/docs-src/guide/adaptive-performance.md +19 -9
- package/dist/docs-src/guide/aircraft.md +30 -8
- package/dist/docs-src/guide/building-interiors.md +59 -8
- package/dist/docs-src/guide/determinism.md +1 -1
- package/dist/docs-src/guide/earth-view.md +76 -15
- package/dist/docs-src/guide/markers.md +9 -0
- package/dist/docs-src/guide/medium-fi.md +37 -5
- package/dist/docs-src/guide/navigation.md +11 -2
- package/dist/docs-src/guide/night-lighting.md +9 -2
- package/dist/docs-src/guide/recognizable-places.md +7 -1
- package/dist/docs-src/guide/regional-world.md +166 -36
- package/dist/docs-src/guide/rendering-backends.md +1 -0
- package/dist/docs-src/guide/sky.md +17 -1
- package/dist/docs-src/guide/surface-rendering.md +94 -13
- package/dist/docs-src/guide/vehicle-console.md +158 -0
- package/dist/docs-src/guide/vehicles.md +18 -0
- package/dist/docs-src/guide/worldgen.md +143 -7
- package/dist/docs-src/llms.txt +2 -1
- package/dist/docs-src/schemas/archstyle.md +209 -2
- package/dist/docs-src/schemas/region-atlas.md +2 -2
- package/dist/docs-src/schemas/regional-catalog.md +28 -2
- package/dist/docs-src/schemas/scatter.md +22 -2
- package/dist/docs-src/schemas/structure-placement-data.md +10 -0
- package/dist/docs-src/schemas/structure-placements.md +10 -0
- package/dist/docs-src/schemas/worldgen-batch.md +39 -0
- package/dist/templates/index.json +14 -14
- package/package.json +9 -9
|
@@ -22,7 +22,7 @@ catalogs across those packs, validates references, and passes plain documents to
|
|
|
22
22
|
An architecture-only catalog works without an ecological atlas. A catalog scoped to a different
|
|
23
23
|
style pack is omitted, so a custom style pack can retain the ecological content.
|
|
24
24
|
|
|
25
|
-
The ecological atlas and catalog total about
|
|
25
|
+
The ecological atlas and catalog total about 207 KB gzip (212 KB as a content pack). Its 546 procedural plant presets need no
|
|
26
26
|
GLB downloads. The architectural atlas is about 313 KB gzip; ordinary regional recipes are small
|
|
27
27
|
JSON files using the default pack's shared material graphs. Authored landmark GLBs continue to
|
|
28
28
|
use the existing geographically sharded, lazy model archives.
|
|
@@ -39,10 +39,16 @@ observations. Actual local land cover controls whether a plant can be placed.
|
|
|
39
39
|
Architectural envelopes derive from [Natural Earth 1:50m country outlines](https://www.naturalearthdata.com/downloads/50m-cultural-vectors/50m-admin-0-countries-2/),
|
|
40
40
|
which are [public domain](https://www.naturalearthdata.com/about/terms-of-use/). Exterior rings are
|
|
41
41
|
simplified at 0.02 degrees and coordinates rounded to 0.001 degrees. The shipped atlas groups 241
|
|
42
|
-
country/territory features into
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
country/territory features into 51 broad envelopes, with ten subregions above them where a
|
|
43
|
+
building tradition changes inside one country or runs across several: the Pacific Northwest, the
|
|
44
|
+
US Southwest, the North American Northeast, the Cyclades, Mediterranean France, the English
|
|
45
|
+
limestone belt (Bath and the Cotswolds), central Italy, the Rif, and the western and central
|
|
46
|
+
Sahel. Each is a rectangle masked by its parent envelope's land. Exact containment wins; a
|
|
47
|
+
nearest-outline fallback fills otherwise unclassified coastal gaps within 15 km in local world
|
|
48
|
+
coordinates. Simplified outlines cut estuaries, lagoons and inshore islands off (central Lisbon,
|
|
49
|
+
Venice, Mumbai's Fort, Cartagena, Cádiz, Miami Beach), and a building stands on land, so the
|
|
50
|
+
nearest outline is its region. These envelopes are visual priors, not building-style surveys or
|
|
51
|
+
a political boundary service.
|
|
46
52
|
|
|
47
53
|
Ecological lookup uses a separate grid, so a national border does not move a forest. Each plant
|
|
48
54
|
candidate and each building centroid resolves its own profile. Ground meshes sample regional
|
|
@@ -105,15 +111,15 @@ placement seeds stay tied to individual scatter IDs/versions rather than unrelat
|
|
|
105
111
|
## Plant and building selection
|
|
106
112
|
|
|
107
113
|
The plant families cover broadleaf, conifer, palm, cactus, succulent, bamboo, banana, grass, fern, reed,
|
|
108
|
-
mangrove, deadwood, shrub, thicket, forb, vine, mat,
|
|
109
|
-
parks, orchards, and wetlands. Regional refinements keep American cacti out of Old World wild
|
|
114
|
+
mangrove, deadwood, shrub, thicket, forb, vine, mat, fallen-wood, clipped hedge, and rock silhouettes. Habitats combine canopy, understory, ground cover, open land,
|
|
115
|
+
parks, yards, verges, orchards, and wetlands. Regional refinements keep American cacti out of Old World wild
|
|
110
116
|
desert profiles and avoid applying Australian eucalyptus profiles to New Zealand.
|
|
111
117
|
|
|
112
|
-
Each of the
|
|
118
|
+
Each of the 182 plant forms has a base, spreading, and slender preset, available in
|
|
113
119
|
every applicable habitat and crop rule. Optional `shapeSeed` varies branch/frond arrangements,
|
|
114
120
|
crown contours and stem profiles independently of the placement seed. Dimensions, crown height,
|
|
115
121
|
trunk lean and restrained foliage tones also vary; these are visual forms, not additional taxa.
|
|
116
|
-
All
|
|
122
|
+
All 21 procedural families share the existing near/medium/far triangle limits.
|
|
117
123
|
|
|
118
124
|
### Brush and ground coverage
|
|
119
125
|
|
|
@@ -125,7 +131,8 @@ trunk and hanging from their branches. They do not attach to arbitrary mapped tr
|
|
|
125
131
|
|
|
126
132
|
Natural forest, wood, scrub and heath receive an `understory` scatter layer. Open grassland and
|
|
127
133
|
savanna receive sparser brush. Cultivated polygons, parks, gardens and residential land do not
|
|
128
|
-
receive wild overgrowth from these rules
|
|
134
|
+
receive wild overgrowth from these rules; yards and parks are planted instead (see
|
|
135
|
+
[Yards, parks and verges](#yards-parks-and-verges)). Explicit wetland labels permit sedge patches; desert
|
|
129
136
|
profiles retain sparse dry forms and never acquire humid forest plants.
|
|
130
137
|
|
|
131
138
|
The optional clustering `sharedSeed` coordinates broad patches across vegetation layers while
|
|
@@ -136,11 +143,79 @@ building clearances than trees; road surfaces, buildings and water remain exclud
|
|
|
136
143
|
|
|
137
144
|
Earth tiles reserve `maxUnderstoryInstances` / `maxUnderstoryModels` separately from canopy and
|
|
138
145
|
groundcover. At the finest level, Economy allows 450 brush instances/two models, Balanced
|
|
139
|
-
1,
|
|
140
|
-
coarser levels omit brush.
|
|
141
|
-
0/
|
|
146
|
+
1,800/four, and High 2,800/six. One coarser level retains 80/250/400 instances respectively;
|
|
147
|
+
coarser levels omit brush. Groundcover instance caps are 0/6,500/10,000, with
|
|
148
|
+
0/seven/ten model slots. Economy keeps simplified shrub masses while omitting fine blades and
|
|
142
149
|
litter. These are per-tile limits, not whole-scene frame-rate guarantees.
|
|
143
150
|
|
|
151
|
+
A model slot is what a walker reads as variety: a tile draws only its commonest species in each
|
|
152
|
+
layer, and the rest take the place of their rule's commonest one. Ground cover and beds, which
|
|
153
|
+
have no distant form, stop drawing about 165 m from the edge of their quarter of the tile at
|
|
154
|
+
High on a 1080-line view (sooner at lower quality). That is nearer than before, and it is what
|
|
155
|
+
pays for the larger counts: a tuft a quarter of a kilometer off is a pixel or two.
|
|
156
|
+
|
|
157
|
+
### Yards, parks and verges
|
|
158
|
+
|
|
159
|
+
Planted ground has its own scatter layer, `garden`, with its own budget
|
|
160
|
+
(`maxGardenInstances` / `maxGardenModels`: 700/three at Economy, 5,000/nine at Balanced and
|
|
161
|
+
9,000/fourteen at High on the finest level), so a wood in the same tile cannot thin a
|
|
162
|
+
neighborhood's planting and the planting cannot thin the wood. Each habitat plants by role:
|
|
163
|
+
|
|
164
|
+
| Rule | Land | What it places |
|
|
165
|
+
| --- | --- | --- |
|
|
166
|
+
| `yard_shrubs`, `yard_beds` | Residential land and inferred yards | Garden shrubs and clipped globes, with flower beds, ornamental grasses, ferns and mulch gathered round them |
|
|
167
|
+
| `yard_ornamentals` | The same | Small flowering and red-leaved trees, columnar conifers, hedge runs |
|
|
168
|
+
| `lawn_flowers` | Yards and parks | Clover, daisies and other low flowers in mown grass |
|
|
169
|
+
| `park_shrubs`, `park_beds` | Parks, gardens, cemeteries, greens | Larger shrub borders and planted beds |
|
|
170
|
+
| `street_planting` | Commercial, retail, civic, school and hospital land | Sparse landscaping shrubs and hedges |
|
|
171
|
+
|
|
172
|
+
Shrubs and beds share one density field, so a yard is planted in pockets a few meters across
|
|
173
|
+
with lawn between them. Rough ground is separate and stays in the wild layers: `verge_grass` and
|
|
174
|
+
`verge_brush` put rank grass, weeds, wildflowers and pioneer brush on unmapped ground, `waste_ground`
|
|
175
|
+
puts weeds on industrial and railway land, and `outcrops` puts stones on open dry, cold and
|
|
176
|
+
desert ground.
|
|
177
|
+
|
|
178
|
+
The 83 forms added for this are regional lists, not a planting survey: rhododendron, hydrangea
|
|
179
|
+
and sword fern in Pacific Northwest yards, sheared azalea mounds and cloud-pruned pines in
|
|
180
|
+
Japan, oleander, lavender and pencil cypress round the Mediterranean, hibiscus and croton in the
|
|
181
|
+
tropics, bottlebrush in Australia. A preset's optional `bloom` color draws blossom as part of the
|
|
182
|
+
plant's own mesh, and small ornamental trees carry theirs as the spring color of their
|
|
183
|
+
`phenology`, so a cherry is pink in its spring months.
|
|
184
|
+
|
|
185
|
+
A tile draws each garden model once per quarter, so the layer chooses its models quarter by
|
|
186
|
+
quarter and by role: each rule's commonest species there first, then each rule's second. A street
|
|
187
|
+
therefore differs from the next, and the few trees and hedges are not crowded out by the beds.
|
|
188
|
+
Lists are nearly flat for the same reason.
|
|
189
|
+
|
|
190
|
+
Limits: hedge runs are placed like any other plant, at a random bearing, and do not follow a lot
|
|
191
|
+
line or a fence. Blossom on shrubs and beds does not follow the month. Planting follows mapped
|
|
192
|
+
land use, so a yard mapped as nothing in particular gets verge grass, not a garden.
|
|
193
|
+
|
|
194
|
+
### Shrubs on painted crowns
|
|
195
|
+
|
|
196
|
+
Dry ground paints its own shrubs. A scatter document's `surface.detail` gives each land class a
|
|
197
|
+
brush level, and the terrain ground material paints round shrub crowns at that level: one
|
|
198
|
+
candidate per 8 m cell, 2 to 5 m across, covering a tenth of the ground at full brush. Desert and
|
|
199
|
+
scrubland keep their speckle to the horizon without a model per shrub. Each crown is shaded as a
|
|
200
|
+
low dome, lit on the sun's side, with a leafy outline that resolves as the camera nears.
|
|
201
|
+
|
|
202
|
+
A rule with `crowns` stands a plant on each of those crowns. The plant sits at the crown's
|
|
203
|
+
center and is fitted to its width by the population's `width` (the model's crown width in meters
|
|
204
|
+
at scale 1); a wider crown also stands taller. Within about 25 to 60 m of the camera the painted
|
|
205
|
+
crown gives way to the plant, so the crown seen from the air is the shrub walked up to. The
|
|
206
|
+
regional catalog gives every habitat with ground detail a `ground_crowns` rule: creosote-like
|
|
207
|
+
resin bush, dryland shrubs and thorn thickets in deserts, and the habitat's own brush elsewhere.
|
|
208
|
+
|
|
209
|
+
Crowns are kept whole, because a crown left without its plant would vanish as it was reached.
|
|
210
|
+
`keepByTier` only switches the rule off (the catalog runs it on the finest tiles alone), a host's
|
|
211
|
+
quality keep does not thin it, and its plants sit outside their layer's instance cap, bounded by
|
|
212
|
+
the rule's own cap. A tile of open desert at Yuma, about a kilometer across, carries about 3,000.
|
|
213
|
+
The crown pattern is a host input (`ScatterSampleInput.crowns`): Earth tiles supply it, and
|
|
214
|
+
without it a `crowns` rule places nothing. Limits: the brush is matched by land class and
|
|
215
|
+
building coverage, so where two mapped land classes overlap and the ground and scatter pick
|
|
216
|
+
different ones, a crown at that edge can have no plant. Economy, which skips the finest
|
|
217
|
+
vegetation tier, shows the painted crowns only.
|
|
218
|
+
|
|
144
219
|
The brush milestone's 234 recipes produce 324 appearances including deciduous seasons. All geometry
|
|
145
220
|
is generated and shared by recipe and LOD; the brush expansion adds about 25 KB to the compressed
|
|
146
221
|
ecology pack and no GLB downloads. Reproduce comparison captures with
|
|
@@ -211,33 +286,71 @@ tree line at sea level comes from the ecological atlas's tundra, not from this.
|
|
|
211
286
|
own `altitude` limits still apply; pass `treeline` to the worldgen kernel's scatter sampler to
|
|
212
287
|
use the mechanism elsewhere.
|
|
213
288
|
|
|
214
|
-
The ordinary architectural catalog supplies
|
|
215
|
-
uses: detached homes, attached homes, apartments, commercial, civic, industrial,
|
|
216
|
-
buildings. Mapped use wins over neighborhood inference. Taller measured
|
|
217
|
-
select compatible apartment recipes; source footprint, height, and levels
|
|
218
|
-
generated geometry. Named precedents from the 120-entry structure library
|
|
219
|
-
explicitly. Without evidence of age, the ordinary catalog does not randomly
|
|
220
|
-
historic building type to an untyped home.
|
|
221
|
-
|
|
289
|
+
The ordinary architectural catalog supplies 608 recipes across 32 construction families and nine
|
|
290
|
+
uses: detached homes, attached homes, apartments, commercial, towers, civic, industrial, farm
|
|
291
|
+
buildings, and places of worship. Mapped use wins over neighborhood inference. Taller measured
|
|
292
|
+
residential buildings select compatible apartment recipes; source footprint, height, and levels
|
|
293
|
+
still control the generated geometry. Named precedents from the 120-entry structure library
|
|
294
|
+
remain available explicitly. Without evidence of age, the ordinary catalog does not randomly
|
|
295
|
+
assign an iconic historic building type to an untyped home.
|
|
296
|
+
|
|
297
|
+
A family is what an ordinary building in its regions is made of and roofed with: several wall
|
|
298
|
+
materials and roof coverings, each with its own palette and texture scale (brick colors stay on
|
|
299
|
+
brick), a roof pitch, the share of flat roofs, the colors shutters and doors are painted, and
|
|
300
|
+
which way a house in a row turns its ridge. Britain's is brick, render and sandstone under slate
|
|
301
|
+
with eaves to the street; the Low Countries' dark brick under pantiles with gables to it;
|
|
302
|
+
the Mediterranean's warm render and limestone under terracotta; the Cyclades' limewash under
|
|
303
|
+
flat roofs; the Maghreb's and South Asia's render under roof terraces; sub-Saharan Africa's and
|
|
304
|
+
the Pacific's under corrugated sheet. Where a town's larger buildings are built like its houses,
|
|
305
|
+
its flats, shops and civic buildings take the family's walls and keep a pitched roof through the
|
|
306
|
+
height those roofs were built to. They are also drawn as masonry blocks: storeys of 3.15–3.5 m
|
|
307
|
+
over a 3.7–4.3 m ground floor (so a mapped 21 m is five floors, not seven), windows taller than
|
|
308
|
+
wide over a low sill, a plinth, a string course to each floor and a cornice under a flat roof.
|
|
309
|
+
Elsewhere a block is rendered concrete under a flat roof, and one of its three facades is an
|
|
310
|
+
older building: brick in North America, Australia, the Pacific and South Africa, the family's
|
|
311
|
+
own wall materials in the rest, with the same tall windows, plinth and cornice. A town whose
|
|
312
|
+
blocks were all built in one decade reads as an office park.
|
|
313
|
+
|
|
314
|
+
A block of flats with no mapped height is guessed a storey taller than the family's row houses:
|
|
315
|
+
two to three floors in the Cyclades and the Sahel, three to five around the Mediterranean, four
|
|
316
|
+
to five in the North American Northeast. The upper figure is also the most the Earth binding
|
|
317
|
+
lets any unmeasured building of the region be guessed at; see
|
|
318
|
+
[how tall an unmeasured building is](worldgen.md#how-tall-an-unmeasured-building-is).
|
|
319
|
+
|
|
320
|
+
A building is its region's before it is anything else. The basemap does not keep a building's
|
|
321
|
+
type, and most towns have no land-use polygon, so each profile ends in rules for footprints
|
|
322
|
+
that are neither typed nor on labelled land: small ones are the family's houses, ones that share
|
|
323
|
+
their walls its row houses, large or tall ones its flats or commercial blocks. A footprint over
|
|
324
|
+
35 m takes the glass-and-panel tower recipe only with a floor plate of 250 m² (50 m where towns
|
|
325
|
+
are built in masonry): a slender shaft is a bell tower or a minaret. See
|
|
326
|
+
[rows, shops and places of worship](worldgen.md#rows-shops-and-places-of-worship) for how
|
|
327
|
+
party walls, businesses and religion are read from the map.
|
|
328
|
+
Homes, attached homes, apartments, commercial buildings and towers each have three weighted
|
|
329
|
+
recipes per family: base, compact facade, and open facade. Civic, industrial and farm buildings
|
|
330
|
+
and places of worship, which stand alone in a street, have one. Stable building
|
|
222
331
|
identity selects their window/bay rhythm, roof weighting, eaves, parapets and supported facade
|
|
223
332
|
details. The facade names do not resize the mapped building. Explicit original recipe IDs remain
|
|
224
333
|
available, and identity-free selection keeps the base recipe.
|
|
225
334
|
|
|
226
|
-
For inferred vacant lots,
|
|
227
|
-
|
|
335
|
+
For inferred vacant lots, the family's `lots` pattern first decides whether a block is rows at
|
|
336
|
+
the street or houses in yards (rows in most of the world, by a share and a rhythm per family;
|
|
337
|
+
yards in North America, Australia and the Pacific). In a block of yards, regional `lotPlans`
|
|
338
|
+
weights select cottages, L-shaped ranches, courtyards, compact homes, attached-garage plans or
|
|
339
|
+
commercial shopfronts. The US Southwest has
|
|
228
340
|
its own stucco-and-ceramic-tile family; Washington uses the North American siding-and-shingle
|
|
229
|
-
family. Each inferred lot reserves a path or driveway to its frontage street. Mapped land use
|
|
341
|
+
family, with a share of shingled and brick houses. Each inferred lot reserves a path or driveway to its frontage street. Mapped land use
|
|
230
342
|
selects residential versus commercial pools; see [building infill](worldgen.md#inferred-buildings-where-outlines-are-missing).
|
|
231
343
|
|
|
232
344
|
Near-detail ordinary facades include a bounded single, double, or service entrance. The inferred
|
|
233
345
|
entrance fits an eligible exterior wall, reserves a ground-floor window bay, and yields to known
|
|
234
346
|
structural openings, open ground floors, and raised buildings. It is a visual entrance; it does
|
|
235
|
-
not create a traversable opening or claim a surveyed door position.
|
|
347
|
+
not create a traversable opening or claim a surveyed door position. A building drawn with the
|
|
348
|
+
simplified facade a crowded tile falls back to keeps the same entrance as a bare door leaf. Industrial and farm recipes
|
|
236
349
|
also include high windows and larger service doors.
|
|
237
350
|
|
|
238
351
|
## Agricultural land use
|
|
239
352
|
|
|
240
|
-
All
|
|
353
|
+
All 38 habitat profiles supply an independent `agriculture` channel, refined by ten worldwide
|
|
241
354
|
agricultural overrides (including the Corn Belt, Cerrado/Pampas and Indus/Gangetic plains). It activates only on
|
|
242
355
|
mapped or retrieved farmland, cropland, orchards, vineyards, plantations and pasture. Climate
|
|
243
356
|
alone never turns natural habitat into a farm. Ordinary farmland receives agricultural
|
|
@@ -246,7 +359,7 @@ appearance from the ecology pack without another download.
|
|
|
246
359
|
The 22 crop recipes cover maize, soybean, small cereals, rice, cotton, sugarcane, sunflower,
|
|
247
360
|
rapeseed, root vegetables, sorghum; olive, fruit, date, coconut, oil-palm, coffee, tea, banana,
|
|
248
361
|
rubber and grape cultivation; and pasture/fallow surfaces. Ten annual forms each have three
|
|
249
|
-
procedural variants. The complete catalog now has
|
|
362
|
+
procedural variants. The complete catalog now has 546 plant recipes and 837 appearances with
|
|
250
363
|
crop stages and deciduous seasons. Several source tags share a visual recipe: wheat, barley
|
|
251
364
|
and rye use the small-cereal model. Preserve the source `crop` tag when presenting observations;
|
|
252
365
|
`cultivation.crop` identifies a rendering recipe.
|
|
@@ -340,12 +453,12 @@ different order does not change selection. Earth and World Explorer load it by d
|
|
|
340
453
|
is in the host's pack index. `ambient: { wildlife: false }` disables animals in `mountEarthView`;
|
|
341
454
|
World Explorer accepts `?wildlife=0`. Frozen captures retain the existing ambient opt-in rule.
|
|
342
455
|
|
|
343
|
-
The catalog has
|
|
344
|
-
functional
|
|
456
|
+
The catalog has 111 recipes: three adult body/coat forms for each of 21 named mammal taxa and of
|
|
457
|
+
sixteen functional groups (birds, reptiles, fish, insects, and an unnamed cat and rabbit). These are modest visual variations, not claims
|
|
345
458
|
about sex, age or subspecies. Each trio shares habitat/range/season gates and divides the previous
|
|
346
459
|
visual density equally; total expected abundance and population caps stay unchanged. Mammal country membership comes from Mammal Diversity Database v2.5 under
|
|
347
460
|
CC BY 4.0. A quarter-degree Natural Earth map-unit grid preserves overseas territory distinctions.
|
|
348
|
-
The range document compresses to about 30 KB; the recipe catalog adds about
|
|
461
|
+
The range document compresses to about 30 KB; the recipe catalog adds about 7.5 KB (41 KB as a content pack). No animal GLBs
|
|
349
462
|
are downloaded. Source hashes, transformations, licenses, and limitations ship in the pack.
|
|
350
463
|
|
|
351
464
|
Country membership is a coarse limit, not within-country occupancy. Named taxa require an
|
|
@@ -355,12 +468,26 @@ explicit mapped conservation habitat, and water-dependent animals require mapped
|
|
|
355
468
|
An uncovered range cell cannot authorize a named mammal. Unnamed functional groups deliberately
|
|
356
469
|
make no precise species claim. These choices and visual densities are authored priors, not a census.
|
|
357
470
|
|
|
358
|
-
|
|
359
|
-
|
|
471
|
+
Seven of the functional groups live in towns: small songbirds, a crow-sized dark bird, pigeons,
|
|
472
|
+
waterfowl grazing lawns within 60 m of mapped water, butterflies, cats and rabbits. They carry no
|
|
473
|
+
taxon and no range: habitat places them, within broad biome limits for the waterfowl and
|
|
474
|
+
butterflies and on temperate Nearctic and Palearctic ground for the rabbit. Their
|
|
475
|
+
visual densities are several times the wild groups', because roads and houses leave only part of
|
|
476
|
+
a block to stand on and a small bird is seen from tens of meters, not hundreds.
|
|
477
|
+
|
|
478
|
+
Wildlife reads the finest displayed land-cover and human-feature tiles. Residential land is the
|
|
479
|
+
`yard` habitat: its lawns and gardens are usable between the houses and streets, which keep their
|
|
480
|
+
buffers. Gardens, cemeteries, village greens, recreation grounds and golf courses count as `park`,
|
|
481
|
+
and a park, lawn or wood mapped on residential land is that habitat, in whichever order the map
|
|
482
|
+
lists them. Unknown terrain, commercial, industrial and other built-up land, roads, buildings,
|
|
483
|
+
water inappropriate to the animal, and steep slopes reject placement.
|
|
360
484
|
Island/courtyard holes remain usable. Swimming animals share the rendered water datum; flight
|
|
361
|
-
uses a bounded clearance
|
|
362
|
-
|
|
363
|
-
|
|
485
|
+
uses a bounded clearance, and a flying animal may cross a road on its way but never a building
|
|
486
|
+
(the habitat has no building heights). The 20 Hz kernel uses stable world-grid candidates,
|
|
487
|
+
independent seeds, plain restorable state, bounded wandering, and path substeps. Earth quality
|
|
488
|
+
sets the population, the nearest candidates first: 6, 8, 12, 16, 24 and 32 animals from Minimum
|
|
489
|
+
to Ultra (`earthPerformanceTier(level).ambient.animals`). Distance and pose caps follow quality
|
|
490
|
+
too. Models share recipe geometry, use one opaque skinned draw per animal, and
|
|
364
491
|
dispose with the terrain stream. Tiny animals disappear at short distances.
|
|
365
492
|
|
|
366
493
|
An explicit vegetation month also suppresses the generic insect/lizard groups in the coarse
|
|
@@ -373,7 +500,10 @@ priors, not a migration simulation. They are independent of the named visual mam
|
|
|
373
500
|
Crickets still use the generic recording gated by regional habitat and season. Both retain
|
|
374
501
|
weather, height and vehicle suppression. Composing hosts supply `EarthAudioFrame.location`
|
|
375
502
|
and `regionalAmbience` from `EarthWildlife.ambience`; older packs without a birdsong catalog
|
|
376
|
-
retain the generic bird soundscape.
|
|
503
|
+
retain the generic bird soundscape. A listener on a street or path hears the habitat the road
|
|
504
|
+
runs through; inside a building's footprint or on built-up land there is none. The habitat
|
|
505
|
+
reported in residential land is `yard`, so a birdsong profile is heard there only when its
|
|
506
|
+
`habitats` name it. See [Sound and music](audio.md).
|
|
377
507
|
|
|
378
508
|
## Authoring and verification in this repository
|
|
379
509
|
|
|
@@ -179,6 +179,7 @@ differences with a known cause:
|
|
|
179
179
|
| | WebGL | WebGPU |
|
|
180
180
|
| --- | --- | --- |
|
|
181
181
|
| Far sun shadows (`setFarShadowCasters`) | A second, wider shadow map | None: scenery past the focused map stays sunlit |
|
|
182
|
+
| The driven car's or flown aircraft's sun shadow (`setShadowSubject`) | A map of its own that travels with it: the shadow holds its shape | The focused map: the shadow's outline changes as it moves; from a car's driver's seat the car casts none, and an aircraft casts none once the map's texels pass 0.15 m |
|
|
182
183
|
| Sun shadow filter | PCF | Soft PCF, except at the low shadow quality |
|
|
183
184
|
| Ambient occlusion | None | `setAmbientOcclusion`, off by default |
|
|
184
185
|
| Cloud deck haze | Mixed in after tone mapping | Mixed in before it, so distant clouds are brighter |
|
|
@@ -106,9 +106,25 @@ that has arrived, so a moving caster would leave its shadow behind. It is at mos
|
|
|
106
106
|
across (meters a texel: a house's shadow, not a chimney's) and costs under a millisecond of
|
|
107
107
|
main thread each time it is drawn. `renderer.farShadowInfo` reports its radius, how often it has
|
|
108
108
|
been drawn and how long the last drawing took.
|
|
109
|
+
A focused map is fixed to the ground, so a moving object is drawn into different texels every
|
|
110
|
+
frame. Texels of a driving view are 0.14 to 0.56 m, and a car's shadow on the road changed
|
|
111
|
+
outline each frame. On WebGL `renderer.setShadowSubject({ object, center, radius })` gives one
|
|
112
|
+
moving subject (the driven car, the flown aircraft) a third map that travels with it and holds
|
|
113
|
+
nothing else: its shadow keeps its shape on the ground and on itself. The map is 1024 texels
|
|
114
|
+
across the subject's sphere, about 5 mm each around a car and 13 mm around a helicopter; a
|
|
115
|
+
larger subject's grows toward 1.5 cm texels, up to the focused map's size and at most 2048.
|
|
116
|
+
`measureShadowSubject(object)` measures the sphere from the object's meshes; measure once and
|
|
117
|
+
pass the same subject each frame, `undefined` for none. Everything under `object` that casts
|
|
118
|
+
shadows casts into this map instead of the focused one. Its see-through glass lets sunlight
|
|
119
|
+
1.8 m past a pane (onto a dashboard and seats) and shades beyond that, so the shadow on the
|
|
120
|
+
ground stays whole. The shadow fades out down the light past the subject, from 30 m or ten times
|
|
121
|
+
its radius (whichever is farther) over as far again. The call returns false on WebGPU, where the
|
|
122
|
+
subject goes on casting into the focused map; `renderer.subjectShadowInfo` reports the map's
|
|
123
|
+
radius, texel size and how often it was drawn.
|
|
109
124
|
`renderer.shadowTexelSize` reports the meters one texel covers as of the last frame (`undefined`
|
|
110
125
|
while sun shadows are off), for hosts that keep a subject the map cannot resolve out of the
|
|
111
|
-
shadow pass (see `AircraftVisual.updateShadows` in the aircraft guide
|
|
126
|
+
shadow pass (see `AircraftVisual.updateShadows` in the aircraft guide and
|
|
127
|
+
`VehicleVisual.updateShadows` in the vehicles guide).
|
|
112
128
|
`sun.visible`/`moon.visible` control the disks independently of lighting. Use the corresponding
|
|
113
129
|
light intensity to disable illumination. `sun.size` and `moon.size` are visual multipliers;
|
|
114
130
|
the default 1 preserves real angular size. Larger values help stylized scenes and small displays.
|
|
@@ -250,6 +250,8 @@ await surfaces.setOptions({
|
|
|
250
250
|
Red, amber and green lenses are self-lit, remaining visible at night. Instanced streetlights
|
|
251
251
|
occupy eligible corners outside road corridors, buildings, and water: mast arms where an
|
|
252
252
|
arterial meets the junction, post-top lanterns otherwise (see [night lighting](night-lighting.md)).
|
|
253
|
+
A junction whose roads are raised on an approach to a bridge gets none of this, nor crossing
|
|
254
|
+
paint: all of it stands on the ground, under the road.
|
|
253
255
|
- Freeways receive wider paved shoulders, longer lane dashes, a yellow left edge on one-way
|
|
254
256
|
carriageways, and white ramp edges. Green overhead boards use mapped route references or
|
|
255
257
|
destinations. At a connected outgoing ramp, an advance gantry and roadside exit board use
|
|
@@ -266,6 +268,28 @@ await surfaces.setOptions({
|
|
|
266
268
|
`details.inferStopSigns` to retain only mapped stops, or `details.roadSigns` to hide all signs.
|
|
267
269
|
Historical and minimal styles omit signs. Sign faces and lettering are batched geometry with
|
|
268
270
|
host-supplied fonts and no per-sign textures; the worker produces the same geometry as the direct renderer.
|
|
271
|
+
- Street names come from the roads' mapped `name`, styled by the sign profile's `streetNames`.
|
|
272
|
+
Each junction names the two streets that form one of its corners; the corner varies from
|
|
273
|
+
junction to junction. With `mount: "post"` (the default) both names share one corner post,
|
|
274
|
+
each panel running along the street it names and lettered on both faces: narrow `blade`s as
|
|
275
|
+
in North America, or taller `plate`s as on German and Swiss posts. With `mount: "wall"` each
|
|
276
|
+
street gets a plate on the corner building's wall that runs along and faces it, as in Britain,
|
|
277
|
+
France and Italy; where no wall stands near the corner, the plate stands on a low two-legged
|
|
278
|
+
frame at the back of the footway. A style with `mastArms` also hangs a panel from each signal
|
|
279
|
+
mast arm naming the street its traffic is about to cross (the named arm most nearly
|
|
280
|
+
perpendicular to the approach), beside the signal heads or past them on a longer arm, and
|
|
281
|
+
leaves those junctions' corners bare. `letterCase: "upper"` letters names in capitals. The
|
|
282
|
+
style's abbreviations turn spelled-out map names into what signs post ("Northeast 45th
|
|
283
|
+
Street" becomes "NE 45th St"); a direction or street type that is the whole name stays
|
|
284
|
+
spelled out ("North Street" becomes "North St"). The content catalog's U.S. profiles use white
|
|
285
|
+
blades and mast panels on green; Britain and Italy black capitals on white wall plates, France
|
|
286
|
+
white on blue; Germany Zeichen 437 plates and Switzerland white-on-blue plates on posts; the
|
|
287
|
+
generic fallbacks neutral plates on posts. Unnamed roads, paths, ramps, freeways and compound
|
|
288
|
+
connector labels ("A Street & B Avenue") get no sign, nor does a name the host's sign font
|
|
289
|
+
cannot letter (a Japanese name in a Latin face), and junctions on bridges or in tunnels get no
|
|
290
|
+
corner name. Names are never invented. Street names are a separate `surface:street-names`
|
|
291
|
+
mesh drawn within 250 m of the tile, nearer than the other boards' 900 m, since their
|
|
292
|
+
lettering is a pixel or two tall beyond that.
|
|
269
293
|
- Parking, plazas, and pedestrian polygons are filled, with holes retained. Pedestrian polygons
|
|
270
294
|
and mapped paths use distinct heights above parking pavement, including inferred lots, so
|
|
271
295
|
overlapping sidewalk and asphalt fills remain stable at walking height. Land cover, paved
|
|
@@ -300,7 +324,10 @@ await surfaces.setOptions({
|
|
|
300
324
|
- Simple surfaces retain road and parking fills with decoration disabled.
|
|
301
325
|
|
|
302
326
|
The decoder preserves road `subclass`, `service`, `link` (including Protomaps `is_link`), `surface`, `lanes`, `oneway`, `layer`, `bridge`, `tunnel`
|
|
303
|
-
and explicit `width`. Properties absent from the source use class-based defaults.
|
|
327
|
+
and explicit `width`. Properties absent from the source use class-based defaults. A class's
|
|
328
|
+
default width is that of the whole road, both directions; a ramp (`link`) is drawn 6.6 m wide off
|
|
329
|
+
a freeway and 4.5 m off a street, and a one-way freeway carriageway 11 m, with the shoulders
|
|
330
|
+
outside that. Tunnel roads are
|
|
304
331
|
excluded from the ground painter; Earth views add separate underground bores as described below.
|
|
305
332
|
Bridges and differing layers do not form surface junctions. Tagged bridges receive inferred
|
|
306
333
|
decks, slabs, barriers and supports, at heights that clear whatever they cross (see
|
|
@@ -353,8 +380,11 @@ those tags. There are no live Overpass requests or extra network lookups during
|
|
|
353
380
|
Numeric OSM speeds without a unit are km/h; explicit `mph` stays mph. Variable, conditional and
|
|
354
381
|
country-code speed values are not interpreted. Road signs, gantry positions and sparse spacing
|
|
355
382
|
are visual approximations, using a right-hand-traffic layout, with a maximum of 48 signs per
|
|
356
|
-
detail tile inside its shared fixture budget.
|
|
357
|
-
|
|
383
|
+
detail tile inside its shared fixture budget. Street names sit outside both limits: 64 named
|
|
384
|
+
corners per tile, and one mast panel per signal mast, so names never crowd out signals or lights.
|
|
385
|
+
Labels fit uniformly within the panel (bounded to 80 characters); unsupported
|
|
386
|
+
glyphs use a question mark. `stats().roadSigns` counts the placed boards, and
|
|
387
|
+
`stats().streetNameSigns` how many of them are street names. Ambient traffic uses
|
|
358
388
|
the more conservative signal inference and treats mapped stop controls as give-way controls;
|
|
359
389
|
this change does not add a full-stop/dwell simulation for the decorative signs.
|
|
360
390
|
|
|
@@ -474,17 +504,35 @@ Every inferred bridge gets a height profile, and so does every road that has to
|
|
|
474
504
|
other's (a bridge between two hilltops is over a ramp in the valley); else by what they
|
|
475
505
|
carry (ramps over streets, streets over freeway carriageways and railways); else the one
|
|
476
506
|
farther along its structure from where it lands; else the one running more nearly north
|
|
477
|
-
and south. Only the
|
|
478
|
-
sees the crossing decides alike.
|
|
507
|
+
and south. Only the structures near the crossing enter into it, so every tile that
|
|
508
|
+
sees the crossing decides alike. Carriageways side by side are one road to whatever crosses
|
|
509
|
+
them: a ramp's crossings of the two are decided together, so it passes over both or under
|
|
510
|
+
both.
|
|
479
511
|
- A deck falls away from a crossing no faster than its class allows: 5% for a freeway, 7% for
|
|
480
512
|
its ramps, 6 to 8% for streets, 10% for service roads and footpaths, 3% for heavy rail and
|
|
481
513
|
as stairs do for steps. Breaks in grade are rounded over about 20 m.
|
|
482
|
-
- A road climbing to a structure
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
514
|
+
- A road climbing to a structure fits beneath every deck that passes over it, its own
|
|
515
|
+
bridge's or another's: it stands no higher there than leaves the deck its clearance, and
|
|
516
|
+
comes down to that as steeply as 25% if it must. A deck is never raised to clear a road that
|
|
517
|
+
is itself climbing; where that was done, a viaduct's surface streets rose with the ramps
|
|
518
|
+
that joined them and lifted every deck above. Near where a deck lands on it, though, the
|
|
519
|
+
road can only come down so fast: a deck crossing it there clears the road as high as a 25%
|
|
520
|
+
ramp from the landing leaves it, not the ground. Lift passes down the ranks only, so a
|
|
521
|
+
footbridge's steps come down to the street and the street does not rise to the footbridge;
|
|
522
|
+
a footpath beside a climbing road rides on its embankment.
|
|
523
|
+
- Decks whose paving overlaps are one surface, level throughout: the carriageways of one road
|
|
524
|
+
mapped closer than they are drawn wide, and a ramp for as long as it runs into the road it
|
|
525
|
+
joins. That holds for decks of one kind (two freeway decks, two tracks) or that join within
|
|
526
|
+
150 m; a railway bridge under a viaduct on the same river crossing is another structure.
|
|
527
|
+
Decks a little apart (a sidewalk mapped along a road bridge) are level as far as 2.5 m goes.
|
|
528
|
+
- Decks joined so near a crossing that neither could stand a story over the other (a
|
|
529
|
+
crossover between two tracks, a ramp across the road it has just left) cross on the level.
|
|
530
|
+
- Some arrangements no heights satisfy: one deck must clear another that is tied to it, by a
|
|
531
|
+
join or by lying abreast, before either has the length to fall a story. Raised in turn,
|
|
532
|
+
such decks only stop at the 30 m limit. They are found as they start, and given another
|
|
533
|
+
arrangement, cheapest first: a crossing decided on little (bearing, or how far each deck
|
|
534
|
+
had come) is turned over; two decks are no longer held level; a crossing decided on what
|
|
535
|
+
the decks carry is turned over; at the last, two decks cross on the level.
|
|
488
536
|
|
|
489
537
|
A vertex shared by a bridge and a road beneath it is taken for a junction or a mapper's tie,
|
|
490
538
|
never a flyover, and a way's end lying on another way is joined to it even where the tile
|
|
@@ -522,9 +570,27 @@ Without the option, each tile's bridges are still graded from that tile alone, w
|
|
|
522
570
|
clearances. A bridge cut by a tile edge then cannot see what it crosses in the next tile and
|
|
523
571
|
assumes a free clearance at the cut.
|
|
524
572
|
|
|
573
|
+
### Tile edges
|
|
574
|
+
|
|
575
|
+
Each tile grades its bridges with what lies within 400 m of it, and an interchange reaches
|
|
576
|
+
farther: one tile reads the ramp that lifts a deck, or the far bank a long bridge lands on, and
|
|
577
|
+
the tile beside it does not. Each alone would draw its half of the deck at its own height. So
|
|
578
|
+
within 300 m of an edge a road takes its height from both tiles' gradings, half and half on
|
|
579
|
+
the edge and wholly its own tile's from 300 m inward (four tiles' at a corner). Both tiles read
|
|
580
|
+
the same two gradings of the same point, so a road is one height where they meet whatever each
|
|
581
|
+
grading made of it, and a mix of profiles that each clear what they cross clears it too. A
|
|
582
|
+
tile's grading is kept for the tiles around it, so this costs about one grading a tile, as
|
|
583
|
+
before, once the first tile of an interchange has asked for its eight neighbors'.
|
|
584
|
+
|
|
585
|
+
A long bridge is still graded by tiles that cannot read both its banks (a tile reads 400 m
|
|
586
|
+
past its own edges), and such a tile takes the end it cannot see to stand a free clearance
|
|
587
|
+
over the ground there. The mix makes the deck continuous, not right: a high bridge between two
|
|
588
|
+
hills sags toward its middle.
|
|
589
|
+
|
|
525
590
|
Both passes run on the main thread in slices of about 2 ms, so a tile arriving under a fast
|
|
526
591
|
camera does not hold a frame. A town tile's earthworks take 3 to 10 ms in all; an
|
|
527
|
-
interchange and its surroundings,
|
|
592
|
+
interchange and its surroundings, 10 to 60 ms a tile, and the densest in Seattle 300 ms. A
|
|
593
|
+
grading that no tile still waits for stops.
|
|
528
594
|
|
|
529
595
|
## Tunnels
|
|
530
596
|
|
|
@@ -554,6 +620,16 @@ street there and open the ground along its whole length. Tunnel inference runs a
|
|
|
554
620
|
feature level and above. Hiding the Human layer also removes its portal cuts and navigation
|
|
555
621
|
support; the original elevation heightfield always remains available for surface anchoring.
|
|
556
622
|
|
|
623
|
+
A way tagged as a tunnel only where it passes beneath bridges is an underpass, not a bore.
|
|
624
|
+
Mappers often tag a street that runs under a railway's bridges this way, and an elevation model
|
|
625
|
+
has no dip for it. Built as a bore, it stood on the ground as a 6.5 m box with the bridges
|
|
626
|
+
through it. `createTerrainPackageSemanticLayers` hands every reader of its road tiles such a way
|
|
627
|
+
as an ordinary one. The road painter draws it, grade separation lifts the bridges over it, and
|
|
628
|
+
traffic shows on it. The rule is `withTerrainUnderpasses` in `@bendyline/molen-terrain/kernel`.
|
|
629
|
+
A way qualifies when bridges cross over it at least every 30 m and within 15 m of each end
|
|
630
|
+
(`TERRAIN_UNDERPASS_REACH`). Lines with a surveyed `tunnelFloorElevation` stay tunnels. So do
|
|
631
|
+
lines the tile does not see whole and lines that continue as a tunnel.
|
|
632
|
+
|
|
557
633
|
Custom package hosts opt in with `createTerrainPackageSemanticLayers` (or its profiled variant),
|
|
558
634
|
passing `tunnels: { heights: elevationSource }` alongside their feature renderer. Share the
|
|
559
635
|
elevation source returned by `openTerrainPackagePyramid` with the terrain stream.
|
|
@@ -732,7 +808,9 @@ See [Fonts and lettering](typography.md) for the shared layout engine and custom
|
|
|
732
808
|
## Road sign pattern library
|
|
733
809
|
|
|
734
810
|
The world-explorer sample includes **Road sign library** (`road-signs.html`), linked from its
|
|
735
|
-
main view. It renders
|
|
811
|
+
main view. It renders twelve patterns in the United States and ten elsewhere (route markers and
|
|
812
|
+
mast-arm names are U.S. conventions; each region shows its own corner street names) from
|
|
813
|
+
synthetic semantic tiles through the production
|
|
736
814
|
detector, with country/state selectors, a 50-state route-marker collection, searchable cards,
|
|
737
815
|
rotatable 3D previews, and source-cue annotations. The samples
|
|
738
816
|
are demonstrations, not records of surveyed signs. All hardware positions are estimated.
|
|
@@ -749,6 +827,9 @@ are demonstrations, not records of surveyed signs. All hardware positions are es
|
|
|
749
827
|
| `attraction` | Ramp `destination` with aligned `destination:colour=brown` | Nearby tourism POIs alone do not establish an exit or driving distance |
|
|
750
828
|
| `route-guide` | Motorway `ref`/`shield_text`, name, or destination | Omit when labels are unknown |
|
|
751
829
|
| `route-marker` | Exact supported `network` plus `shield_text`/`ref`; explicit state reference; local `SR`/`SH` plus state geography | Omit ambiguous or unsupported networks; never invent a route number |
|
|
830
|
+
| `street-name-mast` | Signal junction plus a named cross street; a `streetNames` style with `mastArms` | No panel without a named cross street at 30 degrees or more |
|
|
831
|
+
| `street-name-blade` | Two differently named streets forming a corner (at signals too, unless mast arms carry the names) | No post for unnamed roads, ramps, paths, freeways or junctions on structures |
|
|
832
|
+
| `street-name-wall` | The same corner cues, a `mount: "wall"` style, and building footprints | A low frame where no wall runs along and faces the street near the corner |
|
|
752
833
|
|
|
753
834
|
The MVT decoder retains `destination:colour` as `destinationColour`. Semicolon entries align
|
|
754
835
|
with the destination list, including empty entries. A single brown colour applies to the
|