@hypersoniclabs/helix-cli 0.1.27-helix3.605 → 0.1.27-helix3.607

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.
@@ -0,0 +1,254 @@
1
+ "use strict";
2
+ // One GLB from many road GLBs: the render leaves (or the lane paint, or the far cells) of one stream group drawn as ONE node with one
3
+ // primitive per material, instead of one node per leaf.
4
+ //
5
+ // WHY. A baked CS2 road folder splits dense downtown into 130/260 m quadtree leaves and gives every leaf a second GLB for its paint, so a
6
+ // phone camera cell kept 48 road nodes + 48 paint nodes + 42 far-road nodes resident (Pacifica, mobile perf audit P06: 144 of 150 draw
7
+ // calls, Granit 46). The leaves of one group are already one memory unit (the engine bills a group whole) and share one material, so
8
+ // drawing them as one mesh costs nothing in residency and saves a draw per leaf.
9
+ //
10
+ // EXACT. The leaves of one group share the global 1/60 m lattice: the same node scale and translations that differ by whole lattice steps
11
+ // (each leaf sits at its own 128/256 m corner and `yBase`, all lattice values). Their uint16 positions are re-based onto the group's lowest
12
+ // corner with integer offsets: bit for bit the same world positions. Leaves that do not share a lattice frame (the far layer's
13
+ // 2,048 m cells) are written as float32 positions relative to their common origin: exact to float precision, a few bytes more.
14
+ //
15
+ // What is copied verbatim: every vertex attribute (NORMAL int8, COLOR_0 and `_ROAD` uint8, TEXCOORD_0 uint16), the indices, and each
16
+ // material's JSON including its HELIX_materials_city extension. A set this module cannot merge losslessly (rotated or non-uniformly
17
+ // scaled nodes, textured materials, attribute layouts that differ between leaves of one material) returns null and the caller keeps the
18
+ // leaves as they were.
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.glbJson = glbJson;
21
+ exports.mergeRoadGlbs = mergeRoadGlbs;
22
+ const core_1 = require("@gltf-transform/core");
23
+ const extensions_1 = require("@gltf-transform/extensions");
24
+ const meshoptimizer_1 = require("meshoptimizer");
25
+ let sharedIo = null;
26
+ async function io() {
27
+ await Promise.all([meshoptimizer_1.MeshoptDecoder.ready, meshoptimizer_1.MeshoptEncoder.ready]);
28
+ // The materials' HELIX_materials_city extension is unknown to gltf-transform: it is carried over from the JSON chunk, not read.
29
+ sharedIo ??= new core_1.NodeIO().setLogger(new core_1.Logger(core_1.Logger.Verbosity.ERROR)).registerExtensions([extensions_1.KHRMeshQuantization, extensions_1.EXTMeshoptCompression])
30
+ .registerDependencies({ 'meshopt.decoder': meshoptimizer_1.MeshoptDecoder, 'meshopt.encoder': meshoptimizer_1.MeshoptEncoder });
31
+ return sharedIo;
32
+ }
33
+ /** The JSON chunk of a GLB (materials keep the extensions gltf-transform does not know). */
34
+ function glbJson(glb) {
35
+ const view = new DataView(glb.buffer, glb.byteOffset, glb.byteLength);
36
+ if (view.getUint32(0, true) !== 0x46546c67)
37
+ throw new Error('not a GLB');
38
+ const length = view.getUint32(12, true);
39
+ return JSON.parse(new TextDecoder().decode(glb.subarray(20, 20 + length)));
40
+ }
41
+ /** Replaces the materials array (and the extensions it uses) of a written GLB's JSON chunk. */
42
+ function patchMaterials(glb, materials, extensionsUsed) {
43
+ const view = new DataView(glb.buffer, glb.byteOffset, glb.byteLength);
44
+ const jsonLength = view.getUint32(12, true);
45
+ const json = JSON.parse(new TextDecoder().decode(glb.subarray(20, 20 + jsonLength)));
46
+ json.materials = materials;
47
+ const used = new Set([...(json.extensionsUsed ?? []), ...extensionsUsed]);
48
+ if (used.size)
49
+ json.extensionsUsed = [...used];
50
+ const text = new TextEncoder().encode(JSON.stringify(json));
51
+ const padded = new Uint8Array(Math.ceil(text.length / 4) * 4).fill(0x20);
52
+ padded.set(text);
53
+ const rest = glb.subarray(20 + jsonLength);
54
+ const out = new Uint8Array(20 + padded.length + rest.length);
55
+ const ov = new DataView(out.buffer);
56
+ out.set(glb.subarray(0, 12), 0);
57
+ ov.setUint32(8, out.length, true);
58
+ ov.setUint32(12, padded.length, true);
59
+ ov.setUint32(16, 0x4e4f534a, true);
60
+ out.set(padded, 20);
61
+ out.set(rest, 20 + padded.length);
62
+ return out;
63
+ }
64
+ const TEXTURE_KEY = /texture/i;
65
+ const hasTexture = (value) => {
66
+ if (!value || typeof value !== 'object')
67
+ return false;
68
+ return Object.entries(value).some(([key, v]) => TEXTURE_KEY.test(key) || hasTexture(v));
69
+ };
70
+ async function partsOf(glb) {
71
+ const json = glbJson(glb);
72
+ if ((json.materials ?? []).some(hasTexture))
73
+ return null;
74
+ const doc = await (await io()).readBinary(glb);
75
+ const root = doc.getRoot();
76
+ const materials = root.listMaterials();
77
+ const parts = [];
78
+ for (const node of root.listNodes()) {
79
+ const mesh = node.getMesh();
80
+ if (!mesh)
81
+ continue;
82
+ if (node.listChildren().length || node.getParentNode())
83
+ return null;
84
+ const r = node.getRotation();
85
+ const s = node.getScale();
86
+ if (r[0] !== 0 || r[1] !== 0 || r[2] !== 0 || r[3] !== 1)
87
+ return null;
88
+ if (s[0] !== s[1] || s[1] !== s[2] || !(s[0] > 0))
89
+ return null;
90
+ for (const prim of mesh.listPrimitives()) {
91
+ if (prim.getMode() !== 4)
92
+ return null; // triangles only
93
+ const material = prim.getMaterial();
94
+ const index = material ? materials.indexOf(material) : -1;
95
+ const materialJson = index >= 0 ? json.materials?.[index] ?? null : null;
96
+ if (!materialJson || hasTexture(materialJson))
97
+ return null;
98
+ const indices = prim.getIndices()?.getArray();
99
+ const position = prim.getAttribute('POSITION');
100
+ if (!indices || !position)
101
+ return null;
102
+ const attributes = new Map();
103
+ for (const semantic of prim.listSemantics()) {
104
+ const accessor = prim.getAttribute(semantic);
105
+ if (accessor.getSparse())
106
+ return null;
107
+ attributes.set(semantic, { array: accessor.getArray(), type: accessor.getType(), normalized: accessor.getNormalized() });
108
+ }
109
+ parts.push({
110
+ materialKey: JSON.stringify(materialJson), materialJson,
111
+ translation: node.getTranslation(), scale: s[0],
112
+ attributes, indices, count: position.getCount(),
113
+ });
114
+ }
115
+ }
116
+ return parts;
117
+ }
118
+ const layout = (p) => [...p.attributes.entries()].sort(([a], [b]) => (a < b ? -1 : 1))
119
+ .map(([k, a]) => `${k}:${a.array.constructor.name}:${a.type}:${a.normalized}`).join('|');
120
+ const COMPONENTS = { SCALAR: 1, VEC2: 2, VEC3: 3, VEC4: 4 };
121
+ /**
122
+ * Merges road GLBs into one node with one primitive per distinct material (in first-seen order). Returns null when the set cannot be
123
+ * merged without changing a vertex (see the header); the caller then keeps the inputs as they are.
124
+ */
125
+ async function mergeRoadGlbs(glbs, name, options = {}) {
126
+ if (glbs.length === 0)
127
+ return null;
128
+ const parts = [];
129
+ for (const glb of glbs) {
130
+ const own = await partsOf(glb);
131
+ if (!own)
132
+ return null;
133
+ parts.push(...own);
134
+ }
135
+ if (parts.length === 0)
136
+ return null;
137
+ // One material group per distinct material JSON; every part of one group must have the same attribute layout.
138
+ const groups = new Map();
139
+ for (const part of parts) {
140
+ const list = groups.get(part.materialKey);
141
+ if (list)
142
+ list.push(part);
143
+ else
144
+ groups.set(part.materialKey, [part]);
145
+ }
146
+ for (const list of groups.values())
147
+ if (new Set(list.map(layout)).size !== 1)
148
+ return null;
149
+ // Each material's parts, cut into primitives of at most `maxPrimitiveVertices` (in order; a part is never split).
150
+ const limit = options.maxPrimitiveVertices ?? Infinity;
151
+ const chunks = [];
152
+ for (const list of groups.values()) {
153
+ let current = [], n = 0;
154
+ for (const part of list) {
155
+ if (current.length && n + part.count > limit) {
156
+ chunks.push(current);
157
+ current = [];
158
+ n = 0;
159
+ }
160
+ current.push(part);
161
+ n += part.count;
162
+ }
163
+ if (current.length)
164
+ chunks.push(current);
165
+ }
166
+ // The shared lattice: one scale, translations that differ by whole steps on every axis (leaves sit at their own 128/256 m corners and
167
+ // `yBase`, all lattice values), and re-based uint16 positions that stay in range.
168
+ const s = parts[0].scale;
169
+ const corner = [0, 1, 2].map((a) => Math.min(...parts.map((p) => p.translation[a])));
170
+ const shift = (p) => [0, 1, 2].map((a) => (p.translation[a] - corner[a]) / s);
171
+ const whole = (v) => Math.abs(v - Math.round(v)) < 1e-3;
172
+ let lattice = parts.every((p) => p.scale === s && shift(p).every(whole)
173
+ && p.attributes.get('POSITION').array instanceof Uint16Array && !p.attributes.get('POSITION').normalized);
174
+ if (lattice) {
175
+ for (const p of parts) {
176
+ const pos = p.attributes.get('POSITION').array, d = shift(p).map(Math.round);
177
+ for (let i = 0; i < pos.length && lattice; i += 1)
178
+ if (pos[i] + d[i % 3] > 0xffff)
179
+ lattice = false;
180
+ if (!lattice)
181
+ break;
182
+ }
183
+ }
184
+ const origin = corner;
185
+ const doc = new core_1.Document();
186
+ const buffer = doc.createBuffer();
187
+ doc.createExtension(extensions_1.KHRMeshQuantization).setRequired(true);
188
+ doc.createExtension(extensions_1.EXTMeshoptCompression).setRequired(true).setEncoderOptions({ method: extensions_1.EXTMeshoptCompression.EncoderMethod.QUANTIZE });
189
+ const mesh = doc.createMesh(name);
190
+ const materialsOut = [];
191
+ const placeholders = [];
192
+ let primitives = 0;
193
+ const extensionsUsed = new Set();
194
+ let vertices = 0, triangles = 0;
195
+ for (const list of chunks) {
196
+ const count = list.reduce((n, p) => n + p.count, 0);
197
+ const indexCount = list.reduce((n, p) => n + p.indices.length, 0);
198
+ const indices = count > 0xffff ? new Uint32Array(indexCount) : new Uint16Array(indexCount);
199
+ const first = list[0];
200
+ const prim = doc.createPrimitive();
201
+ for (const [semantic, spec] of first.attributes) {
202
+ const width = COMPONENTS[spec.type];
203
+ const isPosition = semantic === 'POSITION';
204
+ const out = isPosition && !lattice ? new Float32Array(count * 3) : new spec.array.constructor(count * width);
205
+ let at = 0;
206
+ for (const p of list) {
207
+ const src = p.attributes.get(semantic).array;
208
+ if (!isPosition)
209
+ out.set(src, at * width);
210
+ else if (lattice) {
211
+ const d = shift(p).map(Math.round);
212
+ for (let i = 0; i < p.count * 3; i += 1)
213
+ out[at * 3 + i] = src[i] + d[i % 3];
214
+ }
215
+ else {
216
+ for (let i = 0; i < p.count; i += 1) {
217
+ for (let a = 0; a < 3; a += 1)
218
+ out[(at + i) * 3 + a] = p.translation[a] - origin[a] + p.scale * src[i * 3 + a];
219
+ }
220
+ }
221
+ at += p.count;
222
+ }
223
+ prim.setAttribute(semantic, doc.createAccessor().setBuffer(buffer).setArray(out).setType(spec.type).setNormalized(isPosition ? false : spec.normalized));
224
+ }
225
+ let base = 0, k = 0;
226
+ for (const p of list) {
227
+ for (let i = 0; i < p.indices.length; i += 1)
228
+ indices[k++] = p.indices[i] + base;
229
+ base += p.count;
230
+ }
231
+ prim.setIndices(doc.createAccessor().setBuffer(buffer).setArray(indices).setType('SCALAR'));
232
+ // A placeholder material keeps the primitive's slot; the source material's JSON (with its HELIX_materials_city extension) replaces it below.
233
+ let slot = materialsOut.indexOf(first.materialJson);
234
+ if (slot < 0) {
235
+ slot = materialsOut.length;
236
+ materialsOut.push(first.materialJson);
237
+ placeholders.push(doc.createMaterial(String(first.materialJson.name ?? `m${slot}`)));
238
+ }
239
+ prim.setMaterial(placeholders[slot]);
240
+ for (const key of Object.keys(first.materialJson.extensions ?? {}))
241
+ extensionsUsed.add(key);
242
+ mesh.addPrimitive(prim);
243
+ primitives += 1;
244
+ vertices += count;
245
+ triangles += indexCount / 3;
246
+ }
247
+ const node = doc.createNode(name).setMesh(mesh).setTranslation(origin);
248
+ if (lattice)
249
+ node.setScale([s, s, s]);
250
+ doc.createScene().addChild(node);
251
+ const written = await (await io()).writeBinary(doc);
252
+ return { bytes: patchMaterials(written, materialsOut, [...extensionsUsed]), positions: lattice ? 'lattice' : 'float', primitives, vertices, triangles };
253
+ }
254
+ //# sourceMappingURL=roadMerge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roadMerge.js","sourceRoot":"","sources":["../../../src/city/assemble/roadMerge.ts"],"names":[],"mappings":";AAAA,sIAAsI;AACtI,wDAAwD;AACxD,EAAE;AACF,0IAA0I;AAC1I,uIAAuI;AACvI,qIAAqI;AACrI,iFAAiF;AACjF,EAAE;AACF,0IAA0I;AAC1I,4IAA4I;AAC5I,+HAA+H;AAC/H,+HAA+H;AAC/H,EAAE;AACF,qIAAqI;AACrI,oIAAoI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WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACjC,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpD,OAAO,EAAE,KAAK,EAAE,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;AAC1J,CAAC"}
@@ -5,7 +5,7 @@ export interface SceneVisualsConfig {
5
5
  weather: {
6
6
  enabled: boolean;
7
7
  preset: string;
8
- };
8
+ } & Partial<CityWeatherDeck>;
9
9
  timeOfDay: {
10
10
  hours: number;
11
11
  cycleSeconds: number;
@@ -27,6 +27,7 @@ export interface SceneVisualsConfig {
27
27
  model: string;
28
28
  mieScale: number;
29
29
  groundBounceAlbedo: number;
30
+ cloudStyle?: 'puff' | 'soft';
30
31
  };
31
32
  look: {
32
33
  preset: string;
@@ -46,6 +47,7 @@ export interface CityOcean {
46
47
  deepColour: [number, number, number];
47
48
  shallowColour: [number, number, number];
48
49
  reflectance: number;
50
+ sunGlint?: number;
49
51
  }
50
52
  /**
51
53
  * The world's edge, the engine's `look.horizon` block: haze rising to `amount` in the sky's own horizon colour from `start` to `end` metres,
@@ -60,10 +62,31 @@ export interface CityHorizon {
60
62
  end: number;
61
63
  amount: number;
62
64
  skyline: number;
65
+ air?: CityAir;
66
+ }
67
+ /**
68
+ * How the haze thins with the camera's height (engine visual >= 0.1.143, `look.horizon.air`; an older runtime ignores it): the fog density and
69
+ * the world-edge haze are held at their authored value up to `startM` above the ground, and fall off with `scaleM` beyond it down to nothing
70
+ * over `rampM`, so a street keeps the game's near-city haze while a view from a few kilometres up reads clear to the horizon. `edgeKeep` is
71
+ * the share of the edge haze that stays at any height.
72
+ */
73
+ export interface CityAir {
74
+ startM: number;
75
+ scaleM: number;
76
+ rampM: number;
77
+ edgeKeep: number;
78
+ }
79
+ /** The cloud deck a weather block can shape (engine weather options): how much sky, how thick, how big, how high, and whether it shades the land. */
80
+ export interface CityWeatherDeck {
81
+ coverage: number;
82
+ density: number;
83
+ cloudScaleM: number;
84
+ cloudBaseM: number;
85
+ cloudShadows: boolean;
63
86
  }
64
87
  /** The overrides a city look puts on the engine's built-in `day` preset (partial: what it does not say, `day` keeps). */
65
88
  export interface CityDayLook {
66
- weather?: string;
89
+ weather?: string | null;
67
90
  finish: {
68
91
  shadowTint: [number, number, number];
69
92
  highlightTint: [number, number, number];
@@ -105,6 +128,15 @@ export declare const CITY_HORIZON: CityHorizon;
105
128
  * whole view from 2 km up (A/B round 1).
106
129
  */
107
130
  export declare const CS2_FAR_EDGE_TRANSMITTANCE = 0.18;
131
+ /**
132
+ * ... and the haze is a low-altitude one. The fog above is a distance-only exp: it is right for a street or a 300 m aerial (the game's
133
+ * haze) but the same density wrapped a 4-8 km view in a wall (pacifica-ship-2 sweep poses hz4k_S, hz8k_W, downtownFar6k), because it counts
134
+ * the whole slant ray as if it were ground air. `air` thins it with the camera's height: untouched to 800 m, fading over the next 2.5 km
135
+ * (scale 1.2 km); the world-edge haze keeps all of its amount and its ramp only stretches by 1 + height / 8 km, so the far sea and land still
136
+ * end in the sky's colour as a soft band instead of a wall (a 4 km and an 8 km view, m1-m3 in the live page: edgeKeep 0.7 with a 2.5 km ramp
137
+ * left the sea a black slab to a hard horizon; scale 2.5 km brought the wall back at 8 km). Tuned in the live page against hz4k_S / hz8k_W / 14 / 32.
138
+ */
139
+ export declare const CS2_AIR: CityAir;
108
140
  export declare const CS2_HORIZON: CityHorizon;
109
141
  /** The latitude and hour of a map that has no place on Earth. */
110
142
  export declare const FICTIONAL_LATITUDE_DEG = 37.8;
@@ -118,15 +150,24 @@ export declare const CS2_EXPOSURE_COMPENSATION = -1;
118
150
  /**
119
151
  * A CS2 map's sea. The game's sea is a near-black navy body (shore poses 24, 28, 08: sRGB 7-18 / 14-25 / 10-27) under a pale sky; the engine's
120
152
  * island sea (deep 0.012 / 0.055 / 0.075, shallow 0.07 / 0.27 / 0.23, the full Fresnel mirror) read pale grey-blue there (77-89 / 98-106 /
121
- * 115-120). A darker, less blue body and 40 % of the mirror bring it to the game's.
153
+ * 115-120). The first answer (deep 0.002 / 0.012 / 0.016, 40 % mirror) was too dark and too blue next to the game's grey-teal at shots 14, 24, 26,
154
+ * 32 (live Pacifica: sea band 5-8 / 6-9 / 14 against 12-25 / 18-33 / 20-38): the deep body takes equal green and blue, the mirror (which
155
+ * carries the sky's blue and the horizon's brightening) drops to 35 %, and the sun's glitter (`sunGlint`, engine visual >= 0.1.143, a multiplier on the GGX highlight)
156
+ * to 15 %: at full strength a tidal channel mirrored the sun as a silver sheet from the air (pose marshAir, round-2 defect 9) where the
157
+ * game's water shows only a faint sparkle.
122
158
  */
123
159
  export declare const CS2_OCEAN: CityOcean;
124
160
  /**
125
- * A CS2 map's sky: 'clear' (no cloud deck). Against in-game CS2 shots of Pacifica at the same 24 poses (pacifica-cs2-ref, 2026-10-24)
126
- * the 'fair' deck (coverage 0.42) read as a dense layer of cartoon puffs over every aerial and shoreline view where CS2 shows an open
127
- * hazy sky; coverage 0.2 still read as blotches; 'clear' matched (coordinator/pacifica-showcase-20261024/look-ab-r1-weather.jpg).
161
+ * A CS2 map's sky: scattered soft cloud, sky only. The game's sky carries a few broad, soft, thin-edged clouds and wisps, flat-lit, over an
162
+ * open hazy blue (pacifica-cs2-ref 12, 14, 24, 28). 'clear' (the first answer, after Granit's 'fair' deck read as a dense layer of cartoon
163
+ * puffs, #544) left every view an empty gradient (round-2 defect 5); the engine's `sky.cloudStyle: "soft"` (engine visual >= 0.1.143) is a
164
+ * flat, broken, soft-edged layer that is never lit or shadowed, so it cannot blotch the land or move the exposure. The deck: coverage 0.5,
165
+ * density 0.3, 16 km cells, 2.6 km up, no cloud shadow; chosen in the live page against the game's shots at 24 / 28 / 12 / 14 (variants
166
+ * s1-s4; s3 read closest). An older runtime that does not know `cloudStyle` warns and draws its puff deck at this coverage.
128
167
  */
129
- export declare const CS2_WEATHER = "clear";
168
+ export declare const CS2_WEATHER = "fair";
169
+ export declare const CS2_CLOUDS: CityWeatherDeck;
170
+ export declare const CS2_CLOUD_STYLE = "soft";
130
171
  /** The scene visuals a city source gets. `scale` multiplies the fog densities (default 1). Pure: same manifest, same JSON. */
131
172
  export declare function deriveSceneVisuals(manifest: Pick<CitySourceManifest, 'frame'>, scale?: number): SceneVisualsConfig;
132
173
  /** Writes `<dir>/scene-visuals/<sceneName>.json` (the path the shell fetches under its data prefix) and returns it. */
@@ -14,17 +14,18 @@
14
14
  // fog exp(-density x extent) = 0.6: the far edge of the map keeps 60% of its contrast, so a skyline reads from
15
15
  // the air at any map size. Ground fog (`heightDensity`) equals it: a distance-only haze, no layer of mist on the streets.
16
16
  // `scale` multiplies both (an art knob; 1 keeps the rule).
17
- // horizon `look.horizon` (`CITY_HORIZON`): no painted skyline ring, a light haze from 6 km; a CS2 map `CS2_HORIZON`.
17
+ // horizon `look.horizon` (`CITY_HORIZON`): no painted skyline ring, a light haze from 6 km; a CS2 map `CS2_HORIZON`, whose haze thins with
18
+ // the camera's height (`CS2_AIR`, engine visual >= 0.1.143; from 4-8 km up it was a wall of fog).
18
19
  // exposure a CS2 map only: `CS2_EXPOSURE_COMPENSATION`, the game's own darker, contrastier daylight.
19
20
  // look a CS2 map's `day` look is overridden for the shade of its streets and the game's sky (`CS2_DAY_LOOK`).
20
- // weather Granit's 'fair' cloud deck, except a CS2 map: 'clear', matching the game's open sky (`CS2_WEATHER`). The look's
21
- // preset carries it too: a look preset settles its own weather on boot (the built-in `day` settles 'fair').
21
+ // weather Granit's 'fair' cloud deck, except a CS2 map: a scattered soft sky-only layer (`CS2_CLOUDS`, `sky.cloudStyle: "soft"`),
22
+ // matching the game's sky. The look's preset says `weather: null` so it does not settle Granit's deck over it.
22
23
  // ocean a CS2 map's sea colour and reflectance (`CS2_OCEAN`): the game's dark navy body, not the islands' pale mirror.
23
24
  //
24
25
  // The CS2 numbers were picked by an in-page A/B on the live Pacifica World at the in-game reference poses (pacifica-cs2-ref, 2026-10-24),
25
26
  // each candidate booted through this very file (the shell's scene-visuals fetch, rewritten), against the in-game shots; see each constant.
26
27
  Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.CS2_WEATHER = exports.CS2_OCEAN = exports.CS2_EXPOSURE_COMPENSATION = exports.DEFAULT_HOURS = exports.FICTIONAL_LATITUDE_DEG = exports.CS2_HORIZON = exports.CS2_FAR_EDGE_TRANSMITTANCE = exports.CITY_HORIZON = exports.GROUND_FOG_RATIO = exports.FOG_FAR_EDGE_TRANSMITTANCE = exports.CS2_DAY_LOOK = void 0;
28
+ exports.CS2_CLOUD_STYLE = exports.CS2_CLOUDS = exports.CS2_WEATHER = exports.CS2_OCEAN = exports.CS2_EXPOSURE_COMPENSATION = exports.DEFAULT_HOURS = exports.FICTIONAL_LATITUDE_DEG = exports.CS2_HORIZON = exports.CS2_AIR = exports.CS2_FAR_EDGE_TRANSMITTANCE = exports.CITY_HORIZON = exports.GROUND_FOG_RATIO = exports.FOG_FAR_EDGE_TRANSMITTANCE = exports.CS2_DAY_LOOK = void 0;
28
29
  exports.deriveSceneVisuals = deriveSceneVisuals;
29
30
  exports.writeSceneVisualsFile = writeSceneVisualsFile;
30
31
  const node_fs_1 = require("node:fs");
@@ -41,9 +42,9 @@ const node_path_1 = require("node:path");
41
42
  * Measured on Leonida's downtown asphalt (live shell, 3 poses): B - R in the shade +1.4 (was -21 warm), in the sun -23, against Granit's -4..-7 and -9..-19.
42
43
  */
43
44
  exports.CS2_DAY_LOOK = {
44
- // The preset settles its own weather on boot, so the clear sky is said here too (with only `weather.preset`, the built-in `day`
45
- // brought Granit's fair deck straight back: measured on live Pacifica, 2026-10-24).
46
- weather: 'clear',
45
+ // The preset settles its own weather on boot (the built-in `day` settles 'fair', Granit's deck, over the scene's `weather` block), so
46
+ // the CS2 look says null: the block `CS2_WEATHER` shapes is the sky.
47
+ weather: null,
47
48
  // Saturation 1.1 and contrast 1.1: the game's daylight is a deeper, warmer green and a darker shade than the engine's day grade.
48
49
  finish: { shadowTint: [1.1, 0.98, 0.8], highlightTint: [1.0, 1.0, 1.0], toning: 0.35, saturation: 1.1, lift: 1.0, contrast: 1.1 },
49
50
  sky: { gain: 0.8 },
@@ -65,7 +66,16 @@ exports.CITY_HORIZON = { start: 6000, end: 30000, amount: 0.3, skyline: 0 };
65
66
  * whole view from 2 km up (A/B round 1).
66
67
  */
67
68
  exports.CS2_FAR_EDGE_TRANSMITTANCE = 0.18;
68
- exports.CS2_HORIZON = { start: 4000, end: 20000, amount: 0.45, skyline: 0 };
69
+ /**
70
+ * ... and the haze is a low-altitude one. The fog above is a distance-only exp: it is right for a street or a 300 m aerial (the game's
71
+ * haze) but the same density wrapped a 4-8 km view in a wall (pacifica-ship-2 sweep poses hz4k_S, hz8k_W, downtownFar6k), because it counts
72
+ * the whole slant ray as if it were ground air. `air` thins it with the camera's height: untouched to 800 m, fading over the next 2.5 km
73
+ * (scale 1.2 km); the world-edge haze keeps all of its amount and its ramp only stretches by 1 + height / 8 km, so the far sea and land still
74
+ * end in the sky's colour as a soft band instead of a wall (a 4 km and an 8 km view, m1-m3 in the live page: edgeKeep 0.7 with a 2.5 km ramp
75
+ * left the sea a black slab to a hard horizon; scale 2.5 km brought the wall back at 8 km). Tuned in the live page against hz4k_S / hz8k_W / 14 / 32.
76
+ */
77
+ exports.CS2_AIR = { startM: 800, scaleM: 1200, rampM: 8000, edgeKeep: 1 };
78
+ exports.CS2_HORIZON = { start: 4000, end: 20000, amount: 0.45, skyline: 0, air: exports.CS2_AIR };
69
79
  /** The latitude and hour of a map that has no place on Earth. */
70
80
  exports.FICTIONAL_LATITUDE_DEG = 37.8;
71
81
  exports.DEFAULT_HOURS = 14;
@@ -78,15 +88,24 @@ exports.CS2_EXPOSURE_COMPENSATION = -1.0;
78
88
  /**
79
89
  * A CS2 map's sea. The game's sea is a near-black navy body (shore poses 24, 28, 08: sRGB 7-18 / 14-25 / 10-27) under a pale sky; the engine's
80
90
  * island sea (deep 0.012 / 0.055 / 0.075, shallow 0.07 / 0.27 / 0.23, the full Fresnel mirror) read pale grey-blue there (77-89 / 98-106 /
81
- * 115-120). A darker, less blue body and 40 % of the mirror bring it to the game's.
91
+ * 115-120). The first answer (deep 0.002 / 0.012 / 0.016, 40 % mirror) was too dark and too blue next to the game's grey-teal at shots 14, 24, 26,
92
+ * 32 (live Pacifica: sea band 5-8 / 6-9 / 14 against 12-25 / 18-33 / 20-38): the deep body takes equal green and blue, the mirror (which
93
+ * carries the sky's blue and the horizon's brightening) drops to 35 %, and the sun's glitter (`sunGlint`, engine visual >= 0.1.143, a multiplier on the GGX highlight)
94
+ * to 15 %: at full strength a tidal channel mirrored the sun as a silver sheet from the air (pose marshAir, round-2 defect 9) where the
95
+ * game's water shows only a faint sparkle.
82
96
  */
83
- exports.CS2_OCEAN = { deepColour: [0.002, 0.012, 0.016], shallowColour: [0.02, 0.08, 0.08], reflectance: 0.4 };
97
+ exports.CS2_OCEAN = { deepColour: [0.03, 0.05, 0.05], shallowColour: [0.06, 0.11, 0.1], reflectance: 0.35, sunGlint: 0.15 };
84
98
  /**
85
- * A CS2 map's sky: 'clear' (no cloud deck). Against in-game CS2 shots of Pacifica at the same 24 poses (pacifica-cs2-ref, 2026-10-24)
86
- * the 'fair' deck (coverage 0.42) read as a dense layer of cartoon puffs over every aerial and shoreline view where CS2 shows an open
87
- * hazy sky; coverage 0.2 still read as blotches; 'clear' matched (coordinator/pacifica-showcase-20261024/look-ab-r1-weather.jpg).
99
+ * A CS2 map's sky: scattered soft cloud, sky only. The game's sky carries a few broad, soft, thin-edged clouds and wisps, flat-lit, over an
100
+ * open hazy blue (pacifica-cs2-ref 12, 14, 24, 28). 'clear' (the first answer, after Granit's 'fair' deck read as a dense layer of cartoon
101
+ * puffs, #544) left every view an empty gradient (round-2 defect 5); the engine's `sky.cloudStyle: "soft"` (engine visual >= 0.1.143) is a
102
+ * flat, broken, soft-edged layer that is never lit or shadowed, so it cannot blotch the land or move the exposure. The deck: coverage 0.5,
103
+ * density 0.3, 16 km cells, 2.6 km up, no cloud shadow; chosen in the live page against the game's shots at 24 / 28 / 12 / 14 (variants
104
+ * s1-s4; s3 read closest). An older runtime that does not know `cloudStyle` warns and draws its puff deck at this coverage.
88
105
  */
89
- exports.CS2_WEATHER = 'clear';
106
+ exports.CS2_WEATHER = 'fair';
107
+ exports.CS2_CLOUDS = { coverage: 0.5, density: 0.3, cloudScaleM: 16000, cloudBaseM: 2600, cloudShadows: false };
108
+ exports.CS2_CLOUD_STYLE = 'soft';
90
109
  const round5 = (value) => Math.round(value * 1e5) / 1e5;
91
110
  /** The scene visuals a city source gets. `scale` multiplies the fog densities (default 1). Pure: same manifest, same JSON. */
92
111
  function deriveSceneVisuals(manifest, scale = 1) {
@@ -103,12 +122,12 @@ function deriveSceneVisuals(manifest, scale = 1) {
103
122
  return {
104
123
  version: 1,
105
124
  mode: 'dynamic',
106
- weather: { enabled: true, preset: cs2 ? exports.CS2_WEATHER : 'fair' },
125
+ weather: cs2 ? { enabled: true, preset: exports.CS2_WEATHER, ...exports.CS2_CLOUDS } : { enabled: true, preset: 'fair' },
107
126
  timeOfDay: { hours: exports.DEFAULT_HOURS, cycleSeconds: 0, latitudeDeg, declinationDeg: 10, noonAzimuthDeg: latitudeDeg < 0 ? 0 : 180 },
108
127
  probes: { skyFallback: true },
109
128
  shadows: { extent: 200 },
110
129
  fog: { density, heightDensity: round5(density * exports.GROUND_FOG_RATIO) },
111
- sky: { model: 'hillaire', mieScale: 1.0, groundBounceAlbedo: 0.25 },
130
+ sky: { model: 'hillaire', mieScale: 1.0, groundBounceAlbedo: 0.25, ...(cs2 ? { cloudStyle: exports.CS2_CLOUD_STYLE } : {}) },
112
131
  look: cs2 ? { preset: 'day', presets: { day: exports.CS2_DAY_LOOK }, horizon: { ...exports.CS2_HORIZON } } : { preset: 'day', horizon: { ...exports.CITY_HORIZON } },
113
132
  ...(cs2 ? { exposure: { compensation: exports.CS2_EXPOSURE_COMPENSATION }, ocean: exports.CS2_OCEAN } : {}),
114
133
  };
@@ -1 +1 @@
1
- {"version":3,"file":"sceneVisuals.js","sourceRoot":"","sources":["../../../src/city/assemble/sceneVisuals.ts"],"names":[],"mappings":";AAAA,+HAA+H;AAC/H,oIAAoI;AACpI,8HAA8H;AAC9H,6HAA6H;AAC7H,EAAE;AACF,kIAAkI;AAClI,8HAA8H;AAC9H,EAAE;AACF,mIAAmI;AACnI,2HAA2H;AAC3H,6EAA6E;AAC7E,oGAAoG;AACpG,8HAA8H;AAC9H,6IAA6I;AAC7I,8EAA8E;AAC9E,gIAAgI;AAChI,+GAA+G;AAC/G,4HAA4H;AAC5H,qIAAqI;AACrI,+HAA+H;AAC/H,oIAAoI;AACpI,EAAE;AACF,0IAA0I;AAC1I,2IAA2I;;;AAyG3I,gDAqBC;AAGD,sDAOC;AAtID,qCAAmD;AACnD,yCAAiC;AAuCjC;;;;;;;;;;GAUG;AACU,QAAA,YAAY,GAAgB;IACvC,gIAAgI;IAChI,oFAAoF;IACpF,OAAO,EAAE,OAAO;IAChB,iIAAiI;IACjI,MAAM,EAAE,EAAE,UAAU,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE;IACjI,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE;IAClB,qIAAqI;IACrI,wCAAwC;IACxC,GAAG,EAAE,EAAE,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE;CACrC,CAAC;AAEF,oIAAoI;AACvH,QAAA,0BAA0B,GAAG,GAAG,CAA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