@bendyline/molen-tooling 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/capture/harness.js +441 -420
- package/dist/capture/worldgen-preview.js +405 -287
- package/dist/docs-src/guide/building-interiors.md +59 -8
- package/dist/docs-src/guide/earth-view.md +39 -11
- package/dist/docs-src/guide/medium-fi.md +37 -5
- 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/sky.md +2 -1
- package/dist/docs-src/guide/surface-rendering.md +33 -3
- package/dist/docs-src/guide/vehicles.md +10 -0
- package/dist/docs-src/guide/worldgen.md +143 -7
- 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 +10 -10
- package/package.json +7 -7
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
# Inferred building interiors
|
|
2
2
|
|
|
3
|
-
World explorer enables lazy interiors in the styled **Human** layer: choose **Walk**,
|
|
4
|
-
a building,
|
|
5
|
-
transparent and reveal the same interior you can enter.
|
|
3
|
+
World explorer enables lazy interiors in the styled **Human** layer: choose **Walk**, walk up to
|
|
4
|
+
a building's front door, press **E** to open it, and walk in. Near the entrance, the windows
|
|
5
|
+
become transparent and reveal the same interior you can enter.
|
|
6
6
|
|
|
7
7
|
`?interiors=0` disables this capability. `?synthetic=1&stores=1` provides a repeatable block of recognizable
|
|
8
|
-
stores; `test/visual/interiors.play.json`
|
|
8
|
+
stores; `test/visual/interiors.play.json` opens the doors of its fast-food restaurant and grocery
|
|
9
|
+
store, walks in, and walks back out.
|
|
9
10
|
Use `?synthetic=1&houses=1` for a residential block with two-storey houses and a bungalow.
|
|
10
|
-
`test/visual/houses.play.json`
|
|
11
|
+
`test/visual/houses.play.json` opens a front door, walks in, climbs the stairs, and enters a bedroom.
|
|
11
12
|
|
|
12
13
|
These layouts are plausible procedural interpretations of building use, **not surveyed floor
|
|
13
14
|
plans**. Confirmed occupant categories take precedence over building labels, then surrounding
|
|
@@ -209,6 +210,16 @@ using the style pack's catalog (and generating no interiors when the pack has no
|
|
|
209
210
|
`renderers.updateInteriors(cameraPosition)` each frame. Only complete buildings at the finest
|
|
210
211
|
semantic level receive sites; coarse representations retain the cheap exterior path.
|
|
211
212
|
|
|
213
|
+
A site comes with a building's full detail, and a crowded tile cannot detail every building: a
|
|
214
|
+
dense Seattle tile holds 1,091 buildings and a WebGL host's vertex budget details 75 of them.
|
|
215
|
+
From the air those are the largest. Once the position passed to `updateInteriors` is down among
|
|
216
|
+
the buildings and moving at a walk, the tiles within 90 m of it are regenerated with their
|
|
217
|
+
buildings queued nearest first, and again each 36 m it moves, so the houses round a walker
|
|
218
|
+
(148 of them in that tile, out to 140 m) are the ones with doors. Nothing is regenerated while the
|
|
219
|
+
viewer is inside a building or travelling faster than 10 m/s, and the tile on screen stays
|
|
220
|
+
until its replacement is ready. `viewerFocus: false` on the renderers keeps a tile's first
|
|
221
|
+
choice; World Explorer accepts `?focus=0`, and frozen captures (`?freeze`) never regenerate.
|
|
222
|
+
|
|
212
223
|
Defaults are a 65 m load distance, 90 m release distance, 12 resident interiors and a 16 MiB
|
|
213
224
|
resident geometry cap. Distance is measured to the footprint (including courtyard boundaries)
|
|
214
225
|
and vertically to the available storey envelope, so a large building remains resident while you are inside
|
|
@@ -218,7 +229,8 @@ candidate modules and 160 fixtures (hard ceilings 4,096 and 512). The work budge
|
|
|
218
229
|
64 iterator steps per frame, with at most one completed upload per frame. This is a cooperative
|
|
219
230
|
budget, not a hard deadline: triangulation and final buffer upload are indivisible operations.
|
|
220
231
|
|
|
221
|
-
One opaque portal batch covers unready
|
|
232
|
+
One opaque portal batch covers unready windows per region; a shut door closes its own doorway
|
|
233
|
+
(see [Doors](#doors)). Publication attaches the
|
|
222
234
|
complete interior and removes those covers atomically. Eviction restores covers and disposes
|
|
223
235
|
owned geometry; shared materials survive until streamer disposal. Hidden layers, region
|
|
224
236
|
disposal and moving out of range cancel pending work. There is no unbounded interior cache:
|
|
@@ -241,7 +253,45 @@ the same published geometry, except that visible stair steps are skipped (`walkI
|
|
|
241
253
|
a closed wedge supplies smooth stair collision. The published proxy is marked
|
|
242
254
|
`walkCollisionOnly` and has rendering layers disabled. Hosts using the kernel buffers directly
|
|
243
255
|
should likewise omit `steps` from physics and add `collision` to their collision scene. Portal index changes invalidate collision, and window glass is
|
|
244
|
-
solid from either side.
|
|
256
|
+
solid from either side.
|
|
257
|
+
|
|
258
|
+
## Doors
|
|
259
|
+
|
|
260
|
+
Every site's entrance has a door, shut until someone opens it. A house gets one painted panel
|
|
261
|
+
door, sometimes with a glass light, in one of a street's usual front-door colors, with a knob
|
|
262
|
+
and a fanlight over it where the opening is taller than a door. Shops, offices and everything
|
|
263
|
+
else get framed glass doors with a pull, in pairs where the doorway is 1.8 m or wider. A car
|
|
264
|
+
park's entrances stay open for cars. The look and the hinge side come from the site's identity,
|
|
265
|
+
so a building keeps its door.
|
|
266
|
+
|
|
267
|
+
`interiorDoors(site, catalog)` in the kernel describes them: each `InteriorDoor` has an `id`
|
|
268
|
+
(`<identity>#door0`), the doorway's `center`, `along` and `inward` directions, its leaves (each a
|
|
269
|
+
`hinge` and a direction across the leaf), and per leaf the `swing` angle about +Y that opens it
|
|
270
|
+
inward (the negative opens it outward). `buildInteriorDoorLeaf` and `buildInteriorDoorFrame`
|
|
271
|
+
build the closed leaves and the fixed transom. The kernel decides nothing about when a door opens.
|
|
272
|
+
|
|
273
|
+
`InteriorStreamer` draws every door of a region in one mesh and swings a leaf by rewriting its
|
|
274
|
+
own vertices, so doors cost one draw per region. Walking collision sees the leaves wherever they
|
|
275
|
+
are, shut or open, and picks up a swing on its next scan.
|
|
276
|
+
|
|
277
|
+
```ts
|
|
278
|
+
const door = interiors.doorAt(eye, { facing: forward }); // within 1.8 m, in front of the viewer
|
|
279
|
+
if (door && !door.locked) interiors.setDoor(door.id, !door.open, feet);
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
`doorAt` returns the nearest door within `reach` (1.8 m) of a position, at eye or foot height,
|
|
283
|
+
and ahead of `facing` when given. `setDoor(id, open, from)` opens a door away from `from`, so it
|
|
284
|
+
never swings into whoever opened it: from the street it opens inward, and from inside it opens
|
|
285
|
+
outward. It swings over 0.7 s, quickest at the start, on the streamer's clock (`now`, `performance.now` by default).
|
|
286
|
+
A door opens only onto rooms that are built: asked before then, it reports `waiting` and swings
|
|
287
|
+
when they are published, or gives up if the viewer leaves first. A site whose rooms could not
|
|
288
|
+
be built is `locked` and stays shut. Shutting is refused while `from` stands in the doorway.
|
|
289
|
+
When an interior is released, its door shuts with it.
|
|
290
|
+
|
|
291
|
+
The Earth renderers expose the same `doorAt` and `setDoor`. World Explorer and the Earth view
|
|
292
|
+
use the interact key for them: **E** opens or shuts the door the walker faces, and the explorer's
|
|
293
|
+
status line says which it will do. In the Earth view a door is an interactable of kind `door` (see
|
|
294
|
+
[Earth view](earth-view.md#interaction)).
|
|
245
295
|
|
|
246
296
|
## Current limits and next extensions
|
|
247
297
|
|
|
@@ -250,7 +300,8 @@ tower or mall, and every deck of a car park, in complete, non-elevated polygon b
|
|
|
250
300
|
exterior geometry budget and have room for human-scale access. It does not promise entry into
|
|
251
301
|
every mapped fragment: clipped footprints, elevated parts, very low/narrow structures,
|
|
252
302
|
budget-boxed and omitted buildings lack a site. Additional storeys, switchback stairs, elevators,
|
|
253
|
-
|
|
303
|
+
doors between rooms (their doorways are open), tenant subdivision and persistent object edits
|
|
304
|
+
remain future extensions.
|
|
254
305
|
|
|
255
306
|
Ground-floor platforms use the highest sampled perimeter height and an entrance ramp. Very
|
|
256
307
|
steep sites, terrain protruding inside a large footprint, adjacent buildings obstructing a
|
|
@@ -347,7 +347,7 @@ walker. `actors.adopt(pedestrianId)` turns an ambient pedestrian into an actor (
|
|
|
347
347
|
```ts
|
|
348
348
|
const view = await mountEarthView({ /* … */ interaction: { reach: 2.5, pedestrians: true } });
|
|
349
349
|
view.setInteraction({ pedestrians: false }); // change it later, e.g. only while a game runs
|
|
350
|
-
view.interactable(); // { kind: 'actor' | 'vehicle' | 'pedestrian' | 'none', id?, distance? }
|
|
350
|
+
view.interactable(); // { kind: 'actor' | 'vehicle' | 'pedestrian' | 'elevator' | 'door' | 'none', id?, distance?, open? }
|
|
351
351
|
view.on('interact', (interaction) => {
|
|
352
352
|
if (interaction.kind === 'actor') {
|
|
353
353
|
interaction.claim(); // the view does nothing else with this press
|
|
@@ -355,17 +355,24 @@ view.on('interact', (interaction) => {
|
|
|
355
355
|
} else if (interaction.kind === 'pedestrian') {
|
|
356
356
|
const id = view.actors.adopt(interaction.id); // stop them and talk
|
|
357
357
|
if (id) talkTo(id);
|
|
358
|
+
} else if (interaction.kind === 'door' && !interaction.open && !hasKey) {
|
|
359
|
+
interaction.claim(); // keep this door shut until the player finds the key
|
|
360
|
+
say('Locked.');
|
|
358
361
|
}
|
|
359
362
|
});
|
|
360
363
|
```
|
|
361
364
|
|
|
362
365
|
The interact key (E, or F, or the right mouse button) emits `interact` first with what it found. On
|
|
363
366
|
foot that is the nearest of: a car or aircraft within reach of its door (aircraft can be boarded on
|
|
364
|
-
foot too),
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
foot too), a building's door within 1.8 m and in front of the walker (`open` says whether it is
|
|
368
|
+
open), an interactable actor within `interaction.reach` (2.5 m) of the walker's eyes and in
|
|
369
|
+
sight, and, with `interaction.pedestrians`, an ambient pedestrian. Standing in a lift, it is the
|
|
370
|
+
`elevator`. Aboard, it is the vehicle the viewer is in; otherwise `none`. A handler that calls
|
|
371
|
+
`claim()` synchronously takes the press, and nothing else happens. Unclaimed, the view boards or
|
|
372
|
+
leaves a vehicle as it always did (or explains why there is nothing to board), opens or shuts a
|
|
373
|
+
door (away from the walker, so it never swings into them), takes a lift up a floor, and does
|
|
374
|
+
nothing for an actor or a pedestrian. A door opens onto rooms that are built, waiting for them
|
|
375
|
+
if need be; see [Doors](building-interiors.md#doors).
|
|
369
376
|
|
|
370
377
|
### Overrides: replacing mapped places
|
|
371
378
|
|
|
@@ -854,6 +861,11 @@ For separated buildings or precincts, `buildingCutout.outlines` provides up to 6
|
|
|
854
861
|
simple masks and supersedes `outline`. Keep the primary `outline` for compatibility. Separate
|
|
855
862
|
masks preserve intervening buildings without inventing connecting structure geometry.
|
|
856
863
|
|
|
864
|
+
For an open carriage arch or similar at-grade passage, add `surfacePassageIds` and geographic
|
|
865
|
+
`bounds`. List exact transportation feature IDs from the map package. While the landmark is
|
|
866
|
+
loaded, the viewer paints those routes on the terrain through the model and skips their inferred
|
|
867
|
+
tunnel walls and ceiling. Failed loads retain the map's tunnel rendering.
|
|
868
|
+
|
|
857
869
|
For a whole landmark whose source footprint slightly overlaps a neighboring building, set
|
|
858
870
|
`buildingCutout.minimumCoverage` to a fraction in `(0, 1]`, for example `0.995`. This changes
|
|
859
871
|
the mask to whole-building replacement: a mapped feature goes only when the union of that
|
|
@@ -912,6 +924,14 @@ model eviction. `build-copernicus-bridge-evidence.py` and the capture runner's
|
|
|
912
924
|
neither capture set substitutes altered heights to make a bridge fit. These reports are research
|
|
913
925
|
evidence and are excluded from the Earth runtime pack.
|
|
914
926
|
|
|
927
|
+
The Earth pack's optional `water-features` document supplies stable rendered elevations for
|
|
928
|
+
selected Protomaps water polygons. The viewer applies the same elevation to every tile that
|
|
929
|
+
contains the feature. A `hideLines` entry removes a redundant terrain-draped ribbon by feature
|
|
930
|
+
ID. Piva Lake and the downstream gorge at Mratinje use separate representative stages from
|
|
931
|
+
the retained terrain. Hosts composing their own renderer can provide `waterFeatureStyle` to
|
|
932
|
+
`createDefaultTerrainSemanticRenderer`. Its `elevation` is the final height in the terrain
|
|
933
|
+
frame, in meters. Unmatched features use the terrain sampler.
|
|
934
|
+
|
|
915
935
|
If `replaceFootprint` is set, mapped buildings are suppressed only once the replacement model
|
|
916
936
|
has loaded; failed models keep the procedural building. At any zoom a polygon goes when at least
|
|
917
937
|
half of it stands on the model's own ground footprint (its triangles stamped on a 64-cell grid).
|
|
@@ -1081,7 +1101,7 @@ geometry and materials are counted once. Procedural scatter uses its separate in
|
|
|
1081
1101
|
| Geometry CPU backing buffers | 64 MB | 192 MB |
|
|
1082
1102
|
| Estimated geometry GPU uploads | 64 MB | 192 MB |
|
|
1083
1103
|
| Shared worldgen textures, including mipmaps | 16 MB | 48 MB |
|
|
1084
|
-
| Triangle / draw-call allowance | 350,000 / 100 | 1,000,000 /
|
|
1104
|
+
| Triangle / draw-call allowance | 350,000 / 100 | 1,000,000 / 400 |
|
|
1085
1105
|
| Concurrent model loads | 2 | 4 |
|
|
1086
1106
|
| Cooperative preparation time per frame | 2 ms | 4 ms |
|
|
1087
1107
|
|
|
@@ -1090,9 +1110,15 @@ overhead. Initial payload limits cover the active skyline set, not lifetime trav
|
|
|
1090
1110
|
pack metadata. Upgrades can download larger files after a one-second skyline grace period.
|
|
1091
1111
|
Draw/triangle admission reserves twice the nominal geometry cost for extra passes; shadows and
|
|
1092
1112
|
other renderer passes have their own costs. Preparation yields between instances; an individual
|
|
1093
|
-
GLB parse or GPU upload can exceed the cooperative time allowance.
|
|
1113
|
+
GLB parse or GPU upload can exceed the cooperative time allowance. Every placement is shown, at
|
|
1114
|
+
least on its skyline: skylines are reserved before detail, so a placement that overruns the
|
|
1115
|
+
allowance moves the farthest detailed landmarks down on the next update rather than being refused.
|
|
1116
|
+
Only drawn instances count: one in a tile hidden in the terrain's warm cache costs nothing until
|
|
1117
|
+
the tile is shown again.
|
|
1094
1118
|
|
|
1095
|
-
Touch devices
|
|
1119
|
+
Touch-first devices (a coarse primary pointer: phones and tablets) or browsers reporting at most
|
|
1120
|
+
4 GB use the phone preset; a laptop with a touch screen keeps the desktop one. Hosts can choose
|
|
1121
|
+
explicitly:
|
|
1096
1122
|
|
|
1097
1123
|
```ts
|
|
1098
1124
|
const view = await mountEarthView({
|
|
@@ -1109,8 +1135,10 @@ const view = await mountEarthView({
|
|
|
1109
1135
|
|
|
1110
1136
|
Runtime variants use separate vertex attribute streams so Float32 positions and Uint8 colors
|
|
1111
1137
|
do not cause overlapping GPU uploads. The reducer preserves source material references on detailed
|
|
1112
|
-
levels; skyline uses a single color material
|
|
1113
|
-
|
|
1138
|
+
levels; skyline uses a single color material. A dense master's skyline is its own surfaces
|
|
1139
|
+
simplified, or local convex pieces where those are closer to the source (convex pieces fill a
|
|
1140
|
+
stadium bowl or a canopy). Small openings and fine trim can disappear in that distant silhouette.
|
|
1141
|
+
Detailed levels use
|
|
1114
1142
|
conservative reduction and can exceed their advisory triangle targets. Expensive models stay
|
|
1115
1143
|
coarse when an upgrade does not fit; source-authored LODs may be needed for more detail on phones.
|
|
1116
1144
|
Geometric error is an estimate for selection, not a certified maximum deviation.
|
|
@@ -147,7 +147,8 @@ where real buildings have it. Avoid both grey-on-grey and candy color.
|
|
|
147
147
|
| Painted wall, siding, render | 60–90% | 15–60% | sage `#a3b78f`, slate blue `#8199b2`, cream `#efe3c4`, butter `#e6cf86` |
|
|
148
148
|
| Urban wall: concrete, panel, limestone | 55–90% | 0–25% | light concrete `#d2cec5`, limestone `#ddd6c6`, cool grey `#b8bfc4`, graphite `#8f9397` |
|
|
149
149
|
| Masonry, brick, timber walls | 45–65% | 25–45% | brick `#a8634b`, sandstone `#c9ab84`, cedar `#a77a54` |
|
|
150
|
-
| Pitched roof (shingle,
|
|
150
|
+
| Pitched roof (shingle, slate, dark tile) | 35–50% | 6–40% | charcoal `#575c62`, brown `#725c49`, moss `#5a6d55`, engobe `#625e5c` |
|
|
151
|
+
| Clay tile roof in sun | 48–63% | 35–55% | terracotta `#c06c48`, pale weathered tile `#d1946f`, northern clay `#a25c48` |
|
|
151
152
|
| Flat roof (membrane, gravel) | 45–90% | 0–12% | white membrane `#e6e6e2`, pale grey `#d3d4d0`, gravel `#b0a693`, dark membrane `#74777b`; mostly pale, a few dark |
|
|
152
153
|
| Trim and frames | 85–95% or 22–30% | 0–30% | white `#f4f1ea`, dark frame `#3b3e42` |
|
|
153
154
|
| Untextured window glass | 35–45% | 20–30% | blue-grey pane `#4d6178` |
|
|
@@ -189,6 +190,12 @@ Palette rules:
|
|
|
189
190
|
lightness points below their walls, so a neighborhood seen from above reads as roofs. Large
|
|
190
191
|
flat roofs are light membranes and gravel, as they are in reality. A pitched style declares
|
|
191
192
|
`materials.flatRoof` so its flat fallback is membrane, not shingle tinted charcoal.
|
|
193
|
+
- **Clay tile is the one light pitched roof.** The tile texture and the roof's own shading draw
|
|
194
|
+
a tinted roof at about six tenths of its palette, so a terracotta inside the pitched band
|
|
195
|
+
(`#a8654a`) reaches the screen as dark red-brown at 28–35% lightness. Sunlit tile in
|
|
196
|
+
photographs of Nafplio and Lisbon measures 43–55% at a hue of 15–23°. Clay tile therefore has
|
|
197
|
+
its own band, above the other pitched roofs and still below the pale walls it sits on, and a
|
|
198
|
+
wider per-building jitter (±0.045 lightness), since a tiled town is mottled and never one tone.
|
|
192
199
|
- **Reserve saturated accents.** Strong saturation belongs to identity: a store's sign band, a
|
|
193
200
|
landmark's signature color, a bus livery, a fire station. Use one accent per object.
|
|
194
201
|
- **Real landmarks use their real colors.** The Tacoma Narrows towers are green and the Golden
|
|
@@ -451,8 +458,14 @@ A style cannot do all of it. A generated street is also held to these:
|
|
|
451
458
|
- **Tops are finished.** A tower ends in a parapet and a plant enclosure or crown and steps back
|
|
452
459
|
where its style declares setbacks. A skyline shows more than one facade rhythm and more than
|
|
453
460
|
one glass tint. A straight extrusion with a bare top is a stand-in.
|
|
461
|
+
- **A building is its region's.** Before a footprint is a shop, a hotel or an unknown, it is
|
|
462
|
+
built of what its town is built of: terracotta over warm render on the Mediterranean, slate
|
|
463
|
+
over brick in Britain, a roof terrace in the Maghreb and South Asia. A use changes a building's
|
|
464
|
+
frontage and its inside; it replaces the building only when the building was made for it.
|
|
454
465
|
- **A row is houses.** A long, narrow residential footprint is divided at its party walls, each
|
|
455
|
-
unit with its own roof, color and chimney, not roofed as one shed.
|
|
466
|
+
unit with its own roof, color and chimney, not roofed as one shed. Houses that share a wall
|
|
467
|
+
have no windows in it, and turn their ridges the way their region's rows do: eaves to the
|
|
468
|
+
street, or a gable to it.
|
|
456
469
|
- **Mapped appearance wins.** Where the map records a roof shape, a wall or roof color or a
|
|
457
470
|
material, use it, clamped to the palette bands.
|
|
458
471
|
- **A building has a plot.** A house sits in a yard with an edge (fence, wall or hedge, by
|
|
@@ -460,7 +473,11 @@ A style cannot do all of it. A generated street is also held to these:
|
|
|
460
473
|
yard and loading doors. Seeded buildings take their density from their mapped neighbors.
|
|
461
474
|
- **Kinds are told apart.** A place of worship, a school, a fuel station, a greenhouse, a
|
|
462
475
|
stadium and a building site each read as what they are from the air. A windowless box is a
|
|
463
|
-
shed or a failure.
|
|
476
|
+
shed or a failure. A place of worship carries its tradition's crown (a dome, a spire, a
|
|
477
|
+
belfry, a minaret, a stepped tower) in its region's own walls and roof.
|
|
478
|
+
- **A pitched town stays pitched.** Where roofs are tile or slate, an irregular plan, a
|
|
479
|
+
courtyard block and a broad hall are roofed too (`roof.fallback: 'hipped'`), not left as flat
|
|
480
|
+
patches among their neighbours.
|
|
464
481
|
|
|
465
482
|
The [worldgen guide](worldgen.md) and the
|
|
466
483
|
[structure library](structure-library.md) cover the archstyle format and the 120 shipped styles.
|
|
@@ -630,8 +647,20 @@ A rain or snow frame is recognizable with its particles turned off.
|
|
|
630
647
|
crown's shell (twenty clusters of four cards up close, six of three at medium distance) around
|
|
631
648
|
a solid core in the crown's own shade, so the outline breaks into sprigs of leaves and the gaps
|
|
632
649
|
show foliage rather than sky. Plants are sized by their foliage, not by the cards' clear
|
|
633
|
-
corners. A distant crown is one faceted volume
|
|
634
|
-
|
|
650
|
+
corners. A distant crown is one faceted volume, drawn opaque. For a broadleaf tree it is drawn
|
|
651
|
+
round the near crown's own clusters and core, on the same trunk (six sides and four rings, 56
|
|
652
|
+
triangles; five sides, three rings and no trunk past the horizon handover), so it stands where
|
|
653
|
+
the near crown stands with its lumps in its outline: one ellipsoid over the tree's whole height
|
|
654
|
+
was a ball on the ground, two fifths larger in view than the tree that replaced it. Such a
|
|
655
|
+
crown is a _foliage mass_ (`SCATTER_MASS_UV` in place of `SCATTER_SOLID_UV`; shrubs' far crowns
|
|
656
|
+
are too), and the scatter material shades it as clumps of leaves rather than a smooth ball:
|
|
657
|
+
clumps about 2.3 m across with sprays a finer size among them, each lit toward its top and
|
|
658
|
+
shaded beneath and where it meets the next, each in its own tone, with a relief that tilts the
|
|
659
|
+
normal so a clump has a sunlit side. Both sizes fade to their mean tone as a pixel grows past
|
|
660
|
+
them, so a far wood neither sparkles nor changes brightness. Its tone and reach are set against
|
|
661
|
+
the near tree's (a solid fills its outline and has no shade between cards, so it is drawn nine
|
|
662
|
+
percent narrower and a little toward gray), measured over six suns and two views: within four
|
|
663
|
+
percent of the near tree's area in view and one percent of its brightness. Clear atlas texels carry the tone of the leaves beside them, so filtering never blends
|
|
635
664
|
a pale rim into a card's cut edge. Cards are for tree crowns only, and only
|
|
636
665
|
through the shared scatter material: no alpha blending, no per-species textures, no cards on
|
|
637
666
|
buildings, fences or ground cover. That material (`createScatterMaterialAsync` from
|
|
@@ -657,6 +686,9 @@ A rain or snow frame is recognizable with its particles turned off.
|
|
|
657
686
|
- **Houses carry their own details.** North American homes have dark shutters, the odd dormer
|
|
658
687
|
and a chimney, and lap-sided homes case their outside corners with trim boards
|
|
659
688
|
(`cornerBoards`), all in the shared trim and roof materials, so they cost vertices but no draws.
|
|
689
|
+
A share of a family's houses has a porch (a step, two posts and a canopy); shutters and doors
|
|
690
|
+
are painted from the family's `paint` colors; chimneys stand only where winters have them, and
|
|
691
|
+
roof terraces carry water tanks or solar heaters as instanced props.
|
|
660
692
|
The High tier's finest tiles budget 900,000 building vertices so a dense suburban block stays
|
|
661
693
|
fully detailed near the camera instead of dropping to simplified stand-ins. On WebGL, which
|
|
662
694
|
pays full price for every building and plant draw, the Earth view and the explorer ask for a
|
|
@@ -59,8 +59,15 @@ not cast additional shadows; walls do not occlude them. Distant lamps keep their
|
|
|
59
59
|
and pavement pools beyond the real-light budget.
|
|
60
60
|
|
|
61
61
|
Traffic lenses remain self-lit in both daytime and nighttime and keep their simulation-driven
|
|
62
|
-
signal phases.
|
|
63
|
-
|
|
62
|
+
signal phases. After dark each lit lens also gets a soft glow in its own color, about a meter
|
|
63
|
+
across, which follows the phase from red to green (`surface:night-signal-glow`, one batch per
|
|
64
|
+
tile). Road signs light up too: their lettered faces fade in with the night factor, street
|
|
65
|
+
names at 85% as lit panels and the other boards at 60%, as retroreflective faces caught by
|
|
66
|
+
lamps and headlights. Each glow (`surface:night-street-names`, `surface:night-road-signs`)
|
|
67
|
+
draws its face mesh's own geometry, so it adds a draw call per tile, not memory; blank sign
|
|
68
|
+
backs and edges are a separate `surface:sign-backs` mesh and stay dark. Mapped props that
|
|
69
|
+
replace inferred fixtures still need their own model lighting metadata; arbitrary tagged model
|
|
70
|
+
lamps currently emit without creating a point light.
|
|
64
71
|
|
|
65
72
|
## Cars
|
|
66
73
|
|
|
@@ -68,7 +68,13 @@ conservative tenancy heuristics, not surveyed lease boundaries.
|
|
|
68
68
|
A single business directly identified by its footprint can color the whole shell. Containment-only
|
|
69
69
|
matches and shared tenants color only their own fascia,
|
|
70
70
|
canopy and entry accents. Existing residential/civic/tall-building styles and floor counts survive
|
|
71
|
-
when a shop is a ground-floor tenant.
|
|
71
|
+
when a shop is a ground-floor tenant. Whether a low building with a business becomes a store
|
|
72
|
+
shell at all depends on its region: North American and Southwest profiles build shops as shells
|
|
73
|
+
wherever they stand, and elsewhere a shop in a row or under flats keeps its region's building
|
|
74
|
+
and gains a frontage, unless it is purpose-built (free-standing on retail land, a catalog chain's
|
|
75
|
+
own building, or 600 m² and more). See
|
|
76
|
+
[rows, shops and places of worship](worldgen.md#rows-shops-and-places-of-worship).
|
|
77
|
+
Measured footprints/heights remain authoritative. Frontage is estimated
|
|
72
78
|
from the POI and nearby access lines; exact entrance location, sign location and tenant width are
|
|
73
79
|
generally absent from the archive.
|
|
74
80
|
|