@bendyline/molen-tooling 0.0.1

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.
Files changed (84) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.md +15 -0
  3. package/README.md +91 -0
  4. package/dist/capture/THIRD-PARTY-NOTICES.md +223 -0
  5. package/dist/capture/basis/LICENSE.txt +55 -0
  6. package/dist/capture/basis/basis_transcoder.js +19 -0
  7. package/dist/capture/basis/basis_transcoder.wasm +0 -0
  8. package/dist/capture/capture.html +15 -0
  9. package/dist/capture/harness.js +4671 -0
  10. package/dist/capture/worldgen-preview.html +15 -0
  11. package/dist/capture/worldgen-preview.js +4617 -0
  12. package/dist/cli.d.mts +1 -0
  13. package/dist/cli.mjs +1276 -0
  14. package/dist/docs-src/guide/3d-art-guidelines.md +157 -0
  15. package/dist/docs-src/guide/3d-model-assets.md +286 -0
  16. package/dist/docs-src/guide/adaptive-performance.md +89 -0
  17. package/dist/docs-src/guide/agent-loop.md +156 -0
  18. package/dist/docs-src/guide/aircraft.md +225 -0
  19. package/dist/docs-src/guide/browser-mount.md +185 -0
  20. package/dist/docs-src/guide/building-interiors.md +175 -0
  21. package/dist/docs-src/guide/capability-authoring.md +69 -0
  22. package/dist/docs-src/guide/determinism.md +285 -0
  23. package/dist/docs-src/guide/entities.md +47 -0
  24. package/dist/docs-src/guide/examples.md +58 -0
  25. package/dist/docs-src/guide/experience-playback.md +57 -0
  26. package/dist/docs-src/guide/figures.md +164 -0
  27. package/dist/docs-src/guide/game-samples.md +100 -0
  28. package/dist/docs-src/guide/graphics-performance.md +167 -0
  29. package/dist/docs-src/guide/input.md +205 -0
  30. package/dist/docs-src/guide/materials.md +125 -0
  31. package/dist/docs-src/guide/project.md +157 -0
  32. package/dist/docs-src/guide/quickstart.md +63 -0
  33. package/dist/docs-src/guide/recognizable-places.md +158 -0
  34. package/dist/docs-src/guide/rendering-backends.md +231 -0
  35. package/dist/docs-src/guide/scripting.md +330 -0
  36. package/dist/docs-src/guide/sky.md +192 -0
  37. package/dist/docs-src/guide/source-bundles.md +42 -0
  38. package/dist/docs-src/guide/structure-library.md +114 -0
  39. package/dist/docs-src/guide/surface-rendering.md +203 -0
  40. package/dist/docs-src/guide/terrain.md +389 -0
  41. package/dist/docs-src/guide/three-surface.md +70 -0
  42. package/dist/docs-src/guide/vehicle-interiors.md +126 -0
  43. package/dist/docs-src/guide/vehicles.md +110 -0
  44. package/dist/docs-src/guide/weather.md +123 -0
  45. package/dist/docs-src/guide/worldgen.md +434 -0
  46. package/dist/docs-src/llms.txt +129 -0
  47. package/dist/docs-src/schemas/README.md +36 -0
  48. package/dist/docs-src/schemas/archstyle.md +2340 -0
  49. package/dist/docs-src/schemas/assert.md +169 -0
  50. package/dist/docs-src/schemas/asset.md +543 -0
  51. package/dist/docs-src/schemas/business-catalog.md +162 -0
  52. package/dist/docs-src/schemas/cameratrack.md +132 -0
  53. package/dist/docs-src/schemas/command.md +112 -0
  54. package/dist/docs-src/schemas/components.md +5826 -0
  55. package/dist/docs-src/schemas/delta.md +204 -0
  56. package/dist/docs-src/schemas/experience-play.md +452 -0
  57. package/dist/docs-src/schemas/figure.md +290 -0
  58. package/dist/docs-src/schemas/interior-catalog.md +230 -0
  59. package/dist/docs-src/schemas/keyframe.md +314 -0
  60. package/dist/docs-src/schemas/landmark-catalog.md +56 -0
  61. package/dist/docs-src/schemas/landmark.md +293 -0
  62. package/dist/docs-src/schemas/matgraph.md +1163 -0
  63. package/dist/docs-src/schemas/pack-index.md +82 -0
  64. package/dist/docs-src/schemas/pack-source.md +139 -0
  65. package/dist/docs-src/schemas/pack.md +225 -0
  66. package/dist/docs-src/schemas/pixelgrid.md +108 -0
  67. package/dist/docs-src/schemas/prefab.md +106 -0
  68. package/dist/docs-src/schemas/project.md +271 -0
  69. package/dist/docs-src/schemas/region-atlas.md +612 -0
  70. package/dist/docs-src/schemas/replay.md +807 -0
  71. package/dist/docs-src/schemas/scatter.md +541 -0
  72. package/dist/docs-src/schemas/scene.md +1152 -0
  73. package/dist/docs-src/schemas/source-bundle.md +266 -0
  74. package/dist/docs-src/schemas/stylepack.md +420 -0
  75. package/dist/docs-src/schemas/terrain-package.md +731 -0
  76. package/dist/docs-src/schemas/terrain.md +313 -0
  77. package/dist/docs-src/schemas/types.md +218 -0
  78. package/dist/docs-src/schemas/uvpaint.md +149 -0
  79. package/dist/docs-src/schemas/worldgen-batch.md +743 -0
  80. package/dist/index.d.mts +1271 -0
  81. package/dist/index.mjs +78 -0
  82. package/dist/mcp-BFnCWrg0.mjs +796 -0
  83. package/dist/ops-BGxhSP6w.mjs +7246 -0
  84. package/package.json +96 -0
@@ -0,0 +1,290 @@
1
+ # Figure descriptor (`molen/figure@1`)
2
+
3
+ A figure descriptor document: a preset plus overrides, the same shape as the `figure` component. Preview it with `molen figure preview`, bake it with `molen figure bake`.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/figure@1",
10
+ "preset": "horse",
11
+ "height": 1.6,
12
+ "palette": {
13
+ "skin": "#3b2a1e",
14
+ "markings": "#f0ead6"
15
+ }
16
+ }
17
+ ```
18
+
19
+ ## JSON Schema
20
+
21
+ ```json
22
+ {
23
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
24
+ "type": "object",
25
+ "properties": {
26
+ "format": {
27
+ "type": "string",
28
+ "const": "molen/figure@1",
29
+ "description": "Format envelope; always 'molen/figure@1'."
30
+ },
31
+ "preset": {
32
+ "type": "string",
33
+ "enum": [
34
+ "human.adult",
35
+ "human.child",
36
+ "human.elder",
37
+ "dog",
38
+ "cat",
39
+ "horse",
40
+ "deer",
41
+ "cow",
42
+ "sheep"
43
+ ],
44
+ "description": "Preset the descriptor starts from, e.g. 'human.adult' or 'horse'."
45
+ },
46
+ "height": {
47
+ "type": "number",
48
+ "minimum": 0.2,
49
+ "maximum": 4,
50
+ "description": "Standing height in meters (bipeds: head top; quadrupeds: withers)."
51
+ },
52
+ "build": {
53
+ "type": "number",
54
+ "minimum": -1,
55
+ "maximum": 1,
56
+ "description": "Body mass from -1 (slight) to 1 (heavy): limb and torso radii, shoulder width."
57
+ },
58
+ "age": {
59
+ "type": "string",
60
+ "enum": [
61
+ "child",
62
+ "adult",
63
+ "elder"
64
+ ],
65
+ "description": "Age band (head and limb ratios)."
66
+ },
67
+ "proportions": {
68
+ "type": "object",
69
+ "properties": {
70
+ "legRatio": {
71
+ "type": "number",
72
+ "minimum": 0.5,
73
+ "maximum": 1.6,
74
+ "description": "Leg length multiplier (1 = preset)."
75
+ },
76
+ "armRatio": {
77
+ "type": "number",
78
+ "minimum": 0.5,
79
+ "maximum": 1.6,
80
+ "description": "Arm length multiplier (1 = preset)."
81
+ },
82
+ "torsoRatio": {
83
+ "type": "number",
84
+ "minimum": 0.5,
85
+ "maximum": 1.6,
86
+ "description": "Torso length multiplier (1 = preset)."
87
+ },
88
+ "headScale": {
89
+ "type": "number",
90
+ "minimum": 0.6,
91
+ "maximum": 2,
92
+ "description": "Head size multiplier (1 = preset)."
93
+ },
94
+ "neckLength": {
95
+ "type": "number",
96
+ "minimum": 0.5,
97
+ "maximum": 1.6,
98
+ "description": "Neck length multiplier (1 = preset)."
99
+ },
100
+ "neckPitch": {
101
+ "type": "number",
102
+ "minimum": -1.2,
103
+ "maximum": 1.6,
104
+ "description": "Quadruped neck pitch above the spine line, radians."
105
+ },
106
+ "shoulderWidth": {
107
+ "type": "number",
108
+ "minimum": 0.5,
109
+ "maximum": 1.6,
110
+ "description": "Shoulder width multiplier (1 = preset)."
111
+ },
112
+ "hipWidth": {
113
+ "type": "number",
114
+ "minimum": 0.5,
115
+ "maximum": 1.6,
116
+ "description": "Hip width multiplier (1 = preset)."
117
+ },
118
+ "bodyLength": {
119
+ "type": "number",
120
+ "minimum": 0.8,
121
+ "maximum": 2.5,
122
+ "description": "Quadruped body length as a multiple of height (withers)."
123
+ },
124
+ "tailLength": {
125
+ "type": "number",
126
+ "minimum": 0,
127
+ "maximum": 2,
128
+ "description": "Tail length as a multiple of height."
129
+ },
130
+ "earSize": {
131
+ "type": "number",
132
+ "minimum": 0,
133
+ "maximum": 2,
134
+ "description": "Ear size multiplier (1 = preset)."
135
+ },
136
+ "snoutLength": {
137
+ "type": "number",
138
+ "minimum": 0,
139
+ "maximum": 1.5,
140
+ "description": "Snout length as a multiple of the head unit (0 = flat face)."
141
+ }
142
+ },
143
+ "additionalProperties": false,
144
+ "description": "Proportion multipliers over the preset."
145
+ },
146
+ "features": {
147
+ "type": "object",
148
+ "properties": {
149
+ "hair": {
150
+ "type": "string",
151
+ "enum": [
152
+ "none",
153
+ "cap",
154
+ "bob",
155
+ "long"
156
+ ],
157
+ "description": "Hair shell style."
158
+ },
159
+ "hands": {
160
+ "type": "string",
161
+ "enum": [
162
+ "mitten",
163
+ "fingers"
164
+ ],
165
+ "description": "Hand geometry (fingers: near tier only)."
166
+ },
167
+ "sleeves": {
168
+ "type": "string",
169
+ "enum": [
170
+ "none",
171
+ "short",
172
+ "long"
173
+ ],
174
+ "description": "Sleeve length (top color extent)."
175
+ },
176
+ "legs": {
177
+ "type": "string",
178
+ "enum": [
179
+ "shorts",
180
+ "long"
181
+ ],
182
+ "description": "Legwear length (bottom color extent)."
183
+ },
184
+ "tail": {
185
+ "type": "string",
186
+ "enum": [
187
+ "none",
188
+ "short",
189
+ "long",
190
+ "bushy"
191
+ ],
192
+ "description": "Tail style."
193
+ },
194
+ "ears": {
195
+ "type": "string",
196
+ "enum": [
197
+ "none",
198
+ "round",
199
+ "pointed",
200
+ "floppy"
201
+ ],
202
+ "description": "Ear style."
203
+ },
204
+ "horns": {
205
+ "type": "string",
206
+ "enum": [
207
+ "none",
208
+ "short",
209
+ "long",
210
+ "antlers"
211
+ ],
212
+ "description": "Horn style."
213
+ },
214
+ "feet": {
215
+ "type": "string",
216
+ "enum": [
217
+ "plantigrade",
218
+ "digitigrade",
219
+ "unguligrade"
220
+ ],
221
+ "description": "Foot stance: flat feet, paws, or hooves."
222
+ },
223
+ "mane": {
224
+ "type": "boolean",
225
+ "description": "Neck mane (horses)."
226
+ }
227
+ },
228
+ "additionalProperties": false,
229
+ "description": "Discrete feature choices over the preset."
230
+ },
231
+ "palette": {
232
+ "type": "object",
233
+ "properties": {
234
+ "skin": {
235
+ "type": "string",
236
+ "pattern": "^#[0-9a-fA-F]{6}$",
237
+ "description": "Skin, fur, or hide color."
238
+ },
239
+ "hair": {
240
+ "type": "string",
241
+ "pattern": "^#[0-9a-fA-F]{6}$",
242
+ "description": "Hair or mane color."
243
+ },
244
+ "eyes": {
245
+ "type": "string",
246
+ "pattern": "^#[0-9a-fA-F]{6}$",
247
+ "description": "Color as \"#rrggbb\"."
248
+ },
249
+ "top": {
250
+ "type": "string",
251
+ "pattern": "^#[0-9a-fA-F]{6}$",
252
+ "description": "Torso and sleeves."
253
+ },
254
+ "bottom": {
255
+ "type": "string",
256
+ "pattern": "^#[0-9a-fA-F]{6}$",
257
+ "description": "Legwear."
258
+ },
259
+ "shoes": {
260
+ "type": "string",
261
+ "pattern": "^#[0-9a-fA-F]{6}$",
262
+ "description": "Shoes, paws, or hooves."
263
+ },
264
+ "accent": {
265
+ "type": "string",
266
+ "pattern": "^#[0-9a-fA-F]{6}$",
267
+ "description": "Belt, collar, or saddle strip."
268
+ },
269
+ "markings": {
270
+ "type": "string",
271
+ "pattern": "^#[0-9a-fA-F]{6}$",
272
+ "description": "Secondary fur markings (animals)."
273
+ }
274
+ },
275
+ "additionalProperties": false,
276
+ "description": "Color blocks over the preset (\"#rrggbb\")."
277
+ },
278
+ "seed": {
279
+ "type": "string",
280
+ "minLength": 1,
281
+ "description": "Detail jitter seed (symmetry-safe details only; default none)."
282
+ }
283
+ },
284
+ "required": [
285
+ "format",
286
+ "preset"
287
+ ],
288
+ "additionalProperties": false
289
+ }
290
+ ```
@@ -0,0 +1,230 @@
1
+ # Interior catalog (`molen/interior-catalog@1`)
2
+
3
+ Versioned type-specific layout algorithms, metric clearances and furnishing palettes for inferred interiors, including connected residential storeys.
4
+
5
+ ## Example
6
+
7
+ ```json
8
+ {
9
+ "format": "molen/interior-catalog@1",
10
+ "fallback": "generic",
11
+ "profiles": [
12
+ {
13
+ "id": "cafe",
14
+ "version": 1,
15
+ "labels": [
16
+ "cafe",
17
+ "coffee_shop"
18
+ ],
19
+ "algorithm": "dining",
20
+ "furnishing": "table",
21
+ "moduleWidth": 1.8,
22
+ "moduleDepth": 1.8,
23
+ "aisleWidth": 1.4,
24
+ "density": 0.9,
25
+ "palette": {
26
+ "floor": "#a48569",
27
+ "wall": "#e5d8c2",
28
+ "wood": "#77523b",
29
+ "accent": "#4e746a"
30
+ }
31
+ },
32
+ {
33
+ "id": "generic",
34
+ "version": 1,
35
+ "labels": [],
36
+ "algorithm": "hall",
37
+ "furnishing": "sofa",
38
+ "moduleWidth": 2.2,
39
+ "moduleDepth": 1.2,
40
+ "aisleWidth": 1.8,
41
+ "density": 0.9,
42
+ "palette": {
43
+ "floor": "#b9b2a2",
44
+ "wall": "#e2ddcf",
45
+ "wood": "#856249",
46
+ "accent": "#536b66"
47
+ }
48
+ }
49
+ ]
50
+ }
51
+ ```
52
+
53
+ ## JSON Schema
54
+
55
+ ```json
56
+ {
57
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
58
+ "type": "object",
59
+ "properties": {
60
+ "format": {
61
+ "type": "string",
62
+ "const": "molen/interior-catalog@1"
63
+ },
64
+ "fallback": {
65
+ "type": "string",
66
+ "minLength": 1
67
+ },
68
+ "profiles": {
69
+ "minItems": 1,
70
+ "maxItems": 128,
71
+ "type": "array",
72
+ "items": {
73
+ "type": "object",
74
+ "properties": {
75
+ "id": {
76
+ "type": "string",
77
+ "pattern": "^[a-z][a-z0-9.-]*$"
78
+ },
79
+ "version": {
80
+ "type": "integer",
81
+ "exclusiveMinimum": 0,
82
+ "maximum": 9007199254740991
83
+ },
84
+ "labels": {
85
+ "type": "array",
86
+ "items": {
87
+ "type": "string",
88
+ "minLength": 1
89
+ }
90
+ },
91
+ "algorithm": {
92
+ "type": "string",
93
+ "enum": [
94
+ "aisles",
95
+ "dining",
96
+ "rooms",
97
+ "workplace",
98
+ "storage",
99
+ "hall",
100
+ "residential"
101
+ ]
102
+ },
103
+ "residential": {
104
+ "type": "object",
105
+ "properties": {
106
+ "upstairs": {
107
+ "type": "boolean"
108
+ },
109
+ "stairWidth": {
110
+ "type": "number",
111
+ "minimum": 1.2,
112
+ "maximum": 2
113
+ },
114
+ "runPerRise": {
115
+ "type": "number",
116
+ "minimum": 1.5,
117
+ "maximum": 2
118
+ },
119
+ "minRoomWidth": {
120
+ "type": "number",
121
+ "minimum": 2.2,
122
+ "maximum": 4
123
+ }
124
+ },
125
+ "required": [
126
+ "upstairs",
127
+ "stairWidth",
128
+ "runPerRise",
129
+ "minRoomWidth"
130
+ ],
131
+ "additionalProperties": false
132
+ },
133
+ "furnishing": {
134
+ "type": "string",
135
+ "enum": [
136
+ "shelf",
137
+ "checkout",
138
+ "table",
139
+ "counter",
140
+ "bed",
141
+ "sofa",
142
+ "desk",
143
+ "rack",
144
+ "bench",
145
+ "wardrobe",
146
+ "kitchen",
147
+ "vanity",
148
+ "toilet",
149
+ "shower",
150
+ "rug",
151
+ "coffee-table",
152
+ "bookcase",
153
+ "plant",
154
+ "dresser"
155
+ ]
156
+ },
157
+ "aisleWidth": {
158
+ "type": "number",
159
+ "minimum": 1.2,
160
+ "maximum": 8,
161
+ "description": "Minimum clear route width in meters."
162
+ },
163
+ "moduleWidth": {
164
+ "type": "number",
165
+ "minimum": 0.5,
166
+ "maximum": 20
167
+ },
168
+ "moduleDepth": {
169
+ "type": "number",
170
+ "minimum": 0.5,
171
+ "maximum": 30
172
+ },
173
+ "density": {
174
+ "type": "number",
175
+ "minimum": 0,
176
+ "maximum": 1
177
+ },
178
+ "palette": {
179
+ "type": "object",
180
+ "properties": {
181
+ "floor": {
182
+ "type": "string",
183
+ "pattern": "^#[0-9a-fA-F]{6}$"
184
+ },
185
+ "wall": {
186
+ "type": "string",
187
+ "pattern": "^#[0-9a-fA-F]{6}$"
188
+ },
189
+ "wood": {
190
+ "type": "string",
191
+ "pattern": "^#[0-9a-fA-F]{6}$"
192
+ },
193
+ "accent": {
194
+ "type": "string",
195
+ "pattern": "^#[0-9a-fA-F]{6}$"
196
+ }
197
+ },
198
+ "required": [
199
+ "floor",
200
+ "wall",
201
+ "wood",
202
+ "accent"
203
+ ],
204
+ "additionalProperties": false
205
+ }
206
+ },
207
+ "required": [
208
+ "id",
209
+ "version",
210
+ "labels",
211
+ "algorithm",
212
+ "furnishing",
213
+ "aisleWidth",
214
+ "moduleWidth",
215
+ "moduleDepth",
216
+ "density",
217
+ "palette"
218
+ ],
219
+ "additionalProperties": false
220
+ }
221
+ }
222
+ },
223
+ "required": [
224
+ "format",
225
+ "fallback",
226
+ "profiles"
227
+ ],
228
+ "additionalProperties": false
229
+ }
230
+ ```