@bendyline/molen-tooling 0.0.10 → 0.0.12
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 +610 -271
- package/dist/capture/worldgen-preview.js +396 -298
- package/dist/cli.mjs +2 -2
- package/dist/docs-src/guide/3d-art-guidelines.md +34 -10
- package/dist/docs-src/guide/3d-model-assets.md +40 -2
- package/dist/docs-src/guide/adaptive-performance.md +12 -4
- package/dist/docs-src/guide/aircraft.md +126 -26
- package/dist/docs-src/guide/ambient-life.md +13 -4
- package/dist/docs-src/guide/audio.md +19 -5
- package/dist/docs-src/guide/building-interiors.md +7 -2
- package/dist/docs-src/guide/determinism.md +1 -1
- package/dist/docs-src/guide/dioramas.md +6 -0
- package/dist/docs-src/guide/earth-view.md +121 -20
- package/dist/docs-src/guide/entities.md +84 -5
- package/dist/docs-src/guide/figures.md +31 -7
- package/dist/docs-src/guide/graphics-performance.md +27 -12
- package/dist/docs-src/guide/medium-fi.md +269 -25
- package/dist/docs-src/guide/navigation.md +5 -2
- package/dist/docs-src/guide/project.md +5 -0
- package/dist/docs-src/guide/recognizable-places.md +6 -0
- package/dist/docs-src/guide/regional-fleets.md +94 -0
- package/dist/docs-src/guide/regional-world.md +398 -0
- package/dist/docs-src/guide/sky.md +36 -3
- package/dist/docs-src/guide/structure-library.md +4 -1
- package/dist/docs-src/guide/surface-rendering.md +264 -2
- package/dist/docs-src/guide/terrain.md +5 -0
- package/dist/docs-src/guide/typography.md +105 -0
- package/dist/docs-src/guide/vehicle-interiors.md +169 -9
- package/dist/docs-src/guide/vehicles.md +13 -2
- package/dist/docs-src/guide/weather.md +15 -8
- package/dist/docs-src/guide/worldgen.md +88 -10
- package/dist/docs-src/llms.txt +5 -1
- package/dist/docs-src/schemas/README.md +6 -0
- package/dist/docs-src/schemas/archstyle.md +66 -0
- package/dist/docs-src/schemas/components.md +1087 -66
- package/dist/docs-src/schemas/ecology-atlas.md +236 -0
- package/dist/docs-src/schemas/fleet-catalog.md +113 -0
- package/dist/docs-src/schemas/landmark.md +10 -0
- package/dist/docs-src/schemas/matgraph.md +11 -1
- package/dist/docs-src/schemas/pack-source.md +11 -1
- package/dist/docs-src/schemas/pack.md +1 -1
- package/dist/docs-src/schemas/project.md +1 -1
- package/dist/docs-src/schemas/region-atlas.md +6 -0
- package/dist/docs-src/schemas/regional-catalog.md +1436 -0
- package/dist/docs-src/schemas/scatter.md +110 -4
- package/dist/docs-src/schemas/structure-placement-data.md +662 -0
- package/dist/docs-src/schemas/structure-placement-index.md +87 -0
- package/dist/docs-src/schemas/structure-placements.md +183 -0
- package/dist/docs-src/schemas/terrain-package.md +41 -0
- package/dist/docs-src/schemas/transport-network.md +8 -0
- package/dist/docs-src/schemas/types.md +1 -1
- package/dist/docs-src/schemas/wildlife-ranges.md +251 -0
- package/dist/docs-src/schemas/worldgen-batch.md +61 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +1 -1
- package/dist/{mcp-BbxqqnD1.mjs → mcp-BXaK46X-.mjs} +1 -1
- package/dist/{ops-b4Pag8U-.mjs → ops-Cm7WNvb9.mjs} +55 -22
- package/dist/templates/city-courier/gen/molen-types.ts +138 -17
- package/dist/templates/city-courier/scripts/molen-scripts.d.ts +138 -17
- package/dist/templates/figures-gallery/test/headless.test.ts +2 -1
- package/dist/templates/index.json +17 -17
- package/dist/templates/skybound/gen/molen-types.ts +138 -17
- package/dist/templates/skybound/scripts/molen-scripts.d.ts +138 -17
- package/dist/templates/top-down-arena/scripts/molen-scripts.d.ts +138 -17
- package/dist/templates/top-down-arena/src/gen/molen-types.ts +138 -17
- package/package.json +13 -13
|
@@ -32,8 +32,9 @@ Sources use explicit path segments, not JavaScript expressions or dot-split stri
|
|
|
32
32
|
on the same entity; numbers are passed through, booleans become 0/1, and missing/nonfinite values
|
|
33
33
|
are ignored. Declare custom components such as `avionics` in the scene or type registry;
|
|
34
34
|
deterministic entity scripts can publish calculated RPM, sensor values, or switch positions to
|
|
35
|
-
them. Unit conversions and instrument calibration belong in the asset's
|
|
36
|
-
|
|
35
|
+
them. Unit conversions and instrument calibration belong in the asset's derived signals and
|
|
36
|
+
bindings; simulated systems belong in deterministic scripts or kernel code. Render bindings
|
|
37
|
+
never write back to physics.
|
|
37
38
|
|
|
38
39
|
Bindings receive the latest values even if the GLB finishes loading later. Replacing/removing
|
|
39
40
|
bindings restores their authored transforms. Signal-driven models stay out of static mesh
|
|
@@ -43,8 +44,9 @@ the same channel to multiple systems. Other clip channels keep animating normall
|
|
|
43
44
|
Custom hosts can use `createModelSignalVisual(model, spec)` and `readModelSignals(sources,
|
|
44
45
|
readComponent)` from `@bendyline/molen-client`. `update(signals)` accepts arbitrary named numeric
|
|
45
46
|
telemetry, `reset()` restores the authored pose, and `missingNodes` diagnoses unresolved names.
|
|
46
|
-
This
|
|
47
|
-
text
|
|
47
|
+
This supports analog gauges, tapes, levers, moving parts, visibility flags and model-owned
|
|
48
|
+
seven-segment readouts. General text layout, changing emissive intensity and render-to-texture
|
|
49
|
+
avionics screens are separate capabilities.
|
|
48
50
|
|
|
49
51
|
## Source ownership
|
|
50
52
|
|
|
@@ -54,9 +56,38 @@ and horizon placement) and `models/interior.mjs` (their local cockpit builder).
|
|
|
54
56
|
`models/generate.mjs` includes that cockpit in the main GLB. Each aircraft can change its
|
|
55
57
|
layout and builder independently. All of these files are inventoried by `source.json`.
|
|
56
58
|
|
|
57
|
-
The
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
The controllable fleet has model-owned interiors for road vehicles, RVs, cycles, boats, transit
|
|
60
|
+
and aircraft. Road dashboard profiles live in `content/entities/source/interiors.json`; the
|
|
61
|
+
authoring helpers in `packages/entities/scripts/vehicle-interiors.mjs` build them into the main
|
|
62
|
+
GLB. Profiles specify the dashboard generation, instrument arrangement, vents, selector,
|
|
63
|
+
steering wheel and trim. MINI's central speedometer, Audi TT's driver-only display, Tesla's
|
|
64
|
+
single center screen and commercial-vehicle controls are separate layouts. The five original
|
|
65
|
+
editable road masters stay intact; `detailed.glb` removes their solid cabin infill and adds
|
|
66
|
+
new seats, enclosed footwells and the authored dashboard while preserving the exterior skin.
|
|
67
|
+
There is no dashboard fabricated by the runtime and no reference-photo download in the client.
|
|
68
|
+
|
|
69
|
+
Photo citations, authors, exact licenses, generation/trim caveats and unfilled reference gaps
|
|
70
|
+
are recorded in `content/entities/source/interior-references.json` and its adjacent
|
|
71
|
+
`INTERIORS.md`. Prefer a correctly matched CC0/public-domain photo; CC BY and CC BY-SA are
|
|
72
|
+
acceptable research references with recorded attribution. Never infer a photo's license from
|
|
73
|
+
the Commons site's metadata license, and never treat open source as a blanket license grant.
|
|
74
|
+
These models use original polygon geometry rather than photo textures. Embedding a photo or
|
|
75
|
+
an adaptation later requires handling that image's attribution and, where applicable,
|
|
76
|
+
ShareAlike terms separately from the software license.
|
|
77
|
+
|
|
78
|
+
Check both the exact seated camera and a wider, downward-looking cabin view. The former proves
|
|
79
|
+
sightlines; the latter exposes center-stack, console, door-card and control placement. Leave
|
|
80
|
+
daylight through real glazing, preserve animated pivots, and keep abstract display graphics
|
|
81
|
+
distinct from live telemetry. A named model is a generation-informed approximation, not a
|
|
82
|
+
certified trim-level reproduction; steering side remains the existing fleet convention.
|
|
83
|
+
|
|
84
|
+
Apply the [vehicle reference overlay goal](medium-fi.md#vehicle-reference-overlays) to the
|
|
85
|
+
interior independently of the exterior. Overlay panel drawings and cabin sections with matching
|
|
86
|
+
orthographic renders where available; match camera pose and field of view for cockpit photos.
|
|
87
|
+
Verify the panel outline, tilt and depth, windshield pillars, console, seats and control reach
|
|
88
|
+
before adding labels and small switches. Record calibration and differences, including unknown
|
|
89
|
+
depths or variant mismatches. If suitable interior references cannot be found, document the
|
|
90
|
+
search and mark the affected geometry as approximate; do not infer approval from exterior QA.
|
|
60
91
|
|
|
61
92
|
Aircraft generators accept `--out /path/to/candidate.glb` for reviewing changes without
|
|
62
93
|
overwriting the master or baseline. Import an approved master with `molen asset import`, update
|
|
@@ -86,15 +117,30 @@ the source manifest hash, and run the entity package's `generate` command for ag
|
|
|
86
117
|
|
|
87
118
|
Bindings add `clamp(signal * scale + offset, min, max)` to a node's authored local transform.
|
|
88
119
|
`rotation` uses radians; `position` uses meters (useful for tapes and levers). Limits are optional.
|
|
89
|
-
Repeated updates do not accumulate movement. Missing/nonfinite signals
|
|
120
|
+
Repeated updates do not accumulate movement. Missing/nonfinite signals hold the last reading by
|
|
121
|
+
default; `missing: "rest"` restores the authored pose. A `visible` binding omits `axis`, displays
|
|
122
|
+
its node when the calibrated value is positive, and can use `missing: "hide"` to blank it.
|
|
90
123
|
Duplicate names animate together, but GLTFLoader can suffix duplicate GLB names with `_1`;
|
|
91
124
|
bind the loaded names explicitly. Two bindings cannot write the same node/property/axis.
|
|
92
125
|
`nodes` identifies cabin geometry and never changes its visibility.
|
|
93
126
|
|
|
94
|
-
Aircraft signals are `airspeed` (
|
|
127
|
+
Aircraft signals are `airspeed`/`trueAirspeed` (true air-relative speed, m/s),
|
|
128
|
+
`altitude`/`altitudeAGL` (m), `verticalSpeed` (m/s),
|
|
95
129
|
`heading`/`pitch`/`roll` (radians), `rpm`/`power` (0–1), `pitchInput`/`rollInput`/`yawInput`
|
|
96
130
|
and `elevator` (-1–1), `gear`/`flaps` (the positions 0–1 as they travel, 0 up), and
|
|
97
131
|
`engine`/`brake`/`grounded` (0 or 1). Calibration belongs to each model.
|
|
132
|
+
Additional signals are `groundSpeed` (horizontal m/s), `angleOfAttack`/`sideslip` (radians),
|
|
133
|
+
`pitchRate`/`rollRate`/`yawRate` (rad/s), `loadFactor` (g), and `stalled`/`crashed` (0 or 1).
|
|
134
|
+
Unavailable optional simulation fields stay unavailable. `rpmNormalized` aliases `rpm`.
|
|
135
|
+
A single-engine spec also supplies `rotorRpm` in revolutions per minute, calculated from its
|
|
136
|
+
configured shaft/rotor angular speed. Engine banks supply `engines.<id>.rpmNormalized`,
|
|
137
|
+
`engines.<id>.rotorRpm`, `engines.<id>.failed` and `engines.<id>.thrustN` separately; a missing
|
|
138
|
+
engine reading never falls back to another engine.
|
|
139
|
+
|
|
140
|
+
The Earth host additionally provides `trueHeading` (clockwise from north, radians), `airDensity`
|
|
141
|
+
(kg/m³, from the atmosphere used by flight physics) and `staticPressure` (Pa, when weather is
|
|
142
|
+
available). The legacy `heading` signal is raw simulation yaw, not a magnetic compass reading.
|
|
143
|
+
|
|
98
144
|
Cars supply `steering` and `wheelAngle` (radians); their optional third `update` argument accepts
|
|
99
145
|
additional signals. World explorer passes `speed` (signed m/s), `heading`/`pitch`/`roll` (radians),
|
|
100
146
|
`throttle` (-1–1), `brake` (0 or 1) and the sprung body's `bodyRoll`/`bodyPitch` (radians), which
|
|
@@ -106,6 +152,8 @@ so an asset can bind a gauge to script-owned state or to an individual engine. O
|
|
|
106
152
|
hosts pass resolved readings as the aircraft visual's optional fourth `update` argument or the
|
|
107
153
|
car visual's third argument. Choose the interior adapter or the automatic `model.signals`
|
|
108
154
|
component for a given model; do not let two adapters own the same transform channel.
|
|
155
|
+
An explicitly declared source that is unavailable overrides a host convenience reading with
|
|
156
|
+
missing data. It never silently substitutes the host reading for a missing sensor.
|
|
109
157
|
|
|
110
158
|
The `createVehicleInteriorVisual(model, spec)` wrapper around model signals is exported from
|
|
111
159
|
`@bendyline/molen-client/vehicles`. Its `update(signals)` also accepts custom telemetry names,
|
|
@@ -119,6 +167,106 @@ Legacy explicit `controlStick`, `collective` and `steeringWheelNode` bindings wo
|
|
|
119
167
|
convention is removed: assets must list instruments explicitly. `airspeedGaugeMax` remains
|
|
120
168
|
legacy metadata and no longer drives a gauge.
|
|
121
169
|
|
|
170
|
+
## Named variables and expressions
|
|
171
|
+
|
|
172
|
+
Every `interior`, `animation`, or `model.signals` block can declare `derived` variables. Numeric
|
|
173
|
+
operands are constants; string operands are signal names. Give intermediate results names to
|
|
174
|
+
build a dependency graph. Declaration order does not matter. Formulas are data, with no JavaScript,
|
|
175
|
+
property traversal, assignment, clocks, random numbers or simulation side effects:
|
|
176
|
+
|
|
177
|
+
```json
|
|
178
|
+
{
|
|
179
|
+
"derived": {
|
|
180
|
+
"airspeedKnots": { "op": "multiply", "args": ["trueAirspeed", 1.9438444924406048] },
|
|
181
|
+
"altitudeFeet": { "op": "divide", "args": ["altitude", 0.3048] },
|
|
182
|
+
"climbFeetPerMinute": { "op": "multiply", "args": ["verticalSpeed", 196.8503937007874] },
|
|
183
|
+
"gearUnlocked": { "op": "less", "args": ["gear", 0.99] },
|
|
184
|
+
"lowHeight": { "op": "less", "args": ["altitudeAGL", 100] },
|
|
185
|
+
"gearWarning": { "op": "and", "args": ["gearUnlocked", "lowHeight"] }
|
|
186
|
+
},
|
|
187
|
+
"bindings": [
|
|
188
|
+
{
|
|
189
|
+
"node": "speed-pointer", "source": "airspeedKnots",
|
|
190
|
+
"property": "rotation", "axis": "z",
|
|
191
|
+
"keys": [[0, -2.2], [40, -1.5], [80, 0], [160, 2.2]],
|
|
192
|
+
"responseSeconds": 0.2, "missing": "rest"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"node": "gear-warning-lamp", "source": "gearWarning",
|
|
196
|
+
"property": "visible", "scale": 1, "missing": "hide"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
This is illustrative calibration and a simple warning rule, not an aircraft-specific operating
|
|
203
|
+
limit. Measure the real face's angles and scale markings before supplying its calibration.
|
|
204
|
+
The automatic `model.signals` component also requires `sources` mappings for every external
|
|
205
|
+
variable; aircraft/vehicle adapters can obtain them from host telemetry instead.
|
|
206
|
+
|
|
207
|
+
| Operators | Operands and result |
|
|
208
|
+
| --- | --- |
|
|
209
|
+
| `add`, `multiply`, `min`, `max` | 2–16 numbers |
|
|
210
|
+
| `subtract`, `divide` | Exactly 2, in order |
|
|
211
|
+
| `clamp` | Value, minimum, maximum |
|
|
212
|
+
| `abs`, `sqrt`, `floor` | Exactly 1 |
|
|
213
|
+
| `modulo` | Value, positive period; result in [0, period) even for negative values |
|
|
214
|
+
| `sin`, `cos`, `atan2` | Angles in radians; `atan2` takes y, x |
|
|
215
|
+
| `less`, `greater`, `equal` | Compare 2 values; result 0 or 1 |
|
|
216
|
+
| `and`, `or`, `not` | Nonzero means true; `and`/`or` take 2–16 operands, `not` takes 1 |
|
|
217
|
+
| `if` | Condition, true value, false value; only the selected value must be available |
|
|
218
|
+
| `coalesce` | First available value among 2–16 operands; explicit fallback |
|
|
219
|
+
|
|
220
|
+
Up to 256 derived variables are allowed per block. Validation rejects cycles, wrong operand
|
|
221
|
+
counts, duplicate source/derived names, and undeclared references in the automatic ECS bridge.
|
|
222
|
+
Direct adapters report unresolved binding inputs in `visual.missingSignals`; unknown model
|
|
223
|
+
nodes are separate in `visual.missingNodes`. Divide by zero, negative square roots, invalid
|
|
224
|
+
clamp ranges and nonfinite results produce missing data. Formulas do not silently replace them
|
|
225
|
+
with zero. Derived names are local to their block and take precedence over same-named host values;
|
|
226
|
+
use distinct names to keep the raw reading available.
|
|
227
|
+
|
|
228
|
+
`responseSeconds` is the time constant of a first-order response: after one time constant a
|
|
229
|
+
step has moved about 63% of the way to its target. Pass **absolute simulation seconds** as the
|
|
230
|
+
second argument to `createModelSignalVisual(...).update`, the fifth argument to an aircraft
|
|
231
|
+
visual, or the fourth argument to a vehicle visual. The built-in ECS and Earth hosts do this.
|
|
232
|
+
First readings, rewinds and recovery from missing data snap to the current reading; a paused
|
|
233
|
+
timestamp does not advance a response. Omitting time applies readings immediately. This is
|
|
234
|
+
visual response, not instrument failure/lag state stored in the simulation or replay history.
|
|
235
|
+
|
|
236
|
+
For continuously rotating needles/cards, `period: 6.283185307179586` wraps angular displacement
|
|
237
|
+
and filters across the shortest arc. It is only available on rotation channels without min/max
|
|
238
|
+
limits. All axes remain in the node's local parent frame: rotate or tilt the gauge assembly in
|
|
239
|
+
the model without changing its calibration.
|
|
240
|
+
|
|
241
|
+
## Reusable instrument wiring
|
|
242
|
+
|
|
243
|
+
`@bendyline/molen-client/instruments` exports data helpers for model-owned geometry:
|
|
244
|
+
|
|
245
|
+
- `dialInstrument`: measured, potentially nonlinear reading-to-angle calibration.
|
|
246
|
+
- `altimeterInstrument`: separate needles making one turn per 1,000, 10,000 and optionally
|
|
247
|
+
100,000 feet, with continuous wraparound.
|
|
248
|
+
- `attitudeInstrument`: a rotating bank frame containing a translating pitch card, behind an
|
|
249
|
+
authored mask and fixed aircraft symbol. Axis, sign, travel and response are configurable.
|
|
250
|
+
- `annunciatorInstrument`: a positive reading shows a lamp/flag; missing data hides it.
|
|
251
|
+
- `numericInstrument`: a fixed-width unsigned integer on authored seven-segment digit nodes.
|
|
252
|
+
Values are floored; leading zeros are shown. Missing, negative and overflowing values blank
|
|
253
|
+
the display. Each display needs a unique variable prefix when combining its bindings.
|
|
254
|
+
|
|
255
|
+
These helpers return bindings/spec data; they do not fabricate a dashboard, create textures,
|
|
256
|
+
or choose the instrument arrangement. Export their data with the model. Use
|
|
257
|
+
`modelSignalDisplacement(binding, reading)` when authoring face markings so tick positions and
|
|
258
|
+
needle calibration share the same curve. The module also exports `compileModelSignalExpressions`
|
|
259
|
+
for inspecting derived readings without a renderer.
|
|
260
|
+
|
|
261
|
+
Gauge motion is only as accurate as its measurement. True airspeed is not indicated airspeed;
|
|
262
|
+
world Y is not a pressure altimeter with a pilot-set reference; normalized engine RPM is not
|
|
263
|
+
turbine N1/N2; sideslip is not a slip/skid ball's lateral specific force. Use correctly modeled
|
|
264
|
+
system readings where available, and identify approximations. Never drive fuel, oil pressure,
|
|
265
|
+
navigation receivers or clocks from unrelated values just to make a needle move. A future
|
|
266
|
+
system can publish those readings through the same component sources without changing the
|
|
267
|
+
gauge renderer. See the FAA's [Flight Instruments chapter](https://www.faa.gov/regulationspolicies/handbooksmanuals/aviation/phak/chapter-8-flight-instruments)
|
|
268
|
+
for instrument principles and distinctions.
|
|
269
|
+
|
|
122
270
|
## Exterior animation
|
|
123
271
|
|
|
124
272
|
Landing gear, doors, flaps and control surfaces are bound the same way, in an `animation` block
|
|
@@ -126,6 +274,18 @@ beside `interior`: `aircraft.spec.visual.animation` or `vehicle.visual.animation
|
|
|
126
274
|
`sources` and `bindings` and the same signals. The interior and the animation may not bind the
|
|
127
275
|
same node channel.
|
|
128
276
|
|
|
277
|
+
Verify motion in physical space, not just a numeric angle. Molen aircraft use +Z forward,
|
|
278
|
+
+Y up and +X toward the pilot's left. Positive pitch input means nose up, positive roll
|
|
279
|
+
means right wing down, and positive yaw input means right rudder. A pulled yoke moves aft
|
|
280
|
+
(negative Z); a vertical stick tilts aft for nose up and toward negative X for right bank.
|
|
281
|
+
Right rudder pushes the right pedal forward. For a trailing edge extending along negative Z,
|
|
282
|
+
negative X rotation lowers a flap, while positive X rotation raises an elevator. Right bank
|
|
283
|
+
lowers the left aileron and raises the right one. These signs assume unrotated model parents;
|
|
284
|
+
transform a representative grip or trailing-edge point through the actual hierarchy to verify
|
|
285
|
+
both positive and negative commands. Use the referenced full-travel angle, not a generic radian.
|
|
286
|
+
Inspect deployed surfaces and moved cockpit controls in current renders as well as checking
|
|
287
|
+
their transforms. A neutral-pose overlay cannot validate an animation direction.
|
|
288
|
+
|
|
129
289
|
A binding can replace `scale` and `offset` with a keyframed curve: `keys` are `[signal,
|
|
130
290
|
displacement]` pairs with strictly ascending signals, and the displacement holds the first or
|
|
131
291
|
last value outside them. `"ease": "smooth"` eases out of and into every key, the way a hydraulic
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
# Mountable vehicles and driving
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
Generic vehicles use the Bendy house brand, with stable asset/type IDs. The Bendy Bus and
|
|
4
|
+
Bendy Light Rail are also mountable through the vehicle API. World Explorer has buttons for
|
|
5
|
+
both at the practice area: W/S applies traction or reverse, Space brakes, V switches view,
|
|
6
|
+
and E exits after stopping. The bus steers with A/D; light rail has locked steering on its
|
|
7
|
+
straight practice track. Player controls do not yet follow curved rail-network routes.
|
|
8
|
+
See the [close-view vehicle standard](medium-fi.md#controllable-vehicles-close-view-fidelity)
|
|
9
|
+
for the extra model detail expected around the operator.
|
|
10
|
+
|
|
11
|
+
World Explorer's parking cars are external entity types with stable IDs and metric dimensions.
|
|
12
|
+
The entity pack includes eleven Bendy road models and eighty U.S. market reference vehicles:
|
|
13
|
+
forty recent models plus forty varied models from 2005–2024. These range from the F-150,
|
|
14
|
+
Prius and Model 3 to the Smart fortwo, MX-5 and Sprinter. You can walk up to one, get in and drive it.
|
|
15
|
+
See the [entity catalog](entities.md#road-cycle-and-water-fleets) for IDs and authoring details.
|
|
5
16
|
|
|
6
17
|
Each type owns its GLB reference, complete physics configuration, seats, named visual bindings,
|
|
7
18
|
and optional deterministic scripts. Dormant cars use generic dimension-driven instance proxies;
|
|
@@ -43,6 +43,8 @@ external data with `weatherSchema.parse` before using it in typed code.
|
|
|
43
43
|
|
|
44
44
|
| Parameter | Meaning |
|
|
45
45
|
| --- | --- |
|
|
46
|
+
| `atmosphere.model` | `standard` (default): layered Earth atmosphere; `isothermal`: uniform temperature, including alternate-world use. |
|
|
47
|
+
| `atmosphere.moistAir` | Apply humidity's ideal-gas density correction; default false for dry reference air. |
|
|
46
48
|
| `atmosphere.temperatureK` | Kelvin at the reference altitude; default 288.15 K (15 °C). |
|
|
47
49
|
| `atmosphere.pressurePa` | Absolute pressure at the reference altitude; default 101325 Pa. Zero allows vacuum. |
|
|
48
50
|
| `atmosphere.relativeHumidity` | 0–1; stored for consumers, independent of precipitation. |
|
|
@@ -76,16 +78,19 @@ if (current) molen.patch('conditions', 'weather', {
|
|
|
76
78
|
|
|
77
79
|
Typed systems use `Weather`, `weatherOf(world)` and `sampleAtmosphere(data, altitude, gravity?)`
|
|
78
80
|
from `@bendyline/molen-kernel`. The sample contains `temperatureK`, `pressurePa`, `densityKgM3`,
|
|
79
|
-
`relativeHumidity` and `
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
`relativeHumidity`, `windVelocity` and `speedOfSound`. It uses deterministic math and the
|
|
82
|
+
US Standard Atmosphere 1976 lower-atmosphere lapse layers, with geometric-to-geopotential
|
|
83
|
+
altitude conversion, anchored to authored reference temperature/pressure. The supported range
|
|
84
|
+
is -2 to 100 km; values beyond it sample the nearest endpoint. Gravity defaults to 9.80665 m/s².
|
|
85
|
+
`model: 'isothermal'` retains the former uniform-temperature hydrostatic profile.
|
|
86
|
+
Dry ideal-gas density is the default; `moistAir: true` adds a water-vapor correction using
|
|
87
|
+
relative humidity and saturation vapor pressure. This does not select rain/snow or simulate fluid flow.
|
|
83
88
|
|
|
84
89
|
`installAircraft` reads the world's weather each physics tick. Wind changes airspeed, and
|
|
85
90
|
temperature/pressure change aerodynamic density. Explicit `AircraftEnvironment.weather`
|
|
86
91
|
overrides the component; explicit `wind` overrides its wind with a uniform velocity. `stepAircraft`
|
|
87
|
-
accepts the same optional weather value and a `time`. Without weather, aircraft
|
|
88
|
-
|
|
92
|
+
accepts the same optional weather value and a `time`. Without weather, aircraft use the dry
|
|
93
|
+
standard atmosphere. Ground friction and character temperature exposure are
|
|
89
94
|
not implicitly changed.
|
|
90
95
|
|
|
91
96
|
## Wind shear, turbulence and gusts
|
|
@@ -153,8 +158,10 @@ collision, splash, accumulation or wet-material response.
|
|
|
153
158
|
|
|
154
159
|
## World explorer
|
|
155
160
|
|
|
156
|
-
The Weather dropdown includes Sunny / clear, Partly cloudy, Overcast, Rain, Snow and Fog.
|
|
157
|
-
|
|
161
|
+
The Weather dropdown includes Fair, Sunny / clear, Partly cloudy, Overcast, Rain, Snow and Fog.
|
|
162
|
+
The explorer opens on Fair, its own preset: Sunny with scattered fair-weather cumulus (30%
|
|
163
|
+
coverage at 45% density, in 24 km cells rather than the default 16 km), so a street-level sky is
|
|
164
|
+
not a bare gradient and the deck breaks into separate clouds instead of streaks at the horizon. Weather details mixes cloud coverage/density/altitude, precipitation, intensity, visibility,
|
|
158
165
|
temperature, pressure and wind, marking the profile Custom. Temperature and pressure controls
|
|
159
166
|
refer to sea level, displayed in °C and hPa and stored in kelvin and pascals. The same component
|
|
160
167
|
is installed in the explorer's vehicle/aircraft simulation.
|
|
@@ -15,6 +15,8 @@ taxonomies and 45 shared materials. The world explorer's `/structures.html` mode
|
|
|
15
15
|
every entry and provides dimension, texture and detail controls.
|
|
16
16
|
|
|
17
17
|
For enterable buildings and lazy ground-floor furnishings, see [Building interiors](building-interiors.md).
|
|
18
|
+
For compact global ecological data, regional plant families, and ordinary building profiles, see
|
|
19
|
+
[Regional world content](regional-world.md).
|
|
18
20
|
|
|
19
21
|
```text
|
|
20
22
|
@bendyline/molen-worldgen world-agnostic core
|
|
@@ -172,7 +174,10 @@ geometry budget. Shared linear-filtered worldgen textures use mipmaps and anisot
|
|
|
172
174
|
|
|
173
175
|
`props` attach pack or builtin models: `roof-ridge` walks the ridge of the dominant wing
|
|
174
176
|
(chimneys), `roof-flat` fills a flat roof with `margin` from every edge (rooftop units),
|
|
175
|
-
`roof-edge` lines the outer edges at the parapet (canales)
|
|
177
|
+
`roof-edge` lines the outer edges at the parapet (canales), and `ground-any` sets models on the
|
|
178
|
+
ground just out from the outer walls, `spacing` apart and `margin` from the corners, spread
|
|
179
|
+
evenly round the building and clear of its entrance (foundation shrubs on regional houses).
|
|
180
|
+
Prop models are pack assets
|
|
176
181
|
(`assets` map, a `molen/asset@1` sidecar next to `model.glb`); the default pack generates its
|
|
177
182
|
materials and prop models from `scripts/generate-pack.mjs` and the build checks they are current.
|
|
178
183
|
Placements come out of the batch as `props:<model>` placement sets, instanced like scatter.
|
|
@@ -224,18 +229,22 @@ On the client, `ModelLibrary.prepare(ref)` turns a glTF scene into one merged ve
|
|
|
224
229
|
geometry (material colors baked in, so an authored tree with two materials is one draw), keeps
|
|
225
230
|
builtin primitives (`builtin:tree.conifer`, `builtin:shrub`, `builtin:rock`, ...) for packs
|
|
226
231
|
without assets, and `createInstancedPlacements(set, geometry, material)` uploads a placement set
|
|
227
|
-
as one `InstancedMesh`. The
|
|
232
|
+
as one `InstancedMesh`. The legacy regional scatter packs use procedural fir, pine, oak, and
|
|
228
233
|
birch (`builtin:tree.conifer.fir|pine`, `builtin:tree.deciduous.oak|birch`), clustered shrubs, and
|
|
229
234
|
irregular rocks. Their opaque crowns, bark, and vertex colors share one geometry and material per
|
|
230
235
|
species: no texture downloads, alpha cards, or per-tree scene objects. Conifers have a closed,
|
|
231
236
|
scalloped crown that conceals the upper trunk; broadleaf crowns use overlapping foliage clumps.
|
|
232
237
|
Tiles below the finest level use cached coarse crowns (132 triangles per conifer, 124 per
|
|
233
238
|
broadleaf tree; 60 per shrub and 20 per rock), sharing the same material and instance transforms.
|
|
234
|
-
The Earth renderer
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
+
The Earth renderer batches vegetation per terrain tile, split into quarters on the finest tiles
|
|
240
|
+
(a batch picks one detail level for all its plants, so a camera inside a whole-tile batch drew
|
|
241
|
+
every tree in it at near detail), and switches each batch from near to medium to distant
|
|
242
|
+
geometry by its projected error, with 15% hysteresis to avoid flicker. A batch chooses again
|
|
243
|
+
only when the camera, the batch's placement, the lens or the error policy changes, so a still view
|
|
244
|
+
costs no per-batch matrix work. Distant crowns are
|
|
245
|
+
opaque: a cone for conifers and one lumpy volume for broadleaf trees. Cells share geometry,
|
|
246
|
+
materials, and instance buffers across levels and can be frustum-culled independently; no
|
|
247
|
+
per-frame placement uploads are needed.
|
|
239
248
|
`propLod: false` disables this camera LOD, and the explorer exposes `?propLod=0` for comparison.
|
|
240
249
|
The explorer's `AssetCache` still resolves authored GLBs for custom packs and building props.
|
|
241
250
|
|
|
@@ -248,7 +257,9 @@ levels are empty, so the clumps fade out about 400 meters away instead of shimme
|
|
|
248
257
|
adapter labels land that no map polygon covers `open_ground` (the `OPEN_GROUND_LABEL` export), as a
|
|
249
258
|
tile-wide polygon that every mapped polygon paints over, so verges and unmapped meadows can carry
|
|
250
259
|
ground cover too. The default packs place it in meadows, parks, yards, forest floors and open
|
|
251
|
-
ground, on the finest tile level only, and not at Economy quality.
|
|
260
|
+
ground, on the finest tile level only, and not at Economy quality. In temperate and wet habitats
|
|
261
|
+
the regional catalog's `open_trees` rule also plants a few clustered groves of park trees on open
|
|
262
|
+
ground (14 per hectare before clustering), so unmapped institutional lawns and verges are not bare.
|
|
252
263
|
|
|
253
264
|
A population's optional `widthScale: { min: 0.8, max: 1.25 }` multiplies X/Z independently of
|
|
254
265
|
its uniform `scale`, allowing tall narrow trees, broad bushy trees, and spreading shrubs in the
|
|
@@ -287,6 +298,10 @@ resolved once per tile at its centre; when a tile straddles regions every buildi
|
|
|
287
298
|
own centroid. Atlas geometry is projected once into the package's world meters, so lookups are
|
|
288
299
|
comparisons.
|
|
289
300
|
|
|
301
|
+
When a composable regional environment is supplied, its architectural channel precedes this
|
|
302
|
+
legacy chain and every building resolves at its own centroid. Its separate ecological channel
|
|
303
|
+
selects each vegetation candidate by habitat geography. See [Regional world content](regional-world.md).
|
|
304
|
+
|
|
290
305
|
The adapter also decides tile-edge ownership: a footprint that appears complete in two tiles is
|
|
291
306
|
rendered by the tile holding more of it, and a footprint cut by both buffers is rendered piecewise
|
|
292
307
|
with seam walls and a flat roof. Both tiles reach the same verdict from their own copy.
|
|
@@ -308,6 +323,60 @@ styles prefer pitched roofs through three floors and flat roofs from four upward
|
|
|
308
323
|
style also allows flat roofs on low buildings. Wide, clipped, or unsuitable footprints can still
|
|
309
324
|
require a flat roof for geometric reasons.
|
|
310
325
|
|
|
326
|
+
### Inferred buildings where outlines are missing
|
|
327
|
+
|
|
328
|
+
Earth views enable neighborhood building infill by default. `mountEarthView` and
|
|
329
|
+
`createEarthWorldgen` accept `buildingInfill: false` to disable it, or
|
|
330
|
+
`buildingInfill: { seed: 42, density: 0.7 }` to choose a world seed and keep fraction.
|
|
331
|
+
The lower-level renderer and tile generator opt in with the same option. The explorer exposes
|
|
332
|
+
`?buildingInfill=0` and `?infillSeed=42` for comparisons.
|
|
333
|
+
|
|
334
|
+
Infill makes one row of lots on each side of residential, minor and collector streets. Frontage
|
|
335
|
+
anchors repeat every 16 projected meters, with small gaps and varied widths. Every lot reserves an
|
|
336
|
+
unobstructed approach from its street to its entrance or garage; homes never form landlocked rows
|
|
337
|
+
inside a block. Visible ground-following paths and driveways connect the entrances to the roadside.
|
|
338
|
+
Separately mapped sidewalks move the building setback behind the sidewalk while retaining access.
|
|
339
|
+
Mapped footprints, occupied landmark extents, other streets, water and incompatible land uses
|
|
340
|
+
such as parks, farmland, schools and parking exclude the entire parcel, including its approach.
|
|
341
|
+
Slopes above 0.3 or more than three meters of height variation also exclude it.
|
|
342
|
+
|
|
343
|
+
Mapped residential, commercial and retail land-use polygons provide district evidence. Commercial
|
|
344
|
+
and retail areas select commercial styles and shopfront plans; residential areas select homes.
|
|
345
|
+
Without a land-use label, at least three nearby classified buildings with a 70% commercial majority
|
|
346
|
+
can select commercial use. Otherwise a dense network of at least three separate street corridors
|
|
347
|
+
establishes residential demand. Density considers streets within 240 meters and accounts for tile
|
|
348
|
+
edges: 650 meters of road in the full window, or 300 meters with explicit suitable land use.
|
|
349
|
+
Highways, paths, service roads, bridges and tunnels do not establish demand. Mapped buildings keep
|
|
350
|
+
priority in the shared rendering budgets.
|
|
351
|
+
|
|
352
|
+
The regional style's optional `lotPlans` weights select reusable, resizable plans: `cottage`
|
|
353
|
+
(recessed porch), `ranch` (L-shaped), `front-garage`, `side-garage`, `courtyard`, `compact`, and
|
|
354
|
+
`shopfront`. `createLotBuildingPlan(shape, width, depth)` is exported by worldgen's kernel for
|
|
355
|
+
other procedural authors. Plans use local +Z inward from the frontage and return entrance anchors
|
|
356
|
+
and an optional attached garage. Garages have their own single-storey mass and broad door.
|
|
357
|
+
These plans only supply missing outlines; existing mapped outlines remain authoritative.
|
|
358
|
+
The Southwest pool favors stucco, ceramic tile, ranches, courtyards and garages; the North American
|
|
359
|
+
pool used in Washington favors siding and asphalt shingles. Other regional pools use their own
|
|
360
|
+
materials and plan weights, with conservative cottage/ranch/compact forms when no style defines a pool.
|
|
361
|
+
|
|
362
|
+
A versioned seed and geographic frontage anchor determine each home's identity, footprint and floor
|
|
363
|
+
count; that identity seeds its architectural appearance. Unloading and revisiting unchanged map
|
|
364
|
+
data reproduces the same buildings, including through the worker path. Feature order and road
|
|
365
|
+
direction do not reshuffle them. Reducing density retains an unchanged subset; generation settings
|
|
366
|
+
and exclusion geometry participate in cache keys. Records carry the `inferred` label and an
|
|
367
|
+
`infill:v3` identity; they are visual estimates, not recovered footprints or verified addresses.
|
|
368
|
+
Changes to source data, styles, seed or algorithm version can change the result. The frontage-based
|
|
369
|
+
v3 algorithm regenerates older layouts once; subsequent visits reproduce the new layout.
|
|
370
|
+
|
|
371
|
+
Infill uses detailed footprints at the finest two terrain levels, skips generalized
|
|
372
|
+
building data, and caps inferred lots at 3,072 per tile before shared rendering budgets.
|
|
373
|
+
Entire parcels stay inside their owner tile, leaving a small margin at tile edges. A neighboring
|
|
374
|
+
halo participates in corner-lot conflict resolution. Coverage depends on the roads and exclusions
|
|
375
|
+
available in that tile. These are synthetic lots, not surveyed parcels or zoning; missing land-use
|
|
376
|
+
data can still allow buildings on genuinely vacant land. Industrial land remains excluded.
|
|
377
|
+
The same inferred footprints and approaches exclude vegetation in scatter-only requests when the
|
|
378
|
+
source supplies matching semantic layers.
|
|
379
|
+
|
|
311
380
|
### Inferred trees around homes
|
|
312
381
|
|
|
313
382
|
Atlas region bindings and the worldwide default accept `treeFillFactor` from 0 to 1. The
|
|
@@ -441,7 +510,15 @@ also uses a dedicated surface worker in the explorer. Archive decoding, scene as
|
|
|
441
510
|
uploads still happen on the main thread.
|
|
442
511
|
|
|
443
512
|
A shared `lodPolicy: ScreenSpaceLodPolicy` enables projected-screen-size LOD for vegetation and
|
|
444
|
-
buildings.
|
|
513
|
+
buildings. Instanced vegetation measures the camera's distance to each batch's bounds, not to its
|
|
514
|
+
bounding sphere: a tile-wide batch's sphere reaches hundreds of meters above the canopy, so an
|
|
515
|
+
aerial camera would otherwise draw every plant in the tiles below at near detail. A level with no
|
|
516
|
+
leaf cards (a tree's distant level, rocks and props) draws with an opaque twin of the alpha-tested
|
|
517
|
+
scatter material: a shader that can discard switches off hidden-surface removal on tile-based
|
|
518
|
+
GPUs, so a distant forest drawn with the card material shaded every layer of crowns behind the
|
|
519
|
+
first. For the same reason a level drawn with cards hands over to the next at a quarter of the
|
|
520
|
+
projected error its geometry alone would allow (a crown's cards overlap several deep), and the
|
|
521
|
+
distant level neither casts nor receives sun shadows. Buildings retain their structural faces while distant materials and facade details
|
|
445
522
|
simplify; geometry attributes are shared across spatial cells and levels. `setQuality(preset)`
|
|
446
523
|
changes future generation and queues resident architecture for replacement, one building batch
|
|
447
524
|
at a time. The previous buildings stay visible until their replacements are ready; roads remain
|
|
@@ -470,7 +547,8 @@ changes and disposing when the entity goes away.
|
|
|
470
547
|
one archive (the Sammamish package does).
|
|
471
548
|
- Roofs of clipped tile-edge pieces are flat; secondary wings share the main eave height.
|
|
472
549
|
- Windows are surface quads, not openings; dormers and setbacks are declared in the format but not
|
|
473
|
-
built yet; `wall-any`
|
|
550
|
+
built yet; the `wall-any` prop anchor places nothing yet. `ground-any` props do not know where
|
|
551
|
+
driveways and paths run, so on a lot that is paved to the wall one can stand on the paving.
|
|
474
552
|
- Builtin vegetation uses spatially batched distance or screen-space LOD. Custom GLBs retain their authored
|
|
475
553
|
geometry; they need authored LOD assets or simplification before the same reduction is possible.
|
|
476
554
|
- Baked assets hold the building mesh only; props and scatter stay instanced placements.
|
package/dist/docs-src/llms.txt
CHANGED
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
> three.js rendering client, authored through JSON schemas, a small typed API, and a headless
|
|
5
5
|
> dev loop. This bundle is version-locked to the engine release.
|
|
6
6
|
|
|
7
|
-
Engine version: 0.0.
|
|
7
|
+
Engine version: 0.0.8. three.js peer range: >=0.184.0 <0.187.0 (developed against 0.184.0). Node ≥ 22.13, ESM only.
|
|
8
8
|
|
|
9
9
|
## Start here
|
|
10
10
|
|
|
11
|
+
- [Regional vehicle fleets](guide/regional-fleets.md): geographic traffic and parking mixes, shared vehicle IDs, lazy model downloads and bounded residency.
|
|
12
|
+
|
|
11
13
|
This bundle ships inside `@bendyline/molen-tooling` at `dist/docs-src/` (in a project:
|
|
12
14
|
`node_modules/@bendyline/molen-tooling/dist/docs-src/llms.txt`) and is published at
|
|
13
15
|
https://molen.dev/llms.txt. Everything it describes works from the npm packages; no clone of the
|
|
@@ -42,11 +44,13 @@ downloads them into a project and pins them in project.json.
|
|
|
42
44
|
- [Worldgen: styled buildings and scatter](guide/worldgen.md): any outline → a styled building; `worldgenBuilding` component, `molen.worldgen.*` script queries, worker + cache for map tiles
|
|
43
45
|
(footprint analysis, roofs, walls), labeled polygons → deterministic props, style packs, and the
|
|
44
46
|
Earth binding (region atlas, terrain-semantics adapter, tile renderers).
|
|
47
|
+
- [Regional world content](guide/regional-world.md): compact ecology and native-range geography, composable packs, procedural plants and wildlife, ordinary buildings, mapped crops, seasons, and habitat sound.
|
|
45
48
|
- [Default structure library](guide/structure-library.md): 120 resizable buildings in 13 taxonomies, 51 shared construction materials, regional placement and the interactive model sheet.
|
|
46
49
|
- [Recognizable places](guide/recognizable-places.md): store identity matching, reusable signs, tenant facades and mapped outdoor props.
|
|
47
50
|
- [Building interiors](guide/building-interiors.md): deterministic layouts by use, real entrances and frontage windows, lazy rendering and walk collision.
|
|
48
51
|
- [3D art guidelines](guide/3d-art-guidelines.md): shared polygonal fidelity, scale, material library, LOD and visual review for static and procedural models.
|
|
49
52
|
- [Medium-fi style guide](guide/medium-fi.md): the Earth view's target look (a bright polygonal model railroad), the shared light rig, palette bands, polygon budgets per LOD, landmark recognition rules, rendering modes and the review checklist for any new model or style.
|
|
53
|
+
- [Fonts and lettering](guide/typography.md): shared vector font layout, highway/storefront faces, workers, content packs and model export.
|
|
50
54
|
- [Materials](guide/materials.md): palette and procedural material-graph textures.
|
|
51
55
|
- [3D model assets](guide/3d-model-assets.md): prompt-to-glTF authoring, PBR texture conventions, import, visual QA, and browser hosting.
|
|
52
56
|
- [Logical source bundles](guide/source-bundles.md): one copyable folder per entity, structure, vehicle, prop, or other authored thing, with all definitions and source files listed in `source.json`.
|
|
@@ -11,8 +11,10 @@ Autogenerated from the schema registry `molen validate` checks against; `molen s
|
|
|
11
11
|
- [Camera track](cameratrack.md) — `molen/cameratrack@1`
|
|
12
12
|
- [Command envelope](command.md) — `molen/command@1`
|
|
13
13
|
- [Per-tick delta](delta.md) — `molen/delta@1`
|
|
14
|
+
- [Ecological geography atlas](ecology-atlas.md) — `molen/ecology-atlas@1`
|
|
14
15
|
- [Experience play scenario](experience-play.md) — `molen/experience-play@1`
|
|
15
16
|
- [Figure descriptor](figure.md) — `molen/figure@1`
|
|
17
|
+
- [Regional vehicle fleet](fleet-catalog.md) — `molen/fleet-catalog@1`
|
|
16
18
|
- [Interior catalog](interior-catalog.md) — `molen/interior-catalog@1`
|
|
17
19
|
- [Keyframe snapshot](keyframe.md) — `molen/keyframe@1`
|
|
18
20
|
- [Landmark model](landmark.md) — `molen/landmark@1`
|
|
@@ -25,11 +27,14 @@ Autogenerated from the schema registry `molen validate` checks against; `molen s
|
|
|
25
27
|
- [Prefab](prefab.md) — `molen/prefab@1`
|
|
26
28
|
- [Project manifest](project.md) — `molen/project@1`
|
|
27
29
|
- [Region style atlas](region-atlas.md) — `molen/region-atlas@1`
|
|
30
|
+
- [Regional content catalog](regional-catalog.md) — `molen/regional-catalog@1`
|
|
28
31
|
- [Replay fixture](replay.md) — `molen/replay@1`
|
|
29
32
|
- [Scatter rules](scatter.md) — `molen/scatter@1`
|
|
30
33
|
- [Scene manifest](scene.md) — `molen/scene@3`
|
|
31
34
|
- [Sound bank](soundbank.md) — `molen/soundbank@1`
|
|
32
35
|
- [Logical source bundle](source-bundle.md) — `molen/source-bundle@1`
|
|
36
|
+
- [Runtime structure placements](structure-placement-data.md) — `molen/structure-placement-data@1`
|
|
37
|
+
- [Regional structure placement directory](structure-placement-index.md) — `molen/structure-placement-index@1`
|
|
33
38
|
- [Geographic structure placements](structure-placements.md) — `molen/structure-placements@1`
|
|
34
39
|
- [Style pack manifest](stylepack.md) — `molen/stylepack@1`
|
|
35
40
|
- [Terrain descriptor](terrain.md) — `molen/terrain@2`
|
|
@@ -37,4 +42,5 @@ Autogenerated from the schema registry `molen validate` checks against; `molen s
|
|
|
37
42
|
- [Transport network](transport-network.md) — `molen/transport-network@1`
|
|
38
43
|
- [Entity type registry](types.md) — `molen/types@1`
|
|
39
44
|
- [UV paint sidecar](uvpaint.md) — `molen/uvpaint@1`
|
|
45
|
+
- [Wildlife country range limits](wildlife-ranges.md) — `molen/wildlife-ranges@1`
|
|
40
46
|
- [Worldgen batch](worldgen-batch.md) — `molen/worldgen-batch@1`
|
|
@@ -373,6 +373,38 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
|
|
|
373
373
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
374
374
|
"type": "object",
|
|
375
375
|
"properties": {
|
|
376
|
+
"lotPlans": {
|
|
377
|
+
"minItems": 1,
|
|
378
|
+
"maxItems": 32,
|
|
379
|
+
"type": "array",
|
|
380
|
+
"items": {
|
|
381
|
+
"type": "object",
|
|
382
|
+
"properties": {
|
|
383
|
+
"shape": {
|
|
384
|
+
"type": "string",
|
|
385
|
+
"enum": [
|
|
386
|
+
"cottage",
|
|
387
|
+
"ranch",
|
|
388
|
+
"front-garage",
|
|
389
|
+
"side-garage",
|
|
390
|
+
"courtyard",
|
|
391
|
+
"compact",
|
|
392
|
+
"shopfront"
|
|
393
|
+
]
|
|
394
|
+
},
|
|
395
|
+
"weight": {
|
|
396
|
+
"type": "number",
|
|
397
|
+
"exclusiveMinimum": 0
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"required": [
|
|
401
|
+
"shape",
|
|
402
|
+
"weight"
|
|
403
|
+
],
|
|
404
|
+
"additionalProperties": false
|
|
405
|
+
},
|
|
406
|
+
"description": "Weighted resizable plans for vacant lots; supplied outlines remain authoritative."
|
|
407
|
+
},
|
|
376
408
|
"format": {
|
|
377
409
|
"type": "string",
|
|
378
410
|
"const": "molen/archstyle@1",
|
|
@@ -1249,10 +1281,44 @@ How to turn any outline into a styled building: massing, roof grammar, facade rh
|
|
|
1249
1281
|
"details": {
|
|
1250
1282
|
"type": "object",
|
|
1251
1283
|
"properties": {
|
|
1284
|
+
"entrance": {
|
|
1285
|
+
"type": "object",
|
|
1286
|
+
"properties": {
|
|
1287
|
+
"width": {
|
|
1288
|
+
"type": "number",
|
|
1289
|
+
"minimum": 0.7,
|
|
1290
|
+
"maximum": 8
|
|
1291
|
+
},
|
|
1292
|
+
"height": {
|
|
1293
|
+
"type": "number",
|
|
1294
|
+
"minimum": 1.8,
|
|
1295
|
+
"maximum": 6
|
|
1296
|
+
},
|
|
1297
|
+
"style": {
|
|
1298
|
+
"type": "string",
|
|
1299
|
+
"enum": [
|
|
1300
|
+
"single",
|
|
1301
|
+
"double",
|
|
1302
|
+
"service"
|
|
1303
|
+
]
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
"required": [
|
|
1307
|
+
"width",
|
|
1308
|
+
"height",
|
|
1309
|
+
"style"
|
|
1310
|
+
],
|
|
1311
|
+
"additionalProperties": false,
|
|
1312
|
+
"description": "A fitted visual entrance on the longest eligible exterior edge; omitted when structural ground openings exist."
|
|
1313
|
+
},
|
|
1252
1314
|
"shutters": {
|
|
1253
1315
|
"type": "boolean",
|
|
1254
1316
|
"description": "Paired louvered shutters beside punched windows."
|
|
1255
1317
|
},
|
|
1318
|
+
"cornerBoards": {
|
|
1319
|
+
"type": "boolean",
|
|
1320
|
+
"description": "Trim boards up each outside wall corner, as on lap-sided houses."
|
|
1321
|
+
},
|
|
1256
1322
|
"balconies": {
|
|
1257
1323
|
"type": "object",
|
|
1258
1324
|
"properties": {
|