@bendyline/molen-tooling 0.0.15 → 0.0.17
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 +755 -406
- package/dist/capture/worldgen-preview.js +409 -298
- package/dist/docs-src/guide/3d-art-guidelines.md +15 -9
- package/dist/docs-src/guide/adaptive-performance.md +50 -23
- package/dist/docs-src/guide/aircraft.md +263 -29
- package/dist/docs-src/guide/ambient-life.md +36 -9
- package/dist/docs-src/guide/building-interiors.md +92 -8
- package/dist/docs-src/guide/determinism.md +1 -1
- package/dist/docs-src/guide/earth-view.md +215 -16
- package/dist/docs-src/guide/entities.md +42 -8
- package/dist/docs-src/guide/figures.md +32 -4
- package/dist/docs-src/guide/graphics-performance.md +122 -18
- package/dist/docs-src/guide/livery-catalog.md +137 -1
- package/dist/docs-src/guide/livery-gallery.md +136 -1
- package/dist/docs-src/guide/medium-fi.md +197 -12
- package/dist/docs-src/guide/night-lighting.md +13 -0
- package/dist/docs-src/guide/recognizable-places.md +47 -4
- package/dist/docs-src/guide/regional-fleets.md +27 -5
- package/dist/docs-src/guide/regional-world.md +19 -1
- package/dist/docs-src/guide/rendering-backends.md +28 -4
- package/dist/docs-src/guide/sky.md +28 -2
- package/dist/docs-src/guide/snow.md +231 -0
- package/dist/docs-src/guide/surface-rendering.md +333 -11
- package/dist/docs-src/guide/terrain.md +74 -5
- package/dist/docs-src/guide/typography.md +36 -0
- package/dist/docs-src/guide/vehicle-interiors.md +6 -0
- package/dist/docs-src/guide/vehicles.md +374 -46
- package/dist/docs-src/guide/weather.md +7 -1
- package/dist/docs-src/guide/worldgen.md +82 -3
- package/dist/docs-src/llms.txt +3 -2
- package/dist/docs-src/schemas/README.md +2 -0
- package/dist/docs-src/schemas/components.md +835 -57
- package/dist/docs-src/schemas/figure.md +30 -4
- package/dist/docs-src/schemas/interior-catalog.md +56 -3
- package/dist/docs-src/schemas/map-overrides.md +658 -0
- package/dist/docs-src/schemas/sign-looks.md +174 -0
- package/dist/docs-src/schemas/structure-placement-data.md +195 -0
- package/dist/docs-src/schemas/structure-placements.md +195 -0
- package/dist/docs-src/schemas/worldgen-batch.md +95 -0
- package/dist/templates/city-courier/gen/molen-types.ts +121 -4
- package/dist/templates/city-courier/scripts/molen-scripts.d.ts +120 -3
- package/dist/templates/figures-gallery/test/headless.test.ts +3 -2
- package/dist/templates/index.json +17 -17
- package/dist/templates/skybound/gen/molen-types.ts +121 -4
- package/dist/templates/skybound/scripts/molen-scripts.d.ts +120 -3
- package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +120 -3
- package/dist/templates/top-down-arena/src/gen/molen-types.ts +121 -4
- package/package.json +12 -12
|
@@ -6,7 +6,7 @@ Compare every vehicle’s photo-based liveries side by side, then follow the pho
|
|
|
6
6
|
|
|
7
7
|
## Evidence and scope
|
|
8
8
|
|
|
9
|
-
All
|
|
9
|
+
All 406 choices across 202 vehicle types have linked real-world photographs. Every vehicle has two choices; the F-16B has three. Colors and visible layout were compared with the photographs and the rendered models. These are **photo-based adaptations** (`inspired` provenance), not exact historical or factory replicas.
|
|
10
10
|
|
|
11
11
|
Paint values are visual estimates, not measured paint codes. Camouflage uses approximate masks; complex emblems and small stencils may be omitted. Generic Bendy bodies adapt finishes from the photographed real vehicles. Each entry explains its scope. Source photos are linked for inspection and attribution; they are not shipped as textures.
|
|
12
12
|
|
|
@@ -706,6 +706,24 @@ Type: `molen.entities.aircraft.mig_29a`.
|
|
|
706
706
|
|
|
707
707
|
**Polish 89 gray green camouflage.** Paint study of Polish 89 gray green camouflage. The linked photograph identifies the real aircraft used for the colors; model panel boundaries are adapted. Colors and mask edges are visual approximations. Unlisted lettering, small stencils and complex emblems are omitted; this is a photo-based adaptation, not a certified replica.
|
|
708
708
|
|
|
709
|
+
### North American Rockwell OV-10A Bronco
|
|
710
|
+
|
|
711
|
+
Type: `molen.entities.aircraft.ov_10`.
|
|
712
|
+
|
|
713
|
+
[](https://molen.dev/guide-media/liveries/ov_10.png)
|
|
714
|
+
|
|
715
|
+
| Livery id | Appearance | Photographs |
|
|
716
|
+
| --- | --- | --- |
|
|
717
|
+
| `usmc-vmo-4-gray` | USMC VMO-4 gray | [Photo](https://commons.wikimedia.org/wiki/File:OV-10As_VMO-4_1990.JPEG) |
|
|
718
|
+
| `usaf-21st-tass-green` | USAF 21st TASS dark green | [Photo](https://commons.wikimedia.org/wiki/File:OV-10A_21st_TASS_firing_rockets_1989.JPEG) |
|
|
719
|
+
| `usaf-1985-two-tone-green` | USAF two-tone green | [Photo](https://commons.wikimedia.org/wiki/File:OV-10_Bronco_firing_White_phosphorus.jpg) |
|
|
720
|
+
|
|
721
|
+
**USMC VMO-4 gray.** Paint study of USMC VMO-4 gray. The linked photograph identifies the real aircraft used for the colors; a multi-color camouflage is reduced to its dominant color and model panel boundaries are adapted. Colors are visual approximations. National insignia, unit markings, serials, lettering and stencils are omitted; this is a photo-based adaptation, not a certified replica.
|
|
722
|
+
|
|
723
|
+
**USAF 21st TASS dark green.** Paint study of USAF 21st TASS dark green. The linked photograph identifies the real aircraft used for the colors; a multi-color camouflage is reduced to its dominant color and model panel boundaries are adapted. Colors are visual approximations. National insignia, unit markings, serials, lettering and stencils are omitted; this is a photo-based adaptation, not a certified replica.
|
|
724
|
+
|
|
725
|
+
**USAF two-tone green.** Paint study of USAF two-tone green. The linked photograph identifies the real aircraft used for the colors; a multi-color camouflage is reduced to its dominant color and model panel boundaries are adapted. Colors are visual approximations. National insignia, unit markings, serials, lettering and stencils are omitted; this is a photo-based adaptation, not a certified replica.
|
|
726
|
+
|
|
709
727
|
### OH-6
|
|
710
728
|
|
|
711
729
|
Type: `molen.entities.aircraft.oh6`.
|
|
@@ -2227,6 +2245,19 @@ Type: `molen.entities.vehicle.wuling_hongguang_mini_ev_2025`.
|
|
|
2227
2245
|
|
|
2228
2246
|
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2229
2247
|
|
|
2248
|
+
### Bendy Auto
|
|
2249
|
+
|
|
2250
|
+
Type: `molen.entities.vehicle.auto_rickshaw`.
|
|
2251
|
+
|
|
2252
|
+
[](https://molen.dev/guide-media/liveries/auto_rickshaw.png)
|
|
2253
|
+
|
|
2254
|
+
| Livery id | Appearance | Photographs |
|
|
2255
|
+
| --- | --- | --- |
|
|
2256
|
+
| `delhi-cng` | Delhi CNG green | [Photo](https://commons.wikimedia.org/wiki/File:Auto-rickshaw_in_Delhi.jpeg) |
|
|
2257
|
+
| `mumbai-black` | Mumbai black and yellow | [Photo](https://commons.wikimedia.org/wiki/File:Auto-rickshaw_in_Mumbai_2009-09-26.jpg) |
|
|
2258
|
+
|
|
2259
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2260
|
+
|
|
2230
2261
|
### Bendy Box Truck
|
|
2231
2262
|
|
|
2232
2263
|
Type: `molen.entities.vehicle.box_truck`.
|
|
@@ -2384,6 +2415,19 @@ Type: `molen.entities.vehicle.sedan`.
|
|
|
2384
2415
|
|
|
2385
2416
|
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2386
2417
|
|
|
2418
|
+
### Bendy Sled
|
|
2419
|
+
|
|
2420
|
+
Type: `molen.entities.vehicle.snowmobile`.
|
|
2421
|
+
|
|
2422
|
+
[](https://molen.dev/guide-media/liveries/snowmobile.png)
|
|
2423
|
+
|
|
2424
|
+
| Livery id | Appearance | Photographs |
|
|
2425
|
+
| --- | --- | --- |
|
|
2426
|
+
| `trail-red` | Trail red | [Photo](https://commons.wikimedia.org/wiki/File:Snowmobile_Lynx_Enduro_400.jpg) |
|
|
2427
|
+
| `trail-blue` | Trail blue | [Photo](https://commons.wikimedia.org/wiki/File:Snowmobile.jpg) |
|
|
2428
|
+
|
|
2429
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2430
|
+
|
|
2387
2431
|
### Bendy Sports Coupe
|
|
2388
2432
|
|
|
2389
2433
|
Type: `molen.entities.vehicle.sports_coupe`.
|
|
@@ -2498,6 +2542,45 @@ Type: `molen.entities.cycle.cruiser_motorcycle`.
|
|
|
2498
2542
|
|
|
2499
2543
|
**Heritage red and cream.** Red body and cream tank inset adapted from the pictured Heritage Softail to the Bendy cruiser. The tank panel, body geometry and equipment are simplified; logos and pinstripes are omitted. Paint tones are visual approximations.
|
|
2500
2544
|
|
|
2545
|
+
### Bendy E-Board
|
|
2546
|
+
|
|
2547
|
+
Type: `molen.entities.cycle.electric_skateboard`.
|
|
2548
|
+
|
|
2549
|
+
[](https://molen.dev/guide-media/liveries/electric_skateboard.png)
|
|
2550
|
+
|
|
2551
|
+
| Livery id | Appearance | Photographs |
|
|
2552
|
+
| --- | --- | --- |
|
|
2553
|
+
| `bamboo` | Bamboo | [Photo](https://commons.wikimedia.org/wiki/File:Electric_skateboard_at_TED.jpg) |
|
|
2554
|
+
| `red-stain` | Red stain | [Photo](https://commons.wikimedia.org/wiki/File:Electric_skateboard(800,600,400watt).jpg) |
|
|
2555
|
+
|
|
2556
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2557
|
+
|
|
2558
|
+
### Bendy E-Moped
|
|
2559
|
+
|
|
2560
|
+
Type: `molen.entities.cycle.electric_moped`.
|
|
2561
|
+
|
|
2562
|
+
[](https://molen.dev/guide-media/liveries/electric_moped.png)
|
|
2563
|
+
|
|
2564
|
+
| Livery id | Appearance | Photographs |
|
|
2565
|
+
| --- | --- | --- |
|
|
2566
|
+
| `battery-silver` | Battery scooter silver | [Photo](https://commons.wikimedia.org/wiki/File:Yadea_G5_2023-09-24.jpg) |
|
|
2567
|
+
| `lime-green` | Lime green | [Photo](https://commons.wikimedia.org/wiki/File:Niu_UQi_Sport_Electric_Scooter.jpg) |
|
|
2568
|
+
|
|
2569
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2570
|
+
|
|
2571
|
+
### Bendy Moped
|
|
2572
|
+
|
|
2573
|
+
Type: `molen.entities.cycle.underbone_moped`.
|
|
2574
|
+
|
|
2575
|
+
[](https://molen.dev/guide-media/liveries/underbone_moped.png)
|
|
2576
|
+
|
|
2577
|
+
| Livery id | Appearance | Photographs |
|
|
2578
|
+
| --- | --- | --- |
|
|
2579
|
+
| `step-through-blue` | Step-through blue-grey | [Photo](https://commons.wikimedia.org/wiki/File:Honda_super_cub,_1st_Gen._1958,_Left_side.jpg) |
|
|
2580
|
+
| `commuter-black` | Commuter gloss black | [Photo](https://commons.wikimedia.org/wiki/File:2026_Honda_Wave_110_Special_Edition_(Alloy_Type).jpg) |
|
|
2581
|
+
|
|
2582
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2583
|
+
|
|
2501
2584
|
### Bendy Motorcycle
|
|
2502
2585
|
|
|
2503
2586
|
Type: `molen.entities.cycle.standard_motorcycle`.
|
|
@@ -2537,6 +2620,58 @@ Type: `molen.entities.cycle.motor_scooter`.
|
|
|
2537
2620
|
|
|
2538
2621
|
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2539
2622
|
|
|
2623
|
+
### Bendy Share Scooter
|
|
2624
|
+
|
|
2625
|
+
Type: `molen.entities.cycle.kick_scooter`.
|
|
2626
|
+
|
|
2627
|
+
[](https://molen.dev/guide-media/liveries/kick_scooter.png)
|
|
2628
|
+
|
|
2629
|
+
| Livery id | Appearance | Photographs |
|
|
2630
|
+
| --- | --- | --- |
|
|
2631
|
+
| `black` | Black | [Photo](https://commons.wikimedia.org/wiki/File:Xiaomi_M365_Scooter.jpg) |
|
|
2632
|
+
| `graphite` | Graphite | [Photo](https://commons.wikimedia.org/wiki/File:Elektrische-tretroller.jpg) |
|
|
2633
|
+
|
|
2634
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2635
|
+
|
|
2636
|
+
### Bendy Skateboard
|
|
2637
|
+
|
|
2638
|
+
Type: `molen.entities.cycle.skateboard`.
|
|
2639
|
+
|
|
2640
|
+
[](https://molen.dev/guide-media/liveries/skateboard.png)
|
|
2641
|
+
|
|
2642
|
+
| Livery id | Appearance | Photographs |
|
|
2643
|
+
| --- | --- | --- |
|
|
2644
|
+
| `green-graphic` | Green graphic | [Photo](https://commons.wikimedia.org/wiki/File:Nash_Vintage_60's_Wooden_Deck_Shark_Skateboard.jpg) |
|
|
2645
|
+
| `blue-graphic` | Blue graphic | [Photo](https://commons.wikimedia.org/wiki/File:Street-skateboard.jpg) |
|
|
2646
|
+
|
|
2647
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2648
|
+
|
|
2649
|
+
### Bendy Skis
|
|
2650
|
+
|
|
2651
|
+
Type: `molen.entities.cycle.skis`.
|
|
2652
|
+
|
|
2653
|
+
[](https://molen.dev/guide-media/liveries/skis.png)
|
|
2654
|
+
|
|
2655
|
+
| Livery id | Appearance | Photographs |
|
|
2656
|
+
| --- | --- | --- |
|
|
2657
|
+
| `black-topsheet` | Black topsheet | [Photo](https://commons.wikimedia.org/wiki/File:Rossignol_Experience_88_Ti_Skis.jpg) |
|
|
2658
|
+
| `white-topsheet` | White topsheet | [Photo](https://commons.wikimedia.org/wiki/File:Snowborad_and_ski.jpeg) |
|
|
2659
|
+
|
|
2660
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2661
|
+
|
|
2662
|
+
### Bendy Snowboard
|
|
2663
|
+
|
|
2664
|
+
Type: `molen.entities.cycle.snowboard`.
|
|
2665
|
+
|
|
2666
|
+
[](https://molen.dev/guide-media/liveries/snowboard.png)
|
|
2667
|
+
|
|
2668
|
+
| Livery id | Appearance | Photographs |
|
|
2669
|
+
| --- | --- | --- |
|
|
2670
|
+
| `white-deck` | White deck | [Photo](https://commons.wikimedia.org/wiki/File:White-Snowboard-With-Bindings.jpg) |
|
|
2671
|
+
| `black-deck` | Black deck | [Photo](https://commons.wikimedia.org/wiki/File:Snowboard-In-The-Snow-2008.jpg) |
|
|
2672
|
+
|
|
2673
|
+
Paint colors studied from the linked photograph. The photographed vehicle may differ in year, trim or body style; this recipe adapts its visible finish to the catalog model. Color values are visual approximations, not measured paint codes. Accessories and any advertising in the photograph are not part of the paint recipe.
|
|
2674
|
+
|
|
2540
2675
|
## Transit
|
|
2541
2676
|
|
|
2542
2677
|
### Bendy Bus
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Molen's Earth view draws the real planet at full scale in a browser, with thousands of buildings,
|
|
4
4
|
trees, vehicles and landmarks on screen at once. Its look is **medium-fi**: a bright, polygonal
|
|
5
5
|
model-railroad version of the world. This page sets the standard for every model, building
|
|
6
|
-
style, palette and prop made for it
|
|
6
|
+
style, palette and prop made for it and for the picture they add up to, and ends with the
|
|
7
|
+
reviews an agent runs before submitting either.
|
|
7
8
|
|
|
8
9
|
Medium-fi sits between two looks it avoids. It is not low-fi, meaning voxels, pixel art or bare
|
|
9
10
|
grey boxes. It is not high-fi either: photoreal surfaces, or even the most detail the engine can
|
|
@@ -12,6 +13,11 @@ City. Proportions are realistic, faces are visibly polygonal, and shared texture
|
|
|
12
13
|
a strong sun. Every object reads clearly, the whole frame is coherent, and it holds 60 frames per
|
|
13
14
|
second on ordinary laptops.
|
|
14
15
|
|
|
16
|
+
The technique is that era's; the mood is a model railway layout on a sunny afternoon. Someone
|
|
17
|
+
who opens the Earth view should feel they have found a trainset of the whole world that is
|
|
18
|
+
theirs to play with: true to the place, tidy, warm, legible from any height, and busy with small
|
|
19
|
+
things that move. When a choice is unclear, make the one the layout's builder would have made.
|
|
20
|
+
|
|
15
21
|
## Why medium-fi
|
|
16
22
|
|
|
17
23
|
Three constraints decide the style, and every rule below follows from one of them:
|
|
@@ -44,6 +50,45 @@ Three constraints decide the style, and every rule below follows from one of the
|
|
|
44
50
|
[Rendering modes](#rendering-modes)) change resolution, shadows and level of detail. They
|
|
45
51
|
never change the palette or the style, so every mode looks like the same world.
|
|
46
52
|
|
|
53
|
+
## The picture
|
|
54
|
+
|
|
55
|
+
The five rules govern an asset. These nine govern the frame the assets add up to, at street
|
|
56
|
+
level, from a rooftop and from an airliner. They bind the engine and its content packs as much
|
|
57
|
+
as a model: where the Earth view falls short of one, that is a defect to fix, not something to
|
|
58
|
+
work around inside an asset. A change to light, palette, ground, weather, a distribution or a
|
|
59
|
+
level-of-detail rule is reviewed against them (see [Scene review](#scene-review)).
|
|
60
|
+
|
|
61
|
+
1. **Three values, and no black.** Squint at a daylight frame. It holds light (sky, roofs,
|
|
62
|
+
paving), middle (ground, walls, water) and dark (foliage in shade, glass, cast shadow), each
|
|
63
|
+
in clear shapes. Nothing larger than a car is darker than 8% on screen at noon, and shaded
|
|
64
|
+
ground keeps 40–50% of its sunlit value, so shade still has color.
|
|
65
|
+
2. **Natural hues stay natural.** Watered turf is yellow-green (HSL hue 75–115°), broadleaf
|
|
66
|
+
foliage 85–135°, conifers 115–150°, and sea and lake water 185–215°. Dry grass runs to straw
|
|
67
|
+
and a silted river to olive or brown. No teal lawn, blue-black forest or emerald sea.
|
|
68
|
+
3. **Palettes are albedo.** A color measured from a photograph already holds the shadows of
|
|
69
|
+
everything standing there, the haze above it and the camera's cast, and the engine adds its
|
|
70
|
+
own shadows, haze and tone curve. Convert a measurement to the surface's own color in open
|
|
71
|
+
sun before it becomes a palette entry, and judge it at eye level as well as from above.
|
|
72
|
+
4. **Air gives depth.** Anything deeper than a few hundred meters shows aerial perspective:
|
|
73
|
+
farther is lighter, cooler and lower in contrast, warmer toward the sun, and the horizon
|
|
74
|
+
dissolves into the sky. A skyline never reads as a cut-out.
|
|
75
|
+
5. **One hand.** Sky, clouds, water and weather are drawn in the same simplified, sculpted way
|
|
76
|
+
as the ground. A cumulus has a flat base, a lit top and a shaded side; water is dark below
|
|
77
|
+
the viewer and takes the sky toward the horizon.
|
|
78
|
+
6. **No dead ground.** No surface larger than a hectare is one flat color. A lot has stalls and
|
|
79
|
+
cars, a field has rows, a yard has stacks, a plaza has pavers, and open water has a sky
|
|
80
|
+
gradient and a shore.
|
|
81
|
+
7. **Life within fifty meters.** At street level any view holds a tree, a parked or moving
|
|
82
|
+
vehicle, a piece of street furniture and something with a sign on it. From the air, lots and
|
|
83
|
+
curbs hold cars, water holds boats and rail yards hold trains.
|
|
84
|
+
8. **Distance reads as mass.** Far forest is a canopy, far city is roofs and streets, far fields
|
|
85
|
+
are a patchwork. Separate instances never become speckle. Every level of detail of an object
|
|
86
|
+
has the same average color, so nothing changes value as it comes closer, and a level change
|
|
87
|
+
is cross-faded or happens below notice.
|
|
88
|
+
9. **One calendar, one exposure.** Sun, sky, foliage, lights and weather follow one date and
|
|
89
|
+
time. Exposure follows the light as a camera would: a low sun or an overcast sky gives a
|
|
90
|
+
softer frame, not a darker one. Only twilight and night are dark, and night keeps its shapes.
|
|
91
|
+
|
|
47
92
|
## The look the engine provides
|
|
48
93
|
|
|
49
94
|
Author against the lighting the Earth view actually uses. Both Earth hosts share one rig:
|
|
@@ -61,13 +106,16 @@ exported from `@bendyline/molen-earth/client` as `EARTH_SKY_PALETTE`, `EARTH_LIG
|
|
|
61
106
|
| Haze | The sky's own horizon color, from about 2 km | Distant ground dissolves into the horizon; do not add a fog color of your own |
|
|
62
107
|
| Water | Deep teal `#1b4450` with a soft sky reflection; hosts may tint it per region (Puget Sound near-black navy, Sydney Harbour green-teal) | Water absorbs most light: from above it is far darker than land. Keep ripples legible nearby; fade small wave detail at airplane distance |
|
|
63
108
|
|
|
64
|
-
|
|
109
|
+
Three consequences matter for authoring:
|
|
65
110
|
|
|
66
111
|
- **Walls receive less light than roofs.** Under a high sun a vertical wall gets about half the
|
|
67
112
|
light a roof gets. A wall palette therefore needs to be lighter than the color you want to see.
|
|
68
113
|
- **Shadows do the grounding.** A building, tree or car is seated by its cast shadow. Never fake
|
|
69
114
|
contact shading with a dark gradient or soot band at the base of a model; a foundation is its
|
|
70
115
|
own material, not a shadow.
|
|
116
|
+
- **The sky is part of a smooth material.** Glass, water, wet paving and polished metal show the
|
|
117
|
+
sky dome through the environment map. Give them enough reflectance to carry it: a pane or a
|
|
118
|
+
water surface that relies on its base color alone renders as a dark slab.
|
|
71
119
|
|
|
72
120
|
### Color spaces
|
|
73
121
|
|
|
@@ -103,16 +151,21 @@ where real buildings have it. Avoid both grey-on-grey and candy color.
|
|
|
103
151
|
| Flat roof (membrane, gravel) | 45–90% | 0–12% | white membrane `#e6e6e2`, pale grey `#d3d4d0`, gravel `#b0a693`, dark membrane `#74777b`; mostly pale, a few dark |
|
|
104
152
|
| Trim and frames | 85–95% or 22–30% | 0–30% | white `#f4f1ea`, dark frame `#3b3e42` |
|
|
105
153
|
| Untextured window glass | 35–45% | 20–30% | blue-grey pane `#4d6178` |
|
|
154
|
+
| Glazed facade, as seen in sun | 40–60% | 10–30% | takes the sky: pale blue-grey by day, gold at sunset |
|
|
106
155
|
| Lawn and residential ground | 45–55% | 25–35% | lawn `#8aa065`, grass `#7fa258`, park `#6c9a55` |
|
|
107
|
-
| Paved and commercial ground | 60–70% | 5–12% | paving `#aaa59a
|
|
156
|
+
| Paved and commercial ground | 60–70% | 5–12% | paving `#aaa59a`; sidewalks in this band, curbs up to 75% |
|
|
108
157
|
| Forest floor and conifers | 30–40% | 25–35% | forest `#3c6a3f`, fir `#3e7052` |
|
|
109
158
|
| Asphalt | 35–42% | 0–10% | road `#646766` (near neutral and weathered: from the air streets read mid grey; a bluer gray turns navy in shade, a darker one crushes to black), with markings `#eee9d4` and `#e8bd57` |
|
|
159
|
+
| Open water, below the viewer | 18–35% | 25–50% | deep teal `#1b4450`; lighter near a shore, sky-bright toward the horizon |
|
|
110
160
|
| Identity and wayfinding accents | 35–60% | 55–90% | signal red `#b81d18`, chrome yellow `#e7b52a` |
|
|
111
161
|
|
|
112
|
-
Regional ground palettes in the `molen.ecology` pack
|
|
113
|
-
|
|
114
|
-
45–50% lightness as a warm mid brown, not pale
|
|
115
|
-
|
|
162
|
+
Regional ground palettes in the `molen.ecology` pack are tuned against orthophotos of real
|
|
163
|
+
cities. They move hue and saturation and choose where in a band a surface sits; they do not
|
|
164
|
+
leave the band. Desert and dry soil sits near 45–50% lightness as a warm mid brown, not pale
|
|
165
|
+
sand; Pacific Northwest turf and woodland are deeper and cooler than the generic lawn, at the
|
|
166
|
+
low end of their bands; dense blocks pave over their unmapped ground. An orthophoto is a
|
|
167
|
+
measurement to convert, not a swatch to copy (rule 3 of [the picture](#the-picture)): its
|
|
168
|
+
pixels hold the shadow of every tree and wall, and often a color cast.
|
|
116
169
|
|
|
117
170
|
Palette rules:
|
|
118
171
|
|
|
@@ -126,7 +179,12 @@ Palette rules:
|
|
|
126
179
|
about a tenth of an urban style's weight. Dark red and brown towers read as heavy blocks across
|
|
127
180
|
a whole skyline.
|
|
128
181
|
- **No black and no white on large surfaces.** Large surfaces stay between 22% and 94% lightness.
|
|
129
|
-
A near-black roof reads as a hole in the frame, and a pure white wall blooms in sun.
|
|
182
|
+
A near-black roof reads as a hole in the frame, and a pure white wall blooms in sun. This holds
|
|
183
|
+
for forest, turf, glass and regional ground as much as for walls and roofs; open deep water
|
|
184
|
+
alone may sit at 18%.
|
|
185
|
+
- **Values step in order.** From the air, lightest to darkest: flat roofs and concrete, paving
|
|
186
|
+
and sidewalks, walls, bare ground and turf, pitched roofs, asphalt, foliage, water. Paving is
|
|
187
|
+
never the lightest thing in a frame, and nothing in sun is darker than a cast shadow.
|
|
130
188
|
- **Roofs are darker than walls; flat commercial roofs are lighter.** Pitched roofs sit 15–35
|
|
131
189
|
lightness points below their walls, so a neighborhood seen from above reads as roofs. Large
|
|
132
190
|
flat roofs are light membranes and gravel, as they are in reality. A pitched style declares
|
|
@@ -286,9 +344,17 @@ For an identified real vehicle, the review must compare the actual geometry with
|
|
|
286
344
|
mast, wing roots, glazing corners, roof breaks, intakes and tail junctions. Distinguish
|
|
287
345
|
body length from overall length including rotors, propellers or appendages. Record the
|
|
288
346
|
measurements and discrepancies; do not claim an overlay comparison if none was made.
|
|
347
|
+
Printed drawings are rarely one scale: calibrate each axis from its own dimension bar, trust
|
|
348
|
+
an annotated dimension over a drawn one, and settle a conflict with a matched photograph
|
|
349
|
+
whose camera is solved from landmarks other than the ones being tested.
|
|
289
350
|
3. Correct the silhouette, cross sections, openings and major panel shapes before adding
|
|
290
351
|
rivets, lettering or small controls. Shared generators may supply construction utilities;
|
|
291
352
|
a generic body scaled to published dimensions is not an aircraft-specific airframe.
|
|
353
|
+
Matching length, width and height proves nothing about shape: judge the hood height, belt
|
|
354
|
+
line, roof end, forebody depth and canopy against the body they sit on, in a true-scale
|
|
355
|
+
side-on line-up of the whole class. In the engine repository,
|
|
356
|
+
`packages/entities/scripts/lineup-fleet.mjs` draws one. A part that looks oversized is often
|
|
357
|
+
correct on a body that is undersized, so measure both before changing either.
|
|
292
358
|
4. Compare the operator view and wide cabin with the correct variant's references. Aim for
|
|
293
359
|
overlays of the panel face and cabin sections where drawings exist, and matched-camera
|
|
294
360
|
overlays for photographs. Verify panel outline, depth and tilt, instrument positions and
|
|
@@ -355,8 +421,9 @@ reference and proportion work; Bendy styling is not a substitute for the real ve
|
|
|
355
421
|
- Never bake directional light, shadows, ambient occlusion or dirt gradients into base color.
|
|
356
422
|
- Glass is a dark blue-grey pane with a modest reflection, not a mirror: the shared window graphs
|
|
357
423
|
give frames a satin roughness and panes a smooth one, so the sky reflects in the pane and
|
|
358
|
-
brightens it toward grazing angles.
|
|
359
|
-
|
|
424
|
+
brightens it toward grazing angles.
|
|
425
|
+
- Identity lettering is geometry, vertex color, or letters from the one shared glyph atlas
|
|
426
|
+
(storefront names), never a texture per business.
|
|
360
427
|
- Photographs from research are evidence, not textures, and never ship inside a model.
|
|
361
428
|
|
|
362
429
|
## Procedural buildings that fit any footprint
|
|
@@ -376,6 +443,25 @@ A style is a set of rules applied to arbitrary outlines, so its parts must survi
|
|
|
376
443
|
- **Declare the LOD tiers.** Each style lists which feature groups survive at tiers 0, 1 and 2,
|
|
377
444
|
so distant buildings keep their roof shape and window rhythm after trim and props drop.
|
|
378
445
|
|
|
446
|
+
A style cannot do all of it. A generated street is also held to these:
|
|
447
|
+
|
|
448
|
+
- **Glass takes the sky.** A glazed facade reads as a sky-colored middle value, never as a dark
|
|
449
|
+
slab. Panes reflect the sky dome, and the flat levels used at distance carry the pane's
|
|
450
|
+
on-screen average rather than its base color, so a tower holds its value at every distance.
|
|
451
|
+
- **Tops are finished.** A tower ends in a parapet and a plant enclosure or crown and steps back
|
|
452
|
+
where its style declares setbacks. A skyline shows more than one facade rhythm and more than
|
|
453
|
+
one glass tint. A straight extrusion with a bare top is a stand-in.
|
|
454
|
+
- **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.
|
|
456
|
+
- **Mapped appearance wins.** Where the map records a roof shape, a wall or roof color or a
|
|
457
|
+
material, use it, clamped to the palette bands.
|
|
458
|
+
- **A building has a plot.** A house sits in a yard with an edge (fence, wall or hedge, by
|
|
459
|
+
region), a way in and something growing. A shop sits on paving with parking; a warehouse has a
|
|
460
|
+
yard and loading doors. Seeded buildings take their density from their mapped neighbors.
|
|
461
|
+
- **Kinds are told apart.** A place of worship, a school, a fuel station, a greenhouse, a
|
|
462
|
+
stadium and a building site each read as what they are from the air. A windowless box is a
|
|
463
|
+
shed or a failure.
|
|
464
|
+
|
|
379
465
|
The [worldgen guide](worldgen.md) and the
|
|
380
466
|
[structure library](structure-library.md) cover the archstyle format and the 120 shipped styles.
|
|
381
467
|
|
|
@@ -471,6 +557,60 @@ instead of ending on a ruled line: grass blades and tufts of lawn over cast pavi
|
|
|
471
557
|
10 cm edge on dirt and gravel. See
|
|
472
558
|
[surface rendering](surface-rendering.md).
|
|
473
559
|
|
|
560
|
+
Variation is felt, not seen. Patch edges are gradual and patch contrast stays within about ±6%,
|
|
561
|
+
so ground detail never reads as camouflage, craters or stripes from a few hundred meters up.
|
|
562
|
+
|
|
563
|
+
## Streets, lots and yards
|
|
564
|
+
|
|
565
|
+
Roads, parking and the ground around buildings cover more of a city than its buildings do, so
|
|
566
|
+
they carry the trainset as much as any model.
|
|
567
|
+
|
|
568
|
+
- **A street has a section.** From the centerline out: lanes, a curb, a planting strip with
|
|
569
|
+
trees where the region plants them, a sidewalk, then a yard edge or a building front.
|
|
570
|
+
Arterials carry lane paint; residential streets carry parked cars instead.
|
|
571
|
+
- **Paving is quiet.** Sidewalks sit at 62–70% lightness and curbs no higher than 75%, so roofs,
|
|
572
|
+
not paving, are the lightest things from the air. Markings appear at the size they are painted
|
|
573
|
+
and fade before they fall under a pixel. Distant streets stay asphalt grey.
|
|
574
|
+
- **A lot is used.** Stall paint, cars at an occupancy that fits the use and the hour, end
|
|
575
|
+
islands with a tree, and lamp standards. Beyond a few hundred meters cars become color
|
|
576
|
+
patches, never nothing.
|
|
577
|
+
- **Land shows its use.** A container terminal has stacks and cranes, an industrial yard has
|
|
578
|
+
trailers, a field has rows in the direction it is worked, a pitch has its lines and a cemetery
|
|
579
|
+
its stones.
|
|
580
|
+
- **Shores are built or natural.** Sand with a foam line, a capped seawall, or a bank with rock
|
|
581
|
+
or reeds; never a cut edge.
|
|
582
|
+
- **Pavement sits on its ground.** On a slope, bands follow one smoothed surface and stay joined
|
|
583
|
+
at their edges. A gap that shows soil, or a sidewalk that tilts away from its curb, is a defect
|
|
584
|
+
at any distance a walker can reach.
|
|
585
|
+
|
|
586
|
+
## Sky, haze and water
|
|
587
|
+
|
|
588
|
+
- **Haze** starts within a few hundred meters and thickens smoothly: a few percent at 500 m,
|
|
589
|
+
about 15% at 2 km and half at 8 km on a clear day, thinner with height so ridges stand above
|
|
590
|
+
valleys. It takes the sky's color in the direction of view, warmer toward the sun. Weather
|
|
591
|
+
shortens it.
|
|
592
|
+
- **Clouds** are sculpted: flat bases at one altitude, billowed tops, grey beneath and bright
|
|
593
|
+
where the sun strikes. They shade the ground where the mode allows, and look as deliberate
|
|
594
|
+
from above as from below. A smooth lens or a white pad is unfinished.
|
|
595
|
+
- **Water** is the largest surface in most famous views. Under the viewer it is deep and clear
|
|
596
|
+
in its regional color. Toward the horizon it takes the sky, and at sunset the sunset. Within a
|
|
597
|
+
few meters of a shore it lightens, and ocean beaches carry a foam line. Ponds, moats and
|
|
598
|
+
pools are lighter than open water. Ripples never show their repeat, and the sun's path is a
|
|
599
|
+
soft lobe, not sparkle.
|
|
600
|
+
|
|
601
|
+
## Night and weather
|
|
602
|
+
|
|
603
|
+
- **Night keeps its shapes.** The sky's floor is a deep blue that leaves roofs, roads and water
|
|
604
|
+
readable as dark shapes. Lights are warm and stay below white. Windows light pane by pane,
|
|
605
|
+
street lamps throw soft pools, and every lit street in view is a string of points, so a city
|
|
606
|
+
seen from the air is its grid.
|
|
607
|
+
- **Overcast is soft, not dim.** Exposure holds and shadows go.
|
|
608
|
+
- **Rain wets the ground.** Paving darkens and smooths, so lamps and signals streak on it.
|
|
609
|
+
- **Snow settles.** Up-facing ground, roofs and crowns whiten; ploughed roads stay darker.
|
|
610
|
+
- **Fog** shortens the haze and greys it. It makes a frame quieter, never emptier.
|
|
611
|
+
|
|
612
|
+
A rain or snow frame is recognizable with its particles turned off.
|
|
613
|
+
|
|
474
614
|
## Vehicles, aircraft, trees and figures
|
|
475
615
|
|
|
476
616
|
- **Controllable vehicles require close detail.** Follow the close-view vehicle standard above:
|
|
@@ -539,14 +679,20 @@ modes. Every mode keeps the same palette and style; only cost changes.
|
|
|
539
679
|
| High | High, Ultra | 100–125% scale, ≤ 4 megapixels | High | Full detail, 1.5–2 px error | Discrete GPUs and capture |
|
|
540
680
|
|
|
541
681
|
Economy has no cast shadows, so it must still look good without them. That is one more reason to
|
|
542
|
-
keep roofs darker than walls and to avoid baked shading.
|
|
682
|
+
keep roofs darker than walls and to avoid baked shading. The reverse holds too: High, with its
|
|
683
|
+
shadows, is never harder to read than Economy.
|
|
684
|
+
|
|
685
|
+
Every mode shows the same things. Parked cars, street trees, lot paint and night lights step
|
|
686
|
+
down to cheaper forms with the mode; they do not disappear. A lot that holds cars at High holds
|
|
687
|
+
color patches at Economy. Hosts choose a fixed mode with
|
|
543
688
|
`quality: 'economy' | 'balanced' | 'high'`, or let `'auto'` adapt; see
|
|
544
689
|
[adaptive rendering performance](adaptive-performance.md).
|
|
545
690
|
|
|
546
691
|
## Review before submitting
|
|
547
692
|
|
|
548
693
|
Run this review for every new or changed model, style or palette. A successful build is not a
|
|
549
|
-
visual approval.
|
|
694
|
+
visual approval. A change that touches the scene as a whole also runs the
|
|
695
|
+
[scene review](#scene-review).
|
|
550
696
|
|
|
551
697
|
Perform these checks during the same continuous pass that builds the model. Reuse the brief,
|
|
552
698
|
reference pictures and map fit already established; do not restart research in a separate
|
|
@@ -581,6 +727,45 @@ npx molen figure preview --preset human.adult --angles review --out figure.png
|
|
|
581
727
|
In the engine repository, the World Explorer is the reference scene. Its structure sheet renders
|
|
582
728
|
all 120 styles under the same light, `node examples/world-explorer/scripts/capture-structure-sheet.mjs`.
|
|
583
729
|
|
|
730
|
+
### Scene review
|
|
731
|
+
|
|
732
|
+
Run this for a change to light, exposure, haze, sky, water or weather, to a ground or regional
|
|
733
|
+
palette, to a distribution (trees, cars, seeded buildings) or to a level-of-detail rule. It
|
|
734
|
+
judges whole frames against [the picture](#the-picture), in every region the host ships, and it
|
|
735
|
+
compares the same poses before and after.
|
|
736
|
+
|
|
737
|
+
| View | Height above ground | What it tests |
|
|
738
|
+
| --- | --- | --- |
|
|
739
|
+
| Street | Eye level, on a sidewalk | Life within fifty meters, shade, glass, paving |
|
|
740
|
+
| Rooftop | 100–200 m, along a street | Tower tops, lots, street trees, level changes |
|
|
741
|
+
| Low aerial | 300–500 m, looking 20–30° down | Values, dead ground, yards, water and shore |
|
|
742
|
+
| Airliner | 5–8 km | Distance as mass, haze, clouds from above |
|
|
743
|
+
|
|
744
|
+
Take each view at clear noon. Take the low aerial also an hour after sunrise, at sunset, at
|
|
745
|
+
midnight, and under overcast, rain and snow. Take the street and the low aerial at Economy as
|
|
746
|
+
well as High. Wait until nothing is still loading: an incomplete frame is a failed capture, not
|
|
747
|
+
evidence.
|
|
748
|
+
|
|
749
|
+
1. **Squint.** Blur the frame or view it 320 pixels wide. Three values in clear shapes, nothing
|
|
750
|
+
black, and the subject still obvious.
|
|
751
|
+
2. **Grey.** In greyscale, roofs, ground, foliage and water are still told apart.
|
|
752
|
+
3. **Floor and ceiling.** Sample the darkest and lightest large regions: none under 8% or over
|
|
753
|
+
94% on screen at noon.
|
|
754
|
+
4. **Hue.** Sample sunlit turf, a conifer, a broadleaf crown and open water against the ranges
|
|
755
|
+
in rule 2.
|
|
756
|
+
5. **Depth.** The farthest third of the frame is lighter and lower in contrast than the nearest.
|
|
757
|
+
6. **Dead ground.** Find the largest flat, single-color surface. Over a hectare, it fails.
|
|
758
|
+
7. **Life.** In the street view, find a tree, a vehicle, a piece of furniture and a sign.
|
|
759
|
+
8. **Levels.** Fly the rooftop pose toward its subject. No object changes value, and no level
|
|
760
|
+
change draws the eye.
|
|
761
|
+
9. **Light.** The morning, overcast and noon frames have the same overall brightness. The night
|
|
762
|
+
frame shows the street grid, the shoreline and the skyline.
|
|
763
|
+
10. **Cost.** Record draws, triangles and resident geometry on the same pose before and after,
|
|
764
|
+
in each mode. A visual gain is not paid for with a slower mode.
|
|
765
|
+
|
|
766
|
+
A region passes on its own frames. A palette that scores well against an orthophoto and fails
|
|
767
|
+
the street view has not passed.
|
|
768
|
+
|
|
584
769
|
## Read next
|
|
585
770
|
|
|
586
771
|
- [3D art guidelines](3d-art-guidelines.md): scale, pivots, the material library and review captures
|
|
@@ -43,6 +43,9 @@ materials are retained.
|
|
|
43
43
|
|
|
44
44
|
Modern surfaces place lamps along paved streets with sidewalks and at intersections. Placement
|
|
45
45
|
is bounded, terrain-aware and avoids mapped buildings and water. Long blocks get fixtures at roughly 28 m intervals, alternating sides.
|
|
46
|
+
Arterials (motorways, trunk and primary roads, and any road of four or more lanes) get 7.4 m
|
|
47
|
+
mast arms whose heads hang over the carriageway; other streets get 5 m post-top lanterns at the
|
|
48
|
+
curb. A corner lamp is a mast arm when any road at its junction is an arterial.
|
|
46
49
|
Bridges, tunnels and unpaved roads do not receive inferred block lighting. Explicit
|
|
47
50
|
`tags.lit: "no"` disables block lamps. The existing surface style and `details.streetlights`
|
|
48
51
|
control whether fixtures are generated; historic and unlit styles keep their own choices.
|
|
@@ -69,6 +72,16 @@ Each beam starts at its headlight lens and softly lights the road immediately ah
|
|
|
69
72
|
Their beams illuminate pavement, walls and vehicles ahead. Parked, unoccupied cars keep their
|
|
70
73
|
lamps off and receive light from their surroundings. Hidden/despawned traffic loses its lights.
|
|
71
74
|
|
|
75
|
+
A driven vehicle whose type has a `headlights` actuator (**L** in the Earth view and World
|
|
76
|
+
Explorer) lights its beams only while that switch is on, and then also at dusk and by day, at a
|
|
77
|
+
little over a third of their night strength. Its own model shows the lit lenses. A driven vehicle
|
|
78
|
+
without that actuator, such as a bicycle, lights up at dusk like traffic.
|
|
79
|
+
|
|
80
|
+
Lenses and beams come from `vehicle.spec.headlamps` when a type gives it: model-space lens
|
|
81
|
+
centres, at most two, so a single-lamp auto-rickshaw or scooter casts one beam from its real lamp.
|
|
82
|
+
An empty list (a skateboard) lights nothing. Without it, a pair is placed from the body's width,
|
|
83
|
+
height and length.
|
|
84
|
+
|
|
72
85
|
Traffic lenses are two instanced batches, capped at 512 cars, and all artificial lighting fades
|
|
73
86
|
out at dawn. No light changes the deterministic simulation.
|
|
74
87
|
|
|
@@ -9,12 +9,38 @@ the archive's zoom-15 tiles.
|
|
|
9
9
|
## Identity library
|
|
10
10
|
|
|
11
11
|
The Earth catalog recognizes **44 mapped source businesses** by exact aliases and verified source
|
|
12
|
-
IDs. Each match selects a
|
|
13
|
-
Walmart maps to `sign.mart_store`, Taco Bell maps to `sign.taco_place`, Best Buy maps to
|
|
12
|
+
IDs. Each match selects a descriptor model, the sign a place shows when it has no name to show: for
|
|
13
|
+
example, Walmart maps to `sign.mart_store`, Taco Bell maps to `sign.taco_place`, Best Buy maps to
|
|
14
14
|
`sign.electronics_store`, and The Home Depot maps to `sign.hardware_store`. The
|
|
15
15
|
[retail catalog](https://github.com/bendyline/molen/blob/main/content/earth/businesses/README.md) documents the
|
|
16
16
|
source data and mapping policy.
|
|
17
17
|
|
|
18
|
+
## Names on signs
|
|
19
|
+
|
|
20
|
+
A storefront sign shows the name the map gives its place, so a street reads as its real
|
|
21
|
+
counterpart does: Thai Tom and Samir's Mediterranean Grill on Seattle's University Way, スターバックス
|
|
22
|
+
and 大垣書店 on Kyoto's Karasuma-dori.
|
|
23
|
+
|
|
24
|
+
- **One name per chain.** A business the catalog recognizes shows the same name on every branch:
|
|
25
|
+
its first alias, or the alias the map wrote in another script. Its plate, letters and accent band
|
|
26
|
+
take its descriptor sign's palette (white on red for Safeway, green for Starbucks), never a logo,
|
|
27
|
+
emblem, wordmark or brand typeface.
|
|
28
|
+
- **Its own name for everything else.** A place the catalog does not know shows its mapped name,
|
|
29
|
+
cleaned of store numbers, a trailing parenthesized branch (`(Downtown)`) and decorative symbols.
|
|
30
|
+
It takes a look from its category's family in the
|
|
31
|
+
[sign looks](https://github.com/bendyline/molen/blob/main/content/earth/businesses/sign-looks.json)
|
|
32
|
+
(`molen/sign-looks@1`), picked by the name, so every branch of a local chain matches.
|
|
33
|
+
- **Fallbacks.** A name the loaded faces cannot set falls back to the map's English name, then to
|
|
34
|
+
the descriptor sign. So does a place without a name, and every place when the host passes
|
|
35
|
+
`signNames: 'generic'`.
|
|
36
|
+
|
|
37
|
+
Names are set from glyph atlases (see [Fonts and lettering](typography.md#glyph-atlases)): the Earth
|
|
38
|
+
pack's Latin faces, plus any region pack that adds its scripts, such as the Kyoto pack's Japanese.
|
|
39
|
+
A tile's named signs are one mesh, two triangles a letter, drawn with one shared texture and
|
|
40
|
+
material: on Seattle's University Way the 149 storefronts of one tile are 5,322 triangles, where
|
|
41
|
+
their descriptor models were 59,233. Letters are drawn while they are a few pixels tall and plates
|
|
42
|
+
until they are under two, then neither.
|
|
43
|
+
|
|
18
44
|
Nine generic treatments cover grocery, restaurant, cafe, pharmacy, shop, department store, shopping
|
|
19
45
|
mall, outlet center and strip mall. These also support unnamed points with known categories.
|
|
20
46
|
Unknown identities keep the normal architectural fallback. This is a stylized descriptor library,
|
|
@@ -72,7 +98,8 @@ stores, enclosed malls, strip malls and outlet centers. Broad frontages raise an
|
|
|
72
98
|
fascia to remain readable on taller shells; source heights and floor counts still win. The building
|
|
73
99
|
generator adapts that treatment to a measured footprint; this is not a fixed building mesh.
|
|
74
100
|
Mapped-business descriptors use `symbol: "letters"` with initials derived from their generic
|
|
75
|
-
titles. Source recognition stays in the Earth catalog
|
|
101
|
+
titles. Source recognition stays in the Earth catalog and the descriptor models stay generic; the
|
|
102
|
+
names a sign shows come from the map, set as described in [Names on signs](#names-on-signs).
|
|
76
103
|
Furniture uses `generator: "boxes"` with ordered
|
|
77
104
|
metric parts and optional detail tiers (0 near, 1 medium, 2 distant).
|
|
78
105
|
|
|
@@ -85,6 +112,13 @@ only data crosses the Worker boundary. Without `places`, mapped businesses are n
|
|
|
85
112
|
no street furniture is placed. Rendering cache keys include both content hashes, so palette and
|
|
86
113
|
recipe changes invalidate cached terrain render output.
|
|
87
114
|
|
|
115
|
+
To show names, add `signLooks` (the Earth pack's `sign-looks` document) and `glyphs` (every open
|
|
116
|
+
pack's `glyph-atlas` documents, the Earth pack's first); `signNames: 'generic'` leaves them off.
|
|
117
|
+
The renderers then need a `signMaterial`: `createSignMaterialAsync(backend, texture,
|
|
118
|
+
range)` from `@bendyline/molen-worldgen/client`, over `createSignAtlasTexture` of the atlas pages.
|
|
119
|
+
`loadEarthContent` and the Earth view do all of this: the content's `signAtlas()` reads the pages,
|
|
120
|
+
and the view's `signNames` option turns names off.
|
|
121
|
+
|
|
88
122
|
Landmarks alone are `createLandmarkLibrary({ catalog, models })` from
|
|
89
123
|
`@bendyline/molen-worldgen/kernel`, or `resolveLandmarkCatalogDocuments(catalog, readDocument)` for
|
|
90
124
|
just the definitions; pass definitions to `generateLandmarkModel(id, definitions, tier)` or
|
|
@@ -120,7 +154,10 @@ The engine uses generic `BuildingRequest.appearance` and `storefronts` fields; g
|
|
|
120
154
|
and category matching stay in the Earth adapter. Custom scenes can supply those same fields through
|
|
121
155
|
`worldgenBuilding`. Each storefront supplies an identity, local anchor, accent, model reference,
|
|
122
156
|
optional native sign size, and desired width. Canonical signs are 4 × 1.35 m, front +Z, base Y=0.
|
|
123
|
-
Signs and outdoor objects use shared instanced geometry and a shared vertex-color material.
|
|
157
|
+
Signs and outdoor objects use shared instanced geometry and a shared vertex-color material. A
|
|
158
|
+
storefront may also carry a `sign` (text, plate, ink, optional band, font role, letter spacing):
|
|
159
|
+
with a glyph atlas set on the batch (`glyphs`), it is set as a name in the batch's sign mesh
|
|
160
|
+
(`WorldgenBatchOutput.signs`); without one, or when the atlas lacks a letter, the sign model shows.
|
|
124
161
|
|
|
125
162
|
## Mapped outdoor objects
|
|
126
163
|
|
|
@@ -131,6 +168,12 @@ are ground-fitted, deduplicated and budgeted before procedural scatter.
|
|
|
131
168
|
|
|
132
169
|
When the source supplies them, tree height/crown diameter/leaf type, lamp height, numeric direction,
|
|
133
170
|
and bike-parking capacity influence the model. Missing dimensions use conservative defaults.
|
|
171
|
+
Without a mapped direction, a lamp faces the nearest street within 18 m, even where a sidewalk
|
|
172
|
+
mapped as its own line runs closer (a lamp in the planting strip has that sidewalk behind it);
|
|
173
|
+
with no street in reach it faces the nearest path. Motorways, trunk and primary roads and roads
|
|
174
|
+
of four or more lanes keep the mast-arm `street_lamp`, reaching over their traffic; other
|
|
175
|
+
streets, paths and plazas get the post-top `street_lamp.post` where the library holds it. A
|
|
176
|
+
mapped lamp height scales the arm's 7.2 m pole or the post's 4.8 m.
|
|
134
177
|
A charging POI denotes a station, so the renderer places a representative pedestal rather than
|
|
135
178
|
inventing a surveyed bank of connectors. The library includes a red/white fast-charger variant.
|
|
136
179
|
|