Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
feat(site): add the Meridian Sanctuary Holodeck pack (#273)
Matthew Kissinger238d1aa89373
diff --git a/packs/holodeck/README.md b/packs/holodeck/README.mdindex 6e603575..d8d0696e 100644--- a/packs/holodeck/README.md+++ b/packs/holodeck/README.md@@ -10,6 +10,7 @@ addresses are configured in one place, [`site/src/data/holodeck-worlds.json`](..| `holodeck-courtyard` | Courtyard world, revision 8 | 32 || `holodeck-cove` | Holodeck's Cove modules at the same commit, the Cove quality pass | 8 || `holodeck-crescent-cove` | Holodeck's bundled `examples/crescent-cove` (commit recorded in `selection.json`), the tropical-island world at revision 17 | 49 |+| `holodeck-meridian-sanctuary` | Holodeck's bundled `examples/meridian-sanctuary` (commit recorded in `selection.json`), the marble-sanctuary world at revision 27 | 53 |Packs deliver final versions only: one gallery page and one download per asset. All four scenesplace the eight Cove modules at their quality-pass revisions, so each Cove module has one pagediff --git a/packs/holodeck/published.json b/packs/holodeck/published.jsonindex 906f2877..aeec3df2 100644--- a/packs/holodeck/published.json+++ b/packs/holodeck/published.json@@ -3110,6 +3110,926 @@"path": "packs/holodeck/objects/ff78a6e20f487ff9cb0843a2eda5f675a58b65b3ea6e68cb778d45056d2ba51c/winter-wmc-coffee-table-runtime.zip","bytes": 247442,"sha256": "ff78a6e20f487ff9cb0843a2eda5f675a58b65b3ea6e68cb778d45056d2ba51c"+ },+ {+ "path": "media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival.png",+ "bytes": 1974817,+ "sha256": "3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0"+ },+ {+ "path": "media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview.png",+ "bytes": 1784873,+ "sha256": "9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch.png",+ "bytes": 1688867,+ "sha256": "3273933075459ea063a67d863a5993b17ea6ba009c91208f9488201475d46b53"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay.png",+ "bytes": 1485623,+ "sha256": "bb9f88bd0ef7694487438d7b5251a40aa5ee1c1aaaafb824e3a90651b44e00ec"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot.png",+ "bytes": 1668723,+ "sha256": "1567a4b99d9ace9b0bf207e1b4a90c42f07877598fbb856559b19f19333bbd3b"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier.png",+ "bytes": 1658377,+ "sha256": "aaa77cb4682456de18fda16ef2c3f6f42b4b0686d88a993719447f1d2164b9f3"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon.png",+ "bytes": 1226961,+ "sha256": "aa705b724e8186232768348952101b5087b39795e10591afe34609628373946c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4.png",+ "bytes": 1598113,+ "sha256": "4042c973618ffb037f78ea294cd37ff09daf75330b8984e2a1369023ebe455ad"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water.png",+ "bytes": 1388641,+ "sha256": "aca73d57de6186e2a1a5c696a96788d27846c604b9268d7b7b03129dd115e2e3"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8.png",+ "bytes": 1750303,+ "sha256": "d06e66e58079359376bcba70929f9dd8b9c82779371e600c25858c4adae16b26"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower.png",+ "bytes": 1980557,+ "sha256": "f93fd5fad9fd29b72b8ac73ee0c5d50f66f59688e519df4fed37193883f62fd8"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4.png",+ "bytes": 1645727,+ "sha256": "8a1e2f9692cdad19451b6fb21d30513522d6eba2bf509ac8d9d9d35e96d28ba9"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble.png",+ "bytes": 1768547,+ "sha256": "ccbef51aa5a9a4466020ecfa916ea08d9dcd231d7421a15a4196664253b56520"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court.png",+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far.png",+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror.png",+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad.png",+ "bytes": 1422256,+ "sha256": "17d890a27eb125894bb50c833604a8dca8ed484adb4bbe3b1d219b4584be5414"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid.png",+ "bytes": 1369592,+ "sha256": "d22888b2f677cc9d598253be33e1c359821182c4df3849a32b6e2a52e4746fc1"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim.png",+ "bytes": 1318524,+ "sha256": "14609b8cb27ce4a9a8cf4b621e785df71bad40ac8631ccd5e2ad756d44d596e9"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall.png",+ "bytes": 1358640,+ "sha256": "d90c243e809f3a89602256716839711296c401e0e77916b8ab792061b4cdc68d"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4.png",+ "bytes": 1598217,+ "sha256": "e47945e41e86da73cf6be3c05366764cd5fb97e4c6560333e2e4de5676a97f4b"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6.png",+ "bytes": 1472606,+ "sha256": "1be82f4ac86c2c94e3a7d32f404507c210219193cf68ab650c4e610b8d9c9932"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow.png",+ "bytes": 1582271,+ "sha256": "f2462636511ce9093c06e96083f9c507f7215689d8f1e4ded7b4e2261c0e42d9"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4.png",+ "bytes": 1251748,+ "sha256": "7825ea7fb7ce4e317df8c0a239893a8e1d215b6b85417c6b397f486c7361f5f7"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway.png",+ "bytes": 1634730,+ "sha256": "7ff94334ba98224e3ff44f1f9ea713301a1de8cbbf2a54ccfbc01a059816fa4c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base.png",+ "bytes": 1648741,+ "sha256": "25e56f5032cb331401c52cb376493476896b00d0e42c022a39cb413bffeb197f"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long.png",+ "bytes": 1370660,+ "sha256": "9dc7343a55676f6adff5cb024df0c9edbf932c3bd856cd562fadb9b30919b129"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short.png",+ "bytes": 1430249,+ "sha256": "aaa6b884b5f213310c10b67bbce79ca07ffe2214a91bd1932bf56f456b53d277"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith.png",+ "bytes": 1704818,+ "sha256": "240729454c01dcb44da0425a0db0affb4eaf5d26e747230e0c4d261a0a5e9d7a"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb.png",+ "bytes": 1774073,+ "sha256": "f530e07668d2f2994cd2df69c9df8fe8c937a154630c0e5c03c7fafe215a31d8"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide.png",+ "bytes": 1773028,+ "sha256": "44572bb9cd4e2722165e5947cae9cc847856a402f8fe78450a02ac49f184206f"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4.png",+ "bytes": 1658670,+ "sha256": "2878b5cca17d547da78d3faeed23a4c7729099eac98872b8d33d4f8b3670c89f"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion.png",+ "bytes": 1318394,+ "sha256": "c7112f1568778ca02a49d9a81934ffe7419af5d4086507d02aacee6726096b35"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long.png",+ "bytes": 1605575,+ "sha256": "c2b9a47a948c267425ef94cb7b672e9f7c9dd86b7f343e6ff7d0bdeb5c3d1bfd"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq.png",+ "bytes": 1818174,+ "sha256": "5392b4ba4e6bbd13e28e506b6bcdd1c357b145301a833b051a3769f054ac2f1b"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps.png",+ "bytes": 1591158,+ "sha256": "3706a43a08bd185ccb7f4c76d25d37a5bcbcde6403f0443e2f776630425bfc12"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill.png",+ "bytes": 1267064,+ "sha256": "e2b86393572fa88c6fffd3ac3d448c2cb6d5f219b55948a0fe22c4ddacd0471a"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a.png",+ "bytes": 1684162,+ "sha256": "56d4b37295caced319780aa3d58ab7ea7846340cc526adaea18b60cb227decd4"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b.png",+ "bytes": 1604582,+ "sha256": "57528d511344630924994746f84818da4e988b598b466e64ab780b23f051d616"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c.png",+ "bytes": 1688993,+ "sha256": "88267c2cc131ff6a77cc0d43651a9545f2383b8ccb1bdbe8e46bd5310193e0b7"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4.png",+ "bytes": 1838168,+ "sha256": "3158507e8765c9143b4faa92b85591d5a66f4caa114c780561c8b76fbc1f690c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8.png",+ "bytes": 1723595,+ "sha256": "62d1b84d2a921c074c0ad83423bb8a32273d82dd554c31222ea1df8904651080"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure.png",+ "bytes": 1430682,+ "sha256": "6785f36b7dd1149c1aa37e23242f4b2e28e60ba52068720b745c70adcd8e3fc0"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale.png",+ "bytes": 1355291,+ "sha256": "51dcc2b18fabdca9e4e1ae56b0ff57220dbef8fef8980683b60d5ed716c133b2"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab.png",+ "bytes": 1512271,+ "sha256": "59072cdd7832eafbb596ea813bd0012197269b62979f954ff02aa93413989b0c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate.png",+ "bytes": 1261411,+ "sha256": "834e745251ae70d23d6a511effe7f4ddd6cc9a007567c54d3c1db0002a08a917"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot.png",+ "bytes": 1368978,+ "sha256": "acbec4468a474c70cf06a8df286fca3bdc5d272052f0e18ead769f24eb8e4ee0"+ },+ {+ "path": "packs/holodeck/objects/02b8f0829db865c30e05017259702979f5ce9d91ff82904047593c994d821d66/meridian-overflow-wide-runtime.zip",+ "bytes": 68373,+ "sha256": "02b8f0829db865c30e05017259702979f5ce9d91ff82904047593c994d821d66"+ },+ {+ "path": "packs/holodeck/objects/036f7a9c37630a2f1f1f7d11a60229b1a77638dc5926d7a7ee351bdd0582ef34/meridian-shrub-a-runtime.zip",+ "bytes": 102188,+ "sha256": "036f7a9c37630a2f1f1f7d11a60229b1a77638dc5926d7a7ee351bdd0582ef34"+ },+ {+ "path": "packs/holodeck/objects/0405a0c94c7644276a3440c7f96d3653d51c9fe657dafe500cc593d57f17a62d/meridian-step-slab-editable.zip",+ "bytes": 329213,+ "sha256": "0405a0c94c7644276a3440c7f96d3653d51c9fe657dafe500cc593d57f17a62d"+ },+ {+ "path": "packs/holodeck/objects/0b13ca0741cf855c497ad7f97f84deb31a0d1c2a5e57ef790f613a7e9e945562/meridian-gateway-editable.zip",+ "bytes": 3153139,+ "sha256": "0b13ca0741cf855c497ad7f97f84deb31a0d1c2a5e57ef790f613a7e9e945562"+ },+ {+ "path": "packs/holodeck/objects/0cb1dfcfb87e18ca4a68bd54d739ddca9c397229910d1207d9cd34a9dbde81b5/meridian-isle-base-editable.zip",+ "bytes": 777692,+ "sha256": "0cb1dfcfb87e18ca4a68bd54d739ddca9c397229910d1207d9cd34a9dbde81b5"+ },+ {+ "path": "packs/holodeck/objects/131412664460c10541dd0116675917f25ba29a39cb3511d52c44758a371fe471/meridian-planter-long-runtime.zip",+ "bytes": 288688,+ "sha256": "131412664460c10541dd0116675917f25ba29a39cb3511d52c44758a371fe471"+ },+ {+ "path": "packs/holodeck/objects/15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e/meridian-ivy-short.glb",+ "bytes": 87108,+ "sha256": "15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e"+ },+ {+ "path": "packs/holodeck/objects/161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481/meridian-foundation-4.glb",+ "bytes": 468972,+ "sha256": "161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481"+ },+ {+ "path": "packs/holodeck/objects/185cde23ffe31629af524f23398176307404488c3eba2abe2cb206a9835da0a5/meridian-arcade-pier-editable.zip",+ "bytes": 438568,+ "sha256": "185cde23ffe31629af524f23398176307404488c3eba2abe2cb206a9835da0a5"+ },+ {+ "path": "packs/holodeck/objects/18bf72d8f11b9400bb61e560ac119fd9e9f547583ebdfa52a862132d5b33cca9/meridian-pavilion-editable.zip",+ "bytes": 473880,+ "sha256": "18bf72d8f11b9400bb61e560ac119fd9e9f547583ebdfa52a862132d5b33cca9"+ },+ {+ "path": "packs/holodeck/objects/19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7/meridian-basin-water.glb",+ "bytes": 36812,+ "sha256": "19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7"+ },+ {+ "path": "packs/holodeck/objects/1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278/meridian-shrub-a.glb",+ "bytes": 282532,+ "sha256": "1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278"+ },+ {+ "path": "packs/holodeck/objects/20c91925bf1643d40dbb9e0ab9b4f104e7dd1c9b9db19b601edd2f12188d305c/meridian-statue-figure-runtime.zip",+ "bytes": 595090,+ "sha256": "20c91925bf1643d40dbb9e0ab9b4f104e7dd1c9b9db19b601edd2f12188d305c"+ },+ {+ "path": "packs/holodeck/objects/23c73a5720384bb72100e5d64962437410e6a6a457f5bd30d8cc8aca70e66ac5/meridian-cube-mirror-editable.zip",+ "bytes": 39910,+ "sha256": "23c73a5720384bb72100e5d64962437410e6a6a457f5bd30d8cc8aca70e66ac5"+ },+ {+ "path": "packs/holodeck/objects/260f0918d7d947ff7ae80f354d7479ab7cc84839783465f9f89dc2f55e1b9713/meridian-coping-4-runtime.zip",+ "bytes": 246867,+ "sha256": "260f0918d7d947ff7ae80f354d7479ab7cc84839783465f9f89dc2f55e1b9713"+ },+ {+ "path": "packs/holodeck/objects/28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219/meridian-pavilion.glb",+ "bytes": 596736,+ "sha256": "28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219"+ },+ {+ "path": "packs/holodeck/objects/2ab66baeb1d21fb3741d2ea021c6d5ac21ad0c790ed7d3335674c7faabfd2754/meridian-monolith-runtime.zip",+ "bytes": 446081,+ "sha256": "2ab66baeb1d21fb3741d2ea021c6d5ac21ad0c790ed7d3335674c7faabfd2754"+ },+ {+ "path": "packs/holodeck/objects/2b769a5d2619a7b636f34d7977f17ccb9c0fce43c1894775324d5310099d066b/meridian-arcade-bay-runtime.zip",+ "bytes": 303187,+ "sha256": "2b769a5d2619a7b636f34d7977f17ccb9c0fce43c1894775324d5310099d066b"+ },+ {+ "path": "packs/holodeck/objects/2c5540b437f5ba01dde466c4b0d13f613bbfc7a878527ba97eea1c4bb0119a66/meridian-cypress-tall-editable.zip",+ "bytes": 476085,+ "sha256": "2c5540b437f5ba01dde466c4b0d13f613bbfc7a878527ba97eea1c4bb0119a66"+ },+ {+ "path": "packs/holodeck/objects/2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9/meridian-gateway.glb",+ "bytes": 14793000,+ "sha256": "2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9"+ },+ {+ "path": "packs/holodeck/objects/2dae3f5797b53c04d4b38abfacb90be5c6dc15396febd659683b7acabab9da0f/meridian-shrub-c-runtime.zip",+ "bytes": 94019,+ "sha256": "2dae3f5797b53c04d4b38abfacb90be5c6dc15396febd659683b7acabab9da0f"+ },+ {+ "path": "packs/holodeck/objects/304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf/meridian-cascade-tower.glb",+ "bytes": 478968,+ "sha256": "304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf"+ },+ {+ "path": "packs/holodeck/objects/32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561/meridian-monolith.glb",+ "bytes": 1313500,+ "sha256": "32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561"+ },+ {+ "path": "packs/holodeck/objects/38780c7d390a915d1224c2666defa48e0c7018dad31c52ea581ff28c105d018b/meridian-cube-marble-editable.zip",+ "bytes": 416162,+ "sha256": "38780c7d390a915d1224c2666defa48e0c7018dad31c52ea581ff28c105d018b"+ },+ {+ "path": "packs/holodeck/objects/38f53977d79ae2044f60b4de09bfccaf6df2810d5fc1beb16d5d811d13c294cd/meridian-tower-slot-runtime.zip",+ "bytes": 411931,+ "sha256": "38f53977d79ae2044f60b4de09bfccaf6df2810d5fc1beb16d5d811d13c294cd"+ },+ {+ "path": "packs/holodeck/objects/393aa0f88e31c9c5af7ba2171143e920838028366ce1f3ee65ea53a9746471ae/meridian-cascade-tower-runtime.zip",+ "bytes": 283494,+ "sha256": "393aa0f88e31c9c5af7ba2171143e920838028366ce1f3ee65ea53a9746471ae"+ },+ {+ "path": "packs/holodeck/objects/3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871/meridian-rim-spill.glb",+ "bytes": 67584,+ "sha256": "3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871"+ },+ {+ "path": "packs/holodeck/objects/3c56e73521675360344d3a6b4bf6b33003dd1aa9ebe9bd27f854a77c5dbda5f9/meridian-tower-slot-editable.zip",+ "bytes": 587231,+ "sha256": "3c56e73521675360344d3a6b4bf6b33003dd1aa9ebe9bd27f854a77c5dbda5f9"+ },+ {+ "path": "packs/holodeck/objects/3d37d9c5d13c947cfb68a8adc227ad963335e0b30dddb57d30d1a9b6bd6ea1d1/meridian-cypress-mid-editable.zip",+ "bytes": 422750,+ "sha256": "3d37d9c5d13c947cfb68a8adc227ad963335e0b30dddb57d30d1a9b6bd6ea1d1"+ },+ {+ "path": "packs/holodeck/objects/3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4/meridian-cube-mirror-far.glb",+ "bytes": 5472,+ "sha256": "3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4"+ },+ {+ "path": "packs/holodeck/objects/40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0/meridian-pool-steps.glb",+ "bytes": 304908,+ "sha256": "40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0"+ },+ {+ "path": "packs/holodeck/objects/43f4712ba12c33f8877a961ef0cb323504c438ed07bb07c3818712000dec6109/meridian-balustrade-4-editable.zip",+ "bytes": 340698,+ "sha256": "43f4712ba12c33f8877a961ef0cb323504c438ed07bb07c3818712000dec6109"+ },+ {+ "path": "packs/holodeck/objects/45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1/meridian-tower-gate.glb",+ "bytes": 1618784,+ "sha256": "45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1"+ },+ {+ "path": "packs/holodeck/objects/462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23/meridian-cypress-tall.glb",+ "bytes": 550952,+ "sha256": "462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23"+ },+ {+ "path": "packs/holodeck/objects/4737b6a71faa12837d1ae8d2d1d4423795e6e01262777f4eb0c433a0caf425e9/meridian-gateway-runtime.zip",+ "bytes": 2887819,+ "sha256": "4737b6a71faa12837d1ae8d2d1d4423795e6e01262777f4eb0c433a0caf425e9"+ },+ {+ "path": "packs/holodeck/objects/47ab198c7494086dfa613b22ff935dd4a0625f9384b2b4c18805c6fa85a89b9c/meridian-parapet-4-runtime.zip",+ "bytes": 245459,+ "sha256": "47ab198c7494086dfa613b22ff935dd4a0625f9384b2b4c18805c6fa85a89b9c"+ },+ {+ "path": "packs/holodeck/objects/481ec77e502ec919a592170442eb2d744f37b11d92883909510f4767c785764f/meridian-isle-base-runtime.zip",+ "bytes": 419067,+ "sha256": "481ec77e502ec919a592170442eb2d744f37b11d92883909510f4767c785764f"+ },+ {+ "path": "packs/holodeck/objects/49f8a0d34ea8d7359f7762ef134b837fcc3b246f6e5e1d7168cab97a5e39f8ca/meridian-tower-gate-editable.zip",+ "bytes": 644670,+ "sha256": "49f8a0d34ea8d7359f7762ef134b837fcc3b246f6e5e1d7168cab97a5e39f8ca"+ },+ {+ "path": "packs/holodeck/objects/4b91a04736d0f169094809185a61fc431e8e1a628e223c121e17c9a8384869cc/meridian-ivy-long-editable.zip",+ "bytes": 239276,+ "sha256": "4b91a04736d0f169094809185a61fc431e8e1a628e223c121e17c9a8384869cc"+ },+ {+ "path": "packs/holodeck/objects/4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4/meridian-cypress-broad.glb",+ "bytes": 378680,+ "sha256": "4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4"+ },+ {+ "path": "packs/holodeck/objects/54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5/meridian-shrub-b.glb",+ "bytes": 229888,+ "sha256": "54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5"+ },+ {+ "path": "packs/holodeck/objects/60d7c3c99bc154876873f5777ae8a07b2185fdc064c39c01b6fe2f1495dc9d8a/meridian-statue-whale-runtime.zip",+ "bytes": 527838,+ "sha256": "60d7c3c99bc154876873f5777ae8a07b2185fdc064c39c01b6fe2f1495dc9d8a"+ },+ {+ "path": "packs/holodeck/objects/6426bb807acdbd0da07f613ea3ae2c11e2aea30d030cc1d60f2a34138cadf834/meridian-arcade-pier-runtime.zip",+ "bytes": 265991,+ "sha256": "6426bb807acdbd0da07f613ea3ae2c11e2aea30d030cc1d60f2a34138cadf834"+ },+ {+ "path": "packs/holodeck/objects/65b982b5b2497ef24a608434f9d2ce67bcc6ed625e10722c2b1e93ae636b93b4/meridian-parapet-4-editable.zip",+ "bytes": 346465,+ "sha256": "65b982b5b2497ef24a608434f9d2ce67bcc6ed625e10722c2b1e93ae636b93b4"+ },+ {+ "path": "packs/holodeck/objects/666db175c82a5f53e53eac02bad4176a4dc017e2ed85300637eb22615acfe7d2/meridian-falls-narrow-runtime.zip",+ "bytes": 73584,+ "sha256": "666db175c82a5f53e53eac02bad4176a4dc017e2ed85300637eb22615acfe7d2"+ },+ {+ "path": "packs/holodeck/objects/684c0a3617e06b288ec815c395e2a6227cb447a2aea3af232a050f4590e000d3/meridian-deck-4-runtime.zip",+ "bytes": 254543,+ "sha256": "684c0a3617e06b288ec815c395e2a6227cb447a2aea3af232a050f4590e000d3"+ },+ {+ "path": "packs/holodeck/objects/68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd/meridian-stair-4.glb",+ "bytes": 414396,+ "sha256": "68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd"+ },+ {+ "path": "packs/holodeck/objects/697e6a3736962181a2d9da82f92ca9a357222f8ff4bd580aeef102bcecfc3849/meridian-cypress-slim-runtime.zip",+ "bytes": 164264,+ "sha256": "697e6a3736962181a2d9da82f92ca9a357222f8ff4bd580aeef102bcecfc3849"+ },+ {+ "path": "packs/holodeck/objects/6c34d77b7ded9f0f82abd43a3c7ffda7d71ab5232840865e4768396fd9a63faf/meridian-basin-water-editable.zip",+ "bytes": 113157,+ "sha256": "6c34d77b7ded9f0f82abd43a3c7ffda7d71ab5232840865e4768396fd9a63faf"+ },+ {+ "path": "packs/holodeck/objects/6c5f0e24dac3d50ea64a4b2f0ed4519db542fcffddc4012025d231b65f72d98e/meridian-foundation-4-runtime.zip",+ "bytes": 278331,+ "sha256": "6c5f0e24dac3d50ea64a4b2f0ed4519db542fcffddc4012025d231b65f72d98e"+ },+ {+ "path": "packs/holodeck/objects/6cf6a3023f53e5369cb1941e1a99cf9d83e22a1f3b86340dcb5fc7d5e2018c5f/meridian-shrub-b-editable.zip",+ "bytes": 637770,+ "sha256": "6cf6a3023f53e5369cb1941e1a99cf9d83e22a1f3b86340dcb5fc7d5e2018c5f"+ },+ {+ "path": "packs/holodeck/objects/6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f/meridian-arcade-pier.glb",+ "bytes": 393212,+ "sha256": "6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f"+ },+ {+ "path": "packs/holodeck/objects/6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a/meridian-block-8.glb",+ "bytes": 575204,+ "sha256": "6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a"+ },+ {+ "path": "packs/holodeck/objects/6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2/meridian-deck-6.glb",+ "bytes": 336344,+ "sha256": "6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2"+ },+ {+ "path": "packs/holodeck/objects/71b50ceaa86e60bf7f75445f8b95b89fbc8bfe4e75469050bb5e033b486b683f/meridian-step-slab-runtime.zip",+ "bytes": 244559,+ "sha256": "71b50ceaa86e60bf7f75445f8b95b89fbc8bfe4e75469050bb5e033b486b683f"+ },+ {+ "path": "packs/holodeck/objects/77798094bfcbb15418f2f37d355832da46a66ae556a62307185b3da17bd4f2b1/meridian-block-8-editable.zip",+ "bytes": 604662,+ "sha256": "77798094bfcbb15418f2f37d355832da46a66ae556a62307185b3da17bd4f2b1"+ },+ {+ "path": "packs/holodeck/objects/778205caa6b5e5386c358c66d5ceede7b113cc38881da385422254939726845b/meridian-deck-4-editable.zip",+ "bytes": 411821,+ "sha256": "778205caa6b5e5386c358c66d5ceede7b113cc38881da385422254939726845b"+ },+ {+ "path": "packs/holodeck/objects/7bca4f9faa770b03d3eceb73320c3373f972ce630294cb130e219843cd321b91/meridian-cypress-tall-runtime.zip",+ "bytes": 184068,+ "sha256": "7bca4f9faa770b03d3eceb73320c3373f972ce630294cb130e219843cd321b91"+ },+ {+ "path": "packs/holodeck/objects/809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5/meridian-cube-mirror-court.glb",+ "bytes": 5476,+ "sha256": "809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5"+ },+ {+ "path": "packs/holodeck/objects/8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822/meridian-cypress-mid.glb",+ "bytes": 403548,+ "sha256": "8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822"+ },+ {+ "path": "packs/holodeck/objects/84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1/meridian-orb.glb",+ "bytes": 275996,+ "sha256": "84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1"+ },+ {+ "path": "packs/holodeck/objects/863a47f8b8158474ab2071672f165830220bcf22d8b9633a34a6d5199b0958ac/meridian-stair-8-editable.zip",+ "bytes": 509506,+ "sha256": "863a47f8b8158474ab2071672f165830220bcf22d8b9633a34a6d5199b0958ac"+ },+ {+ "path": "packs/holodeck/objects/88460de5f457dfa7567c055c71a68e379520973f878d0da83c48237bd8bb8cde/meridian-foundation-4-editable.zip",+ "bytes": 339080,+ "sha256": "88460de5f457dfa7567c055c71a68e379520973f878d0da83c48237bd8bb8cde"+ },+ {+ "path": "packs/holodeck/objects/88df49c5729bf25a02ee716082213808c62780205d6895cc92e3fb1bcd612c58/meridian-shrub-b-runtime.zip",+ "bytes": 88277,+ "sha256": "88df49c5729bf25a02ee716082213808c62780205d6895cc92e3fb1bcd612c58"+ },+ {+ "path": "packs/holodeck/objects/8a1ba6a728774cad0d4487cacfdde2fd0370d01e28bd8aa4cdff3afff7762427/meridian-pavilion-runtime.zip",+ "bytes": 311985,+ "sha256": "8a1ba6a728774cad0d4487cacfdde2fd0370d01e28bd8aa4cdff3afff7762427"+ },+ {+ "path": "packs/holodeck/objects/8c10a27ded13238ee913b4378d2a2f53e9e662c99f6fd82ce093238824f2e9f2/meridian-shrub-c-editable.zip",+ "bytes": 789804,+ "sha256": "8c10a27ded13238ee913b4378d2a2f53e9e662c99f6fd82ce093238824f2e9f2"+ },+ {+ "path": "packs/holodeck/objects/8d7ad8f94b505eb0443b56bb0801bb31242e0d9ff99e2f5219870683ea3be64e/meridian-arcade-pier-slot-runtime.zip",+ "bytes": 269965,+ "sha256": "8d7ad8f94b505eb0443b56bb0801bb31242e0d9ff99e2f5219870683ea3be64e"+ },+ {+ "path": "packs/holodeck/objects/8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384/meridian-cube-mirror.glb",+ "bytes": 5464,+ "sha256": "8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384"+ },+ {+ "path": "packs/holodeck/objects/8f3ebe52edbae826b00878b2b925dc9359cb344a46a51c931672c6020626a1ea/meridian-cube-marble-runtime.zip",+ "bytes": 242854,+ "sha256": "8f3ebe52edbae826b00878b2b925dc9359cb344a46a51c931672c6020626a1ea"+ },+ {+ "path": "packs/holodeck/objects/908a91ab96d8f47d34e4241173203452a94b9df0057843208978096b64582d66/holodeck-meridian-sanctuary-runtime.zip",+ "bytes": 17983217,+ "sha256": "908a91ab96d8f47d34e4241173203452a94b9df0057843208978096b64582d66"+ },+ {+ "path": "packs/holodeck/objects/909153bf5a5ebb5b51f55fc439fdd9f022ab1aa8d4ca7fa482e7b89889bd7b25/meridian-deck-6-runtime.zip",+ "bytes": 252487,+ "sha256": "909153bf5a5ebb5b51f55fc439fdd9f022ab1aa8d4ca7fa482e7b89889bd7b25"+ },+ {+ "path": "packs/holodeck/objects/91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8/meridian-deck-4.glb",+ "bytes": 340740,+ "sha256": "91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8"+ },+ {+ "path": "packs/holodeck/objects/91fdfc27a134a25d602452cbbd78c58651c6dca774060927a36113600b370257/meridian-stair-4-editable.zip",+ "bytes": 481350,+ "sha256": "91fdfc27a134a25d602452cbbd78c58651c6dca774060927a36113600b370257"+ },+ {+ "path": "packs/holodeck/objects/926877c7d4e8a45fc727c30af2f27eb1c17c7ac19a706368ed68e33c1d087620/meridian-pool-steps-editable.zip",+ "bytes": 334115,+ "sha256": "926877c7d4e8a45fc727c30af2f27eb1c17c7ac19a706368ed68e33c1d087620"+ },+ {+ "path": "packs/holodeck/objects/963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8/meridian-cypress-slim.glb",+ "bytes": 481452,+ "sha256": "963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8"+ },+ {+ "path": "packs/holodeck/objects/989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688/meridian-step-slab.glb",+ "bytes": 289668,+ "sha256": "989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688"+ },+ {+ "path": "packs/holodeck/objects/9d678b21a7c175f7e85c5dbb5f186cec0fb66b71c9bedb6ff8eef0bb205c132d/meridian-overflow-wide-editable.zip",+ "bytes": 321327,+ "sha256": "9d678b21a7c175f7e85c5dbb5f186cec0fb66b71c9bedb6ff8eef0bb205c132d"+ },+ {+ "path": "packs/holodeck/objects/a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37/meridian-planter-sq.glb",+ "bytes": 441592,+ "sha256": "a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37"+ },+ {+ "path": "packs/holodeck/objects/a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c/meridian-arcade-pier-slot.glb",+ "bytes": 409404,+ "sha256": "a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c"+ },+ {+ "path": "packs/holodeck/objects/a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7/meridian-overflow-wide.glb",+ "bytes": 74784,+ "sha256": "a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7"+ },+ {+ "path": "packs/holodeck/objects/a66231c81a480f4838d5ca1d6bfde5d7486525a68e2e8d66854c6354d8a694bf/meridian-cypress-broad-runtime.zip",+ "bytes": 131885,+ "sha256": "a66231c81a480f4838d5ca1d6bfde5d7486525a68e2e8d66854c6354d8a694bf"+ },+ {+ "path": "packs/holodeck/objects/a7e6ff57347240fdd9bb3c9bb3b6f6afb1538e14ab4be6d544fd23b0eaf9b664/meridian-ivy-short-editable.zip",+ "bytes": 254131,+ "sha256": "a7e6ff57347240fdd9bb3c9bb3b6f6afb1538e14ab4be6d544fd23b0eaf9b664"+ },+ {+ "path": "packs/holodeck/objects/a857ecd13c7746c482bf8359413bae7f6be7501079ed9308c74f514289d0dd31/meridian-cypress-mid-runtime.zip",+ "bytes": 139959,+ "sha256": "a857ecd13c7746c482bf8359413bae7f6be7501079ed9308c74f514289d0dd31"+ },+ {+ "path": "packs/holodeck/objects/a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a/meridian-planter-long.glb",+ "bytes": 504108,+ "sha256": "a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a"+ },+ {+ "path": "packs/holodeck/objects/a883d81b02419a94a58647ab16957a3da0fd1c52a988c671dabc29f4e8c155d7/meridian-block-8-runtime.zip",+ "bytes": 301059,+ "sha256": "a883d81b02419a94a58647ab16957a3da0fd1c52a988c671dabc29f4e8c155d7"+ },+ {+ "path": "packs/holodeck/objects/aa73cdb4684489fd8399e84731d4e2832024c77c127a786e0756c0b2903dbdc6/meridian-arcade-pylon-runtime.zip",+ "bytes": 345381,+ "sha256": "aa73cdb4684489fd8399e84731d4e2832024c77c127a786e0756c0b2903dbdc6"+ },+ {+ "path": "packs/holodeck/objects/ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d/meridian-cube-marble.glb",+ "bytes": 282516,+ "sha256": "ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d"+ },+ {+ "path": "packs/holodeck/objects/acbb39ae7601d4468566a664c44393e5f00522e735ec8bc3029109237cc0c4b0/meridian-falls-narrow-editable.zip",+ "bytes": 365361,+ "sha256": "acbb39ae7601d4468566a664c44393e5f00522e735ec8bc3029109237cc0c4b0"+ },+ {+ "path": "packs/holodeck/objects/acee99855eb29316963c0214a50caf46a2d1ba08d23cabb42216a5b3a29a67bf/meridian-balustrade-4-runtime.zip",+ "bytes": 252026,+ "sha256": "acee99855eb29316963c0214a50caf46a2d1ba08d23cabb42216a5b3a29a67bf"+ },+ {+ "path": "packs/holodeck/objects/af246aa25e4b9ea9d807d5bd1f6f80858ebf303b881d3d366edb881c1ca117a7/holodeck-meridian-sanctuary-editable.zip",+ "bytes": 28501735,+ "sha256": "af246aa25e4b9ea9d807d5bd1f6f80858ebf303b881d3d366edb881c1ca117a7"+ },+ {+ "path": "packs/holodeck/objects/af5184957e3758577ff8b977146442de95093c13d41d1842563b0aa5498f822f/meridian-monolith-editable.zip",+ "bytes": 765992,+ "sha256": "af5184957e3758577ff8b977146442de95093c13d41d1842563b0aa5498f822f"+ },+ {+ "path": "packs/holodeck/objects/afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8/meridian-balustrade-4.glb",+ "bytes": 332796,+ "sha256": "afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8"+ },+ {+ "path": "packs/holodeck/objects/b0f7d57d488a1dd6c382c9f67a7be2ffaa4de90c3a76c13db92e356cb01dfddf/meridian-tower-gate-runtime.zip",+ "bytes": 515757,+ "sha256": "b0f7d57d488a1dd6c382c9f67a7be2ffaa4de90c3a76c13db92e356cb01dfddf"+ },+ {+ "path": "packs/holodeck/objects/b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59/meridian-shrub-c.glb",+ "bytes": 252288,+ "sha256": "b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59"+ },+ {+ "path": "packs/holodeck/objects/b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1/meridian-arcade-bay.glb",+ "bytes": 562192,+ "sha256": "b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1"+ },+ {+ "path": "packs/holodeck/objects/b5348927738e2466d0a1876fd05f5639b458611691d8f4a1620fe9d3da45eba3/meridian-planter-sq-editable.zip",+ "bytes": 428342,+ "sha256": "b5348927738e2466d0a1876fd05f5639b458611691d8f4a1620fe9d3da45eba3"+ },+ {+ "path": "packs/holodeck/objects/b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898/meridian-ivy-long.glb",+ "bytes": 213952,+ "sha256": "b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898"+ },+ {+ "path": "packs/holodeck/objects/b707a8500c88ee40569404e3971917acedec5a7dee48928eb7d4ff64c077b8ea/meridian-stair-4-runtime.zip",+ "bytes": 269990,+ "sha256": "b707a8500c88ee40569404e3971917acedec5a7dee48928eb7d4ff64c077b8ea"+ },+ {+ "path": "packs/holodeck/objects/b7a50ffb8ce5c6d912e9a09dd5605719f74a17d25b94a139e5ff045b71f8cb39/meridian-arcade-pylon-editable.zip",+ "bytes": 437496,+ "sha256": "b7a50ffb8ce5c6d912e9a09dd5605719f74a17d25b94a139e5ff045b71f8cb39"+ },+ {+ "path": "packs/holodeck/objects/ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679/meridian-tower-slot.glb",+ "bytes": 1107564,+ "sha256": "ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679"+ },+ {+ "path": "packs/holodeck/objects/bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b/meridian-statue-figure.glb",+ "bytes": 897192,+ "sha256": "bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b"+ },+ {+ "path": "packs/holodeck/objects/c294854b34277073dfe7e6ec2bd20e6cfb88a7301d57d6873f82de60d1ae79cf/meridian-cube-mirror-far-runtime.zip",+ "bytes": 6364,+ "sha256": "c294854b34277073dfe7e6ec2bd20e6cfb88a7301d57d6873f82de60d1ae79cf"+ },+ {+ "path": "packs/holodeck/objects/c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602/meridian-arcade-pylon.glb",+ "bytes": 796236,+ "sha256": "c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602"+ },+ {+ "path": "packs/holodeck/objects/c5145c98f4b15255fcbd9cb959e42bd954b044d2f62770482d927b6b332b53c5/meridian-arcade-arch-runtime.zip",+ "bytes": 279485,+ "sha256": "c5145c98f4b15255fcbd9cb959e42bd954b044d2f62770482d927b6b332b53c5"+ },+ {+ "path": "packs/holodeck/objects/c61e821ead767976f2306b15c60f73b5603eebe0a1d98e2d3ea63f6a5375771a/meridian-pool-steps-runtime.zip",+ "bytes": 248031,+ "sha256": "c61e821ead767976f2306b15c60f73b5603eebe0a1d98e2d3ea63f6a5375771a"+ },+ {+ "path": "packs/holodeck/objects/c686eb345dc2dce823b2fb2dc3996b4bb69ae794518e817f5cd5fc5dd1a8d2f4/meridian-stair-8-runtime.zip",+ "bytes": 299231,+ "sha256": "c686eb345dc2dce823b2fb2dc3996b4bb69ae794518e817f5cd5fc5dd1a8d2f4"+ },+ {+ "path": "packs/holodeck/objects/c9158008a5e3d92b60a8b33feb1912d6521bab5914d9c93258c64db21e2667b7/meridian-orb-editable.zip",+ "bytes": 635877,+ "sha256": "c9158008a5e3d92b60a8b33feb1912d6521bab5914d9c93258c64db21e2667b7"+ },+ {+ "path": "packs/holodeck/objects/cbd2f2206b03c89f9d9025fc9afe7b652421c83d9de85b7c2df070c1da397f88/meridian-rim-spill-editable.zip",+ "bytes": 115876,+ "sha256": "cbd2f2206b03c89f9d9025fc9afe7b652421c83d9de85b7c2df070c1da397f88"+ },+ {+ "path": "packs/holodeck/objects/ccd7083da345c0ed246ac04713b4278a8ae03e2fb4ec67cae16d28a38cec353f/meridian-arcade-pier-slot-editable.zip",+ "bytes": 454621,+ "sha256": "ccd7083da345c0ed246ac04713b4278a8ae03e2fb4ec67cae16d28a38cec353f"+ },+ {+ "path": "packs/holodeck/objects/cdf75bb530a79195eb39b9b89b9b181d4351c0c45fcd1fa14a2b3d2f9bb397ab/meridian-arcade-arch-editable.zip",+ "bytes": 479531,+ "sha256": "cdf75bb530a79195eb39b9b89b9b181d4351c0c45fcd1fa14a2b3d2f9bb397ab"+ },+ {+ "path": "packs/holodeck/objects/ce7fe2432d561c8f215b0d1f4ee60c42bdb3f2792da1676e68f98ebca45894b4/meridian-cube-mirror-far-editable.zip",+ "bytes": 39921,+ "sha256": "ce7fe2432d561c8f215b0d1f4ee60c42bdb3f2792da1676e68f98ebca45894b4"+ },+ {+ "path": "packs/holodeck/objects/cea1a78410d2fa28966df227ba729905ad467329f263aa08ed6dc4faf368a29c/meridian-cypress-slim-editable.zip",+ "bytes": 415215,+ "sha256": "cea1a78410d2fa28966df227ba729905ad467329f263aa08ed6dc4faf368a29c"+ },+ {+ "path": "packs/holodeck/objects/d0c950ac0fdf58f6f3a898a85a2e819c222494ae133fe8ee26bb1085a44e8a83/meridian-arcade-bay-editable.zip",+ "bytes": 468011,+ "sha256": "d0c950ac0fdf58f6f3a898a85a2e819c222494ae133fe8ee26bb1085a44e8a83"+ },+ {+ "path": "packs/holodeck/objects/d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4/meridian-stair-8.glb",+ "bytes": 587772,+ "sha256": "d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4"+ },+ {+ "path": "packs/holodeck/objects/d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a/meridian-arcade-arch.glb",+ "bytes": 446728,+ "sha256": "d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a"+ },+ {+ "path": "packs/holodeck/objects/d6d6063c50d7aaac3d2469b60daa4a382eee03b0a25d29e7b447324a9984ebe4/meridian-deck-6-editable.zip",+ "bytes": 365392,+ "sha256": "d6d6063c50d7aaac3d2469b60daa4a382eee03b0a25d29e7b447324a9984ebe4"+ },+ {+ "path": "packs/holodeck/objects/d8fae47079e34ecd76e0582422b13f55859e40f6cd3323ebc179db4f2f24037f/meridian-orb-runtime.zip",+ "bytes": 114293,+ "sha256": "d8fae47079e34ecd76e0582422b13f55859e40f6cd3323ebc179db4f2f24037f"+ },+ {+ "path": "packs/holodeck/objects/dea710cdad8f8418f78a0a2cc47bb8bd1a2249b53597b1245065cbb0da63e4dd/meridian-planter-long-editable.zip",+ "bytes": 412645,+ "sha256": "dea710cdad8f8418f78a0a2cc47bb8bd1a2249b53597b1245065cbb0da63e4dd"+ },+ {+ "path": "packs/holodeck/objects/deea2976438bb8f59b77400c206af5367c9b39d3b67ebab9dd0c40b4e36c22db/meridian-statue-figure-editable.zip",+ "bytes": 780352,+ "sha256": "deea2976438bb8f59b77400c206af5367c9b39d3b67ebab9dd0c40b4e36c22db"+ },+ {+ "path": "packs/holodeck/objects/df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587/meridian-falls-narrow.glb",+ "bytes": 90012,+ "sha256": "df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587"+ },+ {+ "path": "packs/holodeck/objects/e27795cb1d08fc7d7c86bc66f2ed17846268ea9c0ce4b8df842bb8671d932345/meridian-cypress-broad-editable.zip",+ "bytes": 471034,+ "sha256": "e27795cb1d08fc7d7c86bc66f2ed17846268ea9c0ce4b8df842bb8671d932345"+ },+ {+ "path": "packs/holodeck/objects/e3a76a324d2cd9769040401f6f0dc34a97f61c7e4a04bd22214e5dd08e9b3ade/meridian-cube-mirror-court-editable.zip",+ "bytes": 39922,+ "sha256": "e3a76a324d2cd9769040401f6f0dc34a97f61c7e4a04bd22214e5dd08e9b3ade"+ },+ {+ "path": "packs/holodeck/objects/e52f2f85b62232a642bdb4b4cbbf823251695e3d3084834a129c15da6497b814/meridian-statue-whale-editable.zip",+ "bytes": 665496,+ "sha256": "e52f2f85b62232a642bdb4b4cbbf823251695e3d3084834a129c15da6497b814"+ },+ {+ "path": "packs/holodeck/objects/e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147/meridian-isle-base.glb",+ "bytes": 1159416,+ "sha256": "e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147"+ },+ {+ "path": "packs/holodeck/objects/e9061eb2b0f56befd8e5d74fac1a9192b7ed1c3e525f583ab24d1ff25200a623/meridian-basin-water-runtime.zip",+ "bytes": 39954,+ "sha256": "e9061eb2b0f56befd8e5d74fac1a9192b7ed1c3e525f583ab24d1ff25200a623"+ },+ {+ "path": "packs/holodeck/objects/e9a9e4a12c7f7afaf263d003d42fc5cf0c530be578c1340a761faa1c5609746c/meridian-planter-sq-runtime.zip",+ "bytes": 274275,+ "sha256": "e9a9e4a12c7f7afaf263d003d42fc5cf0c530be578c1340a761faa1c5609746c"+ },+ {+ "path": "packs/holodeck/objects/ea67496d7ab90b34507b6a38290ccd80b8acb04a2558cf1fe5b6259909540dad/meridian-ivy-long-runtime.zip",+ "bytes": 78758,+ "sha256": "ea67496d7ab90b34507b6a38290ccd80b8acb04a2558cf1fe5b6259909540dad"+ },+ {+ "path": "packs/holodeck/objects/ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de/meridian-coping-4.glb",+ "bytes": 299268,+ "sha256": "ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de"+ },+ {+ "path": "packs/holodeck/objects/f0704f31d6bcdeb342794284c72a7d363948f13afad7ea4c8362a18133854fa2/meridian-coping-4-editable.zip",+ "bytes": 329909,+ "sha256": "f0704f31d6bcdeb342794284c72a7d363948f13afad7ea4c8362a18133854fa2"+ },+ {+ "path": "packs/holodeck/objects/f55f1f6daa5e65d2addfdc62161bfe11af4343b94c2edfe9627508ddec6d83a2/meridian-cube-mirror-court-runtime.zip",+ "bytes": 6493,+ "sha256": "f55f1f6daa5e65d2addfdc62161bfe11af4343b94c2edfe9627508ddec6d83a2"+ },+ {+ "path": "packs/holodeck/objects/f5d89740bc44fd16d91f0608efa7f412f1a9fd15cd0b855f88609adb9514b63b/meridian-rim-spill-runtime.zip",+ "bytes": 55120,+ "sha256": "f5d89740bc44fd16d91f0608efa7f412f1a9fd15cd0b855f88609adb9514b63b"+ },+ {+ "path": "packs/holodeck/objects/f62d1c4c959eeaa274e487987cb2bef44a361ea597ae44c79d4195dc3a2fd86a/meridian-cube-mirror-runtime.zip",+ "bytes": 6463,+ "sha256": "f62d1c4c959eeaa274e487987cb2bef44a361ea597ae44c79d4195dc3a2fd86a"+ },+ {+ "path": "packs/holodeck/objects/f69f3650e3cf26c1e855509778eddbf3d50add0c2d9869e9afb22f3d916ea91f/meridian-ivy-short-runtime.zip",+ "bytes": 39607,+ "sha256": "f69f3650e3cf26c1e855509778eddbf3d50add0c2d9869e9afb22f3d916ea91f"+ },+ {+ "path": "packs/holodeck/objects/f7c414b45fe10f3ad4d7444c7a2638c34ae6a5cf60e9b025d572f082d219795f/meridian-cascade-tower-editable.zip",+ "bytes": 588394,+ "sha256": "f7c414b45fe10f3ad4d7444c7a2638c34ae6a5cf60e9b025d572f082d219795f"+ },+ {+ "path": "packs/holodeck/objects/fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94/meridian-statue-whale.glb",+ "bytes": 794988,+ "sha256": "fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94"+ },+ {+ "path": "packs/holodeck/objects/fe5bfb1cbe23b5addcc08ffd5c459be9853fcf274d90909f4d923dfacbed6089/meridian-shrub-a-editable.zip",+ "bytes": 819684,+ "sha256": "fe5bfb1cbe23b5addcc08ffd5c459be9853fcf274d90909f4d923dfacbed6089"+ },+ {+ "path": "packs/holodeck/objects/feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488/meridian-parapet-4.glb",+ "bytes": 294940,+ "sha256": "feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488"}]}diff --git a/packs/holodeck/selection.json b/packs/holodeck/selection.jsonindex 7122ab6e..ac873e2f 100644--- a/packs/holodeck/selection.json+++ b/packs/holodeck/selection.json@@ -231,6 +231,72 @@"winter-wmc-fallen-log","winter-wmc-trail-marker"]+ },+ "holodeck-meridian-sanctuary": {+ "scene": "meridian-sanctuary",+ "source": {+ "kind": "holodeck-example",+ "ref": "8f5d5f7f627c6e4b636877fdb6b16f71ebaf018f",+ "commit": "8f5d5f7f627c6e4b636877fdb6b16f71ebaf018f",+ "path": "examples/meridian-sanctuary",+ "sourceRevision": 27,+ "worldSha256": "4bfd354235b83f253ded88250683143814f7d9d9672a3df7e8c14e50401e5092"+ },+ "assets": [+ "cove-structure",+ "cove-canopy",+ "cove-seating",+ "cove-hearth",+ "cove-planting",+ "cove-rug",+ "cove-lamp",+ "cove-moodboard",+ "meridian-deck-4",+ "meridian-block-8",+ "meridian-step-slab",+ "meridian-deck-6",+ "meridian-coping-4",+ "meridian-pool-steps",+ "meridian-stair-8",+ "meridian-stair-4",+ "meridian-parapet-4",+ "meridian-foundation-4",+ "meridian-arcade-pylon",+ "meridian-arcade-pier",+ "meridian-arcade-pier-slot",+ "meridian-arcade-arch",+ "meridian-tower-slot",+ "meridian-cascade-tower",+ "meridian-gateway",+ "meridian-orb",+ "meridian-falls-narrow",+ "meridian-overflow-wide",+ "meridian-rim-spill",+ "meridian-basin-water",+ "meridian-planter-sq",+ "meridian-cypress-tall",+ "meridian-shrub-b",+ "meridian-cypress-mid",+ "meridian-planter-long",+ "meridian-shrub-a",+ "meridian-ivy-short",+ "meridian-ivy-long",+ "meridian-isle-base",+ "meridian-cube-marble",+ "meridian-cube-mirror",+ "meridian-monolith",+ "meridian-cube-mirror-court",+ "meridian-shrub-c",+ "meridian-cypress-broad",+ "meridian-cypress-slim",+ "meridian-tower-gate",+ "meridian-arcade-bay",+ "meridian-pavilion",+ "meridian-balustrade-4",+ "meridian-cube-mirror-far",+ "meridian-statue-figure",+ "meridian-statue-whale"+ ]}},"assets": {@@ -272,6 +338,10 @@{"pack": "holodeck-crescent-cove","id": "structure"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "structure"}]},@@ -313,6 +383,10 @@{"pack": "holodeck-crescent-cove","id": "canopy"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "canopy"}]},@@ -351,6 +425,10 @@{"pack": "holodeck-crescent-cove","id": "seating"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "seating"}]},@@ -392,6 +470,10 @@{"pack": "holodeck-crescent-cove","id": "hearth"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "hearth"}]},@@ -433,6 +515,10 @@{"pack": "holodeck-crescent-cove","id": "planting"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "planting"}]},@@ -474,6 +560,10 @@{"pack": "holodeck-crescent-cove","id": "rug"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "rug"}]},@@ -515,6 +605,10 @@{"pack": "holodeck-crescent-cove","id": "lamp"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "lamp"}]},@@ -560,6 +654,10 @@{"pack": "holodeck-winter-mountainside-cabin","id": "moodboard"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "moodboard"}]},@@ -4483,6 +4581,1304 @@"id": "wmc-trail-marker"}]+ },+ "meridian-deck-4": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_9ecaccacab1641468887b8759dd9970f",+ "revisionId": "r_5711672892fd428891bab109fb5f2c78",+ "parentRevision": "r_d6625c132b9343e39fafcb15e382e49d",+ "manifest": {+ "bytes": 10397,+ "sha256": "e8df516f3e4a11c6bb2edb61ae7341920ca91efee261233a84e2fecfd527a35a"+ },+ "source": {+ "bytes": 31487,+ "sha256": "e09577d89a4388cf056b5ba9efa52bee3ef24f2936e57b9070c081355eae9fdb"+ },+ "canonical": {+ "bytes": 340520,+ "sha256": "71ee59d021e2bf91924b47cc7538a8e7a0777d4c7d49b32935274d773364769b"+ },+ "preview": {+ "bytes": 153568,+ "sha256": "c7c7e0830cf9366e4a806232ff30d5cebde8bc8fc3e0272a86d7129b860bb300"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "deck-4"+ }+ ]+ },+ "meridian-block-8": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_bc0c70b042c5495c9b6d4e75138f5d79",+ "revisionId": "r_90b595799305471aa23d5c522b098917",+ "parentRevision": "r_c0f61c891fc74c23afe3e82dc8b12f78",+ "manifest": {+ "bytes": 10602,+ "sha256": "f718ab64438c10e2272ba86f03100e15b83b439419fced9f98cb0b5914a0366f"+ },+ "source": {+ "bytes": 31488,+ "sha256": "338004d210428f630defa533258f36b3450f4ae2b9df65da4c5efd2343627051"+ },+ "canonical": {+ "bytes": 574980,+ "sha256": "b2fdece4ef00a30c62a46e0236df6ac04bf5a7a94257ee3f508f75b6ee6f0fe4"+ },+ "preview": {+ "bytes": 298263,+ "sha256": "9b44fa99a07e45f1b23c500c4218abc13300d0ff85644f45d570cbb14bcec3e7"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "block-8"+ }+ ]+ },+ "meridian-step-slab": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_6f89067c2b77485a93b7b5d039a6c22f",+ "revisionId": "r_ed119ee06e04495787eb74e6fa1b3588",+ "parentRevision": "r_b617dd42793447f9baf46295f17f7930",+ "manifest": {+ "bytes": 10405,+ "sha256": "ed8cabd86b5cc3d0d071ab3a9541b9aeee1d05631b6c5f9099048524b0199658"+ },+ "source": {+ "bytes": 31490,+ "sha256": "6fe347df67d90b25a1d0ae32da8063cb8c8d9a2fd873a56f1e2a8bed2f03db05"+ },+ "canonical": {+ "bytes": 289440,+ "sha256": "f4d3c14fbdbc1ab0f07f7af289e93eec9b6e618e8f253ceb457c5d5f840ba2fe"+ },+ "preview": {+ "bytes": 81778,+ "sha256": "3a861d56cbee6a995536f4d82e2ec24d4138245308da833ab874cc235c0de672"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "step-slab"+ }+ ]+ },+ "meridian-deck-6": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_3b195f8b7a224b12972c0b41c1fed890",+ "revisionId": "r_cfc1654b7c0147418c5980fc0155b73f",+ "parentRevision": "r_39b453f88a264259a66845214bd06c7f",+ "manifest": {+ "bytes": 10431,+ "sha256": "c7c443371184684dbb730955ca0387304fb4f53cfc8e80d1ebdc60f64ac94ddb"+ },+ "source": {+ "bytes": 31487,+ "sha256": "4d8eeb29212aadfe49bf9509d4019bb93eb82fb0558c94dc03501668c66e0468"+ },+ "canonical": {+ "bytes": 336124,+ "sha256": "5dd0045c8ae8652541737e066abeec56f451b889181e2da033a2e95359e5f4f8"+ },+ "preview": {+ "bytes": 109000,+ "sha256": "6a8433077fa09653138955111c2da3cd1fbc661a0a680b226970a2b74e79c512"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "deck-6"+ }+ ]+ },+ "meridian-coping-4": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_a28ecbc7dc134d758deefea5105e7845",+ "revisionId": "r_32c14b58648b4b66b9f916ddd8d796ba",+ "parentRevision": "r_b020b7d4ed704cb39ed5ca4ad55e35cc",+ "manifest": {+ "bytes": 10512,+ "sha256": "658731a751c9e62275ebb359d489b284686cdf7f97c3001d5006f9b3b9cf1dd0"+ },+ "source": {+ "bytes": 31489,+ "sha256": "84f8a8c2a6ad51d8d1547080d8c06dd261893932fbab711a5948a627e6d9fb03"+ },+ "canonical": {+ "bytes": 299044,+ "sha256": "26647e19679146f84d7e9fcdeb9104f5273fcf7496b783b9b5de66252437c20c"+ },+ "preview": {+ "bytes": 80330,+ "sha256": "101e3571f1bfb1a93d086c67aa15cd74f95205570523aa981b3fcadd5fe688ee"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "coping-4"+ }+ ]+ },+ "meridian-pool-steps": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_03c9987e328b4854b3f1e40c37142c8b",+ "revisionId": "r_70d3b4de07f64f518c0a77e49779e0ef",+ "parentRevision": "r_5f6369876bab4316b4f34fc33965a47f",+ "manifest": {+ "bytes": 10459,+ "sha256": "688f3e55ed44ddc38f800e3b3915017ac113f9cf65a2aa559474104cf5f7f01f"+ },+ "source": {+ "bytes": 31491,+ "sha256": "87685fd5c42d08c72ad3197a5394303b2074c16c72b5237a578b6560cf80e9d6"+ },+ "canonical": {+ "bytes": 304680,+ "sha256": "23a3ab978f8d67be3c5b7dc996593533ad2e0317c0da8b037146597a5bd56397"+ },+ "preview": {+ "bytes": 82295,+ "sha256": "848ac3194cc1cb75e13fc2528e2b4492ab0cf310c653456dab7a60ded2b3fc05"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "pool-steps"+ }+ ]+ },+ "meridian-stair-8": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_86ccbcae4fcb41e9ad7aeefeea8d2a31",+ "revisionId": "r_e2c7668c4b704b608fa1faa7e4c9d42f",+ "parentRevision": "r_e1503a0e84f6499690c597b712049ff0",+ "manifest": {+ "bytes": 10495,+ "sha256": "c59133483d7e52b1dd5ff6c1637d3f69c9ba48471e9ee18fe6a8e7398c4837fe"+ },+ "source": {+ "bytes": 31488,+ "sha256": "ac1732f95ba5ba163df5d1a0ac8c5b926455426f4e3d967a72280038865f1203"+ },+ "canonical": {+ "bytes": 587552,+ "sha256": "705bfe877ceee36dc6026496617ce20c8291d91f5a847318c25153e9d7998a39"+ },+ "preview": {+ "bytes": 205322,+ "sha256": "d37c2b11968fc337c5d41c43538b206f12051c91fbec5770d80f7d0aa8df11eb"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "stair-8"+ }+ ]+ },+ "meridian-stair-4": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_3b7a0ed03c61411196d644a78696dd04",+ "revisionId": "r_6a0f08a3449a4786b7e0c8d085fa247d",+ "parentRevision": "r_7382f456a4a14bb7977d1856e7c72060",+ "manifest": {+ "bytes": 10505,+ "sha256": "e9895eaeb52ae6935f4e4f1d7340de296b357412e46b49d8d78f47e2a8f807f3"+ },+ "source": {+ "bytes": 31488,+ "sha256": "543a07bfc6f1a1e6142e929131dd31f529aacf6c694dc98307de57396cb9c557"+ },+ "canonical": {+ "bytes": 414172,+ "sha256": "2c527e59cf8b7bade85935e30290b0c5986b83a5248f7cf30a20afa2149c5605"+ },+ "preview": {+ "bytes": 205465,+ "sha256": "4ce516a3c45ddca64236c9d882dc0c7843b9225f47fe1e4abcd5b915e9ca4f1e"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "stair-4"+ }+ ]+ },+ "meridian-parapet-4": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_68b548474473491e9a1e2dce7632b2ba",+ "revisionId": "r_e28232a177ef4fb0be41c5bbf7236674",+ "parentRevision": "r_e7d47b980f86490b8e4cc9ece4581fde",+ "manifest": {+ "bytes": 10500,+ "sha256": "36c78ae426318e7e354177a2f5a616ae13cc0c88f8c47eb32e1f131564e5001a"+ },+ "source": {+ "bytes": 31490,+ "sha256": "2cdc059a32536db141ace142b7a702c0356b8d6e8d778c9d5364b00d2d824116"+ },+ "canonical": {+ "bytes": 294716,+ "sha256": "5621829bf18e8be8e0a947f9da65f8fbf938f9a8501f2eff9488d7a2233d3be4"+ },+ "preview": {+ "bytes": 97388,+ "sha256": "a3e54d63d24bfa02070937688d9be1b9e865ce464c2bc27816356db6523fae60"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "parapet-4"+ }+ ]+ },+ "meridian-foundation-4": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_496240d2b2f041c69b5d593df83b3bd5",+ "revisionId": "r_ccec44961e6449a7ab752499408139b6",+ "parentRevision": "r_09cf2903579842d68b32ba0ca08ac5fe",+ "manifest": {+ "bytes": 10465,+ "sha256": "b1430138a792fe413662a73b7b72c01c608c4b5f520f3a63345b447564acfbcb"+ },+ "source": {+ "bytes": 31493,+ "sha256": "a046c8944c884ddd723a964b951750a35186dd14551a8a861a696c2cc588575b"+ },+ "canonical": {+ "bytes": 468744,+ "sha256": "0acf1114dbddae2c17b9ef4121ac25dbaa6b7cdaaacd060913e5bd177e74454b"+ },+ "preview": {+ "bytes": 58551,+ "sha256": "042907496b5e3b5bfe898849cdb7f8a147eed8d9c577cc7b014108fdf4f85c45"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "foundation-4"+ }+ ]+ },+ "meridian-arcade-pylon": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_5e2481268eb342aab284430556143e9a",+ "revisionId": "r_269d44f66ec944079983349b9dc2cb5a",+ "parentRevision": "r_5f793f2c52b0492b89cc362de2ce77ee",+ "manifest": {+ "bytes": 10649,+ "sha256": "081560db922dfd56949386216ef083ac533f4562eaad5d7517c4272ebab914ca"+ },+ "source": {+ "bytes": 65351,+ "sha256": "5059600f72ac0fc6c3d4f9fb33ee5dd74c7aeb9c9f79d28451b4109d820bdadd"+ },+ "canonical": {+ "bytes": 796008,+ "sha256": "70a0024743ec6757a4a0110ea06a3d9b8d01e196130e30c91a99280f71b33dad"+ },+ "preview": {+ "bytes": 77680,+ "sha256": "0dffc94e7ef1122fa52f33ac74ac962cf3ce9584158e936d5b241d03a479621b"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-pylon"+ }+ ]+ },+ "meridian-arcade-pier": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_1872b09689154cb2825cbe6cd3e77af4",+ "revisionId": "r_e09059fd12874fbea948389061ee8736",+ "parentRevision": "r_08a27b339c5c4c398b9bae58936b9f3a",+ "manifest": {+ "bytes": 10531,+ "sha256": "d6c216084ccf2f58e0ee17eeb2a030f4d1e6a148c4b1b62579cde686b10f2eb9"+ },+ "source": {+ "bytes": 65350,+ "sha256": "ded78d069fab1971d4596ca00c6dbacc8639160ad53a18458521905e4b9e0e00"+ },+ "canonical": {+ "bytes": 392988,+ "sha256": "f5023ce52f99367f31ca76fb624ce89a9ab50028b02c562b92983e7473ac457d"+ },+ "preview": {+ "bytes": 156507,+ "sha256": "91e3450ff8619f9275c7415007bf3c9f4e8c30ae7274cc708d1d16dd3eec4834"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-pier"+ }+ ]+ },+ "meridian-arcade-pier-slot": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_5aa55f2016c84a98a47300864c642739",+ "revisionId": "r_23415f3bcad34dbea52c9b930878be28",+ "parentRevision": "r_eb2b5ad217234da3a702e7fba5635200",+ "manifest": {+ "bytes": 10670,+ "sha256": "288bc8d5ce6d8cebc9024157283052c75b23a044a7815a6fcddb184e04749a35"+ },+ "source": {+ "bytes": 65355,+ "sha256": "a1a6bfcbf17e62cce5a39ad49ab63436d73513792235d78f104b3a4d82efd880"+ },+ "canonical": {+ "bytes": 409172,+ "sha256": "7e96ed8923b375105a427a3c61a0c829fe4594b9668ab80af00a4bbfd6927036"+ },+ "preview": {+ "bytes": 168571,+ "sha256": "e5236f708045600cec56c883aff39b56e58c454561ebe5f3a1ed9531681d76c2"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-pier-slot"+ }+ ]+ },+ "meridian-arcade-arch": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_71cef64b7f8143478db7afd63d553974",+ "revisionId": "r_e9e14002aa444492805007f0bf30dfee",+ "parentRevision": "r_d412b7188d4344c78498ab6fb0be1076",+ "manifest": {+ "bytes": 10623,+ "sha256": "e64508784b106b4794d6fe94f97b1e403ce56de9a935727a6beefdb588153672"+ },+ "source": {+ "bytes": 65350,+ "sha256": "162bc29bb236379c28cf731a77fe52dcaa8905176f21a093cf25efc19f5303b1"+ },+ "canonical": {+ "bytes": 446504,+ "sha256": "31800d916aee1b6bca31ab51c3577b813cef9982ba0d7fbdc5e6760d83a3ab7b"+ },+ "preview": {+ "bytes": 182378,+ "sha256": "11af17d1e6a4bb250136470367736390155c4bc06ae71fdfba42bffa7b4657c3"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-arch"+ }+ ]+ },+ "meridian-tower-slot": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_3b903db052c3431a9540e5f54a9b5ee5",+ "revisionId": "r_c4851c428d0e4931a2983eea9d6e1d8d",+ "parentRevision": "r_1675e1ee267c4fbfaab03acc47c8d371",+ "manifest": {+ "bytes": 10568,+ "sha256": "6ab095b9e557555957711fb99d067477369796d9c1a0ecef6d24e099878e2459"+ },+ "source": {+ "bytes": 65349,+ "sha256": "1c129f8c397115fba53d20596cb014d990e753a42bb7147e8728eb38aa129f0c"+ },+ "canonical": {+ "bytes": 1107336,+ "sha256": "7036e4b366e13826f00d1934ad3f09273c0d3a5ba634b37fc74c369e984e9ff2"+ },+ "preview": {+ "bytes": 160359,+ "sha256": "71f62d0738d0191018ec3534bb2a2525a0de7ca15518de95c4769734b8355ddc"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "tower-slot"+ }+ ]+ },+ "meridian-cascade-tower": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_e6f9b6d59c9e48e88b6c266fe8df0f01",+ "revisionId": "r_90ab6b974ebb41c4a72e5062a24334fb",+ "parentRevision": "r_c669751d68b54093b8174490a253eb1b",+ "manifest": {+ "bytes": 10682,+ "sha256": "c387a499199c81b87bc8193fa72960ba46b19cb07a0d835201824453d1f76cde"+ },+ "source": {+ "bytes": 65352,+ "sha256": "a4f9821254f3140ce70f263a232bcf30a7570dbe36c85856f9cb985a020130d2"+ },+ "canonical": {+ "bytes": 478736,+ "sha256": "dc18db681668df8be1a07ef3e024b85faaa47ae818f5cca56240a031f1fdbfe1"+ },+ "preview": {+ "bytes": 287068,+ "sha256": "d18c8aa35c34e3ea6619ec052fea45286cfa679504fb54665a6430c879d14646"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cascade-tower"+ }+ ]+ },+ "meridian-gateway": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_3d189b692e934646bccc63f3088eafd1",+ "revisionId": "r_c33d46440935478180576e38ffa20662",+ "parentRevision": "r_4c9605d2325647c2b532ee257ce601cc",+ "manifest": {+ "bytes": 11088,+ "sha256": "2f5cfc508c64e310490303deb5123b42f584b35eaf8058db0dd0505cdd48f9a7"+ },+ "source": {+ "bytes": 65346,+ "sha256": "427516719e17375dcc09ddae5471f7e8e361a5e93008c0311c164a1cd8f602b2"+ },+ "canonical": {+ "bytes": 14792776,+ "sha256": "a80b611eb293ab6b6b18e95d9a436c7d7e2185e328ea92787b4ef9f787c173d9"+ },+ "preview": {+ "bytes": 249074,+ "sha256": "08dc0654f9e73ebd284ef3e577f24bd1c63d51c5301331bedac482c53f95d5f5"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "gateway"+ }+ ]+ },+ "meridian-orb": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_6eb69a9b81ea429880d3f1e5b308955a",+ "revisionId": "r_14709d822a9a444ba5b3e6a6db89d0ca",+ "manifest": {+ "bytes": 10680,+ "sha256": "ab001170b45e8c7f6bd529485b27225c6b4a8092b4576d4fdadbfeba767bc096"+ },+ "source": {+ "bytes": 35756,+ "sha256": "42667a192fd895d7a8b6ba47fcc82f3ab5bb65711281b853d4e9a32a5b38df68"+ },+ "canonical": {+ "bytes": 275776,+ "sha256": "563ea30274f7909b917ccd771e40a63fb2b1c6c18e696bc592eedbe7bdb3b1bb"+ },+ "preview": {+ "bytes": 516049,+ "sha256": "939b1310a2f3fcc2c672b5e3b58ad2dd9add9229eca3466ebe973cce69197d20"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "orb"+ }+ ]+ },+ "meridian-falls-narrow": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_8a9a9d21b715495e8da9ea86f9926b3f",+ "revisionId": "r_792166fb225343fbb5ea84c29d051c19",+ "parentRevision": "r_5eab76a0d3b0419a944caaa326874794",+ "manifest": {+ "bytes": 12880,+ "sha256": "be023d6301832728891039c79bbb044e7da9e474835ee7e0d6ad0460029fe98b"+ },+ "source": {+ "bytes": 26824,+ "sha256": "d3ab9a2823ff6378fa94f4546592c7db4353531f8c15c988dd5b6fa882d3aecc"+ },+ "canonical": {+ "bytes": 89784,+ "sha256": "984acc04312a1712e550a98a4ac1572438eadcec75687524428f70c1b98b7e51"+ },+ "preview": {+ "bytes": 297213,+ "sha256": "35630fe6019bf1fc731e6af0a929cfd5c59d389a4b9049c0f46e300b48b59256"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "falls-narrow"+ }+ ]+ },+ "meridian-overflow-wide": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_9f4e630b3c014b5a85b80b271b6a533c",+ "revisionId": "r_d9957682b89b4c0289370544667ba823",+ "parentRevision": "r_4a97697cd3c24886b3937882f593efe1",+ "manifest": {+ "bytes": 12813,+ "sha256": "aa62ac68f3815f63aa83d0502f3b7f653f288717b3daa8171a92093e6462f129"+ },+ "source": {+ "bytes": 26825,+ "sha256": "e912cfe6d9e23619a03f3e04a015a437b0f5a497b0f63cd26aa97a895178a003"+ },+ "canonical": {+ "bytes": 74552,+ "sha256": "5cc57f59320d62f219856f21b61ee1f34f4940e1c86420b553d8af972257744f"+ },+ "preview": {+ "bytes": 254555,+ "sha256": "36a5e77f434eb2e1ffb640a7e805a0d28bf8dadb5e815d2fbd156ad4457b9e07"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "overflow-wide"+ }+ ]+ },+ "meridian-rim-spill": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_aeeaca8105cf481c95589666b06d2828",+ "revisionId": "r_f492f2ff386f42e98744b929aa38b228",+ "parentRevision": "r_3a91e637f8ad457487faefa9fbe828a3",+ "manifest": {+ "bytes": 12849,+ "sha256": "8a5e6fd5eb1543d65a2de51e49eff39de141b97208727075bb093ede5e7c4b1f"+ },+ "source": {+ "bytes": 26967,+ "sha256": "3a52621b6938554b20934a05e0684dce56ce0755786c8375571a2fb8ed86e7fd"+ },+ "canonical": {+ "bytes": 67360,+ "sha256": "25b86da922bc5cbd0a45dad8bfb693d7d1aef882d4e577a2fdbec525066eb64c"+ },+ "preview": {+ "bytes": 59388,+ "sha256": "9d214f18f24b0ded33809477226f9c83121ce03d40a90cb18f8f3b7ff6ab1879"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "rim-spill"+ }+ ]+ },+ "meridian-basin-water": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_5ac2d19a9ec245d6a1932992548c3c22",+ "revisionId": "r_302353e26e6545dbb54266b1adcb6876",+ "parentRevision": "r_df12c53e05274f25a318823cfb6080c1",+ "manifest": {+ "bytes": 11363,+ "sha256": "f138237429fd97f1b8ac5ed8b82cfad1500eabf2e47514cc196905d8d4c95df4"+ },+ "source": {+ "bytes": 19266,+ "sha256": "18b78f8ced12aae8dda638c58243fd9a49e66ac39b58f058eb0cb6b9af9c1058"+ },+ "canonical": {+ "bytes": 36584,+ "sha256": "15be8981765636b518620ec8eac261e2bbc7b6ba421117b40f8508308399a0e1"+ },+ "preview": {+ "bytes": 74674,+ "sha256": "4c74aa8bab7730a52e0ba7682038dd7bd08b48376fee25447473178df38414aa"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "basin-water"+ }+ ]+ },+ "meridian-planter-sq": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_6278a9dc61e648129614e44414e57717",+ "revisionId": "r_903a72978cfe465186200a1fb3c0efad",+ "parentRevision": "r_2722a2d0f95d48be9296c0be62d19e5c",+ "manifest": {+ "bytes": 10548,+ "sha256": "335e85de4f267117b0c82f692fe8e7fe94b4e501755700c01d957c4b3e995aa2"+ },+ "source": {+ "bytes": 65349,+ "sha256": "2a66363c7e190468e5398d5df17bb78ab21ead677f013262faf5c5b3149059c1"+ },+ "canonical": {+ "bytes": 441368,+ "sha256": "763d149e4a3f2ae481c09c4889465b677cac3790b9af56a018749ef70e7d41f5"+ },+ "preview": {+ "bytes": 137340,+ "sha256": "40105ae045adeaf95a1bbe81a481dabf546aa4abf2bcea72e4ad192abf9b845a"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "planter-sq"+ }+ ]+ },+ "meridian-cypress-tall": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_dfd044d6b13642c5bf52251a76e7c865",+ "revisionId": "r_be51d33b5f0a4afc93ade339d923e4a2",+ "parentRevision": "r_d0b3cc0be0f84670ade5eb7165f35050",+ "manifest": {+ "bytes": 10483,+ "sha256": "f06763a6a846d187ee3f8b28cb79b845908e011fcdd25c070fdc3bcd916879a4"+ },+ "source": {+ "bytes": 27179,+ "sha256": "83d1da82bbf8cb71158400be5be5cb8549e647b10387af7eb8fc163091ead19f"+ },+ "canonical": {+ "bytes": 550724,+ "sha256": "689ed8584fff0fe276e8a45adaee3bbeec6a4e72a6a1839f934bdb531fa4a98f"+ },+ "preview": {+ "bytes": 287342,+ "sha256": "35e827f604b2d57528e34eeb7d843c47aed7c54fe4313716b9d89e81522f1d1f"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cypress-tall"+ }+ ]+ },+ "meridian-shrub-b": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_8e3dc511b0a74bee83928f75486d67b0",+ "revisionId": "r_18f9489150844e0d8d8fe5b526b5b0ad",+ "parentRevision": "r_adc684b454bc45978d01698652c954a5",+ "manifest": {+ "bytes": 10647,+ "sha256": "5685c1df36b476fa3081c1fafa85fbf5729a3b22a4d2bc75f263400bdee60875"+ },+ "source": {+ "bytes": 28630,+ "sha256": "c495fcd1fe3a468725c2a3eee3c8c288a92689b8a12907d085c59620515ec218"+ },+ "canonical": {+ "bytes": 229668,+ "sha256": "b0f7b81d888b267ea85a1d4977af957004a8b02afdd6ab9ba3d8fa58ef322253"+ },+ "preview": {+ "bytes": 545520,+ "sha256": "b790b568bdccf6b060f81c511a3ccdaed56a6985e18d6fb7ea836966f5fe5e28"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "shrub-b"+ }+ ]+ },+ "meridian-cypress-mid": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_39ffb9f601cf46259c43be9a68ce9083",+ "revisionId": "r_44c60f904a8e4598a05f248c438fca73",+ "parentRevision": "r_5a8e63eb212845c89a97c8e9413ac53e",+ "manifest": {+ "bytes": 10530,+ "sha256": "9a65ac99d47b0e86bae29a411a3002e9b4aee7c1608163a7f64925f1314c710f"+ },+ "source": {+ "bytes": 27178,+ "sha256": "91e5a975fea6d36a080a451eb3f6d14d69c681c936539c8b39a85e64539cdfb5"+ },+ "canonical": {+ "bytes": 403320,+ "sha256": "a8263638268e4b8296eb1038dee3a16d7e5a5d1c293ca549320b74037ab688be"+ },+ "preview": {+ "bytes": 278253,+ "sha256": "681ba6695f994390148fcd95f91beef4000b78b9e9206ab1e8d741820abbac0c"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cypress-mid"+ }+ ]+ },+ "meridian-planter-long": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_0dc7ceda00b941029cf89bef1ea4b433",+ "revisionId": "r_df7f82a951694294b7a6bf91aa6a8111",+ "parentRevision": "r_7dfa935f293c4f1593ef4189f61eaf83",+ "manifest": {+ "bytes": 10544,+ "sha256": "5634cf6a62ed416e93ca0964cf92447dbecdce4920725585ab4117650f8f1c83"+ },+ "source": {+ "bytes": 65351,+ "sha256": "8ca19b63c277aba7e8f01d3469703700f6bdd18bdd9c3a00ba75865aefde28c6"+ },+ "canonical": {+ "bytes": 503880,+ "sha256": "f409f0304f2fa8d4269c0826f873b504517c45e9618fb6dfce4e587ab179af74"+ },+ "preview": {+ "bytes": 108117,+ "sha256": "f57026adfed9c3cd9753d0db3c49e0494ddd7b95d999a68c07c983ac6142ed61"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "planter-long"+ }+ ]+ },+ "meridian-shrub-a": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_2b0bd24c5c4c475398236722326ade8b",+ "revisionId": "r_d9dcc110da02497283464db09816c4e1",+ "parentRevision": "r_e7b5755b515e461fbe97cd484e02e049",+ "manifest": {+ "bytes": 10646,+ "sha256": "8bf1f3c0f61aefbb96e8edecb00ed3020bda0a5c5c6fa5c654e324e9d1f70719"+ },+ "source": {+ "bytes": 28630,+ "sha256": "8ee787dd1ad0979be1f4788af1f7a3207c3168f3d058efa509dbb693d2025f41"+ },+ "canonical": {+ "bytes": 282308,+ "sha256": "d41b632d49e91dfcd3f6db132b8ba89e42ac1d8d3d138a64867ecd7c22d610d7"+ },+ "preview": {+ "bytes": 712971,+ "sha256": "61109c1f688ec1335bee85e51ab80d681420bf1ef71d11b76a6420fcf80e62d7"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "shrub-a"+ }+ ]+ },+ "meridian-ivy-short": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_6f29f3fb60e94af3a4f9d1a5c95a9348",+ "revisionId": "r_17b6d0b4330a4e309761103f4c6eaefb",+ "parentRevision": "r_d4ecb2c623624ed3914be69a6415b8fd",+ "manifest": {+ "bytes": 10924,+ "sha256": "9a4add335b72babe0eb9cc546e6e80f387a738554c370fb4b68d61742a96237e"+ },+ "source": {+ "bytes": 22664,+ "sha256": "374a7695cf009874bcd58def766eed35990fd7e6d87287702f686cb6525402f1"+ },+ "canonical": {+ "bytes": 86884,+ "sha256": "f869dd440a9f58abbe25fe65cc73d99bfc1d0ad0c417dc38d7f0e21a1a22de0c"+ },+ "preview": {+ "bytes": 211108,+ "sha256": "b9e4aed2ea0cd56aab694f8a5cd30eab64b2ab60de2e2ac0283c596afc236cf5"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "ivy-short"+ }+ ]+ },+ "meridian-ivy-long": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_6a335a4ab0ed4fa68ca882df46f9bb44",+ "revisionId": "r_b079cae2265a44d4aafe0aa05b93c008",+ "parentRevision": "r_48e3148c11ef48a8a2f0e3568a143ea4",+ "manifest": {+ "bytes": 11161,+ "sha256": "7611fc09d81c56497359f5c6e42bd843a8278a607c5e6bf47304bb770f317be3"+ },+ "source": {+ "bytes": 22663,+ "sha256": "e5aea30b8b65cc51263e81abcb6413d45523721e33e47ce899aa12c4f0ba3134"+ },+ "canonical": {+ "bytes": 213728,+ "sha256": "44008144537fd12cec0faa9b2104f22e20f82fe32985391a29cf58c67bf1255e"+ },+ "preview": {+ "bytes": 157055,+ "sha256": "769f296979fbe32f071c7fa1fcb3e48176f204c766cdabc5f2bace8b110de767"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "ivy-long"+ }+ ]+ },+ "meridian-isle-base": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_35a7b96496dc4c3b8dbb90837234933b",+ "revisionId": "r_44718bb1d05a4aeeab4de5649ec1873b",+ "parentRevision": "r_4d8883c5e9354a42bdf253456cc948dd",+ "manifest": {+ "bytes": 10549,+ "sha256": "2755f39f8b05463883eda99786440fc554ce0faab87d6545f580968cc77f71af"+ },+ "source": {+ "bytes": 65348,+ "sha256": "2d1c36bd1732fbdf67d26c43bfe8347f125a5feea7d29d7d891cda0e32c15ea5"+ },+ "canonical": {+ "bytes": 1159192,+ "sha256": "faa07d441e2383b1b408d0e2ab80b801bc7f6f576ad429ebe235f262a56ab945"+ },+ "preview": {+ "bytes": 340624,+ "sha256": "fe59e7c1c14811b7a2cc8a67b8a8cc338558c095d8ebf7246cae9453d7e4beeb"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "isle-base"+ }+ ]+ },+ "meridian-cube-marble": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_faa275ba070e49f388ba9dcec5841ac4",+ "revisionId": "r_fbc6774707564a54923a9d1f9b1c8ca9",+ "parentRevision": "r_1ad0568e8cd24de68d28e8c4a9452eb4",+ "manifest": {+ "bytes": 10439,+ "sha256": "c9636663867f645de89a486dc864f5c0d2cd8e1fc568b6dd774d7f0f0a2dbf58"+ },+ "source": {+ "bytes": 65350,+ "sha256": "7c5a1112490c0ac6a031239f9cfd61869c6f51d8d899941bc8961a28d0b0c81f"+ },+ "canonical": {+ "bytes": 282288,+ "sha256": "a53ffada88901ed9323f7a8c9639eeb11d1927ea5a20477571a35e1d9789d96e"+ },+ "preview": {+ "bytes": 154623,+ "sha256": "d1a3c83e617bf4352552abb02b4bafca67863986a15d4db657a491a3b9123890"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cube-marble"+ }+ ]+ },+ "meridian-cube-mirror": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_b2ed39a4ce1a4fd99dd876cc5c703165",+ "revisionId": "r_8f1700e3aaf04919865f86ce1522f5b8",+ "parentRevision": "r_9999e0d94987445181dcf656f540e669",+ "manifest": {+ "bytes": 10479,+ "sha256": "fb9bc628edec51f532c26f230a538befba4fb91b5a50458c72169bafbd7754e3"+ },+ "source": {+ "bytes": 63618,+ "sha256": "6dc71b75323e034faa934c6f8a22c50bf3e1fd01c45a118ee43322cac322d6cf"+ },+ "canonical": {+ "bytes": 5236,+ "sha256": "f052282ea7389236f220c25277fb00504de1dfa440c6e7d2c8d398de9439de1a"+ },+ "preview": {+ "bytes": 20359,+ "sha256": "cfd0c95d2741ae9c0e88c14a274154136acefd274a864ea7e305d9ef07a985ae"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cube-mirror"+ }+ ]+ },+ "meridian-monolith": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_463eeb97e1be466dac2f2a444ba879fb",+ "revisionId": "r_fbf4389a2e4d4239813cd2dbc54e094b",+ "parentRevision": "r_58f039e2370b4066bfc9b2c820ed2e2d",+ "manifest": {+ "bytes": 10533,+ "sha256": "a34b2efaafc827cda0bd4219a393fd0001776286deeb1c77bf5721aafa21e636"+ },+ "source": {+ "bytes": 65347,+ "sha256": "c8c8612ec12ad5b6d1176f9899bad774b2a61b48830e7ca48aa8da6ba8b7319e"+ },+ "canonical": {+ "bytes": 1313276,+ "sha256": "51524b45342939d61988ec89d1ef63daf08ab58b70d7fc13bc50bb70dc3b8d92"+ },+ "preview": {+ "bytes": 302942,+ "sha256": "0cf1d1f82c35848ac5b8739255e5236b6d3d77dab36e97ce84c7d41875ff8959"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "monolith"+ }+ ]+ },+ "meridian-cube-mirror-court": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_a107bf0519104ce9849cc823fca52a20",+ "revisionId": "r_36354c34ee5946cd910255a4a8b3f606",+ "parentRevision": "r_ce273f6eb5e6434ab91aba8a4f8c48a3",+ "manifest": {+ "bytes": 10465,+ "sha256": "389c7c8c6ba3833130d77cc19c0563a0e22ebcc3f14d687c23fa6ec58f47fb52"+ },+ "source": {+ "bytes": 63624,+ "sha256": "a0e97376a24e2c50762181c1a042945706d003b99979f8e841132943b8231cbb"+ },+ "canonical": {+ "bytes": 5244,+ "sha256": "de76c91d812d79382063b892c77295ff5deef58b1b677eddfda98bc421e0f2e1"+ },+ "preview": {+ "bytes": 20359,+ "sha256": "cfd0c95d2741ae9c0e88c14a274154136acefd274a864ea7e305d9ef07a985ae"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cube-mirror-court"+ }+ ]+ },+ "meridian-shrub-c": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_bdac34882fa14b84be3d33ea14adb9c9",+ "revisionId": "r_080cc7c6bf3a4e55b9348a9bf6136646",+ "manifest": {+ "bytes": 10571,+ "sha256": "a299bad49a20e2aa6ad7619134ceec7d153e55d206e78f469224e956c0af5e98"+ },+ "source": {+ "bytes": 28630,+ "sha256": "d9a73fedacc110f5f929454ca0a12276ee7b206e906f37339065fe3e1bff1406"+ },+ "canonical": {+ "bytes": 252068,+ "sha256": "f7eeae666d6bac7bacd40f1514ebee4323ebef7afcc4c84adc44c50f57ce2d2c"+ },+ "preview": {+ "bytes": 690526,+ "sha256": "c2330064760dbf6bad1b33d0b1764e9df2884df5eb8946ad77d34291b1b24ad8"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "shrub-c"+ }+ ]+ },+ "meridian-cypress-broad": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_e7849305e90b44eeab88fb69bc7c5c1e",+ "revisionId": "r_65d968a6e4a34968bfaed1504cf759ba",+ "manifest": {+ "bytes": 10501,+ "sha256": "b76ec189f61641778d3c1f04798e5f7a2ead06a7f3079bfa8cd5e2f4e8f3d881"+ },+ "source": {+ "bytes": 28636,+ "sha256": "dab8bd8cc17939f56be234363d07c9e79fec544a89d0a1de70386d2f528183bb"+ },+ "canonical": {+ "bytes": 378448,+ "sha256": "26743581289a7b2799e09df6909e7ee72184f544c8f5a8bb677adae92c7c6a9e"+ },+ "preview": {+ "bytes": 333808,+ "sha256": "3e62eec4027f81ea1c38e0462ba0b610ff8346c1cbebbce41a9d6d387670b228"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cypress-broad"+ }+ ]+ },+ "meridian-cypress-slim": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_f2de801b1cbb472b99638a036c22221a",+ "revisionId": "r_4cb4690620ab4a2aa57cf69cd06255e5",+ "manifest": {+ "bytes": 10468,+ "sha256": "7aaea1cbd56421809fe80b3e08b7b6fb86254cb88f4e85f9dd4e47d4fcbc7d3c"+ },+ "source": {+ "bytes": 28635,+ "sha256": "df66b9dabaecd49dd2f9e096c63e875c74c187a208ba674d2e641def1483c18c"+ },+ "canonical": {+ "bytes": 481224,+ "sha256": "003f4e9395fb5c6a3ff97c5d02762800b61687cd8f8064f7d920af798b600624"+ },+ "preview": {+ "bytes": 246106,+ "sha256": "748340a4337f249ff6759193335f0d252973bb9d6310fc4beb5fc93d983cdbc6"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cypress-slim"+ }+ ]+ },+ "meridian-tower-gate": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_4836065137894bf49499b78028fcfdb9",+ "revisionId": "r_dac22ca376b745ceab2346845e4c16a6",+ "parentRevision": "r_aac85f7dcf2943489b9ba1a3dd41dc02",+ "manifest": {+ "bytes": 10688,+ "sha256": "90508f63f0fd28f981ccbe2eb1aed6eff1e962ab34eefd8b977adfe8150d43b1"+ },+ "source": {+ "bytes": 65349,+ "sha256": "e340edc609f33ad912139049fa6f4993de73384feda11ad98d8cd01a08aa2f66"+ },+ "canonical": {+ "bytes": 1618560,+ "sha256": "eb250a9dd0a414138db8619015c2daf6646cfe1ed4794b3d6137d98b094ccd75"+ },+ "preview": {+ "bytes": 114373,+ "sha256": "a8ce39708f3b99b0b99be35a39cbc4052b56444120cf651593a6064550cceb01"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "tower-gate"+ }+ ]+ },+ "meridian-arcade-bay": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6",+ "revisionId": "r_60cc31247cad446a95672bddc01ae520",+ "parentRevision": "r_205d267f0d22467ba12953656d47e268",+ "manifest": {+ "bytes": 10583,+ "sha256": "8bd867c426815de9d08a90019667640861590f36edd56c612f73226c0a9df536"+ },+ "source": {+ "bytes": 65349,+ "sha256": "19ea35e682ab0761fc4e479b9e0dc85a75a947fe6b97020d8d9e0a59c1ba000f"+ },+ "canonical": {+ "bytes": 561964,+ "sha256": "bf2e816bd344c60734361a581266831601546c8afddd49e80554110d64de815d"+ },+ "preview": {+ "bytes": 149231,+ "sha256": "9e95dcb4de1ab79fee6293fd5a5869870f7aa753b279c0e7cfae22bc1840c1e6"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-bay"+ }+ ]+ },+ "meridian-pavilion": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_fcde0b57fef04d3698a139126d44f416",+ "revisionId": "r_3745cc9353f44c1b8d3102d59c9f9d46",+ "parentRevision": "r_ce8753d65b814006a5104477fc9a6885",+ "manifest": {+ "bytes": 10598,+ "sha256": "11d749a9b3edc422c9550ca1f279acff6b2665ee378951ecdccfde7051fe8600"+ },+ "source": {+ "bytes": 65347,+ "sha256": "d32376c8fca4872936cbbaf631a9e618326aedda77aefbbb44ac9148274cbdbf"+ },+ "canonical": {+ "bytes": 596512,+ "sha256": "80c78c7effe5f1a71afb0f23b52b0126de5b724497114e49914958960f905282"+ },+ "preview": {+ "bytes": 147316,+ "sha256": "b296259a434d57408a2daeb2694e597d297d6d8b9f86507cdb3ec84df37a8ec7"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "pavilion"+ }+ ]+ },+ "meridian-balustrade-4": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_7d9d5e100703402aa907c7e9fe1ccef1",+ "revisionId": "r_eb66bdfce33449e386b9792df125142d",+ "parentRevision": "r_5ab927afed204bfaad958924943d4e4a",+ "manifest": {+ "bytes": 10532,+ "sha256": "134b9ad4f16ffa314453d19b80ac2250b47b7ded764ddf3f241e11a063cac3bc"+ },+ "source": {+ "bytes": 31493,+ "sha256": "3fb79179c857f1a7ccf839edd450a0eab922fc094077cc4595f62bcbb3a83221"+ },+ "canonical": {+ "bytes": 332568,+ "sha256": "a0c40e478f7a7ee58aaa6f87642a7f9329c45e627af7da6c183d82b5f5c0ee45"+ },+ "preview": {+ "bytes": 84593,+ "sha256": "46d8159bd0fc87e052f2160ccd336377c2419c13346754f1e7e3cb77e27f0712"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "balustrade-4"+ }+ ]+ },+ "meridian-cube-mirror-far": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_b0480b746fa5406c82626f5037e30f5c",+ "revisionId": "r_1b9bef4f0c2d46ae8bdd1261f64b4c71",+ "manifest": {+ "bytes": 10475,+ "sha256": "c52554b033fcb53db433c728e451a43b77408c581a7bbedd7fcab34e130692e7"+ },+ "source": {+ "bytes": 63622,+ "sha256": "e17b2e8d8591d78aa62bad7f690e33878fff5bdb34668bce9747592275ac90b8"+ },+ "canonical": {+ "bytes": 5240,+ "sha256": "7565e0872c555de2563f19c2a4533a90743a290497888d7b24f29ab10755fd41"+ },+ "preview": {+ "bytes": 20359,+ "sha256": "cfd0c95d2741ae9c0e88c14a274154136acefd274a864ea7e305d9ef07a985ae"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cube-mirror-far"+ }+ ]+ },+ "meridian-statue-figure": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_2fdcbd42ab4740469b82e2c357f96413",+ "revisionId": "r_c3c6c0cd796b43c88dabbb09061e3ef3",+ "manifest": {+ "bytes": 11326,+ "sha256": "78d907480df3e18b9d0491d8bbb4fa746c77029c43e997e922a9f59805a957ba"+ },+ "source": {+ "bytes": 15828,+ "sha256": "ea8d4538720b66e5fc6ce07312bcb53d4dd4c8af8bc2dd9eb96156e89a593a00"+ },+ "canonical": {+ "bytes": 896964,+ "sha256": "fd9f981f9876ba561567ba071e10280db0feeeaf79ab902f813e2ea8c78a2988"+ },+ "preview": {+ "bytes": 184127,+ "sha256": "6d478b6d0f725cd0036b910141cb0962550d243a39419f7f6b1df0d573f2a479"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "statue-figure"+ }+ ]+ },+ "meridian-statue-whale": {+ "store": "marble-sanctuary",+ "collection": "project",+ "assetId": "a_705819f9bd52422b947684965b45795c",+ "revisionId": "r_94ec333e46d84cc7a9c4e79455b1c572",+ "manifest": {+ "bytes": 11393,+ "sha256": "8b9bfcde9108042f0b2d77eddbb5a204ac0681a55b6bf4cbfe58c934b240951b"+ },+ "source": {+ "bytes": 22053,+ "sha256": "dfa7608671b5069940ab27ddbddc58ca8fdeb49908146e95f3bf818c4d654cf6"+ },+ "canonical": {+ "bytes": 794760,+ "sha256": "733063c17e42fbe08312a06ef3fb0b9b4ea1ee8bdb9d50103e8a8d04ef6382b3"+ },+ "preview": {+ "bytes": 136607,+ "sha256": "39333cf93234bbbc66c4f7259d82642e18dbe1f0c4bf46005d6fbbf1ee5e0356"+ },+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "statue-whale"+ }+ ]}}}diff --git a/packs/holodeck/sources/project/a_03c9987e328b4854b3f1e40c37142c8b/r_70d3b4de07f64f518c0a77e49779e0ef/manifest.json b/packs/holodeck/sources/project/a_03c9987e328b4854b3f1e40c37142c8b/r_70d3b4de07f64f518c0a77e49779e0ef/manifest.jsonnew file mode 100644index 00000000..dfcc233b--- /dev/null+++ b/packs/holodeck/sources/project/a_03c9987e328b4854b3f1e40c37142c8b/r_70d3b4de07f64f518c0a77e49779e0ef/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_03c9987e328b4854b3f1e40c37142c8b",+ "revisionId": "r_70d3b4de07f64f518c0a77e49779e0ef",+ "parentRevision": "r_5f6369876bab4316b4f34fc33965a47f",+ "name": "pool-steps",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:18:05.716Z",+ "description": "Stone kit pool steps, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:23a3ab978f8d67be3c5b7dc996593533ad2e0317c0da8b037146597a5bd56397",+ "bytes": 304680+ },+ "source.kiln.js": {+ "sha256": "sha256:87685fd5c42d08c72ad3197a5394303b2074c16c72b5237a578b6560cf80e9d6",+ "bytes": 31491+ },+ "preview.png": {+ "sha256": "sha256:848ac3194cc1cb75e13fc2528e2b4492ab0cf310c653456dab7a60ded2b3fc05",+ "bytes": 82295+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "23a3ab978f8d67be3c5b7dc996593533ad2e0317c0da8b037146597a5bd56397",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -1.5,+ -1,+ 0+ ],+ "max": [+ 1.5,+ -0.1666666716337204,+ 1.7999999523162842+ ],+ "size": [+ 3,+ 0.8333333283662796,+ 1.7999999523162842+ ],+ "center": [+ 0,+ -0.5833333358168602,+ 0.8999999761581421+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -1,+ "offsetToGround": 1,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 240,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 240,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:23a3ab978f8d67be3c5b7dc996593533ad2e0317c0da8b037146597a5bd56397",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_03c9987e328b4854b3f1e40c37142c8b/r_70d3b4de07f64f518c0a77e49779e0ef/source.kiln.js b/packs/holodeck/sources/project/a_03c9987e328b4854b3f1e40c37142c8b/r_70d3b4de07f64f518c0a77e49779e0ef/source.kiln.jsnew file mode 100644index 00000000..44d07aab--- /dev/null+++ b/packs/holodeck/sources/project/a_03c9987e328b4854b3f1e40c37142c8b/r_70d3b4de07f64f518c0a77e49779e0ef/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'pool-steps';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_0dc7ceda00b941029cf89bef1ea4b433/r_df7f82a951694294b7a6bf91aa6a8111/manifest.json b/packs/holodeck/sources/project/a_0dc7ceda00b941029cf89bef1ea4b433/r_df7f82a951694294b7a6bf91aa6a8111/manifest.jsonnew file mode 100644index 00000000..69ac495e--- /dev/null+++ b/packs/holodeck/sources/project/a_0dc7ceda00b941029cf89bef1ea4b433/r_df7f82a951694294b7a6bf91aa6a8111/manifest.json@@ -0,0 +1,367 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_0dc7ceda00b941029cf89bef1ea4b433",+ "revisionId": "r_df7f82a951694294b7a6bf91aa6a8111",+ "parentRevision": "r_7dfa935f293c4f1593ef4189f61eaf83",+ "name": "planter-long",+ "tags": [+ "meridian-sanctuary",+ "architecture",+ "planting"+ ],+ "createdAt": "2026-10-25T15:21:03.703Z",+ "description": "Long marble planter 4.08 m, 0.7 m tall, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:f409f0304f2fa8d4269c0826f873b504517c45e9618fb6dfce4e587ab179af74",+ "bytes": 503880+ },+ "source.kiln.js": {+ "sha256": "sha256:8ca19b63c277aba7e8f01d3469703700f6bdd18bdd9c3a00ba75865aefde28c6",+ "bytes": 65351+ },+ "preview.png": {+ "sha256": "sha256:f57026adfed9c3cd9753d0db3c49e0494ddd7b95d999a68c07c983ac6142ed61",+ "bytes": 108117+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "f409f0304f2fa8d4269c0826f873b504517c45e9618fb6dfce4e587ab179af74",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2.0399999618530273,+ 0,+ -0.6399999856948853+ ],+ "max": [+ 2.0399999618530273,+ 0.699999988079071,+ 0.6399999856948853+ ],+ "size": [+ 4.079999923706055,+ 0.699999988079071,+ 1.2799999713897705+ ],+ "center": [+ 0,+ 0.3499999940395355,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 2112,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 2112,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:f409f0304f2fa8d4269c0826f873b504517c45e9618fb6dfce4e587ab179af74",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_0dc7ceda00b941029cf89bef1ea4b433/r_df7f82a951694294b7a6bf91aa6a8111/source.kiln.js b/packs/holodeck/sources/project/a_0dc7ceda00b941029cf89bef1ea4b433/r_df7f82a951694294b7a6bf91aa6a8111/source.kiln.jsnew file mode 100644index 00000000..af9325ed--- /dev/null+++ b/packs/holodeck/sources/project/a_0dc7ceda00b941029cf89bef1ea4b433/r_df7f82a951694294b7a6bf91aa6a8111/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'planter-long';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_1872b09689154cb2825cbe6cd3e77af4/r_e09059fd12874fbea948389061ee8736/manifest.json b/packs/holodeck/sources/project/a_1872b09689154cb2825cbe6cd3e77af4/r_e09059fd12874fbea948389061ee8736/manifest.jsonnew file mode 100644index 00000000..3f018406--- /dev/null+++ b/packs/holodeck/sources/project/a_1872b09689154cb2825cbe6cd3e77af4/r_e09059fd12874fbea948389061ee8736/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_1872b09689154cb2825cbe6cd3e77af4",+ "revisionId": "r_e09059fd12874fbea948389061ee8736",+ "parentRevision": "r_08a27b339c5c4c398b9bae58936b9f3a",+ "name": "arcade-pier",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-25T15:19:32.723Z",+ "description": "Arcade pier 1.2 m square to its impost at 5.2 m, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:f5023ce52f99367f31ca76fb624ce89a9ab50028b02c562b92983e7473ac457d",+ "bytes": 392988+ },+ "source.kiln.js": {+ "sha256": "sha256:ded78d069fab1971d4596ca00c6dbacc8639160ad53a18458521905e4b9e0e00",+ "bytes": 65350+ },+ "preview.png": {+ "sha256": "sha256:91e3450ff8619f9275c7415007bf3c9f4e8c30ae7274cc708d1d16dd3eec4834",+ "bytes": 156507+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "f5023ce52f99367f31ca76fb624ce89a9ab50028b02c562b92983e7473ac457d",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.699999988079071,+ 0,+ -0.699999988079071+ ],+ "max": [+ 0.699999988079071,+ 5.199999809265137,+ 0.699999988079071+ ],+ "size": [+ 1.399999976158142,+ 5.199999809265137,+ 1.399999976158142+ ],+ "center": [+ 0,+ 2.5999999046325684,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 1072,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 1072,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:f5023ce52f99367f31ca76fb624ce89a9ab50028b02c562b92983e7473ac457d",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_1872b09689154cb2825cbe6cd3e77af4/r_e09059fd12874fbea948389061ee8736/source.kiln.js b/packs/holodeck/sources/project/a_1872b09689154cb2825cbe6cd3e77af4/r_e09059fd12874fbea948389061ee8736/source.kiln.jsnew file mode 100644index 00000000..cc80d0b7--- /dev/null+++ b/packs/holodeck/sources/project/a_1872b09689154cb2825cbe6cd3e77af4/r_e09059fd12874fbea948389061ee8736/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'arcade-pier';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_2b0bd24c5c4c475398236722326ade8b/r_d9dcc110da02497283464db09816c4e1/manifest.json b/packs/holodeck/sources/project/a_2b0bd24c5c4c475398236722326ade8b/r_d9dcc110da02497283464db09816c4e1/manifest.jsonnew file mode 100644index 00000000..56830ea9--- /dev/null+++ b/packs/holodeck/sources/project/a_2b0bd24c5c4c475398236722326ade8b/r_d9dcc110da02497283464db09816c4e1/manifest.json@@ -0,0 +1,363 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_2b0bd24c5c4c475398236722326ade8b",+ "revisionId": "r_d9dcc110da02497283464db09816c4e1",+ "parentRevision": "r_e7b5755b515e461fbe97cd484e02e049",+ "name": "shrub-a",+ "tags": [],+ "createdAt": "2026-10-25T09:16:52.729Z",+ "description": "Turn 14 (corrects r_e7b5755b, which was saved from shrub-b's build): the shrub-a mound, its blossoms on the shared atlas's cream rows 0-1.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:d41b632d49e91dfcd3f6db132b8ba89e42ac1d8d3d138a64867ecd7c22d610d7",+ "bytes": 282308+ },+ "source.kiln.js": {+ "sha256": "sha256:8ee787dd1ad0979be1f4788af1f7a3207c3168f3d058efa509dbb693d2025f41",+ "bytes": 28630+ },+ "preview.png": {+ "sha256": "sha256:61109c1f688ec1335bee85e51ab80d681420bf1ef71d11b76a6420fcf80e62d7",+ "bytes": 712971+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "d41b632d49e91dfcd3f6db132b8ba89e42ac1d8d3d138a64867ecd7c22d610d7",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -1.089307188987732,+ -0.08443574607372284,+ -1.1396980285644531+ ],+ "max": [+ 1.1061254739761353,+ 1.3785972595214844,+ 1.1477864980697632+ ],+ "size": [+ 2.195432662963867,+ 1.4630330055952072,+ 2.2874845266342163+ ],+ "center": [+ 0.00840914249420166,+ 0.6470807567238808,+ 0.004044234752655029+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -0.08443574607372284,+ "offsetToGround": 0.08443574607372284,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 3464,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 3464,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:d41b632d49e91dfcd3f6db132b8ba89e42ac1d8d3d138a64867ecd7c22d610d7",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "light"+ }+}diff --git a/packs/holodeck/sources/project/a_2b0bd24c5c4c475398236722326ade8b/r_d9dcc110da02497283464db09816c4e1/source.kiln.js b/packs/holodeck/sources/project/a_2b0bd24c5c4c475398236722326ade8b/r_d9dcc110da02497283464db09816c4e1/source.kiln.jsnew file mode 100644index 00000000..590bfc86--- /dev/null+++ b/packs/holodeck/sources/project/a_2b0bd24c5c4c475398236722326ade8b/r_d9dcc110da02497283464db09816c4e1/source.kiln.js@@ -0,0 +1,355 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'shrub-a';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [60, 76, 36, 255], operations: [ // turn 13: a little lighter, so gaps between clumps read as depth, not holes+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs (turn 9: the reviews of revision 11 saw crumpled dark bowls with no flowers): a 512 px+// atlas of 128 px cells in the cypress's manner. Column 0 is the opaque leafy core; columns 1 - 2+// hold eight rounded clusters of small leaves (rows by height on the mound, lighter higher up),+// column 3 four clusters of cream and white blossom heads over leaves.+async function shrubAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 80, 40, 255], operations: [ // turn 13: lighter, so the crown never reads as a dark hollow+ { op: 'stamps', shape: ell(10, 8), rgba: [70, 104, 52, 255], count: 140, seed: 31, area: { x: 0, y: 0, width: 114, height: 500 } },+ { op: 'stamps', shape: ell(8, 6), rgba: [28, 46, 24, 255], count: 90, seed: 32, area: { x: 0, y: 0, width: 116, height: 502 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2]) {+ const lift = 7 * r + 5 * (c - 1), seed = 700 + 11 * r + 3 * c;+ regions.push({ name: `leaves-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(12, 9), rgba: [44 + lift, 74 + lift, 36, 255], count: 76, seed, area: { x: 16, y: 10, width: 80, height: 70 } },+ { op: 'stamps', shape: ell(10, 7), rgba: [72 + lift, 110 + lift, 52, 255], count: 100, seed: seed + 1, area: { x: 10, y: 22, width: 94, height: 82 } },+ { op: 'stamps', shape: ell(7, 5), rgba: [112 + lift, 150 + lift, 74, 255], count: 76, seed: seed + 2, area: { x: 14, y: 34, width: 90, height: 78 } }] } } });+ }+ // turn 14: rows 0 - 1 cream and white (shrub-a, shrub-b), rows 2 - 3 old rose (shrub-c), so the+ // three shrubs share one atlas and one material+ for (let r = 0; r < 4; r++) {+ const seed = 800 + 13 * r, [petal, light, eye] = r < 2 ? [[248, 238, 212], [255, 252, 244], [236, 204, 120]] : [[232, 160, 172], [248, 204, 210], [226, 184, 112]];+ regions.push({ name: `blossom-${r}`, content: { x: 384 + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(11, 8), rgba: [56, 90, 44, 255], count: 70, seed, area: { x: 14, y: 14, width: 84, height: 80 } },+ { op: 'stamps', shape: ell(10, 9), rgba: [...petal, 255], count: 64, seed: seed + 1, area: { x: 14, y: 12, width: 88, height: 90 } },+ { op: 'stamps', shape: ell(6, 6), rgba: [...light, 255], count: 90, seed: seed + 2, area: { x: 12, y: 10, width: 96, height: 96 } },+ { op: 'stamps', shape: ell(2, 2), rgba: [...eye, 255], count: 30, seed: seed + 3, area: { x: 20, y: 18, width: 82, height: 84 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+// turn 14 (rule 9's varied pairs): o.peak is where the column is widest (0.32 of its height),+// o.taper the power of its narrowing above (0.75), o.lean the top's offset in metres (x, z),+// growing with the square of height so the column bows rather than tilts.+async function cypress(H, W, n, seed, trunk, o = {}) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12, pk = o.peak ?? 0.32, tp = o.taper ?? 0.75, [lx, lz] = o.lean ?? [0, 0];+ const prof = (t) => (t < pk ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / pk)) : Math.pow((1 - t) / (1 - pk), tp));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]) + lx * t * t, 0.04 * t * Math.sin(4.3 * t + ph[1]) + lz * t * t];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ // turn 13 (the reviews of revision 15: near cypresses read as stacked cardboard with a sawtooth+ // outline): clumps two thirds the size and nearly twice as many, so the outline breaks finer+ const L = (0.19 + 0.17 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.75 + 0.35 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound (turn 9): a dome, widest just above the ground, of small crossed clusters of+// leaves rooted by area in a dark leafy core, a share of them blossom heads, more on its crown and+// sun side of the dome; rounded (spherical) shading normals; it spills a little past a planter's+// rim. Card rows follow height, so the wind stirs the crown more than the foot.+// turn 14: o.rose takes the old-rose blossom rows (2 - 3) and the lighter leaf rows; the cream+// shrubs take blossom rows 0 - 1, low on the mound and high+async function shrub(H, R0, n, seed, bloom, o = {}) {+ const R = rng(seed), M = makeMesh(), bRow = (row) => (o.rose ? 2 : 0) + (row >= 2 ? 1 : 0), lRow = (row) => (o.rose ? Math.min(3, row + 1) : row);+ const radius = (t) => R0 * Math.max(0.005, Math.sqrt(Math.max(0, 1 - t ** 2.4)) * (0.9 + 0.12 * Math.sin(Math.PI * Math.min(1, t * 1.8)))); // turn 13: closed at the top (a pinhole showed the sky)+ const bump = body(M, H, 0, radius, 8, 14, 0.12, R, 0.3);+ // turn 13 (the reviews of revision 15 saw hollow domes from above, h8): a dense pass of+ // clusters over the crown, rooted across it (not only round its rim) and pointing up+ for (let k = 0; k < Math.round(n * 0.35); k++) {+ const t = 0.62 + 0.36 * R(), th = R() * 2 * Math.PI, rr = radius(t) * Math.sqrt(R()), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = 1.05 + 0.45 * R(), dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R());+ const root = [rr * out[0], t * H - 0.04, rr * out[2]], tip = add(root, dir, L), flower = R() < bloom * 1.1;+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = flower ? 0.25 * bRow(3) + 0.006 : 0.756, v1 = v0 + 0.238;+ const ns = nrm([out[0] * 0.3, 1, out[2] * 0.3]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ for (let k = 0; k < n;) {+ const t = 0.04 + R() * 0.94, rad = radius(t);+ if (R() * R0 > rad + 0.5 * R0 * t) continue; // by area, the crown favoured (turn 13: it showed a dark hollow from above)+ k++;+ const th = R() * 2 * Math.PI, y = t * H, out = [Math.cos(th), 0, Math.sin(th)], r = rad * bump(th, t);+ const elev = 0.25 + R() * 0.55 + 0.7 * t * t, dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R()); // turn 13: smaller and more of them+ const root = [(r - 0.05) * out[0], y - 0.02, (r - 0.05) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), flower = t > 0.3 && R() < bloom * (0.6 + 0.6 * t);+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * (flower ? bRow(row) : lRow(row)) + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0] * (1 - 0.6 * t), 0.35 + 0.8 * t, out[2] * (1 - 0.6 * t)]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ return [['shrub', M.geo(), foliage(await shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 850, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 600, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.1, 0.85, 300, 3, 0.4), // turn 13: narrower, so it stays in the island planters+ 'shrub-b': () => shrub(0.62, 0.74, 230, 4, 0.45), // fills a square planter to its rim and spills a little (turn 13: counts held to rule 16's triangle reserve)+ // turn 14 (rule 9: pairs that vary in height and fullness): a pencil cypress, 8.8 : 1 and+ // bowing a little; a young broad cone, 3.5 : 1, widest low; an old-rose shrub, taller than+ // shrub-b and lighter in leaf+ 'cypress-slim': () => cypress(11.5, 1.3, 720, 7, 0.7, { peak: 0.42, taper: 0.62, lean: [0.24, -0.1] }),+ 'cypress-broad': () => cypress(6.2, 1.75, 560, 8, 0.45, { peak: 0.22, taper: 0.95 }),+ 'shrub-c': () => shrub(0.9, 0.78, 260, 9, 0.6, { rose: true }),+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(await PIECES['shrub-a'](), [-2, 0, 3]);+ place(await PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_2fdcbd42ab4740469b82e2c357f96413/r_c3c6c0cd796b43c88dabbb09061e3ef3/manifest.json b/packs/holodeck/sources/project/a_2fdcbd42ab4740469b82e2c357f96413/r_c3c6c0cd796b43c88dabbb09061e3ef3/manifest.jsonnew file mode 100644index 00000000..87db9460--- /dev/null+++ b/packs/holodeck/sources/project/a_2fdcbd42ab4740469b82e2c357f96413/r_c3c6c0cd796b43c88dabbb09061e3ef3/manifest.json@@ -0,0 +1,381 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_2fdcbd42ab4740469b82e2c357f96413",+ "revisionId": "r_c3c6c0cd796b43c88dabbb09061e3ef3",+ "name": "statue-figure",+ "tags": [+ "meridian",+ "statue",+ "marble"+ ],+ "createdAt": "2026-10-25T21:48:24.293Z",+ "description": "Robed marble figure lifting a sphere on a 0.9 m plinth; floats as sky sculpture in Meridian Sanctuary.",+ "attribution": {+ "model": "claude-opus-5-5",+ "harness": "Claude Code"+ },+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:fd9f981f9876ba561567ba071e10280db0feeeaf79ab902f813e2ea8c78a2988",+ "bytes": 896964+ },+ "source.kiln.js": {+ "sha256": "sha256:ea8d4538720b66e5fc6ce07312bcb53d4dd4c8af8bc2dd9eb96156e89a593a00",+ "bytes": 15828+ },+ "preview.png": {+ "sha256": "sha256:6d478b6d0f725cd0036b910141cb0962550d243a39419f7f6b1df0d573f2a479",+ "bytes": 184127+ }+ },+ "build": {+ "engine": "sha256:d1c12efdb98720e77eefec461b44c6eeefcbe8506abf94f31ada0b040c0555b3",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [+ "Mesh_figure: EXPERIMENTAL_IMPLICIT_SURFACE Implicit sampling is resolution-dependent and produces geometry without UVs. Review thin features and bounds; closed topology is not a claim of CAD accuracy."+ ],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "fd9f981f9876ba561567ba071e10280db0feeeaf79ab902f813e2ea8c78a2988",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.45000001788139343,+ -3.8968022053675004e-17,+ -0.45000001788139343+ ],+ "max": [+ 0.45000001788139343,+ 2.9000000029802324,+ 0.45000001788139343+ ],+ "size": [+ 0.9000000357627869,+ 2.9000000029802324,+ 0.9000000357627869+ ],+ "center": [+ 0,+ 1.4500000014901162,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -3.8968022053675004e-17,+ "offsetToGround": 3.8968022053675004e-17,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian statue figure"+ },+ "requestedRole": "prop",+ "renderMetrics": {+ "triangles": 34224,+ "drawCalls": 3,+ "uniqueGeometries": 3,+ "uniqueMaterials": 1,+ "textureCount": 2,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [+ {+ "code": "GEO_PART_SELF_INTERSECTION_UNMEASURED",+ "disposition": "observe",+ "dimension": "visualQuality",+ "profile": "geometry.selfIntersection",+ "message": "1 part-volume measurement was unavailable. 1 because 31104 triangles exceeds the 20000-triangle analysis budget: \"Mesh_figure\". This part is not certified clear."+ }+ ],+ "metrics": {+ "partVolumeCoverage": "partial",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 2,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 1+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 3 geometries; 3 draw calls.",+ "uniqueGeometries": 3,+ "uniqueMaterials": 1,+ "meshNodes": 3,+ "meshInstances": 3,+ "drawCalls": 3,+ "textureCount": 2,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 34224,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 2,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1064960,+ "estimatedGpuBytesWithMipmaps": 1419948,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "notEvaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1742",+ "inputGlbSha256": "sha256:fd9f981f9876ba561567ba071e10280db0feeeaf79ab902f813e2ea8c78a2988",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_2fdcbd42ab4740469b82e2c357f96413/r_c3c6c0cd796b43c88dabbb09061e3ef3/source.kiln.js b/packs/holodeck/sources/project/a_2fdcbd42ab4740469b82e2c357f96413/r_c3c6c0cd796b43c88dabbb09061e3ef3/source.kiln.jsnew file mode 100644index 00000000..e4febd5a--- /dev/null+++ b/packs/holodeck/sources/project/a_2fdcbd42ab4740469b82e2c357f96413/r_c3c6c0cd796b43c88dabbb09061e3ef3/source.kiln.js@@ -0,0 +1,297 @@+// Meridian Sanctuary statue: a robed standing figure lifting a sphere overhead with both hands,+// for the floating sky. One closed implicit body (robe, head, arms, sleeve drapes), a separate+// orb mesh (so a polished or mirror material can replace its marble later) and a square plinth+// with base and cap mouldings. Read at 30-80 m: silhouette, head, arms and drape, no fine detail.+// Frame for this asset: figure faces +Z, +Y up, plinth bottom at y = 0 (the brief's convention).+// Marble: the white veined marble patch and low roughness of the stone kit (stone-kit.kiln.js,+// architecture.kiln.js), as a standalone tiled texture at the kit's density (one patch ~1.94 m).+const meta = { name: 'Meridian statue figure', role: 'prop' };++// ---------------------------------------------------------------- dimensions (metres)+const PLINTH_HALF = 0.45, PLINTH_H = 0.35;+const FOOT_Y = PLINTH_H - 0.007; // the figure's base sits 7 mm into the plinth top+const FIG_H = 2.0; // feet to crown at scale 1 (7.5 heads)+const HEAD = FIG_H / 7.5;+const ORB_R = 0.2;+const ORB_C = [0, PLINTH_H + FIG_H + 0.35, 0.04];+const PATCH_M = 1.94; // metres per marble patch (kit density 0.25 atlas units per metre)++// ---------------------------------------------------------------- marble (as the stone kit)+function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble, identical to the kits' marbleSpec: near-white ground, two long veins a+// patch (faint halo round a fine warm-grey core, forked branch) and fainter secondary veins.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// The kits' marble roughness: 0x20-0x34 (0.13-0.20) in green, no metal.+function ormSpec(oq, roughA, roughB, seed) {+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }] };+}+function marbleMaterial() {+ const albedo = proceduralTexture(marbleSpec(512, 101, 0.55));+ const orm = proceduralTexture(ormSpec(64, 0x20, 0x34, 5));+ const m = pbrMaterial({ albedo, metallicRoughness: orm, roughness: 1, metalness: 1 });+ m.name = 'marble';+ return m;+}++// ---------------------------------------------------------------- signed distance helpers (negative inside)+const clamp = (v, a, b) => (v < a ? a : v > b ? b : v);+const mix = (a, b, t) => a + (b - a) * t;+const v3 = {+ sub: (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]],+ add: (a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]],+ mul: (a, s) => [a[0] * s, a[1] * s, a[2] * s],+ dot: (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2],+ len: (a) => Math.hypot(a[0], a[1], a[2]),+ nrm: (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; },+ cross: (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]],+};+function smin(a, b, k) { const h = Math.max(k - Math.abs(a - b), 0) / k; return Math.min(a, b) - h * h * k * 0.25; }+// tapered capsule from a (radius ra) to b (radius rb)+function sdCone(p, a, b, ra, rb) {+ const pa0 = p[0] - a[0], pa1 = p[1] - a[1], pa2 = p[2] - a[2];+ const ba0 = b[0] - a[0], ba1 = b[1] - a[1], ba2 = b[2] - a[2];+ const h = clamp((pa0 * ba0 + pa1 * ba1 + pa2 * ba2) / (ba0 * ba0 + ba1 * ba1 + ba2 * ba2), 0, 1);+ return Math.hypot(pa0 - ba0 * h, pa1 - ba1 * h, pa2 - ba2 * h) - mix(ra, rb, h);+}+function sdEllipsoid(p, c, r) {+ const x = p[0] - c[0], y = p[1] - c[1], z = p[2] - c[2];+ const k0 = Math.hypot(x / r[0], y / r[1], z / r[2]);+ const k1 = Math.hypot(x / (r[0] * r[0]), y / (r[1] * r[1]), z / (r[2] * r[2]));+ return k1 > 1e-9 ? (k0 * (k0 - 1)) / k1 : -Math.min(r[0], r[1], r[2]);+}+// rotate p about the X axis through pivot by angle (radians)+function rotX(p, pivot, ang) {+ const y = p[1] - pivot[1], z = p[2] - pivot[2], c = Math.cos(ang), s = Math.sin(ang);+ return [p[0], pivot[1] + c * y - s * z, pivot[2] + s * y + c * z];+}++// ---------------------------------------------------------------- the figure+// Robe sections: [y, rx, rz, cx, cz, fold amplitude (relative)]. The weight rests on the+// figure's right leg (-X), so the hips shift a little toward it; the free left knee presses+// forward through the cloth. A peplos overfold ends at the hips; a high girdle under the chest.+const ROBE = [+ [FOOT_Y, 0.255, 0.235, -0.01, 0.025, 0.075],+ [0.40, 0.238, 0.21, -0.01, 0.022, 0.07],+ [0.55, 0.218, 0.18, -0.012, 0.016, 0.06],+ [0.80, 0.202, 0.158, -0.015, 0.01, 0.05],+ [1.05, 0.196, 0.147, -0.018, 0.0, 0.035],+ [1.18, 0.203, 0.15, -0.02, -0.005, 0.025],+ [1.205, 0.222, 0.165, -0.02, -0.002, 0.06], // overfold hem+ [1.42, 0.178, 0.133, -0.012, 0.004, 0.05],+ [1.62, 0.168, 0.128, -0.006, 0.01, 0.02],+ [1.66, 0.162, 0.124, -0.005, 0.012, 0.008], // girdle+ [1.70, 0.178, 0.138, -0.004, 0.018, 0.03],+ [1.82, 0.19, 0.145, 0, 0.022, 0.025],+ [1.95, 0.195, 0.128, 0, 0.004, 0.015],+ [2.03, 0.12, 0.09, 0, 0.0, 0.0],+];+function robeAt(y) {+ if (y <= ROBE[0][0]) return ROBE[0];+ for (let i = 1; i < ROBE.length; i++) if (y <= ROBE[i][0]) {+ const a = ROBE[i - 1], b = ROBE[i], t = (y - a[0]) / (b[0] - a[0]), s = t * t * (3 - 2 * t);+ return a.map((v, k) => mix(v, b[k], k === 0 ? t : s));+ }+ return ROBE[ROBE.length - 1];+}+function foldWave(th, y) {+ // mostly vertical folds, deeper and fewer toward the hem, drifting slightly with height+ return 0.62 * Math.sin(9 * th + 0.9 * Math.sin(2 * th + 0.7) + 0.35 * y + 1.3)+ + 0.38 * Math.sin(16 * th + 1.7 * Math.sin(3 * th) - 0.5 * y + 0.4);+}+function sdRobe(p) {+ const y = p[1];+ const [, rx, rz, cx, cz, fa] = robeAt(y);+ const x = p[0] - cx, z = p[2] - cz;+ const th = Math.atan2(z, x);+ const f = 1 + fa * foldWave(th, y);+ const rho = Math.hypot(x / (rx * f), z / (rz * f));+ let d = (rho - 1) * Math.min(rx, rz) * f;+ d = Math.max(d, FOOT_Y - y, y - 2.03);+ return d;+}++const SHOULDER = [0.195, 2.0, -0.005];+const ARM_U = 0.33, ARM_F = 0.29;+const ORB_GRIP = 58 * Math.PI / 180; // contact angle up from the orb's lowest point+function armChain(side) {+ const n = [side * Math.sin(ORB_GRIP), -Math.cos(ORB_GRIP), 0.08];+ const nn = v3.nrm(n);+ const t = v3.nrm([side * Math.cos(ORB_GRIP), Math.sin(ORB_GRIP), 0]); // up the orb's side+ const palm = v3.add(ORB_C, v3.mul(nn, ORB_R + 0.024));+ const wrist = v3.sub(palm, v3.mul(t, 0.065));+ const n2 = v3.nrm([side * Math.sin(78 * Math.PI / 180), -Math.cos(78 * Math.PI / 180), 0.12]);+ const tip = v3.add(ORB_C, v3.mul(n2, ORB_R + 0.012));+ const thumbTip = v3.add(ORB_C, v3.mul(v3.nrm([side * 0.5, -0.6, 0.62]), ORB_R + 0.01));+ const S = [side * SHOULDER[0], SHOULDER[1], SHOULDER[2]];+ // two-link solve: elbow bends outward and a little forward+ const sw = v3.sub(wrist, S), d = v3.len(sw), u = v3.mul(sw, 1 / d);+ const a = (ARM_U * ARM_U - ARM_F * ARM_F + d * d) / (2 * d), h = Math.sqrt(Math.max(0, ARM_U * ARM_U - a * a));+ let bend = [side, 0, 0.3];+ bend = v3.nrm(v3.sub(bend, v3.mul(u, v3.dot(bend, u))));+ const E = v3.add(v3.add(S, v3.mul(u, a)), v3.mul(bend, h));+ return { S, E, wrist, palm, tip, thumbTip, side };+}+const ARMS = [armChain(1), armChain(-1)];++function sdArm(p, A) {+ let d = sdCone(p, A.S, A.E, 0.066, 0.05);+ d = smin(d, sdCone(p, A.E, A.wrist, 0.05, 0.035), 0.03);+ d = smin(d, sdCone(p, A.wrist, A.palm, 0.035, 0.033), 0.025);+ d = smin(d, sdCone(p, A.palm, A.tip, 0.032, 0.022), 0.02);+ const thumbBase = v3.add(A.wrist, v3.mul(v3.sub(A.palm, A.wrist), 0.5));+ d = smin(d, sdCone(p, thumbBase, A.thumbTip, 0.022, 0.017), 0.02);+ return d;+}+// The chiton sleeve, slid down the raised arm, hangs as a drape from the upper arm and elbow to+// the side of the chest: a fan of rounded folds that merge into one cloth wing.+function sdSleeve(p, A) {+ let d = 1e9;+ const s = A.side;+ const hang = (t) => v3.add(A.S, v3.mul(v3.sub(A.E, A.S), t));+ const anchors = [+ [0.25, [s * 0.185, 1.86, 0.035]], [0.5, [s * 0.19, 1.84, -0.01]], [0.72, [s * 0.215, 1.86, 0.03]],+ [0.92, [s * 0.235, 1.9, -0.02]], [1.05, [s * 0.255, 1.96, 0.02]],+ ];+ for (const [t, foot] of anchors) {+ const top = t <= 1 ? hang(t) : v3.add(A.E, v3.mul(v3.sub(A.wrist, A.E), t - 1));+ const lowTop = [top[0], top[1] - 0.03, top[2]];+ const mid = v3.add(v3.mul(v3.add(lowTop, foot), 0.5), [s * 0.04, -0.05, 0]); // sag outward and down+ d = smin(d, sdCone(p, lowTop, mid, 0.03, 0.028), 0.04);+ d = smin(d, sdCone(p, mid, foot, 0.028, 0.026), 0.04);+ }+ return d;+}++const HEAD_PIVOT = [0, 2.09, 0.01], HEAD_TILT = -8 * Math.PI / 180; // a slight lift of the face+function sdHead(p) {+ const q = rotX(p, HEAD_PIVOT, -HEAD_TILT);+ let d = sdEllipsoid(q, [0, 2.24, -0.012], [0.1, 0.12, 0.114]); // hair over the cranium+ d = smin(d, sdEllipsoid(q, [0, 2.175, 0.04], [0.078, 0.098, 0.082]), 0.04); // face+ d = smin(d, sdEllipsoid(q, [0, 2.105, 0.065], [0.042, 0.035, 0.035]), 0.03); // chin+ d = smin(d, sdCone(q, [0, 2.205, 0.112], [0, 2.162, 0.132], 0.014, 0.017), 0.015); // nose+ d = smin(d, sdEllipsoid(q, [0, 2.205, -0.118], [0.06, 0.05, 0.05]), 0.03); // chignon+ return d;+}++// A himation hangs from the shoulders down the back to the calves: a layer standing 3 cm off the+// robe over its back half, its hem curving up toward the sides, with its own broader folds.+function sdMantle(p) {+ const y = p[1];+ if (y < 0.62 || y > 2.06) return 1e9;+ const [, rx, rz, cx, cz] = robeAt(Math.min(y, 1.97));+ const x = p[0] - cx, z = p[2] - cz;+ const th = Math.atan2(z, x);+ const f = 1 + 0.035 * Math.sin(6 * th + 0.6 * Math.sin(2 * th) + 0.2 * y + 2.1);+ const ox = rx + 0.032, oz = rz + 0.038;+ const rho = Math.hypot(x / (ox * f), z / (oz * f));+ let d = (rho - 1) * Math.min(ox, oz) * f;+ d = Math.max(d, z + 0.005 - 0.04 * Math.max(0, y - 1.75) / 0.3); // back half; it wraps forward over the shoulders+ d = Math.max(d, 0.68 + 2.6 * x * x - y, y - 2.04);+ return d;+}++function sdFigure(p) {+ const x = p[0], y = p[1], z = p[2];+ let d = sdRobe(p);+ if (z < 0.08) d = smin(d, sdMantle(p), 0.015);+ // free left knee and thigh pressing the cloth forward+ if (y < 1.35 && y > 0.6) {+ d = smin(d, sdCone(p, [0.075, 1.18, 0.02], [0.08, 0.86, 0.1], 0.085, 0.07), 0.06);+ d = smin(d, sdCone(p, [0.08, 0.86, 0.1], [0.095, 0.52, 0.08], 0.068, 0.06), 0.06);+ }+ // toes from under the hem+ if (y < 0.5 && z > 0) {+ d = smin(d, sdEllipsoid(p, [-0.085, FOOT_Y + 0.03, 0.18], [0.047, 0.036, 0.09]), 0.02);+ d = smin(d, sdEllipsoid(p, [0.115, FOOT_Y + 0.03, 0.215], [0.047, 0.036, 0.09]), 0.02);+ }+ // shoulders, neck, head+ if (y > 1.8) {+ d = smin(d, sdCone(p, [-0.17, 2.0, -0.01], [0.17, 2.0, -0.01], 0.07, 0.07), 0.06);+ d = smin(d, sdCone(p, [0, 1.96, -0.008], [0, 2.13, 0.012], 0.054, 0.05), 0.05);+ if (y > 2.0) d = smin(d, sdHead(p), 0.04);+ }+ // arms and sleeve drapes+ if (y > 1.75 && Math.abs(x) > 0.05) {+ for (const A of ARMS) {+ if (A.side * x < 0) continue;+ d = smin(d, sdArm(p, A), 0.05);+ if (y < 2.45) d = smin(d, sdSleeve(p, A), 0.05);+ }+ }+ return d;+}++// ---------------------------------------------------------------- plinth+// A square plinth 0.9 x 0.9 x 0.35 m: base block, a rounded base moulding, a fillet, the die,+// and a cap of fillet, ovolo and top slab. Revolved with four segments (a square), so each+// profile half-width w becomes a corner radius w * sqrt 2.+const PLINTH_PROFILE = [+ [0.45, 0], [0.45, 0.065], [0.447, 0.077], [0.438, 0.088], [0.425, 0.096], [0.41, 0.1],+ [0.405, 0.1], [0.405, 0.112], [0.395, 0.118], [0.395, 0.25], [0.405, 0.256], [0.405, 0.266],+ [0.414, 0.268], [0.425, 0.274], [0.434, 0.283], [0.44, 0.294], [0.45, 0.298], [0.45, PLINTH_H],+];++async function build() {+ const root = createRoot('statue_figure');+ const marble = marbleMaterial();++ const ext = 0.04;+ const raw = await implicitSurface((p) => -sdFigure(p), {+ bounds: { min: [-0.48, FOOT_Y - ext, -0.36], max: [0.48, ORB_C[1] + 0.12, 0.42] },+ edgeLength: 0.023,+ });+ const figGeo = projectUV(raw, { projection: 'box', metersPerUnit: PATCH_M });+ requireSolid(createPart('figure', figGeo, marble, { parent: root }));++ const orbGeo = projectUV(copyGeometry(sphereGeo(ORB_R, 48, 32)), { projection: 'box', metersPerUnit: PATCH_M, frame: { origin: [0.37, 0.21, 0.11] } });+ requireSolid(createPart('orb', orbGeo, marble, { parent: root, position: ORB_C }));++ const k = Math.SQRT2;+ const prof = [[0, 0], ...PLINTH_PROFILE.map(([w, y]) => [w * k, y]), [0, PLINTH_H]];+ const plinthRaw = await revolveProfile(prof, { segments: 4, smooth: false });+ plinthRaw.rotateY(Math.PI / 4);+ const plinthGeo = projectUV(plinthRaw, { projection: 'box', metersPerUnit: PATCH_M, frame: { origin: [0.61, 0, 0.29] } });+ requireSolid(createPart('plinth', plinthGeo, marble, { parent: root }));+ return root;+}diff --git a/packs/holodeck/sources/project/a_35a7b96496dc4c3b8dbb90837234933b/r_44718bb1d05a4aeeab4de5649ec1873b/manifest.json b/packs/holodeck/sources/project/a_35a7b96496dc4c3b8dbb90837234933b/r_44718bb1d05a4aeeab4de5649ec1873b/manifest.jsonnew file mode 100644index 00000000..16eedd4f--- /dev/null+++ b/packs/holodeck/sources/project/a_35a7b96496dc4c3b8dbb90837234933b/r_44718bb1d05a4aeeab4de5649ec1873b/manifest.json@@ -0,0 +1,367 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_35a7b96496dc4c3b8dbb90837234933b",+ "revisionId": "r_44718bb1d05a4aeeab4de5649ec1873b",+ "parentRevision": "r_4d8883c5e9354a42bdf253456cc948dd",+ "name": "isle-base",+ "tags": [+ "meridian-sanctuary",+ "architecture",+ "sky"+ ],+ "createdAt": "2026-10-25T15:21:26.342Z",+ "description": "Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed travertine with marble bands; turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:faa07d441e2383b1b408d0e2ab80b801bc7f6f576ad429ebe235f262a56ab945",+ "bytes": 1159192+ },+ "source.kiln.js": {+ "sha256": "sha256:2d1c36bd1732fbdf67d26c43bfe8347f125a5feea7d29d7d891cda0e32c15ea5",+ "bytes": 65348+ },+ "preview.png": {+ "sha256": "sha256:fe59e7c1c14811b7a2cc8a67b8a8cc338558c095d8ebf7246cae9453d7e4beeb",+ "bytes": 340624+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "faa07d441e2383b1b408d0e2ab80b801bc7f6f576ad429ebe235f262a56ab945",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -12,+ -18.399999618530273,+ -12+ ],+ "max": [+ 12,+ 0,+ 12+ ],+ "size": [+ 24,+ 18.399999618530273,+ 24+ ],+ "center": [+ 0,+ -9.199999809265137,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -18.399999618530273,+ "offsetToGround": 18.399999618530273,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 8272,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 8272,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:faa07d441e2383b1b408d0e2ab80b801bc7f6f576ad429ebe235f262a56ab945",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_35a7b96496dc4c3b8dbb90837234933b/r_44718bb1d05a4aeeab4de5649ec1873b/source.kiln.js b/packs/holodeck/sources/project/a_35a7b96496dc4c3b8dbb90837234933b/r_44718bb1d05a4aeeab4de5649ec1873b/source.kiln.jsnew file mode 100644index 00000000..11442c78--- /dev/null+++ b/packs/holodeck/sources/project/a_35a7b96496dc4c3b8dbb90837234933b/r_44718bb1d05a4aeeab4de5649ec1873b/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'isle-base';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_39ffb9f601cf46259c43be9a68ce9083/r_44c60f904a8e4598a05f248c438fca73/manifest.json b/packs/holodeck/sources/project/a_39ffb9f601cf46259c43be9a68ce9083/r_44c60f904a8e4598a05f248c438fca73/manifest.jsonnew file mode 100644index 00000000..4337ceef--- /dev/null+++ b/packs/holodeck/sources/project/a_39ffb9f601cf46259c43be9a68ce9083/r_44c60f904a8e4598a05f248c438fca73/manifest.json@@ -0,0 +1,363 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_39ffb9f601cf46259c43be9a68ce9083",+ "revisionId": "r_44c60f904a8e4598a05f248c438fca73",+ "parentRevision": "r_5a8e63eb212845c89a97c8e9413ac53e",+ "name": "cypress-mid",+ "tags": [],+ "createdAt": "2026-10-25T06:27:07.986Z",+ "description": "Turn 13: 600 smaller clumps (from 720) to hold rule 16's triangle reserve.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:a8263638268e4b8296eb1038dee3a16d7e5a5d1c293ca549320b74037ab688be",+ "bytes": 403320+ },+ "source.kiln.js": {+ "sha256": "sha256:91e5a975fea6d36a080a451eb3f6d14d69c681c936539c8b39a85e64539cdfb5",+ "bytes": 27178+ },+ "preview.png": {+ "sha256": "sha256:681ba6695f994390148fcd95f91beef4000b78b9e9206ab1e8d741820abbac0c",+ "bytes": 278253+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "a8263638268e4b8296eb1038dee3a16d7e5a5d1c293ca549320b74037ab688be",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.6450049877166748,+ 0,+ -0.675903856754303+ ],+ "max": [+ 0.6579729914665222,+ 7.199999809265137,+ 0.7139407992362976+ ],+ "size": [+ 1.302977979183197,+ 7.199999809265137,+ 1.3898446559906006+ ],+ "center": [+ 0.006484001874923706,+ 3.5999999046325684,+ 0.019018471240997314+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 5644,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 5644,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:a8263638268e4b8296eb1038dee3a16d7e5a5d1c293ca549320b74037ab688be",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_39ffb9f601cf46259c43be9a68ce9083/r_44c60f904a8e4598a05f248c438fca73/source.kiln.js b/packs/holodeck/sources/project/a_39ffb9f601cf46259c43be9a68ce9083/r_44c60f904a8e4598a05f248c438fca73/source.kiln.jsnew file mode 100644index 00000000..d70b36bb--- /dev/null+++ b/packs/holodeck/sources/project/a_39ffb9f601cf46259c43be9a68ce9083/r_44c60f904a8e4598a05f248c438fca73/source.kiln.js@@ -0,0 +1,342 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'cypress-mid';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [60, 76, 36, 255], operations: [ // turn 13: a little lighter, so gaps between clumps read as depth, not holes+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs (turn 9: the reviews of revision 11 saw crumpled dark bowls with no flowers): a 512 px+// atlas of 128 px cells in the cypress's manner. Column 0 is the opaque leafy core; columns 1 - 2+// hold eight rounded clusters of small leaves (rows by height on the mound, lighter higher up),+// column 3 four clusters of cream and white blossom heads over leaves.+async function shrubAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 80, 40, 255], operations: [ // turn 13: lighter, so the crown never reads as a dark hollow+ { op: 'stamps', shape: ell(10, 8), rgba: [70, 104, 52, 255], count: 140, seed: 31, area: { x: 0, y: 0, width: 114, height: 500 } },+ { op: 'stamps', shape: ell(8, 6), rgba: [28, 46, 24, 255], count: 90, seed: 32, area: { x: 0, y: 0, width: 116, height: 502 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2]) {+ const lift = 7 * r + 5 * (c - 1), seed = 700 + 11 * r + 3 * c;+ regions.push({ name: `leaves-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(12, 9), rgba: [44 + lift, 74 + lift, 36, 255], count: 76, seed, area: { x: 16, y: 10, width: 80, height: 70 } },+ { op: 'stamps', shape: ell(10, 7), rgba: [72 + lift, 110 + lift, 52, 255], count: 100, seed: seed + 1, area: { x: 10, y: 22, width: 94, height: 82 } },+ { op: 'stamps', shape: ell(7, 5), rgba: [112 + lift, 150 + lift, 74, 255], count: 76, seed: seed + 2, area: { x: 14, y: 34, width: 90, height: 78 } }] } } });+ }+ for (let r = 0; r < 4; r++) {+ const seed = 800 + 13 * r;+ regions.push({ name: `blossom-${r}`, content: { x: 384 + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(11, 8), rgba: [56, 90, 44, 255], count: 70, seed, area: { x: 14, y: 14, width: 84, height: 80 } },+ { op: 'stamps', shape: ell(10, 9), rgba: [248, 238, 212, 255], count: 64, seed: seed + 1, area: { x: 14, y: 12, width: 88, height: 90 } },+ { op: 'stamps', shape: ell(6, 6), rgba: [255, 252, 244, 255], count: 90, seed: seed + 2, area: { x: 12, y: 10, width: 96, height: 96 } },+ { op: 'stamps', shape: ell(2, 2), rgba: [236, 204, 120, 255], count: 30, seed: seed + 3, area: { x: 20, y: 18, width: 82, height: 84 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+async function cypress(H, W, n, seed, trunk) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12;+ const prof = (t) => (t < 0.32 ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / 0.32)) : Math.pow((1 - t) / 0.68, 0.75));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]), 0.04 * t * Math.sin(4.3 * t + ph[1])];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ // turn 13 (the reviews of revision 15: near cypresses read as stacked cardboard with a sawtooth+ // outline): clumps two thirds the size and nearly twice as many, so the outline breaks finer+ const L = (0.19 + 0.17 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.75 + 0.35 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound (turn 9): a dome, widest just above the ground, of small crossed clusters of+// leaves rooted by area in a dark leafy core, a share of them blossom heads, more on its crown and+// sun side of the dome; rounded (spherical) shading normals; it spills a little past a planter's+// rim. Card rows follow height, so the wind stirs the crown more than the foot.+async function shrub(H, R0, n, seed, bloom) {+ const R = rng(seed), M = makeMesh();+ const radius = (t) => R0 * Math.max(0.005, Math.sqrt(Math.max(0, 1 - t ** 2.4)) * (0.9 + 0.12 * Math.sin(Math.PI * Math.min(1, t * 1.8)))); // turn 13: closed at the top (a pinhole showed the sky)+ const bump = body(M, H, 0, radius, 8, 14, 0.12, R, 0.3);+ // turn 13 (the reviews of revision 15 saw hollow domes from above, h8): a dense pass of+ // clusters over the crown, rooted across it (not only round its rim) and pointing up+ for (let k = 0; k < Math.round(n * 0.35); k++) {+ const t = 0.62 + 0.36 * R(), th = R() * 2 * Math.PI, rr = radius(t) * Math.sqrt(R()), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = 1.05 + 0.45 * R(), dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R());+ const root = [rr * out[0], t * H - 0.04, rr * out[2]], tip = add(root, dir, L), flower = R() < bloom * 1.1;+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.756, v1 = v0 + 0.238;+ const ns = nrm([out[0] * 0.3, 1, out[2] * 0.3]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ for (let k = 0; k < n;) {+ const t = 0.04 + R() * 0.94, rad = radius(t);+ if (R() * R0 > rad + 0.5 * R0 * t) continue; // by area, the crown favoured (turn 13: it showed a dark hollow from above)+ k++;+ const th = R() * 2 * Math.PI, y = t * H, out = [Math.cos(th), 0, Math.sin(th)], r = rad * bump(th, t);+ const elev = 0.25 + R() * 0.55 + 0.7 * t * t, dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R()); // turn 13: smaller and more of them+ const root = [(r - 0.05) * out[0], y - 0.02, (r - 0.05) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), flower = t > 0.3 && R() < bloom * (0.6 + 0.6 * t);+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0] * (1 - 0.6 * t), 0.35 + 0.8 * t, out[2] * (1 - 0.6 * t)]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ return [['shrub', M.geo(), foliage(await shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 850, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 600, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.1, 0.85, 300, 3, 0.4), // turn 13: narrower, so it stays in the island planters+ 'shrub-b': () => shrub(0.62, 0.74, 230, 4, 0.45), // fills a square planter to its rim and spills a little (turn 13: counts held to rule 16's triangle reserve)+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(await PIECES['shrub-a'](), [-2, 0, 3]);+ place(await PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_3b195f8b7a224b12972c0b41c1fed890/r_cfc1654b7c0147418c5980fc0155b73f/manifest.json b/packs/holodeck/sources/project/a_3b195f8b7a224b12972c0b41c1fed890/r_cfc1654b7c0147418c5980fc0155b73f/manifest.jsonnew file mode 100644index 00000000..af53d2dc--- /dev/null+++ b/packs/holodeck/sources/project/a_3b195f8b7a224b12972c0b41c1fed890/r_cfc1654b7c0147418c5980fc0155b73f/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_3b195f8b7a224b12972c0b41c1fed890",+ "revisionId": "r_cfc1654b7c0147418c5980fc0155b73f",+ "parentRevision": "r_39b453f88a264259a66845214bd06c7f",+ "name": "deck-6",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:17:42.649Z",+ "description": "Stone kit deck 6 m with brass inlays 2 mm proud, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:5dd0045c8ae8652541737e066abeec56f451b889181e2da033a2e95359e5f4f8",+ "bytes": 336124+ },+ "source.kiln.js": {+ "sha256": "sha256:4d8eeb29212aadfe49bf9509d4019bb93eb82fb0558c94dc03501668c66e0468",+ "bytes": 31487+ },+ "preview.png": {+ "sha256": "sha256:6a8433077fa09653138955111c2da3cd1fbc661a0a680b226970a2b74e79c512",+ "bytes": 109000+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "5dd0045c8ae8652541737e066abeec56f451b889181e2da033a2e95359e5f4f8",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -3,+ -1,+ -2+ ],+ "max": [+ 3,+ 0.0020000000949949026,+ 2+ ],+ "size": [+ 6,+ 1.002000000094995,+ 4+ ],+ "center": [+ 0,+ -0.49899999995250255,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -1,+ "offsetToGround": 1,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 560,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 560,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:5dd0045c8ae8652541737e066abeec56f451b889181e2da033a2e95359e5f4f8",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_3b195f8b7a224b12972c0b41c1fed890/r_cfc1654b7c0147418c5980fc0155b73f/source.kiln.js b/packs/holodeck/sources/project/a_3b195f8b7a224b12972c0b41c1fed890/r_cfc1654b7c0147418c5980fc0155b73f/source.kiln.jsnew file mode 100644index 00000000..25e7188e--- /dev/null+++ b/packs/holodeck/sources/project/a_3b195f8b7a224b12972c0b41c1fed890/r_cfc1654b7c0147418c5980fc0155b73f/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'deck-6';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_3b7a0ed03c61411196d644a78696dd04/r_6a0f08a3449a4786b7e0c8d085fa247d/manifest.json b/packs/holodeck/sources/project/a_3b7a0ed03c61411196d644a78696dd04/r_6a0f08a3449a4786b7e0c8d085fa247d/manifest.jsonnew file mode 100644index 00000000..f0c898f2--- /dev/null+++ b/packs/holodeck/sources/project/a_3b7a0ed03c61411196d644a78696dd04/r_6a0f08a3449a4786b7e0c8d085fa247d/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_3b7a0ed03c61411196d644a78696dd04",+ "revisionId": "r_6a0f08a3449a4786b7e0c8d085fa247d",+ "parentRevision": "r_7382f456a4a14bb7977d1856e7c72060",+ "name": "stair-4",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:18:30.139Z",+ "description": "Stone kit side flight 4 m wide between cheek walls, brass nosings 3 mm proud, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:2c527e59cf8b7bade85935e30290b0c5986b83a5248f7cf30a20afa2149c5605",+ "bytes": 414172+ },+ "source.kiln.js": {+ "sha256": "sha256:543a07bfc6f1a1e6142e929131dd31f529aacf6c694dc98307de57396cb9c557",+ "bytes": 31488+ },+ "preview.png": {+ "sha256": "sha256:4ce516a3c45ddca64236c9d882dc0c7843b9225f47fe1e4abcd5b915e9ca4f1e",+ "bytes": 205465+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "2c527e59cf8b7bade85935e30290b0c5986b83a5248f7cf30a20afa2149c5605",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2,+ 0,+ -8+ ],+ "max": [+ 2,+ 3.299999952316284,+ 0.006000000052154064+ ],+ "size": [+ 4,+ 3.299999952316284,+ 8.006000000052154+ ],+ "center": [+ 0,+ 1.649999976158142,+ -3.996999999973923+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 1244,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 1244,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:2c527e59cf8b7bade85935e30290b0c5986b83a5248f7cf30a20afa2149c5605",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_3b7a0ed03c61411196d644a78696dd04/r_6a0f08a3449a4786b7e0c8d085fa247d/source.kiln.js b/packs/holodeck/sources/project/a_3b7a0ed03c61411196d644a78696dd04/r_6a0f08a3449a4786b7e0c8d085fa247d/source.kiln.jsnew file mode 100644index 00000000..86a97de7--- /dev/null+++ b/packs/holodeck/sources/project/a_3b7a0ed03c61411196d644a78696dd04/r_6a0f08a3449a4786b7e0c8d085fa247d/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'stair-4';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_3b903db052c3431a9540e5f54a9b5ee5/r_c4851c428d0e4931a2983eea9d6e1d8d/manifest.json b/packs/holodeck/sources/project/a_3b903db052c3431a9540e5f54a9b5ee5/r_c4851c428d0e4931a2983eea9d6e1d8d/manifest.jsonnew file mode 100644index 00000000..b245b28c--- /dev/null+++ b/packs/holodeck/sources/project/a_3b903db052c3431a9540e5f54a9b5ee5/r_c4851c428d0e4931a2983eea9d6e1d8d/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_3b903db052c3431a9540e5f54a9b5ee5",+ "revisionId": "r_c4851c428d0e4931a2983eea9d6e1d8d",+ "parentRevision": "r_1675e1ee267c4fbfaab03acc47c8d371",+ "name": "tower-slot",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-25T15:20:29.361Z",+ "description": "Slotted tower on a 32 m shaft (a far form), niches closed over and under, turn 16 atlas and warm-white glow.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:7036e4b366e13826f00d1934ad3f09273c0d3a5ba634b37fc74c369e984e9ff2",+ "bytes": 1107336+ },+ "source.kiln.js": {+ "sha256": "sha256:1c129f8c397115fba53d20596cb014d990e753a42bb7147e8728eb38aa129f0c",+ "bytes": 65349+ },+ "preview.png": {+ "sha256": "sha256:71f62d0738d0191018ec3534bb2a2525a0de7ca15518de95c4769734b8355ddc",+ "bytes": 160359+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "7036e4b366e13826f00d1934ad3f09273c0d3a5ba634b37fc74c369e984e9ff2",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2.299999952316284,+ -32,+ -2.299999952316284+ ],+ "max": [+ 2.299999952316284,+ 24,+ 2.299999952316284+ ],+ "size": [+ 4.599999904632568,+ 56,+ 4.599999904632568+ ],+ "center": [+ 0,+ -4,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -32,+ "offsetToGround": 32,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 7752,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 4,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 4,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 7752,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 1,+ "materialExtensionsUsed": "KHR_materials_emissive_strength",+ "imageCount": 4,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 12845056,+ "estimatedGpuBytesWithMipmaps": 17126744,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:7036e4b366e13826f00d1934ad3f09273c0d3a5ba634b37fc74c369e984e9ff2",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_3b903db052c3431a9540e5f54a9b5ee5/r_c4851c428d0e4931a2983eea9d6e1d8d/source.kiln.js b/packs/holodeck/sources/project/a_3b903db052c3431a9540e5f54a9b5ee5/r_c4851c428d0e4931a2983eea9d6e1d8d/source.kiln.jsnew file mode 100644index 00000000..427eb930--- /dev/null+++ b/packs/holodeck/sources/project/a_3b903db052c3431a9540e5f54a9b5ee5/r_c4851c428d0e4931a2983eea9d6e1d8d/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'tower-slot';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_3d189b692e934646bccc63f3088eafd1/r_c33d46440935478180576e38ffa20662/manifest.json b/packs/holodeck/sources/project/a_3d189b692e934646bccc63f3088eafd1/r_c33d46440935478180576e38ffa20662/manifest.jsonnew file mode 100644index 00000000..d109acf8--- /dev/null+++ b/packs/holodeck/sources/project/a_3d189b692e934646bccc63f3088eafd1/r_c33d46440935478180576e38ffa20662/manifest.json@@ -0,0 +1,375 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_3d189b692e934646bccc63f3088eafd1",+ "revisionId": "r_c33d46440935478180576e38ffa20662",+ "parentRevision": "r_4c9605d2325647c2b532ee257ce601cc",+ "name": "gateway",+ "tags": [+ "meridian-sanctuary",+ "architecture",+ "gateway"+ ],+ "createdAt": "2026-10-25T15:22:17.117Z",+ "description": "The gateway (31 m body, wings to 39 m, 98.6 m tall, three stacked arches, front piers with full-height slits); turn 16 atlas and warm-white glow (round 7: the slots and vault read apricot).",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:a80b611eb293ab6b6b18e95d9a436c7d7e2185e328ea92787b4ef9f787c173d9",+ "bytes": 14792776+ },+ "source.kiln.js": {+ "sha256": "sha256:427516719e17375dcc09ddae5471f7e8e361a5e93008c0311c164a1cd8f602b2",+ "bytes": 65346+ },+ "preview.png": {+ "sha256": "sha256:08dc0654f9e73ebd284ef3e577f24bd1c63d51c5301331bedac482c53f95d5f5",+ "bytes": 249074+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "a80b611eb293ab6b6b18e95d9a436c7d7e2185e328ea92787b4ef9f787c173d9",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -19.5,+ 0,+ -6.300000190734863+ ],+ "max": [+ 19.5,+ 98.5999984741211,+ 9.5+ ],+ "size": [+ 39,+ 98.5999984741211,+ 15.800000190734863+ ],+ "center": [+ 0,+ 49.29999923706055,+ 1.5999999046325684+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 132164,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 4,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [+ {+ "code": "GEO_PART_SELF_INTERSECTION_UNMEASURED",+ "disposition": "observe",+ "dimension": "visualQuality",+ "profile": "geometry.selfIntersection",+ "message": "1 part-volume measurement was unavailable. 1 because 132164 triangles exceeds the 20000-triangle analysis budget: \"Mesh_gateway\". This part is not certified clear."+ }+ ],+ "metrics": {+ "partVolumeCoverage": "partial",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 0,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 1+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 4,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 132164,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 1,+ "materialExtensionsUsed": "KHR_materials_emissive_strength",+ "imageCount": 4,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 12845056,+ "estimatedGpuBytesWithMipmaps": 17126744,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "notEvaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:a80b611eb293ab6b6b18e95d9a436c7d7e2185e328ea92787b4ef9f787c173d9",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_3d189b692e934646bccc63f3088eafd1/r_c33d46440935478180576e38ffa20662/source.kiln.js b/packs/holodeck/sources/project/a_3d189b692e934646bccc63f3088eafd1/r_c33d46440935478180576e38ffa20662/source.kiln.jsnew file mode 100644index 00000000..c0851063--- /dev/null+++ b/packs/holodeck/sources/project/a_3d189b692e934646bccc63f3088eafd1/r_c33d46440935478180576e38ffa20662/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'gateway';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_463eeb97e1be466dac2f2a444ba879fb/r_fbf4389a2e4d4239813cd2dbc54e094b/manifest.json b/packs/holodeck/sources/project/a_463eeb97e1be466dac2f2a444ba879fb/r_fbf4389a2e4d4239813cd2dbc54e094b/manifest.jsonnew file mode 100644index 00000000..9f9cd261--- /dev/null+++ b/packs/holodeck/sources/project/a_463eeb97e1be466dac2f2a444ba879fb/r_fbf4389a2e4d4239813cd2dbc54e094b/manifest.json@@ -0,0 +1,367 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_463eeb97e1be466dac2f2a444ba879fb",+ "revisionId": "r_fbf4389a2e4d4239813cd2dbc54e094b",+ "parentRevision": "r_58f039e2370b4066bfc9b2c820ed2e2d",+ "name": "monolith",+ "tags": [+ "meridian-sanctuary",+ "architecture",+ "sky"+ ],+ "createdAt": "2026-10-25T15:21:38.910Z",+ "description": "Far monolith, a coursed travertine shaft 10 m square and 40 m tall with marble bands; turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:51524b45342939d61988ec89d1ef63daf08ab58b70d7fc13bc50bb70dc3b8d92",+ "bytes": 1313276+ },+ "source.kiln.js": {+ "sha256": "sha256:c8c8612ec12ad5b6d1176f9899bad774b2a61b48830e7ca48aa8da6ba8b7319e",+ "bytes": 65347+ },+ "preview.png": {+ "sha256": "sha256:0cf1d1f82c35848ac5b8739255e5236b6d3d77dab36e97ce84c7d41875ff8959",+ "bytes": 302942+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "51524b45342939d61988ec89d1ef63daf08ab58b70d7fc13bc50bb70dc3b8d92",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -5.599999904632568,+ 0,+ -5.599999904632568+ ],+ "max": [+ 5.599999904632568,+ 40,+ 5.599999904632568+ ],+ "size": [+ 11.199999809265137,+ 40,+ 11.199999809265137+ ],+ "center": [+ 0,+ 20,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 9914,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 9914,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:51524b45342939d61988ec89d1ef63daf08ab58b70d7fc13bc50bb70dc3b8d92",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_463eeb97e1be466dac2f2a444ba879fb/r_fbf4389a2e4d4239813cd2dbc54e094b/source.kiln.js b/packs/holodeck/sources/project/a_463eeb97e1be466dac2f2a444ba879fb/r_fbf4389a2e4d4239813cd2dbc54e094b/source.kiln.jsnew file mode 100644index 00000000..0a7d5d9f--- /dev/null+++ b/packs/holodeck/sources/project/a_463eeb97e1be466dac2f2a444ba879fb/r_fbf4389a2e4d4239813cd2dbc54e094b/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'monolith';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_4836065137894bf49499b78028fcfdb9/r_dac22ca376b745ceab2346845e4c16a6/manifest.json b/packs/holodeck/sources/project/a_4836065137894bf49499b78028fcfdb9/r_dac22ca376b745ceab2346845e4c16a6/manifest.jsonnew file mode 100644index 00000000..ebf72c29--- /dev/null+++ b/packs/holodeck/sources/project/a_4836065137894bf49499b78028fcfdb9/r_dac22ca376b745ceab2346845e4c16a6/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_4836065137894bf49499b78028fcfdb9",+ "revisionId": "r_dac22ca376b745ceab2346845e4c16a6",+ "parentRevision": "r_aac85f7dcf2943489b9ba1a3dd41dc02",+ "name": "tower-gate",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-25T15:20:19.070Z",+ "description": "Rim tower beside the gateway, two storeys taller (38.9 m over T3) on a 110 m shaft; niches closed over and under (no sky through their tops), turn 16 atlas and warm-white glow.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:eb250a9dd0a414138db8619015c2daf6646cfe1ed4794b3d6137d98b094ccd75",+ "bytes": 1618560+ },+ "source.kiln.js": {+ "sha256": "sha256:e340edc609f33ad912139049fa6f4993de73384feda11ad98d8cd01a08aa2f66",+ "bytes": 65349+ },+ "preview.png": {+ "sha256": "sha256:a8ce39708f3b99b0b99be35a39cbc4052b56444120cf651593a6064550cceb01",+ "bytes": 114373+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "eb250a9dd0a414138db8619015c2daf6646cfe1ed4794b3d6137d98b094ccd75",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2.299999952316284,+ -110,+ -2.299999952316284+ ],+ "max": [+ 2.299999952316284,+ 38.900001525878906,+ 2.299999952316284+ ],+ "size": [+ 4.599999904632568,+ 148.9000015258789,+ 4.599999904632568+ ],+ "center": [+ 0,+ -35.54999923706055,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -110,+ "offsetToGround": 110,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 12568,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 4,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 4,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 12568,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 1,+ "materialExtensionsUsed": "KHR_materials_emissive_strength",+ "imageCount": 4,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 12845056,+ "estimatedGpuBytesWithMipmaps": 17126744,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:eb250a9dd0a414138db8619015c2daf6646cfe1ed4794b3d6137d98b094ccd75",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_4836065137894bf49499b78028fcfdb9/r_dac22ca376b745ceab2346845e4c16a6/source.kiln.js b/packs/holodeck/sources/project/a_4836065137894bf49499b78028fcfdb9/r_dac22ca376b745ceab2346845e4c16a6/source.kiln.jsnew file mode 100644index 00000000..bdde4dc0--- /dev/null+++ b/packs/holodeck/sources/project/a_4836065137894bf49499b78028fcfdb9/r_dac22ca376b745ceab2346845e4c16a6/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'tower-gate';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_496240d2b2f041c69b5d593df83b3bd5/r_ccec44961e6449a7ab752499408139b6/manifest.json b/packs/holodeck/sources/project/a_496240d2b2f041c69b5d593df83b3bd5/r_ccec44961e6449a7ab752499408139b6/manifest.jsonnew file mode 100644index 00000000..d4b7b2b6--- /dev/null+++ b/packs/holodeck/sources/project/a_496240d2b2f041c69b5d593df83b3bd5/r_ccec44961e6449a7ab752499408139b6/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_496240d2b2f041c69b5d593df83b3bd5",+ "revisionId": "r_ccec44961e6449a7ab752499408139b6",+ "parentRevision": "r_09cf2903579842d68b32ba0ca08ac5fe",+ "name": "foundation-4",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:18:51.307Z",+ "description": "Stone kit foundation wall 4 m running 110 m down into the cloud sea, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:0acf1114dbddae2c17b9ef4121ac25dbaa6b7cdaaacd060913e5bd177e74454b",+ "bytes": 468744+ },+ "source.kiln.js": {+ "sha256": "sha256:a046c8944c884ddd723a964b951750a35186dd14551a8a861a696c2cc588575b",+ "bytes": 31493+ },+ "preview.png": {+ "sha256": "sha256:042907496b5e3b5bfe898849cdb7f8a147eed8d9c577cc7b014108fdf4f85c45",+ "bytes": 58551+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "0acf1114dbddae2c17b9ef4121ac25dbaa6b7cdaaacd060913e5bd177e74454b",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2,+ -110,+ -1.2000000476837158+ ],+ "max": [+ 2,+ 0,+ 0+ ],+ "size": [+ 4,+ 110,+ 1.2000000476837158+ ],+ "center": [+ 0,+ -55,+ -0.6000000238418579+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -110,+ "offsetToGround": 110,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 1790,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 1790,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:0acf1114dbddae2c17b9ef4121ac25dbaa6b7cdaaacd060913e5bd177e74454b",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_496240d2b2f041c69b5d593df83b3bd5/r_ccec44961e6449a7ab752499408139b6/source.kiln.js b/packs/holodeck/sources/project/a_496240d2b2f041c69b5d593df83b3bd5/r_ccec44961e6449a7ab752499408139b6/source.kiln.jsnew file mode 100644index 00000000..1facff04--- /dev/null+++ b/packs/holodeck/sources/project/a_496240d2b2f041c69b5d593df83b3bd5/r_ccec44961e6449a7ab752499408139b6/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'foundation-4';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_5aa55f2016c84a98a47300864c642739/r_23415f3bcad34dbea52c9b930878be28/manifest.json b/packs/holodeck/sources/project/a_5aa55f2016c84a98a47300864c642739/r_23415f3bcad34dbea52c9b930878be28/manifest.jsonnew file mode 100644index 00000000..752bdffe--- /dev/null+++ b/packs/holodeck/sources/project/a_5aa55f2016c84a98a47300864c642739/r_23415f3bcad34dbea52c9b930878be28/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_5aa55f2016c84a98a47300864c642739",+ "revisionId": "r_23415f3bcad34dbea52c9b930878be28",+ "parentRevision": "r_eb2b5ad217234da3a702e7fba5635200",+ "name": "arcade-pier-slot",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-25T15:19:22.840Z",+ "description": "Arcade pier with a warm-white glowing niche; the courses over and under the niche are cut at its edges so it closes (no sky through its top); turn 16 atlas and glow.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:7e96ed8923b375105a427a3c61a0c829fe4594b9668ab80af00a4bbfd6927036",+ "bytes": 409172+ },+ "source.kiln.js": {+ "sha256": "sha256:a1a6bfcbf17e62cce5a39ad49ab63436d73513792235d78f104b3a4d82efd880",+ "bytes": 65355+ },+ "preview.png": {+ "sha256": "sha256:e5236f708045600cec56c883aff39b56e58c454561ebe5f3a1ed9531681d76c2",+ "bytes": 168571+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "7e96ed8923b375105a427a3c61a0c829fe4594b9668ab80af00a4bbfd6927036",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.699999988079071,+ 0,+ -0.699999988079071+ ],+ "max": [+ 0.699999988079071,+ 5.199999809265137,+ 0.699999988079071+ ],+ "size": [+ 1.399999976158142,+ 5.199999809265137,+ 1.399999976158142+ ],+ "center": [+ 0,+ 2.5999999046325684,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 1174,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 4,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 4,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 1174,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 1,+ "materialExtensionsUsed": "KHR_materials_emissive_strength",+ "imageCount": 4,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 12845056,+ "estimatedGpuBytesWithMipmaps": 17126744,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:7e96ed8923b375105a427a3c61a0c829fe4594b9668ab80af00a4bbfd6927036",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_5aa55f2016c84a98a47300864c642739/r_23415f3bcad34dbea52c9b930878be28/source.kiln.js b/packs/holodeck/sources/project/a_5aa55f2016c84a98a47300864c642739/r_23415f3bcad34dbea52c9b930878be28/source.kiln.jsnew file mode 100644index 00000000..0c4bacff--- /dev/null+++ b/packs/holodeck/sources/project/a_5aa55f2016c84a98a47300864c642739/r_23415f3bcad34dbea52c9b930878be28/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'arcade-pier-slot';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_5ac2d19a9ec245d6a1932992548c3c22/r_302353e26e6545dbb54266b1adcb6876/manifest.json b/packs/holodeck/sources/project/a_5ac2d19a9ec245d6a1932992548c3c22/r_302353e26e6545dbb54266b1adcb6876/manifest.jsonnew file mode 100644index 00000000..0bd25f90--- /dev/null+++ b/packs/holodeck/sources/project/a_5ac2d19a9ec245d6a1932992548c3c22/r_302353e26e6545dbb54266b1adcb6876/manifest.json@@ -0,0 +1,381 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_5ac2d19a9ec245d6a1932992548c3c22",+ "revisionId": "r_302353e26e6545dbb54266b1adcb6876",+ "parentRevision": "r_df12c53e05274f25a318823cfb6080c1",+ "name": "basin-water",+ "tags": [+ "meridian",+ "water",+ "basin"+ ],+ "createdAt": "2026-10-24T19:25:19.186Z",+ "description": "Turn 7: azure turquoise (blue at least green) with a faint turquoise emission (#2a9cbc at 0.3), so the T1 basins stay turquoise in shade instead of turning slate.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:15be8981765636b518620ec8eac261e2bbc7b6ba421117b40f8508308399a0e1",+ "bytes": 36584+ },+ "source.kiln.js": {+ "sha256": "sha256:18b78f8ced12aae8dda638c58243fd9a49e66ac39b58f058eb0cb6b9af9c1058",+ "bytes": 19266+ },+ "preview.png": {+ "sha256": "sha256:4c74aa8bab7730a52e0ba7682038dd7bd08b48376fee25447473178df38414aa",+ "bytes": 74674+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "15be8981765636b518620ec8eac261e2bbc7b6ba421117b40f8508308399a0e1",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -3.997999906539917,+ 0,+ -7.998000144958496+ ],+ "max": [+ 3.997999906539917,+ 0,+ 7.998000144958496+ ],+ "size": [+ 7.995999813079834,+ 0,+ 15.996000289916992+ ],+ "center": [+ 0,+ 0,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian water"+ },+ "renderMetrics": {+ "triangles": 2,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 1,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "warn",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "warn",+ "findings": [+ {+ "code": "MATERIAL_BLEND_AREA_BUDGET",+ "disposition": "warn",+ "dimension": "runtimeCost",+ "profile": "web.portable.v1.standard",+ "message": "Blended primitive surface area is 100.0% (127.904 of 127.904 square asset units); the budget is 15.0%. Largest BLEND materials by share of surface area: \"material-1\" 100.0%. Use MASK for binary cutouts such as foliage, reduce layered transparent surfaces, and reserve BLEND for genuinely translucent glass/effects.",+ "measurement": {+ "name": "blendedSurfaceAreaRatio",+ "actual": 1,+ "threshold": 0.15,+ "unit": "ratio"+ }+ }+ ],+ "metrics": {+ "instanceabilityGrade": "C",+ "instanceabilitySummary": "C (informational, not a QA verdict), set by 1 transparent material (lowers A/B to C). Also: 1 distinct material (A at 0-1); 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 1,+ "triangles": 2,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 0,+ "blendedMaterials": 1,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 256,+ "decodedImageBytesRgba8": 524352,+ "estimatedGpuBytesWithMipmaps": 699138,+ "blendedSurfaceAreaRatio": 1+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:15be8981765636b518620ec8eac261e2bbc7b6ba421117b40f8508308399a0e1",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_5ac2d19a9ec245d6a1932992548c3c22/r_302353e26e6545dbb54266b1adcb6876/source.kiln.js b/packs/holodeck/sources/project/a_5ac2d19a9ec245d6a1932992548c3c22/r_302353e26e6545dbb54266b1adcb6876/source.kiln.jsnew file mode 100644index 00000000..7ea27db3--- /dev/null+++ b/packs/holodeck/sources/project/a_5ac2d19a9ec245d6a1932992548c3c22/r_302353e26e6545dbb54266b1adcb6876/source.kiln.js@@ -0,0 +1,279 @@+// Meridian Sanctuary water (plan.md sections 4.3 and 4.6, assets 27-31).+// One program builds every water piece; PIECE selects which one this revision is.+// Moving sheets are alpha-blended, double-sided and bound to Holodeck's asset.flow by their+// Mesh_<name> node: every map scrolls along V at the asset's speed. V is laid out as the+// water's travel time (seconds, at flow speed [0, 1]), so the pattern moves with the water:+// slowly in a spout or over a lip, fast and stretched as it falls. Froth fans at the foot of a+// fall use V as distance from the impact, so their bubbles drift outward. Mist cards are a+// separate, static node.+const meta = { name: 'Meridian water' };+const PIECE = 'basin-water';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const G = 9.81;++// ---------------------------------------------------------------- textures+// Falling water, 512 x 256. The streak region (all of it, or columns 0-383 when the piece has+// froth) holds a faint white base, streaks of strongly varying alpha (mostly faint, a few+// bright bands of white water) in clusters with open gaps, soft patches and drawn-out+// droplets. Columns 384-511 hold froth: overlapping bubbles. Streaks are full-height lines and+// stamps stay inside their region, so the image tiles along V as it scrolls. The emissive twin+// repeats the strokes over dark teal: a little self-light for water seen against the sun.+const FROTH_U = 0.75; // where the froth region starts, as a share of the width+function sheetTextures(seed, o) {+ const R = rng(seed), Wd = o.froth ? 384 : 512, strokes = [];+ let x = 3 + R() * 12;+ for (let i = 0; i < o.lines; i++) {+ const bright = R() < o.bright;+ strokes.push({ x: Math.round(x), w: bright ? 5 + Math.floor(R() * 9) : 1 + Math.floor(R() * R() * 4),+ a: bright ? 150 + Math.floor(R() * 80) : 30 + Math.floor(R() * R() * 190) });+ x += R() < 0.3 ? 1 + R() * 4 : 4 + R() * ((2 * Wd) / o.lines);+ if (x > Wd - 6) x = 3 + R() * 60;+ }+ const ops = (rgb) => {+ const list = [{ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 40, height: 110 }, rgba: [...rgb, 34], count: 14, seed: seed + 3,+ area: { x: 1, y: 1, width: Wd - 42, height: 144 } }];+ for (const s of strokes) list.push({ op: 'paint', shape: { kind: 'line', from: [s.x, -4], to: [s.x, 260], width: s.w }, rgba: [...rgb, s.a] });+ list.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 3, height: 22 }, rgba: [...rgb, 150], count: o.drops, seed: seed + 1,+ area: { x: 1, y: 1, width: Wd - 4, height: 231 } });+ if (o.froth) {+ for (const [w, h, a, n, k] of [[18, 14, 120, 40, 4], [10, 8, 170, 60, 5], [5, 4, 210, 30, 6]]) {+ list.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: w, height: h }, rgba: [...rgb, a], count: n, seed: seed + 10 * k,+ area: { x: 386, y: 1, width: 124 - w, height: 254 - h } });+ }+ }+ return list;+ };+ const albedo = proceduralTexture({ schemaVersion: 3, width: 512, height: 256, usage: 'albedo', background: [...o.tint, o.base], operations: ops([248, 253, 253]) });+ const emissive = proceduralTexture({ schemaVersion: 3, width: 512, height: 256, usage: 'emissive', background: [36, 48, 52, 255], operations: ops([224, 240, 242]) });+ // height for the normal map: fine vertical ridges, so the sheet catches long specular lines+ const height = proceduralTexture({ schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'stripes', colorA: 0x707070, colorB: 0x909090, count: 22, angleDeg: 0 },+ { op: 'noise', colorA: 0x606060, colorB: 0xa0a0a0, scale: 8, octaves: 3, seed, blend: 'overlay', opacity: 0.5 },+ ] });+ return { albedo, emissive, normal: normalMapFromHeight(height, { strength: o.relief }) };+}+function sheetMaterial(seed, o) {+ const t = sheetTextures(seed, o);+ return pbrMaterial({ albedo: t.albedo, normal: t.normal, emissive: t.emissive, emissiveIntensity: o.glow,+ roughness: 0.08, metalness: 0, alphaMode: 'blend', doubleSided: true });+}+// Mist and spray: a soft white blob, built up from stacked faint ellipses and cloudy puffs, with+// a near-zero (not zero) alpha floor so filtering never darkens its edge.+function mistMaterial(seed, peak) {+ const ops = [];+ for (let k = 0; k < 18; k++) {+ const s = 126 - k * 6;+ ops.push({ op: 'paint', shape: { kind: 'ellipse', x: 64 - s / 2, y: Math.round(64 - s / 3.2), width: s, height: Math.round(s / 1.6) }, rgba: [255, 255, 255, peak] });+ }+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 30, height: 24 }, rgba: [255, 255, 255, 14], count: 40, seed, area: { x: 20, y: 24, width: 78, height: 70 } });+ const albedo = proceduralTexture({ schemaVersion: 3, width: 128, height: 128, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ // Single-sided (one draw); card() emits every card both ways round instead.+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.3, roughness: 1, metalness: 0, alphaMode: 'blend', doubleSided: false });+}+// Still basin water: azure turquoise (blue at least green) of medium alpha with slow ripples+// (the normal map drifts), and a faint turquoise emission so it stays turquoise in shade.+function basinMaterial() {+ const albedo = proceduralTexture({ schemaVersion: 3, width: 256, height: 256, usage: 'albedo', background: [0, 0, 0, 0], operations: [+ { op: 'legacy-v2', alpha: 168, spec: { schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x1d8cb0, colorB: 0x36b0d2, scale: 3, octaves: 3, seed: 71 }] } },+ ] });+ const height = proceduralTexture({ schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x585858, colorB: 0xa8a8a8, scale: 6, octaves: 4, seed: 72 }] });+ const glow = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0x2a9cbc }] });+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 0.9 }), emissive: glow, emissiveIntensity: 0.3, roughness: 0.03, metalness: 0, alphaMode: 'blend' });+}+// The overflow weir: white marble with soft veins, and a dark strip (bottom rows) for the+// slot the water leaves from.+function weirMaterial() {+ const R = rng(91), ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xe9e6e1, colorB: 0xfcfbf9, scale: 3, octaves: 4, seed: 91 }] } }];+ for (let i = 0; i < 4; i++) {+ const y0 = Math.floor(R() * 200), y1 = y0 + Math.floor((R() - 0.5) * 60);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y0], to: [260, y1], width: 1 }, rgba: [168, 161, 152, 255], opacity: 110 });+ }+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 232, width: 256, height: 24 }, rgba: [38, 44, 46, 255] });+ return pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 3, width: 256, height: 256, usage: 'albedo', operations: ops }), roughness: 0.25, metalness: 0 });+}++// ---------------------------------------------------------------- geometry+// Mesh accumulator: several sweeps, fans and cards can share one node.+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.quad = (a, b, c, d, n, uv) => { // a b c d counterclockwise seen from n's side+ const base = M.P.length / 3;+ for (const [i, v] of [a, b, c, d].entries()) { M.P.push(...v); M.N.push(...n); M.T.push(...uv[i]); }+ M.I.push(base, base + 1, base + 2, base, base + 2, base + 3);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A sheet swept along one axis from a cross-section profile of [p, y, t] points (p across the+// face, y up, t the water's travel time), into mesh M. axis 'x': p is local z (falls on a +Z+// face); axis 'z': p is local x (spills off a +X edge). u runs from u0 at uPerMetre;+// widthAt(t, i) narrows or roughens the sweep about its middle without changing u.+function sweep(M, profile, axis, a0, a1, u0, uPerMetre, widthAt = () => 1) {+ const mid = (a0 + a1) / 2, base = M.P.length / 3;+ profile.forEach(([p, y, t], i) => {+ const prev = profile[Math.max(0, i - 1)], next = profile[Math.min(profile.length - 1, i + 1)];+ const dp = next[0] - prev[0], dy = next[1] - prev[1], l = Math.hypot(dp, dy) || 1, np = -dy / l, ny = dp / l; // outward/up+ for (const [k, a] of [a0, a1].entries()) {+ const w = mid + (a - mid) * widthAt(t, i, k);+ M.P.push(...(axis === 'x' ? [w, y, p] : [p, y, w]));+ M.N.push(...(axis === 'x' ? [0, ny, np] : [np, ny, 0]));+ M.T.push(u0 + (a - a0) * uPerMetre, t);+ }+ });+ const at = (k) => M.P.slice(3 * k, 3 * k + 3);+ for (let i = 0; i + 1 < profile.length; i++) {+ const v00 = base + 2 * i, v01 = v00 + 1, v10 = v00 + 2, v11 = v00 + 3;+ // wind each quad so its geometric normal agrees with the supplied normal+ const e1 = at(v10).map((v, j) => v - at(v00)[j]), e2 = at(v11).map((v, j) => v - at(v00)[j]);+ const g = [e1[1] * e2[2] - e1[2] * e2[1], e1[2] * e2[0] - e1[0] * e2[2], e1[0] * e2[1] - e1[1] * e2[0]];+ const n = M.N.slice(3 * v00, 3 * v00 + 3);+ if (g[0] * n[0] + g[1] * n[1] + g[2] * n[2] >= 0) M.I.push(v00, v10, v11, v00, v11, v01); else M.I.push(v00, v11, v10, v00, v01, v11);+ }+}+// Water that runs along a channel at speed v, then leaves its edge at (p0, y0) at speed v0 and+// falls ballistically to yEnd: [p, y, t] points with t from 0 at the channel's start.+function trajectory(channel, v, p0, y0, yEnd, steps, v0 = v) {+ const pts = channel.map(([p, y]) => [p, y, (p - channel[0][0]) / v]), t0 = pts[pts.length - 1][2];+ const tEnd = Math.sqrt((2 * (y0 - yEnd)) / G);+ for (let k = 1; k <= steps; k++) {+ const tau = tEnd * (k / steps) ** 1.4; // denser near the lip, where the sheet curls+ pts.push([p0 + v0 * tau, y0 - 0.5 * G * tau * tau, t0 + tau]);+ }+ return pts;+}+// A flat froth fan on the water at height y around an impact at (0, cz), spread rx by rz in+// front of it (+Z), from radius r0 to 1: froth-region u across the fan, v = distance / 0.3 m,+// so flow speed [0, 1] carries the bubbles outward at 0.3 m/s.+function frothFan(M, cz, y, rx, rz, r0 = 0.12) {+ const rings = [r0, 0.3, 0.5, 0.72, 1.0], fan = 12;+ for (let i = 0; i + 1 < rings.length; i++) for (let j = 0; j < fan; j++) {+ const pt = (r, k) => { const th = -Math.PI / 2 + (Math.PI * k) / fan; return [rx * r * Math.sin(th), y, cz + rz * r * Math.cos(th)]; };+ const uv = (r, k) => [FROTH_U + ((1 - FROTH_U) * k) / fan, ((r - r0) * Math.max(rx, rz)) / 0.3];+ const [ra, rb] = [rings[i], rings[i + 1]];+ M.quad(pt(ra, j), pt(ra, j + 1), pt(rb, j + 1), pt(rb, j), [0, 1, 0], [uv(ra, j), uv(ra, j + 1), uv(rb, j + 1), uv(rb, j)].map(([u, v]) => [u, v]));+ }+}+// A vertical card of width w and height h centred at c, facing yaw (radians about +Y from +Z),+// emitted both ways round so a single-sided material shows it from either side.+function card(M, c, w, h, yaw) {+ const ax = [Math.cos(yaw), 0, -Math.sin(yaw)], n = [Math.sin(yaw), 0, Math.cos(yaw)];+ const p = (s, t) => [c[0] + ax[0] * s * w / 2, c[1] + t * h / 2, c[2] + ax[2] * s * w / 2];+ M.quad(p(-1, -1), p(1, -1), p(1, 1), p(-1, 1), n, [[0, 1], [1, 1], [1, 0], [0, 0]]);+ M.quad(p(-1, 1), p(1, 1), p(1, -1), p(-1, -1), n.map((v) => -v), [[0, 0], [1, 0], [1, 1], [0, 1]]);+}+// A box with per-face UVs mapped into a texture window [u0, v0, u1, v1].+function boxInto(B, lo, hi, win, skip = []) {+ const faces = [+ ['px', [[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]]]],+ ['nx', [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]]]],+ ['py', [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]]]],+ ['ny', [[lo[0], lo[1], lo[2]], [hi[0], lo[1], lo[2]], [hi[0], lo[1], hi[2]], [lo[0], lo[1], hi[2]]]],+ ['pz', [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]]]],+ ['nz', [[hi[0], lo[1], lo[2]], [lo[0], lo[1], lo[2]], [lo[0], hi[1], lo[2]], [hi[0], hi[1], lo[2]]]],+ ];+ const nrmOf = { px: [1, 0, 0], nx: [-1, 0, 0], py: [0, 1, 0], ny: [0, -1, 0], pz: [0, 0, 1], nz: [0, 0, -1] };+ for (const [f, q] of faces) {+ if (skip.includes(f)) continue;+ const [u0, v0, u1, v1] = win;+ B.quad(q[0], q[1], q[2], q[3], nrmOf[f], [[u0, v1], [u1, v1], [u1, v0], [u0, v0]]);+ }+}++// ---------------------------------------------------------------- pieces+// Falls from a cascade tower's spout, in the tower's frame: spout floor 4.2 m, its back at+// z 1.65 and its lip on the face at z 2.0; the pool or basin surface is 0.9 m above the+// tower's base. A bright white ribbon runs 2.5 cm deep along the spout at 0.5 m/s, falls+// 3.4 m and lands about 0.4 m out from the face, where a froth fan spreads on the water and a+// spray card stands over the impact.+const FALLS = { half: 0.78, profile: () => trajectory([[1.68, 4.225], [1.84, 4.225], [2.0, 4.225]], 0.5, 2.0, 4.225, 0.85, 12),+ widthAt: (t) => (t <= 0.64 ? 1 : 1 - 0.07 * Math.sin(Math.min(1, (t - 0.64) / 0.83) * Math.PI * 0.8)) };+function fallsPiece() {+ const M = makeMesh(), profile = FALLS.profile(), cz = profile[profile.length - 1][0];+ sweep(M, profile, 'x', -FALLS.half, FALLS.half, 0, FROTH_U / (2 * FALLS.half), FALLS.widthAt);+ frothFan(M, cz, 0.925, 1.0, 0.8);+ const S = makeMesh();+ card(S, [0, 1.45, cz + 0.12], 2.2, 1.3, 0);+ card(S, [0, 1.3, cz + 0.05], 1.6, 1.0, Math.PI / 2.4);+ return [['falls_sheet', M.geo(), sheetMaterial(11, { tint: [236, 248, 250], base: 70, lines: 40, bright: 0.22, drops: 110, relief: 2.2, glow: 0.55, froth: true })],+ ['falls_mist', S.geo(), mistMaterial(12, 14)]];+}+// Overflow weir on a terrace wall, in the wall's frame: the face is z = 0 (+Z toward the pool)+// and y = 0 is the terrace top. A marble ledge 4.2 m wide projects 0.2 m at y -0.36..-0.26+// under a dark slot; the sheet slides over it at 0.4 m/s and falls 2.3 m to 5 cm under the+// pool surface (y -2.5), with a froth band where it lands.+function overflowPiece() {+ const B = makeMesh(), marble = [0.02, 0.02, 0.98, 0.86], dark = [0.02, 0.92, 0.98, 0.98];+ boxInto(B, [-2.1, -0.36, 0], [2.1, -0.26, 0.2], marble, ['nz']);+ boxInto(B, [-2.0, -0.26, 0], [2.0, -0.17, 0.004], dark, ['nz', 'ny', 'py', 'px', 'nx']);+ const M = makeMesh(), profile = trajectory([[0.006, -0.24], [0.1, -0.243], [0.2, -0.245]], 0.4, 0.2, -0.245, -2.55, 12);+ sweep(M, profile, 'x', -1.95, 1.95, 0, FROTH_U / 3.9);+ for (let j = 0; j < 6; j++) { // froth band on the pool, drifting outward+ const xa = -1.95 + 0.65 * j, xb = xa + 0.65, y = -2.475, ua = FROTH_U + ((1 - FROTH_U) * j) / 6, ub = FROTH_U + ((1 - FROTH_U) * (j + 1)) / 6;+ M.quad([xa, y, 0.3], [xb, y, 0.3], [xb, y, 1.25], [xa, y, 1.25], [0, 1, 0], [[ua, 0], [ub, 0], [ub, 0.95 / 0.3], [ua, 0.95 / 0.3]]);+ }+ return [['overflow_weir', B.geo(), weirMaterial()],+ ['overflow_sheet', M.geo(), sheetMaterial(23, { tint: [236, 248, 250], base: 54, lines: 44, bright: 0.18, drops: 90, relief: 1.6, glow: 0.45, froth: true })]];+}+// Rim spill over an infinity lip, in the lip's frame: x = 0 is the pool's water edge (+X+// outward), y = 0 the water level, z along the lip (±11.95). Water slides 1 cm deep over the+// 0.25 m coping at 0.3 m/s along the whole lip, then breaks into ragged ribbons of different+// widths, arcs and lengths that narrow as they fall 22 - 30 m into the cloud deck; mist hangs+// where they meet the deck.+const SPILL = { half: 11.95 };+function spillPiece() {+ const M = makeMesh(), R = rng(37), lip = [[-0.02, -0.004], [0.1, -0.008], [0.25, -0.012]];+ sweep(M, trajectory(lip, 0.3, 0.25, -0.012, -0.3, 4), 'z', -SPILL.half, SPILL.half, 0, 1 / 3);+ for (let z = -SPILL.half + R() * 0.3; z < SPILL.half - 0.3;) {+ // mostly middling tongues, some thin strands, a few broad sheets; arcs from 0.16 to 0.5 m/s+ const w = Math.min(R() < 0.3 ? 0.25 + R() * 0.4 : 0.6 + R() * R() * 2.4, SPILL.half - z), v0 = 0.16 + R() * 0.34;+ const yEnd = -20 - R() * 10, seed = Math.floor(R() * 1e6), jitter = rng(seed);+ const wob = Array.from({ length: 64 }, () => 0.82 + 0.36 * jitter());+ const profile = trajectory([[0.25, -0.012]], 0.3, 0.25, -0.012, yEnd, 16, v0).map(([p, y, t]) => [p, y, t + 0.9]);+ const narrow = 0.3 + 0.35 * R(); // how much of its width each tongue keeps at the bottom+ sweep(M, profile, 'z', z, z + w, R(), 1 / 3, (t, i, k) => (1 - (1 - narrow) * Math.min(1, (t - 0.9) / 2.2)) * (i > 1 ? wob[2 * i + k] : 1));+ z += w + (R() < 0.25 ? 0.6 + R() * 1.1 : 0.08 + R() * 0.45);+ }+ const S = makeMesh();+ // crossed mist cards, kept inside the lip's length (each reaches 3.44 m along z)+ for (const zc of [-8, -2.8, 2.6, 7.6]) for (const yaw of [Math.PI / 2 - 0.7, Math.PI / 2 + 0.7]) card(S, [3.2 + R(), -14.5 + R() * 2, zc + R() - 0.5], 9, 5.5, yaw);+ return [['spill_sheet', M.geo(), sheetMaterial(37, { tint: [236, 248, 250], base: 30, lines: 48, bright: 0.2, drops: 120, relief: 1.8, glow: 0.4 })],+ ['spill_mist', S.geo(), mistMaterial(38, 12)]];+}+// Still water over a T1 basin: 8 x 16 m at the surface (y = 0), 2 mm inside the basin walls,+// with ripple UVs at 2 m per repeat.+function basinPiece() {+ const hx = 3.998, hz = 7.998;+ const geo = meshGeo({ positions: [-hx, 0, hz, hx, 0, hz, hx, 0, -hz, -hx, 0, -hz], normals: [0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0],+ uvs: [0, 8, 4, 8, 4, 0, 0, 0], indices: [0, 1, 2, 0, 2, 3] });+ return [['basin_surface', geo, basinMaterial()]];+}++// Review only (never saved): the falls in front of a stand-in tower and pool, and the overflow+// on a stand-in wall over a stand-in pool.+function previewPieces() {+ const stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const pool = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0x2fa8b0 }] }), roughness: 0.1, metalness: 0 });+ const box = (lo, hi) => { const B = makeMesh(); boxInto(B, lo, hi, [0, 0, 1, 1]); return B.geo(); };+ const shift = (geo, d) => { geo.translate(d[0], d[1], d[2]); return geo; };+ const out = [['stand_tower', box([-2, 0, -2], [2, 6.4, 2]), stone], ['stand_pool', box([-6, 0, 2], [12, 0.9, 7]), pool]];+ for (const piece of fallsPiece()) out.push(piece);+ out.push(['stand_wall', box([4, -0.5, -2], [10, 3.4, 2]), stone]);+ for (const [name, geo, mat] of overflowPiece()) out.push([name, shift(geo, [7, 3.4, 2]), mat]);+ return out;+}++const PIECES = { 'falls-narrow': fallsPiece, 'overflow-wide': overflowPiece, 'rim-spill': spillPiece, 'basin-water': basinPiece, 'preview-water': previewPieces };++async function build() {+ const root = createRoot(PIECE);+ for (const [name, geo, mat] of PIECES[PIECE]()) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_5e2481268eb342aab284430556143e9a/r_269d44f66ec944079983349b9dc2cb5a/manifest.json b/packs/holodeck/sources/project/a_5e2481268eb342aab284430556143e9a/r_269d44f66ec944079983349b9dc2cb5a/manifest.jsonnew file mode 100644index 00000000..4fd72f22--- /dev/null+++ b/packs/holodeck/sources/project/a_5e2481268eb342aab284430556143e9a/r_269d44f66ec944079983349b9dc2cb5a/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_5e2481268eb342aab284430556143e9a",+ "revisionId": "r_269d44f66ec944079983349b9dc2cb5a",+ "parentRevision": "r_5f793f2c52b0492b89cc362de2ce77ee",+ "name": "arcade-pylon",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-25T15:20:04.172Z",+ "description": "Arcade pylon 1.8 m square, 12.6 m tall over a shaft into the cloud, glowing niches closed over and under (turn 16 atlas, warm-white glow).",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:70a0024743ec6757a4a0110ea06a3d9b8d01e196130e30c91a99280f71b33dad",+ "bytes": 796008+ },+ "source.kiln.js": {+ "sha256": "sha256:5059600f72ac0fc6c3d4f9fb33ee5dd74c7aeb9c9f79d28451b4109d820bdadd",+ "bytes": 65351+ },+ "preview.png": {+ "sha256": "sha256:0dffc94e7ef1122fa52f33ac74ac962cf3ce9584158e936d5b241d03a479621b",+ "bytes": 77680+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "70a0024743ec6757a4a0110ea06a3d9b8d01e196130e30c91a99280f71b33dad",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -1.100000023841858,+ -110,+ -1.100000023841858+ ],+ "max": [+ 1.100000023841858,+ 12.600000381469727,+ 1.100000023841858+ ],+ "size": [+ 2.200000047683716,+ 122.60000038146973,+ 2.200000047683716+ ],+ "center": [+ 0,+ -48.69999980926514,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -110,+ "offsetToGround": 110,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 4722,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 4,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 4,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 4722,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 1,+ "materialExtensionsUsed": "KHR_materials_emissive_strength",+ "imageCount": 4,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 12845056,+ "estimatedGpuBytesWithMipmaps": 17126744,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:70a0024743ec6757a4a0110ea06a3d9b8d01e196130e30c91a99280f71b33dad",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_5e2481268eb342aab284430556143e9a/r_269d44f66ec944079983349b9dc2cb5a/source.kiln.js b/packs/holodeck/sources/project/a_5e2481268eb342aab284430556143e9a/r_269d44f66ec944079983349b9dc2cb5a/source.kiln.jsnew file mode 100644index 00000000..6f4ffdd3--- /dev/null+++ b/packs/holodeck/sources/project/a_5e2481268eb342aab284430556143e9a/r_269d44f66ec944079983349b9dc2cb5a/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'arcade-pylon';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_6278a9dc61e648129614e44414e57717/r_903a72978cfe465186200a1fb3c0efad/manifest.json b/packs/holodeck/sources/project/a_6278a9dc61e648129614e44414e57717/r_903a72978cfe465186200a1fb3c0efad/manifest.jsonnew file mode 100644index 00000000..bf560f8b--- /dev/null+++ b/packs/holodeck/sources/project/a_6278a9dc61e648129614e44414e57717/r_903a72978cfe465186200a1fb3c0efad/manifest.json@@ -0,0 +1,367 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_6278a9dc61e648129614e44414e57717",+ "revisionId": "r_903a72978cfe465186200a1fb3c0efad",+ "parentRevision": "r_2722a2d0f95d48be9296c0be62d19e5c",+ "name": "planter-sq",+ "tags": [+ "meridian-sanctuary",+ "architecture",+ "planting"+ ],+ "createdAt": "2026-10-25T15:20:53.673Z",+ "description": "Square marble planter 1.68 m, 0.9 m tall, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:763d149e4a3f2ae481c09c4889465b677cac3790b9af56a018749ef70e7d41f5",+ "bytes": 441368+ },+ "source.kiln.js": {+ "sha256": "sha256:2a66363c7e190468e5398d5df17bb78ab21ead677f013262faf5c5b3149059c1",+ "bytes": 65349+ },+ "preview.png": {+ "sha256": "sha256:40105ae045adeaf95a1bbe81a481dabf546aa4abf2bcea72e4ad192abf9b845a",+ "bytes": 137340+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "763d149e4a3f2ae481c09c4889465b677cac3790b9af56a018749ef70e7d41f5",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.8399999737739563,+ 0,+ -0.8399999737739563+ ],+ "max": [+ 0.8399999737739563,+ 0.8999999761581421,+ 0.8399999737739563+ ],+ "size": [+ 1.6799999475479126,+ 0.8999999761581421,+ 1.6799999475479126+ ],+ "center": [+ 0,+ 0.44999998807907104,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 1520,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 1520,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:763d149e4a3f2ae481c09c4889465b677cac3790b9af56a018749ef70e7d41f5",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_6278a9dc61e648129614e44414e57717/r_903a72978cfe465186200a1fb3c0efad/source.kiln.js b/packs/holodeck/sources/project/a_6278a9dc61e648129614e44414e57717/r_903a72978cfe465186200a1fb3c0efad/source.kiln.jsnew file mode 100644index 00000000..ab22805d--- /dev/null+++ b/packs/holodeck/sources/project/a_6278a9dc61e648129614e44414e57717/r_903a72978cfe465186200a1fb3c0efad/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'planter-sq';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_68b548474473491e9a1e2dce7632b2ba/r_e28232a177ef4fb0be41c5bbf7236674/manifest.json b/packs/holodeck/sources/project/a_68b548474473491e9a1e2dce7632b2ba/r_e28232a177ef4fb0be41c5bbf7236674/manifest.jsonnew file mode 100644index 00000000..75d75072--- /dev/null+++ b/packs/holodeck/sources/project/a_68b548474473491e9a1e2dce7632b2ba/r_e28232a177ef4fb0be41c5bbf7236674/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_68b548474473491e9a1e2dce7632b2ba",+ "revisionId": "r_e28232a177ef4fb0be41c5bbf7236674",+ "parentRevision": "r_e7d47b980f86490b8e4cc9ece4581fde",+ "name": "parapet-4",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:18:40.735Z",+ "description": "Stone kit parapet 4 m with flat butt ends and its brass top 2 mm proud, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:5621829bf18e8be8e0a947f9da65f8fbf938f9a8501f2eff9488d7a2233d3be4",+ "bytes": 294716+ },+ "source.kiln.js": {+ "sha256": "sha256:2cdc059a32536db141ace142b7a702c0356b8d6e8d778c9d5364b00d2d824116",+ "bytes": 31490+ },+ "preview.png": {+ "sha256": "sha256:a3e54d63d24bfa02070937688d9be1b9e865ce464c2bc27816356db6523fae60",+ "bytes": 97388+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "5621829bf18e8be8e0a947f9da65f8fbf938f9a8501f2eff9488d7a2233d3be4",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2,+ 0,+ -0.2199999988079071+ ],+ "max": [+ 2,+ 1.0019999742507935,+ 0.2199999988079071+ ],+ "size": [+ 4,+ 1.0019999742507935,+ 0.4399999976158142+ ],+ "center": [+ 0,+ 0.5009999871253967,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 146,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 146,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:5621829bf18e8be8e0a947f9da65f8fbf938f9a8501f2eff9488d7a2233d3be4",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_68b548474473491e9a1e2dce7632b2ba/r_e28232a177ef4fb0be41c5bbf7236674/source.kiln.js b/packs/holodeck/sources/project/a_68b548474473491e9a1e2dce7632b2ba/r_e28232a177ef4fb0be41c5bbf7236674/source.kiln.jsnew file mode 100644index 00000000..65148cad--- /dev/null+++ b/packs/holodeck/sources/project/a_68b548474473491e9a1e2dce7632b2ba/r_e28232a177ef4fb0be41c5bbf7236674/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'parapet-4';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_6a335a4ab0ed4fa68ca882df46f9bb44/r_b079cae2265a44d4aafe0aa05b93c008/manifest.json b/packs/holodeck/sources/project/a_6a335a4ab0ed4fa68ca882df46f9bb44/r_b079cae2265a44d4aafe0aa05b93c008/manifest.jsonnew file mode 100644index 00000000..08eec214--- /dev/null+++ b/packs/holodeck/sources/project/a_6a335a4ab0ed4fa68ca882df46f9bb44/r_b079cae2265a44d4aafe0aa05b93c008/manifest.json@@ -0,0 +1,370 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_6a335a4ab0ed4fa68ca882df46f9bb44",+ "revisionId": "r_b079cae2265a44d4aafe0aa05b93c008",+ "parentRevision": "r_48e3148c11ef48a8a2f0e3568a143ea4",+ "name": "ivy-long",+ "tags": [+ "meridian-sanctuary",+ "planting"+ ],+ "createdAt": "2026-10-24T21:17:13.255Z",+ "description": "Trailing ivy rebuilt after the revision 10 reviews: 13 strands (3-7 m) in loose groups, every leaf its own small card (five-lobed leaf with pale veins, four hues per row) hung from its stalk, turned and tipped out at random on alternate sides; close-set, large and dark near the top, sparser, smaller and yellow-green toward the tapering tips; a dense crown over each group and a ragged line along the edge. Normals bent out from the wall. One mesh (Mesh_ivy), one alpha-mask material; UV.y grows toward the tips for wind.",+ "attribution": {+ "model": "claude-opus-5-5",+ "harness": "Claude Code"+ },+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:44008144537fd12cec0faa9b2104f22e20f82fe32985391a29cf58c67bf1255e",+ "bytes": 213728+ },+ "source.kiln.js": {+ "sha256": "sha256:e5aea30b8b65cc51263e81abcb6413d45523721e33e47ce899aa12c4f0ba3134",+ "bytes": 22663+ },+ "preview.png": {+ "sha256": "sha256:769f296979fbe32f071c7fa1fcb3e48176f204c766cdabc5f2bace8b110de767",+ "bytes": 157055+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "44008144537fd12cec0faa9b2104f22e20f82fe32985391a29cf58c67bf1255e",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -1.9652339220046997,+ -6.611721038818359,+ -0.27606290578842163+ ],+ "max": [+ 1.8297871351242065,+ 0.27316200733184814,+ 0.5034741759300232+ ],+ "size": [+ 3.7950210571289062,+ 6.8848830461502075,+ 0.7795370817184448+ ],+ "center": [+ -0.06772339344024658,+ -3.1692795157432556,+ 0.11370563507080078+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -6.611721038818359,+ "offsetToGround": 6.611721038818359,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 2852,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 2852,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:44008144537fd12cec0faa9b2104f22e20f82fe32985391a29cf58c67bf1255e",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_6a335a4ab0ed4fa68ca882df46f9bb44/r_b079cae2265a44d4aafe0aa05b93c008/source.kiln.js b/packs/holodeck/sources/project/a_6a335a4ab0ed4fa68ca882df46f9bb44/r_b079cae2265a44d4aafe0aa05b93c008/source.kiln.jsnew file mode 100644index 00000000..aeb6ef80--- /dev/null+++ b/packs/holodeck/sources/project/a_6a335a4ab0ed4fa68ca882df46f9bb44/r_b079cae2265a44d4aafe0aa05b93c008/source.kiln.js@@ -0,0 +1,300 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'ivy-long';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 66, 32, 255], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs use only the top 30 % of each column (their bodies and tufts map v 0 - 0.3): a mound+// of small leaves strewn with cream flowers, and rounded leaf clusters.+function shrubAtlas() {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x1d3a1c, colorB: 0x4b7238, scale: 30, octaves: 3, seed: 13 }] } },+ { op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 6, height: 5 }, rgba: [250, 242, 222, 255], count: 40, seed: 14, area: { x: 2, y: 2, width: 120, height: 88 } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [46, 80, 40, 1] }];+ const bands = [[4, 70, 96, 18], [46, 150, 112, 22]];+ const colours = [[[50, 86, 42, 255], 0.6], [[96, 134, 66, 255], 0.4]];+ // White and cream blossom clusters over the leaves of every spray (the reviews saw no+ // flowering shrubs): larger cream heads and smaller white ones.+ for (const c of [1, 2, 3]) {+ ops.push(...spray(c, bands, [20, 18], colours, 200 * c));+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 12, height: 10 }, rgba: [250, 240, 214, 255], count: 14, seed: 260 * c, area: { x: 128 * c + 14, y: 8, width: 96, height: 140 } },+ { op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 7, height: 6 }, rgba: [255, 252, 246, 255], count: 12, seed: 270 * c, area: { x: 128 * c + 12, y: 6, width: 100, height: 144 } });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [46, 80, 40, 1], operations: ops });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+async function cypress(H, W, n, seed, trunk) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12;+ const prof = (t) => (t < 0.32 ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / 0.32)) : Math.pow((1 - t) / 0.68, 0.75));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]), 0.04 * t * Math.sin(4.3 * t + ph[1])];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.3 + 0.24 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.8 + 0.25 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound: widest near the ground, rounded on top.+function shrub(H, R0, n, seed) {+ const R = rng(seed), M = makeMesh(), radius = (t) => R0 * Math.max(0.05, Math.sqrt(Math.max(0, 1 - Math.pow(t, 2.2))) * (0.82 + 0.3 * Math.sin(Math.PI * Math.min(1, t * 1.6))));+ const bump = body(M, H, 0, radius, 7, 12, 0.14, R, 0.18);+ tufts(M, H, 0, radius, bump, n, R, { t0: 0.06, t1: 0.95, rmax: R0 * 1.1, elev: [0.2, 0.8], elevTop: 0.6, len: [0.25 * H + 0.18, 0.4 * H + 0.24],+ aspect: [1.0, 1.4], sink: 0.1, cross: false, vMax: 0.3 });+ return [['shrub', M.geo(), foliage(shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 560, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 400, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.2, 0.8, 150, 3),+ 'shrub-b': () => shrub(0.6, 0.5, 90, 4),+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(PIECES['shrub-a'](), [-2, 0, 3]);+ place(PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_6eb69a9b81ea429880d3f1e5b308955a/r_14709d822a9a444ba5b3e6a6db89d0ca/manifest.json b/packs/holodeck/sources/project/a_6eb69a9b81ea429880d3f1e5b308955a/r_14709d822a9a444ba5b3e6a6db89d0ca/manifest.jsonnew file mode 100644index 00000000..d87af6c5--- /dev/null+++ b/packs/holodeck/sources/project/a_6eb69a9b81ea429880d3f1e5b308955a/r_14709d822a9a444ba5b3e6a6db89d0ca/manifest.json@@ -0,0 +1,370 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_6eb69a9b81ea429880d3f1e5b308955a",+ "revisionId": "r_14709d822a9a444ba5b3e6a6db89d0ca",+ "name": "orb",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-24T13:40:57.441Z",+ "description": "Pivot at the sphere centre; radius 2.25 m; 96 x 64 segments; one smooth-shaded mesh, one material.",+ "brief": "Meridian Sanctuary orb: a 4.5 m mirror sphere (metallic 1, roughness 0.02, near-white base) that floats in the gateway arch with a slow drift. It reflects the sky probe, the court and the glowing gateway.",+ "attribution": {+ "model": "claude-opus-5-5",+ "harness": "Claude Code"+ },+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:563ea30274f7909b917ccd771e40a63fb2b1c6c18e696bc592eedbe7bdb3b1bb",+ "bytes": 275776+ },+ "source.kiln.js": {+ "sha256": "sha256:42667a192fd895d7a8b6ba47fcc82f3ab5bb65711281b853d4e9a32a5b38df68",+ "bytes": 35756+ },+ "preview.png": {+ "sha256": "sha256:939b1310a2f3fcc2c672b5e3b58ad2dd9add9229eca3466ebe973cce69197d20",+ "bytes": 516049+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "563ea30274f7909b917ccd771e40a63fb2b1c6c18e696bc592eedbe7bdb3b1bb",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2.25,+ -2.25,+ -2.25+ ],+ "max": [+ 2.25,+ 2.25,+ 2.25+ ],+ "size": [+ 4.5,+ 4.5,+ 4.5+ ],+ "center": [+ 0,+ 0,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -2.25,+ "offsetToGround": 2.25,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 12096,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 12096,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 4,+ "decodedImageBytesRgba8": 64,+ "estimatedGpuBytesWithMipmaps": 86,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:563ea30274f7909b917ccd771e40a63fb2b1c6c18e696bc592eedbe7bdb3b1bb",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_6eb69a9b81ea429880d3f1e5b308955a/r_14709d822a9a444ba5b3e6a6db89d0ca/source.kiln.js b/packs/holodeck/sources/project/a_6eb69a9b81ea429880d3f1e5b308955a/r_14709d822a9a444ba5b3e6a6db89d0ca/source.kiln.jsnew file mode 100644index 00000000..e72f9ef4--- /dev/null+++ b/packs/holodeck/sources/project/a_6eb69a9b81ea429880d3f1e5b308955a/r_14709d822a9a444ba5b3e6a6db89d0ca/source.kiln.js@@ -0,0 +1,594 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'orb';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xe9e6e1, colorB: 0xfcfbf9, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xd5d0c8, colorB: 0xf8f6f3, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.3 },+ ] } });+ for (let i = 0; i < 3; i++) {+ const x = -0.05 * q, y = ((i + 0.2 + R() * 0.6) * q) / 3, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 6 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [205, 200, 193, 255], opacity: 35 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.4 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [160, 153, 144, 255], opacity: 95 });+ }+ for (let i = 0; i < 6; i++) {+ const opacity = 45 + Math.floor(R() * 25);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.6, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [175, 169, 161, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// band: null, or three RGBA colours for the brass, glow and soil columns of the band.+function travSpec(q, seed, band) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xd8cbb3, colorB: 0xf1e9dc, scale: 4, octaves: 3, seed },+ { op: 'stripes', colorA: 0xdccfb8, colorB: 0xf0e8da, count: 18, angleDeg: 90, blend: 'overlay', opacity: 0.3 },+ ] } });+ for (let i = 0; i < 10; i++) {+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 8 * s), light = R() < 0.5;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((1 + R() * 2) * s)) },+ rgba: light ? [246, 241, 232, 255] : [205, 191, 168, 255], opacity: 45 });+ }+ const pits = (w, h, rgba, count) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area: { x: 0, y: 0, width: q, height: q } });+ pits(3, 3, [174, 160, 136, 255], 140); // 256 stamps per texture in total+ pits(6, 3, [180, 166, 143, 255], 90);+ pits(10, 4, [160, 144, 118, 255], 26);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, brighter in its middle so slots read as light.+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255], operations: [+ { op: 'paint', shape: { kind: 'rectangle', x: x0, y: y0, width: w, height: h }, rgba: [238, 218, 190, 255] },+ { op: 'paint', shape: { kind: 'rectangle', x: x0 + Math.round(w * 0.22), y: y0, width: Math.round(w * 0.56), height: h }, rgba: [255, 245, 230, 255] },+ ] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [252, 244, 228, 255], [92, 74, 56, 255]])]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(256), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++const DENS = { marble: 0.25, trav: 0.19 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]);+ const V = (ax, sg) => [0, 1, 2].map((i) => (i === ax ? C(i, sg[i]) : C(i, sg[i]) - sg[i] * c));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if (!exp[fa] && !exp[fb]) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz];+ emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {};+ for (const [f, s] of Object.entries(nb)) {+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: kind === 'marble' ? 0.006 : 0.012, kind, exp, faceKind });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ course(S, y0, y1, cuts(-hx, hx, sp.x || [], len, shift), () => cuts(-hz, hz, sp.z || [], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 9.0 && Math.abs(z) < 0.42) { fk.py = 'soil'; return 'trav'; }+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm-white glowing slot on its court and outer faces.+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.125 && y < 4.225;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.14 && Math.abs(z) > 0.48) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ courses(S, [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) ? { x: [-0.14, 0.14], z: [-0.48, 0.48] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2);+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and glowing slots on all faces.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 3.2, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6];+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => (y > 1.4 && y < 4.1) || (y > 8.44 && y < 11.6);+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.15 && az > h - 0.15) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.15 && ax > h - 0.15) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) ? { x: [-0.15, 0.15, -0.75, 0.75], z: [-0.15, 0.15, -0.75, 0.75] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and tall glowing slots on all four faces.+function tower(S) {+ const ys = [-0.6, 0.4, 1.6, 2.8, 4.0, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 11.45, 12.65, 13.85, 15.05, 15.3, 16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0];+ const half = (y) => (y < 0.4 ? 2.12 : y < 7.6 ? 2.0 : y < 7.85 ? 2.08 : y < 15.05 ? 2.0 : y < 15.3 ? 2.08 : y < 21.3 ? 2.0 : y < 21.6 ? 2.15 : y < 21.9 ? 2.3 : y < 23.4 ? 1.85 : y < 23.7 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 1.6 && y < 7.6) || (y > 9.05 && y < 15.05);+ const marble = (y) => y < 0.4 || (y > 7.6 && y < 7.85) || (y > 15.05 && y < 15.3) || (y > 21.3 && y < 21.9) || y > 23.4;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.25 && az > h - 0.25) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.25 && ax > h - 0.25) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) ? { x: [-0.25, 0.25, -1.75, 1.75], z: [-0.25, 0.25, -1.75, 1.75] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ S.push({ lo: [-1.9, -32, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z), with a recessed+// spout for the waterfall on its +Z face and a marble-rimmed planting top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0 || z < -2.0) return 'phantom';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout';+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 4.2 && y < 5.4 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0);+}++// The gateway: 22 x 10 x 52 m above its threshold (front at +Z). A round arch 8 m wide+// (springing at 12.5 m) behind three stepped marble orders and a voussoir archivolt, a passage+// vault that glows warm white between marble ribs, glowing slots in the piers, an arched upper+// window 5 m wide open to the sky, ivy troughs at 14 m and 24 m, and a stepped cornice and attic.+function gateway(S, R, B) {+ const YS = 12.5, ys = [0, 0.6];+ for (let i = 1; i <= 10; i++) ys.push(+(0.6 + i * 1.14).toFixed(3));+ for (let i = 0; i <= 8; i++) ys.push(12.5 + i);+ ys.push(21.1, 22.325, 23.55, 24.775);+ for (let i = 0; i <= 10; i++) ys.push(+(26 + i * 1.15).toFixed(3));+ for (let i = 1; i <= 8; i++) ys.push(+(37.5 + i * 1.1875).toFixed(4));+ ys.push(47.45, 47.9, 48.4, 49.5, 50.6, 51.0, 52.6, 54.2, 54.6, 55.2);+ // Above the cornice the centre stops at a coped attic (51 m) while the two piers rise as+ // towers to planted tops at 55.2 m.+ const half = (y) => (y < 0.6 ? [11.12, 5.12] : y < 12.0 ? [11, 5] : y < 12.5 ? [11.2, 5.2] : y < 20.5 ? [11, 5] : y < 21.1 ? [11.25, 5.25]+ : y < 47.0 ? [11, 5] : y < 47.45 ? [11.3, 5.3] : y < 47.9 ? [11.55, 5.55] : y < 48.4 ? [11.8, 5.8] : y < 50.6 ? [10.75, 4.75]+ : y < 51.0 ? [10.75, 4.85] : y < 54.2 ? [10.75, 4.75] : y < 54.6 ? [10.9, 4.9] : [10.6, 4.6]);+ const top = (ax, az, y) => { // the towers and planted tops above 50.6 m+ if (y < 51.0) return ax < 6.2 ? az <= 4.85 : az <= 4.75;+ if (y < 54.2) return ax >= 6.2 && az <= 4.75;+ if (y < 54.6) return ax >= 6.05 && az <= 4.9;+ return ax >= 6.35 && az <= 4.6 && !(ax > 6.7 && ax < 10.25 && az < 4.25);+ };+ const open = (az) => (az > 4.4 ? 5.6 : az > 3.8 ? 5.0 : az > 3.2 ? 4.4 : 4.0);+ const lowSlot = (y) => y > 2.88 && y < 10.86, upSlot = (y) => y > 28.3 && y < 35.2;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 55.2) return 'empty';+ const [hx, hz] = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > hx || az > hz) return 'empty';+ if (y < YS) {+ if (ax < open(az)) return 'empty';+ if (lowSlot(y) && az > 4.75 && ax > 8.05 && ax < 8.55) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (lowSlot(y) && ax > 10.75 && az < 0.25) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ }+ if (y < 20.5) return ax < 7.0 ? 'phantom' : 'solid';+ if (y > 50.6) return top(ax, az, y) ? 'solid' : 'empty';+ if (y > 21.1 && y < 47.0 && ax < 6.2 && az > 4.4) return 'empty'; // recessed centre bay+ if (y > 26 && y < 37.5 && ax < (az > 3.8 ? 3.1 : 2.5)) return 'empty';+ if (y > 37.5 && y < 41.0625 && ax < 4.0) return 'phantom';+ if (upSlot(y) && az > 4.75 && ax > 8.05 && ax < 8.55) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 12.0 && y < 12.5) || (y > 20.5 && y < 21.1) || (y > 47.0 && y < 48.4) || y > 54.2;+ const kindOf = (x, y, z, exp, fk) => {+ const ax = Math.abs(x);+ if (y > 54.2 && y < 54.6 && ax > 6.7 && ax < 10.25 && Math.abs(z) < 4.25) { fk.py = 'soil'; return 'marble'; }+ if (marbleY(y) || (y > 50.6 && y < 51.0 && ax < 6.2) || (y < YS && ax < 6.2) || (y > 24.775 && y < 41.0625 && ax < 3.6)) return 'marble';+ return 'trav';+ };+ const special = (y) => {+ const x = [], z = [];+ if (y < YS) { x.push(4.0, 4.4, 5.0, 5.6, 6.2); if (lowSlot(y)) x.push(8.05, 8.55, 10.75); }+ else if (y < 20.5) x.push(7.0);+ else if (y < 47) { x.push(2.5, 3.1, 3.6, 4.0, 6.2); if (upSlot(y)) x.push(8.05, 8.55); }+ else if (y > 50.6) x.push(6.05, 6.2, 6.35, 6.7, 10.25);+ return { x: x.flatMap((v) => [-v, v]), z };+ };+ const zCutsFor = (y, shift) => (xa, xb) => {+ const [, hz] = half(y), xm = Math.abs((xa + xb) / 2), z = [];+ if (y < YS && xm < 6.2) z.push(3.2, 3.8, 4.4);+ if ((lowSlot(y) || upSlot(y)) && xm > 8.05 && xm < 8.55) z.push(4.75);+ if (lowSlot(y) && xm > 10.75) z.push(0.25);+ if (y > 21.1 && y < 47 && xm < 6.2) z.push(4.4);+ if (y > 24.775 && y < 41.0625 && xm < 4.0) z.push(3.8);+ if (y > 50.6) z.push(4.25, 4.6, 4.75);+ return cuts(-hz, hz, z.flatMap((v) => [-v, v]), 2.2, shift);+ };+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx] = half(ym);+ course(S, y0, y1, cuts(-hx, hx, special(ym).x, 2.0, i % 2 ? 0.5 : 0), zCutsFor(ym, i % 2 ? 0.5 : 0), state, kindOf);+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels, voussoir archivolt, three stepped orders and their bands+ spandrels(B, R, { cx: 0, ys: YS, r: 5.6, x0: -7, x1: 7, yt: 20.5, zf: 5 * nz, nz, n: 16, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS, r0: 5.6, r1: 6.3, zf: 5 * nz, nz, p: 0.18, k: 23, key: { dr: 0.45, dp: 0.14 } });+ for (const [r0, r1, zf, k] of [[5.0, 5.6, 4.4, 19], [4.4, 5.0, 3.8, 17], [4.0, 4.4, 3.2, 15]]) {+ ringFace(B, R, { cx: 0, ys: YS, r0, r1, zf: zf * nz, nz, n: 38, k });+ band(B, R, { cx: 0, ys: YS, r: r1, z0: zf * nz, z1: (zf + 0.6) * nz, n: 38, k: 5 });+ }+ // upper window in the recessed bay: spandrels, archivolt, one stepped order+ spandrels(B, R, { cx: 0, ys: 37.5, r: 3.1, x0: -4, x1: 4, yt: 41.0625, zf: 4.4 * nz, nz, n: 12, dens: 0.12 });+ voussoirs(B, R, { cx: 0, ys: 37.5, r0: 3.1, r1: 3.4, zf: 4.4 * nz, nz, p: 0.12, k: 15, key: { dr: 0.12, dp: 0.08 } });+ ringFace(B, R, { cx: 0, ys: 37.5, r0: 2.5, r1: 3.1, zf: 3.8 * nz, nz, n: 22, k: 11 });+ band(B, R, { cx: 0, ys: 37.5, r: 3.1, z0: 3.8 * nz, z1: 4.4 * nz, n: 22, k: 3 });+ // ivy troughs on the pier faces at 14 m and 24 m+ for (const sx of [1, -1]) for (const yb of [13.4, 23.45]) {+ const x0 = sx > 0 ? 7.4 : -10.6, x1 = x0 + 3.2, f = nz > 0 ? 'pz' : 'nz', w = nz > 0 ? 'nz' : 'pz';+ const zr = (a, b) => (nz > 0 ? [a, b] : [-b, -a]);+ const [s0, s1] = zr(5, 5.6), [r0, r1] = zr(5.42, 5.6), [i0, i1] = zr(5, 5.42);+ S.push({ lo: [x0, yb, s0], hi: [x1, yb + 0.2, s1], c: 0.006, kind: 'marble', exp: { ny: true, [f]: true, px: true, nx: true } });+ S.push({ lo: [x0, yb + 0.2, r0], hi: [x1, yb + 0.65, r1], c: 0.006, kind: 'marble', exp: { py: true, [f]: true, [w]: true, px: true, nx: true } });+ for (const [e0, e1] of [[x0, x0 + 0.18], [x1 - 0.18, x1]]) {+ S.push({ lo: [e0, yb + 0.2, i0], hi: [e1, yb + 0.65, i1], c: 0.006, kind: 'marble', exp: { py: true, px: true, nx: true } });+ }+ S.push({ lo: [x0 + 0.18, yb + 0.2, i0], hi: [x1 - 0.18, yb + 0.58, i1], c: 0, kind: 'soil', exp: { py: true } });+ }+ }+ // passage vault: warm-white glowing panels between three marble ribs+ const ribs = [-1.6, 0, 1.6], cuts3 = [-3.2, ...ribs.flatMap((zr) => [zr - 0.18, zr + 0.18]), 3.2];+ for (let i = 0; i + 1 < cuts3.length; i += 2) band(B, R, { cx: 0, ys: YS, r: 4.0, z0: cuts3[i], z1: cuts3[i + 1], n: 40, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: YS, r: 3.85, z0: zr - 0.18, z1: zr + 0.18, n: 40, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: YS, r0: 3.85, r1: 4.0, zf: zr + 0.18 * sg, nz: sg, n: 40, k: 9 });+ }+ band(B, R, { cx: 0, ys: 37.5, r: 2.5, z0: -3.8, z1: 3.8, n: 22, k: 4 }); // upper window soffit+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+ };+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++const PIECES = {+ 'preview-arcade': { glow: 4, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: 4, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: 4, build: pylon },+ 'tower-slot': { glow: 4, build: tower },+ 'cascade-tower': { glow: 0, build: cascade },+ 'gateway': { glow: 4, build: gateway },+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S = [];+ piece.build(S, R, B);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_6f29f3fb60e94af3a4f9d1a5c95a9348/r_17b6d0b4330a4e309761103f4c6eaefb/manifest.json b/packs/holodeck/sources/project/a_6f29f3fb60e94af3a4f9d1a5c95a9348/r_17b6d0b4330a4e309761103f4c6eaefb/manifest.jsonnew file mode 100644index 00000000..38951b60--- /dev/null+++ b/packs/holodeck/sources/project/a_6f29f3fb60e94af3a4f9d1a5c95a9348/r_17b6d0b4330a4e309761103f4c6eaefb/manifest.json@@ -0,0 +1,370 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_6f29f3fb60e94af3a4f9d1a5c95a9348",+ "revisionId": "r_17b6d0b4330a4e309761103f4c6eaefb",+ "parentRevision": "r_d4ecb2c623624ed3914be69a6415b8fd",+ "name": "ivy-short",+ "tags": [+ "meridian-sanctuary",+ "planting"+ ],+ "createdAt": "2026-10-24T21:17:21.856Z",+ "description": "Short trailing ivy rebuilt after the revision 10 reviews: 9 strands (1.2-3 m) of individual leaf cards, dense dark crown over each group, tapering to light yellow-green tips; normals bent out from the wall. One mesh (Mesh_ivy), one alpha-mask material; UV.y grows toward the tips for wind.",+ "attribution": {+ "model": "claude-opus-5-5",+ "harness": "Claude Code"+ },+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:f869dd440a9f58abbe25fe65cc73d99bfc1d0ad0c417dc38d7f0e21a1a22de0c",+ "bytes": 86884+ },+ "source.kiln.js": {+ "sha256": "sha256:374a7695cf009874bcd58def766eed35990fd7e6d87287702f686cb6525402f1",+ "bytes": 22664+ },+ "preview.png": {+ "sha256": "sha256:b9e4aed2ea0cd56aab694f8a5cd30eab64b2ab60de2e2ac0283c596afc236cf5",+ "bytes": 211108+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "f869dd440a9f58abbe25fe65cc73d99bfc1d0ad0c417dc38d7f0e21a1a22de0c",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -1.2318166494369507,+ -2.643374443054199,+ -0.2735144793987274+ ],+ "max": [+ 1.1889511346817017,+ 0.2285652607679367,+ 0.3952195346355438+ ],+ "size": [+ 2.4207677841186523,+ 2.871939703822136,+ 0.6687340140342712+ ],+ "center": [+ -0.02143275737762451,+ -1.2074045911431313,+ 0.0608525276184082+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -2.643374443054199,+ "offsetToGround": 2.643374443054199,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 1040,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 1040,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:f869dd440a9f58abbe25fe65cc73d99bfc1d0ad0c417dc38d7f0e21a1a22de0c",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_6f29f3fb60e94af3a4f9d1a5c95a9348/r_17b6d0b4330a4e309761103f4c6eaefb/source.kiln.js b/packs/holodeck/sources/project/a_6f29f3fb60e94af3a4f9d1a5c95a9348/r_17b6d0b4330a4e309761103f4c6eaefb/source.kiln.jsnew file mode 100644index 00000000..6a53ab1d--- /dev/null+++ b/packs/holodeck/sources/project/a_6f29f3fb60e94af3a4f9d1a5c95a9348/r_17b6d0b4330a4e309761103f4c6eaefb/source.kiln.js@@ -0,0 +1,300 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'ivy-short';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 66, 32, 255], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs use only the top 30 % of each column (their bodies and tufts map v 0 - 0.3): a mound+// of small leaves strewn with cream flowers, and rounded leaf clusters.+function shrubAtlas() {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x1d3a1c, colorB: 0x4b7238, scale: 30, octaves: 3, seed: 13 }] } },+ { op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 6, height: 5 }, rgba: [250, 242, 222, 255], count: 40, seed: 14, area: { x: 2, y: 2, width: 120, height: 88 } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [46, 80, 40, 1] }];+ const bands = [[4, 70, 96, 18], [46, 150, 112, 22]];+ const colours = [[[50, 86, 42, 255], 0.6], [[96, 134, 66, 255], 0.4]];+ // White and cream blossom clusters over the leaves of every spray (the reviews saw no+ // flowering shrubs): larger cream heads and smaller white ones.+ for (const c of [1, 2, 3]) {+ ops.push(...spray(c, bands, [20, 18], colours, 200 * c));+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 12, height: 10 }, rgba: [250, 240, 214, 255], count: 14, seed: 260 * c, area: { x: 128 * c + 14, y: 8, width: 96, height: 140 } },+ { op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 7, height: 6 }, rgba: [255, 252, 246, 255], count: 12, seed: 270 * c, area: { x: 128 * c + 12, y: 6, width: 100, height: 144 } });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [46, 80, 40, 1], operations: ops });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+async function cypress(H, W, n, seed, trunk) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12;+ const prof = (t) => (t < 0.32 ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / 0.32)) : Math.pow((1 - t) / 0.68, 0.75));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]), 0.04 * t * Math.sin(4.3 * t + ph[1])];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.3 + 0.24 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.8 + 0.25 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound: widest near the ground, rounded on top.+function shrub(H, R0, n, seed) {+ const R = rng(seed), M = makeMesh(), radius = (t) => R0 * Math.max(0.05, Math.sqrt(Math.max(0, 1 - Math.pow(t, 2.2))) * (0.82 + 0.3 * Math.sin(Math.PI * Math.min(1, t * 1.6))));+ const bump = body(M, H, 0, radius, 7, 12, 0.14, R, 0.18);+ tufts(M, H, 0, radius, bump, n, R, { t0: 0.06, t1: 0.95, rmax: R0 * 1.1, elev: [0.2, 0.8], elevTop: 0.6, len: [0.25 * H + 0.18, 0.4 * H + 0.24],+ aspect: [1.0, 1.4], sink: 0.1, cross: false, vMax: 0.3 });+ return [['shrub', M.geo(), foliage(shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 560, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 400, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.2, 0.8, 150, 3),+ 'shrub-b': () => shrub(0.6, 0.5, 90, 4),+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(PIECES['shrub-a'](), [-2, 0, 3]);+ place(PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_6f89067c2b77485a93b7b5d039a6c22f/r_ed119ee06e04495787eb74e6fa1b3588/manifest.json b/packs/holodeck/sources/project/a_6f89067c2b77485a93b7b5d039a6c22f/r_ed119ee06e04495787eb74e6fa1b3588/manifest.jsonnew file mode 100644index 00000000..5ac9fd10--- /dev/null+++ b/packs/holodeck/sources/project/a_6f89067c2b77485a93b7b5d039a6c22f/r_ed119ee06e04495787eb74e6fa1b3588/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_6f89067c2b77485a93b7b5d039a6c22f",+ "revisionId": "r_ed119ee06e04495787eb74e6fa1b3588",+ "parentRevision": "r_b617dd42793447f9baf46295f17f7930",+ "name": "step-slab",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:17:32.420Z",+ "description": "Stone kit stepping slab, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:f4d3c14fbdbc1ab0f07f7af289e93eec9b6e618e8f253ceb457c5d5f840ba2fe",+ "bytes": 289440+ },+ "source.kiln.js": {+ "sha256": "sha256:6fe347df67d90b25a1d0ae32da8063cb8c8d9a2fd873a56f1e2a8bed2f03db05",+ "bytes": 31490+ },+ "preview.png": {+ "sha256": "sha256:3a861d56cbee6a995536f4d82e2ec24d4138245308da833ab874cc235c0de672",+ "bytes": 81778+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "f4d3c14fbdbc1ab0f07f7af289e93eec9b6e618e8f253ceb457c5d5f840ba2fe",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -3,+ -1,+ -1.350000023841858+ ],+ "max": [+ 3,+ 0,+ 1.350000023841858+ ],+ "size": [+ 6,+ 1,+ 2.700000047683716+ ],+ "center": [+ 0,+ -0.5,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -1,+ "offsetToGround": 1,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 102,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 102,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:f4d3c14fbdbc1ab0f07f7af289e93eec9b6e618e8f253ceb457c5d5f840ba2fe",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_6f89067c2b77485a93b7b5d039a6c22f/r_ed119ee06e04495787eb74e6fa1b3588/source.kiln.js b/packs/holodeck/sources/project/a_6f89067c2b77485a93b7b5d039a6c22f/r_ed119ee06e04495787eb74e6fa1b3588/source.kiln.jsnew file mode 100644index 00000000..5d817fce--- /dev/null+++ b/packs/holodeck/sources/project/a_6f89067c2b77485a93b7b5d039a6c22f/r_ed119ee06e04495787eb74e6fa1b3588/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'step-slab';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_705819f9bd52422b947684965b45795c/r_94ec333e46d84cc7a9c4e79455b1c572/manifest.json b/packs/holodeck/sources/project/a_705819f9bd52422b947684965b45795c/r_94ec333e46d84cc7a9c4e79455b1c572/manifest.jsonnew file mode 100644index 00000000..ad35412c--- /dev/null+++ b/packs/holodeck/sources/project/a_705819f9bd52422b947684965b45795c/r_94ec333e46d84cc7a9c4e79455b1c572/manifest.json@@ -0,0 +1,396 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_705819f9bd52422b947684965b45795c",+ "revisionId": "r_94ec333e46d84cc7a9c4e79455b1c572",+ "name": "statue-whale",+ "tags": [+ "meridian",+ "statue",+ "marble"+ ],+ "createdAt": "2026-10-25T22:01:49.138Z",+ "description": "Carved marble humpback whale, 12 m, swimming toward +Z; floats as sky sculpture in Meridian Sanctuary.",+ "attribution": {+ "model": "claude-opus-5-5",+ "harness": "Claude Code"+ },+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:733063c17e42fbe08312a06ef3fb0b9b4ea1ee8bdb9d50103e8a8d04ef6382b3",+ "bytes": 794760+ },+ "source.kiln.js": {+ "sha256": "sha256:dfa7608671b5069940ab27ddbddc58ca8fdeb49908146e95f3bf818c4d654cf6",+ "bytes": 22053+ },+ "preview.png": {+ "sha256": "sha256:39333cf93234bbbc66c4f7259d82642e18dbe1f0c4bf46005d6fbbf1ee5e0356",+ "bytes": 136607+ }+ },+ "build": {+ "engine": "sha256:d1c12efdb98720e77eefec461b44c6eeefcbe8506abf94f31ada0b040c0555b3",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "733063c17e42fbe08312a06ef3fb0b9b4ea1ee8bdb9d50103e8a8d04ef6382b3",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -4.267435550689697,+ -1.9076497554779053,+ -6+ ],+ "max": [+ 4.267435550689697,+ 1.9076497554779053,+ 6+ ],+ "size": [+ 8.534871101379395,+ 3.8152995109558105,+ 12+ ],+ "center": [+ 0,+ 0,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -1.9076497554779053,+ "offsetToGround": 1.9076497554779053,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian statue whale"+ },+ "requestedRole": "wonder",+ "renderMetrics": {+ "triangles": 34416,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 2,+ "transparentMaterials": 0,+ "skinned": false+ },+ "budget": {+ "status": "pass",+ "tiers": [+ {+ "tier": "LOD0",+ "declared": {+ "triangles": 40000,+ "draws": 1+ },+ "measured": {+ "triangles": 34416,+ "draws": 1+ },+ "status": "pass"+ }+ ]+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [+ {+ "code": "GEO_PART_SELF_INTERSECTION_UNMEASURED",+ "disposition": "observe",+ "dimension": "visualQuality",+ "profile": "geometry.selfIntersection",+ "message": "1 part-volume measurement was unavailable. 1 because 34416 triangles exceeds the 20000-triangle analysis budget: \"Mesh_statue_whale\". This part is not certified clear."+ }+ ],+ "metrics": {+ "partVolumeCoverage": "partial",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 0,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 1+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 2,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 34416,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 2,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1114112,+ "estimatedGpuBytesWithMipmaps": 1485484,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "notEvaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1742",+ "inputGlbSha256": "sha256:733063c17e42fbe08312a06ef3fb0b9b4ea1ee8bdb9d50103e8a8d04ef6382b3",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_705819f9bd52422b947684965b45795c/r_94ec333e46d84cc7a9c4e79455b1c572/source.kiln.js b/packs/holodeck/sources/project/a_705819f9bd52422b947684965b45795c/r_94ec333e46d84cc7a9c4e79455b1c572/source.kiln.jsnew file mode 100644index 00000000..08da7433--- /dev/null+++ b/packs/holodeck/sources/project/a_705819f9bd52422b947684965b45795c/r_94ec333e46d84cc7a9c4e79455b1c572/source.kiln.js@@ -0,0 +1,404 @@+// Meridian Sanctuary sky statue: a humpback-like whale carved in white veined marble, gently+// arched mid-swim (head lifted, flukes curving up), floating above the courts with no plinth.+// One closed mesh with one material: the stone kit's white veined marble (marbleSpec and the+// marble roughness of stone-kit.kiln.js / architecture.kiln.js), so the whale is from the same+// quarry. Frame: length along Z, swimming toward +Z, belly toward -Y, about 12 m long, its+// bounding box centred on the origin.+// Every component (body, pectoral fins, flukes, dorsal fin, eyes) is a closed loft with fan caps,+// oriented outward by its signed volume; normals are smoothed across welded positions so the+// UV seams do not show in the shading.+const meta = { name: 'Meridian statue whale', role: 'wonder' };++// ---------------------------------------------------------------- parameters+const LENGTH = 12; // final Z extent in metres (snout to fluke tips)+const LB = 10.6; // body length before scaling, snout to the peduncle end+const NR = 112; // body ring segments (the 44-sample throat sector holds 11 grooves of 4)+const NS = 100; // body stations+const NF = 28; // airfoil loop points for fins and flukes+const VEIN_TILE = 8; // metres of fin or fluke per marble tile++// Body profile: half-width, half-height above and below the centreline, by s (0 snout, 1 peduncle)+const PS = [0, 0.05, 0.12, 0.22, 0.33, 0.45, 0.58, 0.70, 0.80, 0.88, 0.94, 1.0];+const PW = [0.42, 0.62, 0.85, 1.08, 1.25, 1.28, 1.12, 0.82, 0.52, 0.30, 0.20, 0.18];+const PT = [0.28, 0.43, 0.60, 0.83, 1.06, 1.16, 1.08, 0.88, 0.64, 0.44, 0.28, 0.15];+const PB = [0.40, 0.62, 0.90, 1.15, 1.30, 1.30, 1.10, 0.80, 0.52, 0.33, 0.22, 0.13];++// Pectoral fins (humpback flippers, about a third of the length), raised like wings+const FIN = { s: 0.31, theta: 116, bury: 0.38, length: 4.1, rootChord: 1.08, tipChord: 0.42,+ sweep0: 26, sweep1: 50, dihedral0: 12, dihedral1: 24, tubercles: 9, stations: 60 };+// Flukes: tip-to-tip span, upward curl of the blade aft of the stock (per metre squared)+const FLUKE = { span: 4.6, curl: 0.15, stations: 61 };+const DORSAL = { s: 0.655, length: 0.78, chord: 0.95, lean: 52, stations: 14 };+const EYE = { s: 0.255, theta: 82 };++// ---------------------------------------------------------------- small maths+const add = (a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]];+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const mul = (a, k) => [a[0] * k, a[1] * k, a[2] * k];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const lerp = (a, b, t) => a + (b - a) * t;+const clamp01 = (t) => Math.max(0, Math.min(1, t));+const smooth = (e0, e1, x) => { const t = clamp01((x - e0) / (e1 - e0)); return t * t * (3 - 2 * t); };+const spow = (v, e) => Math.sign(v) * Math.pow(Math.abs(v), e);+const rad = (d) => (d * Math.PI) / 180;++// Monotone cubic (Fritsch-Carlson) interpolation through control points: no overshoot.+function monotone(xs, ys) {+ const n = xs.length, d = [], m = new Array(n);+ for (let i = 0; i < n - 1; i++) d.push((ys[i + 1] - ys[i]) / (xs[i + 1] - xs[i]));+ m[0] = d[0]; m[n - 1] = d[n - 2];+ for (let i = 1; i < n - 1; i++) m[i] = d[i - 1] * d[i] <= 0 ? 0 : (d[i - 1] + d[i]) / 2;+ for (let i = 0; i < n - 1; i++) {+ if (d[i] === 0) { m[i] = 0; m[i + 1] = 0; continue; }+ const a = m[i] / d[i], b = m[i + 1] / d[i], h = a * a + b * b;+ if (h > 9) { const t = 3 / Math.sqrt(h); m[i] = t * a * d[i]; m[i + 1] = t * b * d[i]; }+ }+ return (x) => {+ if (x <= xs[0]) return ys[0];+ if (x >= xs[n - 1]) return ys[n - 1];+ let i = 0; while (x > xs[i + 1]) i++;+ const h = xs[i + 1] - xs[i], t = (x - xs[i]) / h, t2 = t * t, t3 = t2 * t;+ return (2 * t3 - 3 * t2 + 1) * ys[i] + (t3 - 2 * t2 + t) * h * m[i] + (-2 * t3 + 3 * t2) * ys[i + 1] + (t3 - t2) * h * m[i + 1];+ };+}+const fW = monotone(PS, PW), fT = monotone(PS, PT), fB = monotone(PS, PB);++// ---------------------------------------------------------------- body frame+// Centreline in the YZ plane: the head lifts a little, the tail stock curves up toward the flukes.+function centre(s) {+ const y = s < 0.4 ? 0.45 * (1 - s / 0.4) ** 2 : 1.6 * ((s - 0.4) / 0.6) ** 2.4;+ return [0, y, 6 - LB * s];+}+function frame(s) {+ const e = 1e-3, T = nrm(sub(centre(Math.min(1, s + e)), centre(Math.max(0, s - e)))); // toward the tail+ return { C: centre(s), T, U: [0, -T[2], T[1]], X: [1, 0, 0] };+}+// Elliptical end caps so the snout and the peduncle end close round, not pointed.+function capFactor(s) {+ const a0 = 0.06, a1 = 0.06;+ let f = 1;+ if (s < a0) f = Math.sqrt(Math.max(0.02, 1 - ((a0 - s) / a0) ** 2));+ if (s > 1 - a1) f = Math.min(f, Math.sqrt(Math.max(0.02, 1 - ((s - (1 - a1)) / a1) ** 2)));+ return f;+}+const thetaSide = (deg) => (deg <= 180 ? deg : 360 - deg); // 0 top, 90 flank, 180 belly, both sides++// Carved relief, as a signed offset along the section normal (metres, before scaling).+function relief(s, deg, j) {+ const ts = thetaSide(deg);+ let d = 0;+ // ventral grooves from the chin to the navel: 11 channels over the 44 samples j = 34..78+ if (j !== undefined && j >= 34 && j <= 78) {+ const q = (j - 34) / 44;+ const along = smooth(0.015, 0.07, s) * (1 - smooth(0.34, 0.5, s));+ const edge = smooth(0, 0.16, q) * smooth(0, 0.16, 1 - q);+ d -= 0.075 * Math.sin(Math.PI * 11 * q) ** 2 * along * edge;+ }+ // mouth line: from the snout back along the lower flank, arching down, ending below the eye+ if (s < 0.25) {+ const tm = 93 + 10 * Math.sin((Math.PI * s) / 0.235); // clear of the groove sector (from 109 degrees)+ const fade = smooth(0.0, 0.02, s) * (1 - smooth(0.215, 0.245, s));+ d -= 0.08 * Math.exp(-(((ts - tm) / 7) ** 2)) * fade;+ }+ // keel along the top of the tail stock, from behind the dorsal fin to the flukes+ d += 0.06 * Math.exp(-((ts / 9) ** 2)) * smooth(0.69, 0.76, s) * (1 - smooth(0.95, 1.0, s));+ return d;+}++// A body surface point, with its section normal. deg: 0 top, 90 the +X flank, 180 the belly.+function bodyPoint(s, deg, j) {+ const F = frame(s), cf = capFactor(s);+ const hump = 0.1 * Math.exp(-(((s - DORSAL.s) / 0.05) ** 2));+ const W = fW(s) * cf, HT = (fT(s) + hump) * cf, HB = fB(s) * cf;+ const th = rad(deg), sn = Math.sin(th), cs = Math.cos(th);+ const e = 2 / 2.25; // a slightly full superellipse, flatter on top of the head+ const eTop = 2 / lerp(2.6, 2.25, smooth(0.05, 0.3, s));+ const H = cs >= 0 ? HT : HB;+ const x = W * spow(sn, e), y = H * spow(cs, cs >= 0 ? eTop : e);+ const n2 = nrm([x / (W * W + 1e-9), y / (H * H + 1e-9), 0]);+ const d = relief(s, deg, j);+ const lx = x + n2[0] * d, ly = y + n2[1] * d;+ const p = add(F.C, add(mul(F.X, lx), mul(F.U, ly)));+ const n = nrm(add(mul(F.X, n2[0]), mul(F.U, n2[1])));+ return { p, n, F };+}++// ---------------------------------------------------------------- mesh builder+function makeBuilder() {+ const P = [], UV = [], I = [];+ let start = 0;+ const v = (p, uv) => { P.push(p[0], p[1], p[2]); UV.push(uv[0], uv[1]); return P.length / 3 - 1; };+ return {+ P, UV, I,+ begin() { start = I.length; },+ // Orient this closed component outward by the sign of its volume.+ end() {+ let vol = 0;+ for (let t = start; t < I.length; t += 3) {+ const a = I[t] * 3, b = I[t + 1] * 3, c = I[t + 2] * 3;+ vol += dot([P[a], P[a + 1], P[a + 2]], crs([P[b], P[b + 1], P[b + 2]], [P[c], P[c + 1], P[c + 2]]));+ }+ if (vol < 0) for (let t = start; t < I.length; t += 3) { const k = I[t + 1]; I[t + 1] = I[t + 2]; I[t + 2] = k; }+ },+ // Closed loft through rings of equal point count, fan-capped at both ends. A ring's seam+ // vertex is duplicated for the UV wrap; positions match, so topology checks weld it.+ loft(rings, uvOf, tipStart, tipEnd) {+ const n = rings[0].length, rows = [];+ rings.forEach((ring, i) => {+ const row = [];+ for (let j = 0; j <= n; j++) row.push(v(ring[j % n], uvOf(i, j / n)));+ rows.push(row);+ });+ for (let i = 0; i + 1 < rows.length; i++) {+ const a = rows[i], b = rows[i + 1];+ for (let j = 0; j < n; j++) I.push(a[j], b[j], b[j + 1], a[j], b[j + 1], a[j + 1]);+ }+ const t0 = v(tipStart, uvOf(0, 0.5)), t1 = v(tipEnd, uvOf(rows.length - 1, 0.5));+ const a = rows[0], b = rows[rows.length - 1];+ for (let j = 0; j < n; j++) I.push(t0, a[j], a[j + 1], t1, b[j + 1], b[j]);+ },+ };+}+const centroid = (ring) => mul(ring.reduce((acc, p) => add(acc, p), [0, 0, 0]), 1 / ring.length);++// NACA-style half-thickness (unit chord, max 0.5 at x 0.3) plus a blunt carved trailing edge.+const naca = (x) => 5 * (0.2969 * Math.sqrt(x) - 0.126 * x - 0.3516 * x * x + 0.2843 * x ** 3 - 0.1036 * x ** 4);+// One airfoil ring: le the leading-edge point, c the chord direction (toward the trailing edge),+// n the thickness direction; half the maximum thickness is half.+function airfoil(le, c, n, chord, half, tmin) {+ const ring = [];+ for (let k = 0; k < NF; k++) {+ const phi = (2 * Math.PI * k) / NF, xc = 0.5 * (1 + Math.cos(phi)), sg = Math.sin(phi);+ const yt = half * 2 * naca(xc) + tmin * xc;+ ring.push(add(add(le, mul(c, xc * chord)), mul(n, Math.abs(sg) < 1e-9 ? 0 : Math.sign(sg) * yt)));+ }+ return ring;+}++// ---------------------------------------------------------------- components+function body(B) {+ const rings = [], arc = [0];+ const ss = [];+ for (let i = 0; i <= NS; i++) { const t = i / NS; ss.push(0.6 * t + 0.4 * 0.5 * (1 - Math.cos(Math.PI * t))); }+ for (const s of ss) {+ const ring = [];+ for (let j = 0; j < NR; j++) ring.push(bodyPoint(s, (360 * j) / NR, j).p);+ rings.push(ring);+ }+ for (let i = 1; i < ss.length; i++) arc.push(arc[i - 1] + Math.hypot(...sub(centre(ss[i]), centre(ss[i - 1]))));+ const F0 = frame(0), F1 = frame(1);+ B.begin();+ // texture U along the body, so the veins run with its length rather than ringing the girth+ B.loft(rings, (i, u) => [arc[i] / LB, u], add(centroid(rings[0]), mul(F0.T, -0.012)), add(centroid(rings[NS]), mul(F1.T, 0.006)));+ B.end();+}++// Right pectoral fin as rings along a swept spine; the left one is its mirror.+function pectoralRings() {+ const root = bodyPoint(FIN.s, FIN.theta);+ let P = sub(root.p, mul(root.n, FIN.bury));+ const rings = [], n = FIN.stations, spans = [];+ let span = 0;+ for (let i = 0; i <= n; i++) {+ const t = i / n, u = 0.7 * t + 0.3 * Math.sin((Math.PI * t) / 2);+ const sw = rad(lerp(FIN.sweep0, FIN.sweep1, u * u)), dh = rad(lerp(FIN.dihedral0, FIN.dihedral1, u));+ const d = [Math.cos(dh) * Math.cos(sw), Math.sin(dh), -Math.cos(dh) * Math.sin(sw)];+ if (i > 0) {+ const tp = (i - 1) / n, up = 0.7 * tp + 0.3 * Math.sin((Math.PI * tp) / 2), step = (u - up) * FIN.length;+ P = add(P, mul(d, step)); span += step;+ }+ const Uh = [-Math.sin(dh), Math.cos(dh), 0];+ const c = nrm(crs(Uh, d)), nn = nrm(crs(d, c));+ let chord = lerp(FIN.rootChord, FIN.tipChord, u);+ if (u > 0.8) chord *= Math.sqrt(Math.max(0, 1 - ((u - 0.8) / 0.2) ** 2));+ chord = Math.max(chord, 0.05);+ // tubercles: rounded knobs along the leading edge, the humpback's scalloped flipper+ const tq = (u - 0.12) / 0.8;+ const tub = tq > 0 && tq < 1 ? 0.075 * Math.sin(Math.PI * FIN.tubercles * tq) ** 2 * (1 - 0.5 * tq) : 0;+ const full = chord + tub;+ const le = sub(P, mul(c, 0.3 * chord + tub));+ const half = Math.max(0.035, 0.13 * full * lerp(1, 0.75, u));+ rings.push(airfoil(le, c, nn, full, half, 0.018));+ spans.push(span);+ }+ return { rings, spans };+}++function pectorals(B) {+ const { rings, spans } = pectoralRings();+ const uv = (i, u) => [spans[i] / VEIN_TILE + 0.3, u * 0.4];+ for (const side of [1, -1]) {+ const rs = rings.map((r) => r.map((p) => [p[0] * side, p[1], p[2]]));+ const tipDir = nrm(sub(centroid(rs[rs.length - 1]), centroid(rs[rs.length - 2])));+ const rootDir = nrm(sub(centroid(rs[0]), centroid(rs[1])));+ B.begin();+ B.loft(rs, uv, add(centroid(rs[0]), mul(rootDir, 0.05)), add(centroid(rs[rs.length - 1]), mul(tipDir, 0.03)));+ B.end();+ }+}++function flukes(B) {+ const F = frame(1), Fw = mul(F.T, -1), Uf = F.U; // forward and up at the end of the tail stock+ const O = add(F.C, mul(F.T, -0.02));+ const S = FLUKE.span / 2, rings = [], xs = [];+ for (let i = 0; i < FLUKE.stations; i++) {+ const t = -1 + (2 * i) / (FLUKE.stations - 1);+ const x = S * Math.sin((Math.PI * t) / 2), q = Math.abs(x) / S;+ const mid = -0.82 * q ** 1.7; // swept back toward the tips+ const chord0 = Math.max(0.05, 0.98 * (1 - 0.55 * q) * Math.sqrt(Math.max(0, 1 - q ** 8)));+ const notch = 0.24 * Math.exp(-((x / 0.2) ** 2)); // the median notch+ const fillet = 0.6 * Math.exp(-((x / 0.32) ** 2)); // the root flares forward along the stock+ const serr = 0.025 * Math.sin(Math.PI * 6 * q) ** 2 * smooth(0.15, 0.3, q) * (1 - smooth(0.85, 1, q));+ const le = mid + 0.42 * chord0 + fillet, te = mid - 0.58 * chord0 + notch + serr;+ const lift = 0.14 * q * q; // the span curves gently upward+ const half = 0.21 * (1 - q) ** 1.5 + 0.03;+ const leP = add(O, add(add(mul([1, 0, 0], x), mul(Uf, lift)), mul(Fw, le)));+ // the blade curls upward aft of the stock, so the tail reads as curving up+ rings.push(airfoil(leP, mul(Fw, -1), Uf, le - te, half, 0.014).map((p) => {+ const zl = dot(sub(p, O), Fw);+ return add(p, mul(Uf, FLUKE.curl * Math.max(0, -zl) ** 2));+ }));+ xs.push(x);+ }+ const tipA = nrm(sub(centroid(rings[0]), centroid(rings[1]))), tipB = nrm(sub(centroid(rings[rings.length - 1]), centroid(rings[rings.length - 2])));+ B.begin();+ B.loft(rings, (i, u) => [(xs[i] + S) / VEIN_TILE + 0.6, u * 0.3], add(centroid(rings[0]), mul(tipA, 0.025)), add(centroid(rings[rings.length - 1]), mul(tipB, 0.025)));+ B.end();+}++function dorsal(B) {+ const top = bodyPoint(DORSAL.s, 0), F = top.F, l = rad(DORSAL.lean);+ const d = nrm(add(mul(F.U, Math.cos(l)), mul(F.T, Math.sin(l))));+ const c = nrm(sub(F.T, mul(d, dot(F.T, d))));+ const base = sub(top.p, mul(F.U, 0.26)), rings = [];+ for (let i = 0; i <= DORSAL.stations; i++) {+ const u = i / DORSAL.stations;+ let chord = DORSAL.chord * (1 - 0.65 * u);+ if (u > 0.55) chord *= Math.sqrt(Math.max(0, 1 - ((u - 0.55) / 0.45) ** 2));+ chord = Math.max(chord, 0.04);+ const P = add(base, mul(d, u * DORSAL.length));+ rings.push(airfoil(sub(P, mul(c, 0.3 * chord)), c, [1, 0, 0], chord, Math.max(0.025, 0.15 * chord), 0.012));+ }+ const tip = nrm(sub(centroid(rings[rings.length - 1]), centroid(rings[rings.length - 2])));+ B.begin();+ B.loft(rings, (i, u) => [u * 0.2, i / 40 + 0.1], sub(centroid(rings[0]), mul(d, 0.04)), add(centroid(rings[rings.length - 1]), mul(tip, 0.02)));+ B.end();+}++// A small carved eye: a lidded almond boss set into the flank above the corner of the mouth.+function eyes(B) {+ for (const side of [1, -1]) {+ const sp = bodyPoint(EYE.s, side > 0 ? EYE.theta : 360 - EYE.theta), n = sp.n;+ const along = nrm(sub(sp.F.T, mul(n, dot(sp.F.T, n)))), across = nrm(crs(n, along));+ const ctr = sub(sp.p, mul(n, 0.055)), rings = [], NE = 12, NA = 16;+ for (let i = 1; i < NE; i++) {+ const a = (Math.PI * i) / NE, h = -Math.cos(a) * 0.12, r = Math.sin(a);+ const ring = [];+ for (let k = 0; k < NA; k++) {+ const b = (2 * Math.PI * k) / NA;+ ring.push(add(add(ctr, mul(n, h)), add(mul(along, 0.17 * r * Math.cos(b)), mul(across, 0.1 * r * Math.sin(b)))));+ }+ rings.push(ring);+ }+ B.begin();+ B.loft(rings, (i, u) => [u * 0.05, i * 0.004 + 0.8], sub(ctr, mul(n, 0.12)), add(ctr, mul(n, 0.12)));+ B.end();+ }+}++// ---------------------------------------------------------------- material (as the stone kit)+function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble, identical to the kit's marbleSpec (turn 16 veins).+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Marble roughness as the kit's marble patches: G 0x20..0x34 (about 0.13..0.2), metalness 0.+function ormSpec(oq, roughA, roughB, seed) {+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }] };+}+function marbleMaterial() {+ const albedo = proceduralTexture(marbleSpec(512, 101, 0.55));+ const orm = proceduralTexture(ormSpec(128, 0x20, 0x34, 5));+ const mat = pbrMaterial({ albedo, metallicRoughness: orm, roughness: 1, metalness: 1 });+ mat.name = 'meridian_marble';+ return mat;+}++// ---------------------------------------------------------------- assembly+// Scale to LENGTH along Z, centre the bounds on the origin, then smooth normals across+// welded positions (seam duplicates share their normal).+function finish(B) {+ const P = B.P, lo = [Infinity, Infinity, Infinity], hi = [-Infinity, -Infinity, -Infinity];+ for (let i = 0; i < P.length; i += 3) for (let k = 0; k < 3; k++) { lo[k] = Math.min(lo[k], P[i + k]); hi[k] = Math.max(hi[k], P[i + k]); }+ const sc = LENGTH / (hi[2] - lo[2]), mid = [0, 1, 2].map((k) => (lo[k] + hi[k]) / 2);+ for (let i = 0; i < P.length; i += 3) for (let k = 0; k < 3; k++) P[i + k] = (P[i + k] - mid[k]) * sc;+ const key = (i) => `${Math.round(P[i * 3] * 1e4)},${Math.round(P[i * 3 + 1] * 1e4)},${Math.round(P[i * 3 + 2] * 1e4)}`;+ const acc = new Map(), keys = [];+ for (let i = 0; i < P.length / 3; i++) { const k = key(i); keys.push(k); if (!acc.has(k)) acc.set(k, [0, 0, 0]); }+ const I = B.I;+ for (let t = 0; t < I.length; t += 3) {+ const a = I[t], b = I[t + 1], c = I[t + 2];+ const pa = [P[a * 3], P[a * 3 + 1], P[a * 3 + 2]], pb = [P[b * 3], P[b * 3 + 1], P[b * 3 + 2]], pc = [P[c * 3], P[c * 3 + 1], P[c * 3 + 2]];+ const fn = crs(sub(pb, pa), sub(pc, pa));+ for (const v of [a, b, c]) { const s = acc.get(keys[v]); s[0] += fn[0]; s[1] += fn[1]; s[2] += fn[2]; }+ }+ const N = [];+ for (let i = 0; i < P.length / 3; i++) { const n = nrm(acc.get(keys[i])); N.push(n[0], n[1], n[2]); }+ return meshGeo({ positions: P, normals: N, uvs: B.UV, indices: I });+}++function build() {+ const root = createRoot('statue-whale');+ const B = makeBuilder();+ body(B);+ pectorals(B);+ flukes(B);+ dorsal(B);+ eyes(B);+ const whale = createPart('statue_whale', finish(B), marbleMaterial(), { parent: root });+ requireSolid(whale); // closed, manifold, outward: it is seen from every side+ defineBudget({ triangles: 40000, draws: 1 }, root); // the brief's cap+ return root;+}diff --git a/packs/holodeck/sources/project/a_71cef64b7f8143478db7afd63d553974/r_e9e14002aa444492805007f0bf30dfee/manifest.json b/packs/holodeck/sources/project/a_71cef64b7f8143478db7afd63d553974/r_e9e14002aa444492805007f0bf30dfee/manifest.jsonnew file mode 100644index 00000000..700b41b5--- /dev/null+++ b/packs/holodeck/sources/project/a_71cef64b7f8143478db7afd63d553974/r_e9e14002aa444492805007f0bf30dfee/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_71cef64b7f8143478db7afd63d553974",+ "revisionId": "r_e9e14002aa444492805007f0bf30dfee",+ "parentRevision": "r_d412b7188d4344c78498ab6fb0be1076",+ "name": "arcade-arch",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-25T15:19:42.976Z",+ "description": "Arcade arch span 4.8 m (round arch, stepped order, archivolt, cornice and ivy trough), turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:31800d916aee1b6bca31ab51c3577b813cef9982ba0d7fbdc5e6760d83a3ab7b",+ "bytes": 446504+ },+ "source.kiln.js": {+ "sha256": "sha256:162bc29bb236379c28cf731a77fe52dcaa8905176f21a093cf25efc19f5303b1",+ "bytes": 65350+ },+ "preview.png": {+ "sha256": "sha256:11af17d1e6a4bb250136470367736390155c4bc06ae71fdfba42bffa7b4657c3",+ "bytes": 182378+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "31800d916aee1b6bca31ab51c3577b813cef9982ba0d7fbdc5e6760d83a3ab7b",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2.4000000953674316,+ 5.199999809265137,+ -0.8500000238418579+ ],+ "max": [+ 2.4000000953674316,+ 9.399999618530273,+ 0.8500000238418579+ ],+ "size": [+ 4.800000190734863,+ 4.199999809265137,+ 1.7000000476837158+ ],+ "center": [+ 0,+ 7.299999713897705,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 5.199999809265137,+ "offsetToGround": -5.199999809265137,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 1604,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 1604,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:31800d916aee1b6bca31ab51c3577b813cef9982ba0d7fbdc5e6760d83a3ab7b",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_71cef64b7f8143478db7afd63d553974/r_e9e14002aa444492805007f0bf30dfee/source.kiln.js b/packs/holodeck/sources/project/a_71cef64b7f8143478db7afd63d553974/r_e9e14002aa444492805007f0bf30dfee/source.kiln.jsnew file mode 100644index 00000000..17d15a6c--- /dev/null+++ b/packs/holodeck/sources/project/a_71cef64b7f8143478db7afd63d553974/r_e9e14002aa444492805007f0bf30dfee/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'arcade-arch';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_7d9d5e100703402aa907c7e9fe1ccef1/r_eb66bdfce33449e386b9792df125142d/manifest.json b/packs/holodeck/sources/project/a_7d9d5e100703402aa907c7e9fe1ccef1/r_eb66bdfce33449e386b9792df125142d/manifest.jsonnew file mode 100644index 00000000..0806c206--- /dev/null+++ b/packs/holodeck/sources/project/a_7d9d5e100703402aa907c7e9fe1ccef1/r_eb66bdfce33449e386b9792df125142d/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_7d9d5e100703402aa907c7e9fe1ccef1",+ "revisionId": "r_eb66bdfce33449e386b9792df125142d",+ "parentRevision": "r_5ab927afed204bfaad958924943d4e4a",+ "name": "balustrade-4",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:19:02.709Z",+ "description": "Stone kit open balustrade 4 m (13 travertine balusters, marble plinth and rail with a brass strip), turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:a0c40e478f7a7ee58aaa6f87642a7f9329c45e627af7da6c183d82b5f5c0ee45",+ "bytes": 332568+ },+ "source.kiln.js": {+ "sha256": "sha256:3fb79179c857f1a7ccf839edd450a0eab922fc094077cc4595f62bcbb3a83221",+ "bytes": 31493+ },+ "preview.png": {+ "sha256": "sha256:46d8159bd0fc87e052f2160ccd336377c2419c13346754f1e7e3cb77e27f0712",+ "bytes": 84593+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "a0c40e478f7a7ee58aaa6f87642a7f9329c45e627af7da6c183d82b5f5c0ee45",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2,+ 0,+ -0.1899999976158142+ ],+ "max": [+ 2,+ 0.9020000100135803,+ 0.1899999976158142+ ],+ "size": [+ 4,+ 0.9020000100135803,+ 0.3799999952316284+ ],+ "center": [+ 0,+ 0.45100000500679016,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 466,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 466,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:a0c40e478f7a7ee58aaa6f87642a7f9329c45e627af7da6c183d82b5f5c0ee45",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_7d9d5e100703402aa907c7e9fe1ccef1/r_eb66bdfce33449e386b9792df125142d/source.kiln.js b/packs/holodeck/sources/project/a_7d9d5e100703402aa907c7e9fe1ccef1/r_eb66bdfce33449e386b9792df125142d/source.kiln.jsnew file mode 100644index 00000000..4fa375dc--- /dev/null+++ b/packs/holodeck/sources/project/a_7d9d5e100703402aa907c7e9fe1ccef1/r_eb66bdfce33449e386b9792df125142d/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'balustrade-4';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_86ccbcae4fcb41e9ad7aeefeea8d2a31/r_e2c7668c4b704b608fa1faa7e4c9d42f/manifest.json b/packs/holodeck/sources/project/a_86ccbcae4fcb41e9ad7aeefeea8d2a31/r_e2c7668c4b704b608fa1faa7e4c9d42f/manifest.jsonnew file mode 100644index 00000000..90ff2fad--- /dev/null+++ b/packs/holodeck/sources/project/a_86ccbcae4fcb41e9ad7aeefeea8d2a31/r_e2c7668c4b704b608fa1faa7e4c9d42f/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_86ccbcae4fcb41e9ad7aeefeea8d2a31",+ "revisionId": "r_e2c7668c4b704b608fa1faa7e4c9d42f",+ "parentRevision": "r_e1503a0e84f6499690c597b712049ff0",+ "name": "stair-8",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:18:18.363Z",+ "description": "Stone kit flight 8 m (0.16 m risers, brass nosings 3 mm proud), turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:705bfe877ceee36dc6026496617ce20c8291d91f5a847318c25153e9d7998a39",+ "bytes": 587552+ },+ "source.kiln.js": {+ "sha256": "sha256:ac1732f95ba5ba163df5d1a0ac8c5b926455426f4e3d967a72280038865f1203",+ "bytes": 31488+ },+ "preview.png": {+ "sha256": "sha256:d37c2b11968fc337c5d41c43538b206f12051c91fbec5770d80f7d0aa8df11eb",+ "bytes": 205322+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "705bfe877ceee36dc6026496617ce20c8291d91f5a847318c25153e9d7998a39",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -4,+ -1,+ -8+ ],+ "max": [+ 4,+ 2.243000030517578,+ 0.006000000052154064+ ],+ "size": [+ 8,+ 3.243000030517578,+ 8.006000000052154+ ],+ "center": [+ 0,+ 0.6215000152587891,+ -3.996999999973923+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -1,+ "offsetToGround": 1,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 2876,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 2876,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:705bfe877ceee36dc6026496617ce20c8291d91f5a847318c25153e9d7998a39",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_86ccbcae4fcb41e9ad7aeefeea8d2a31/r_e2c7668c4b704b608fa1faa7e4c9d42f/source.kiln.js b/packs/holodeck/sources/project/a_86ccbcae4fcb41e9ad7aeefeea8d2a31/r_e2c7668c4b704b608fa1faa7e4c9d42f/source.kiln.jsnew file mode 100644index 00000000..3833997e--- /dev/null+++ b/packs/holodeck/sources/project/a_86ccbcae4fcb41e9ad7aeefeea8d2a31/r_e2c7668c4b704b608fa1faa7e4c9d42f/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'stair-8';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_8a9a9d21b715495e8da9ea86f9926b3f/r_792166fb225343fbb5ea84c29d051c19/manifest.json b/packs/holodeck/sources/project/a_8a9a9d21b715495e8da9ea86f9926b3f/r_792166fb225343fbb5ea84c29d051c19/manifest.jsonnew file mode 100644index 00000000..fc2c8689--- /dev/null+++ b/packs/holodeck/sources/project/a_8a9a9d21b715495e8da9ea86f9926b3f/r_792166fb225343fbb5ea84c29d051c19/manifest.json@@ -0,0 +1,398 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_8a9a9d21b715495e8da9ea86f9926b3f",+ "revisionId": "r_792166fb225343fbb5ea84c29d051c19",+ "parentRevision": "r_5eab76a0d3b0419a944caaa326874794",+ "name": "falls-narrow",+ "tags": [],+ "createdAt": "2026-10-25T09:58:36.060Z",+ "description": "Turn 15 (round 5): a denser, brighter sheet that ends at the basin surface; it had shown through the water as a pale band. A bright static lip curls over the spout, the foam ring is self-lit (it read as a dark ellipse on the mirrored water), and two faint mist cards stand low in front of the impact.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:984acc04312a1712e550a98a4ac1572438eadcec75687524428f70c1b98b7e51",+ "bytes": 89784+ },+ "source.kiln.js": {+ "sha256": "sha256:d3ab9a2823ff6378fa94f4546592c7db4353531f8c15c988dd5b6fa882d3aecc",+ "bytes": 26824+ },+ "preview.png": {+ "sha256": "sha256:35630fe6019bf1fc731e6af0a929cfd5c59d389a4b9049c0f46e300b48b59256",+ "bytes": 297213+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "984acc04312a1712e550a98a4ac1572438eadcec75687524428f70c1b98b7e51",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -1.9100053310394287,+ 0.8718805313110352,+ 1.6799999475479126+ ],+ "max": [+ 1.4924112558364868,+ 4.230999946594238,+ 3.6613576412200928+ ],+ "size": [+ 3.4024165868759155,+ 3.359119415283203,+ 1.9813576936721802+ ],+ "center": [+ -0.20879703760147095,+ 2.5514402389526367,+ 2.6706787943840027+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0.8718805313110352,+ "offsetToGround": -0.8718805313110352,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian water"+ },+ "renderMetrics": {+ "triangles": 230,+ "drawCalls": 4,+ "uniqueGeometries": 4,+ "uniqueMaterials": 4,+ "textureCount": 7,+ "transparentMaterials": 4,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "warn",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [+ {+ "code": "GEO_PART_SELF_INTERSECTION_UNMEASURED",+ "disposition": "observe",+ "dimension": "visualQuality",+ "profile": "geometry.selfIntersection",+ "message": "3 part-volume measurements were unavailable. 3 because a valid closed solid could not be measured (Not manifold): \"Mesh_falls_sheet\", \"Mesh_falls_lip\", \"Mesh_falls_foam\". 4 overlapping part pairs include one of these parts and were not measured. These parts are not certified clear."+ }+ ],+ "metrics": {+ "partVolumeCoverage": "partial",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 4,+ "partVolumeCandidatePairs": 4,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 4,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 3+ }+ },+ "runtimeCost": {+ "status": "warn",+ "findings": [+ {+ "code": "MATERIAL_IMAGE_COUNT_BUDGET",+ "disposition": "warn",+ "dimension": "runtimeCost",+ "profile": "web.portable.v1.standard",+ "message": "7 images exceed the 4-image web.portable.v1/standard budget. Reuse approved resource IDs, remove unused images, or atlas compatible same-color-space slots; never atlas normal/data maps into an sRGB image.",+ "measurement": {+ "name": "imageCount",+ "actual": 7,+ "threshold": 4,+ "unit": "images"+ }+ },+ {+ "code": "MATERIAL_BLEND_AREA_BUDGET",+ "disposition": "warn",+ "dimension": "runtimeCost",+ "profile": "web.portable.v1.standard",+ "message": "Blended primitive surface area is 100.0% (20.516 of 20.516 square asset units); the budget is 15.0%. Largest BLEND materials by share of surface area: \"material-4\" 51.4%, \"material-1\" 28.4%, \"material-3\" 15.2%, and 1 more. Use MASK for binary cutouts such as foliage, reduce layered transparent surfaces, and reserve BLEND for genuinely translucent glass/effects.",+ "measurement": {+ "name": "blendedSurfaceAreaRatio",+ "actual": 1,+ "threshold": 0.15,+ "unit": "ratio"+ }+ }+ ],+ "metrics": {+ "instanceabilityGrade": "C",+ "instanceabilitySummary": "C (informational, not a QA verdict), set by 4 distinct materials (C at 4-6). Also: 4 transparent materials (lowers only A/B to C); 7 textures (over 4 lowers only A/B to C); 4 geometries; 4 draw calls.",+ "uniqueGeometries": 4,+ "uniqueMaterials": 4,+ "meshNodes": 4,+ "meshInstances": 4,+ "drawCalls": 4,+ "textureCount": 7,+ "skinned": false,+ "transparentMaterials": 4,+ "triangles": 230,+ "materialCount": 4,+ "opaqueMaterials": 0,+ "maskedMaterials": 0,+ "blendedMaterials": 4,+ "singleSidedMaterials": 2,+ "doubleSidedMaterials": 2,+ "texturedMaterials": 4,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 7,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1572928,+ "estimatedGpuBytesWithMipmaps": 2097241,+ "blendedSurfaceAreaRatio": 1+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "notEvaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:984acc04312a1712e550a98a4ac1572438eadcec75687524428f70c1b98b7e51",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "dark"+ }+}diff --git a/packs/holodeck/sources/project/a_8a9a9d21b715495e8da9ea86f9926b3f/r_792166fb225343fbb5ea84c29d051c19/source.kiln.js b/packs/holodeck/sources/project/a_8a9a9d21b715495e8da9ea86f9926b3f/r_792166fb225343fbb5ea84c29d051c19/source.kiln.jsnew file mode 100644index 00000000..26a6cf90--- /dev/null+++ b/packs/holodeck/sources/project/a_8a9a9d21b715495e8da9ea86f9926b3f/r_792166fb225343fbb5ea84c29d051c19/source.kiln.js@@ -0,0 +1,370 @@+// Meridian Sanctuary water (plan.md sections 4.3 and 4.6, assets 27-31).+// One program builds every water piece; PIECE selects which one this revision is.+// Moving sheets are alpha-blended, double-sided and bound to Holodeck's asset.flow by their+// Mesh_<name> node: every map scrolls along V at the asset's speed. V is laid out as the+// water's travel time (seconds, at flow speed [0, 1]), so the pattern moves with the water:+// slowly in a spout or over a lip, fast and stretched as it falls. Froth fans at the foot of a+// fall use V as distance from the impact, so their bubbles drift outward. Mist cards are a+// separate, static node.+const meta = { name: 'Meridian water' };+const PIECE = 'falls-narrow';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const G = 9.81;++// ---------------------------------------------------------------- textures+// Falling water, 512 x 256. The streak region (all of it, or columns 0-383 when the piece has+// froth) holds a faint white base, streaks of strongly varying alpha (mostly faint, a few+// bright bands of white water) in clusters with open gaps, soft patches and drawn-out+// droplets. Columns 384-511 hold froth: overlapping bubbles. Streaks are full-height lines and+// stamps stay inside their region, so the image tiles along V as it scrolls. The emissive twin+// repeats the strokes over dark teal: a little self-light for water seen against the sun.+const FROTH_U = 0.75; // where the froth region starts, as a share of the width+function sheetTextures(seed, o) {+ const R = rng(seed), Wd = o.froth ? 384 : 512, strokes = [];+ let x = 3 + R() * 12;+ for (let i = 0; i < o.lines; i++) {+ const bright = R() < o.bright;+ strokes.push({ x: Math.round(x), w: bright ? 5 + Math.floor(R() * 9) : 1 + Math.floor(R() * R() * 4),+ a: bright ? 150 + Math.floor(R() * 80) : 30 + Math.floor(R() * R() * 190) });+ x += R() < 0.3 ? 1 + R() * 4 : 4 + R() * ((2 * Wd) / o.lines);+ if (x > Wd - 6) x = 3 + R() * 60;+ }+ const ops = (rgb) => {+ const list = [{ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 40, height: 110 }, rgba: [...rgb, 34], count: 14, seed: seed + 3,+ area: { x: 1, y: 1, width: Wd - 42, height: 144 } }];+ for (const s of strokes) list.push({ op: 'paint', shape: { kind: 'line', from: [s.x, -4], to: [s.x, 260], width: s.w }, rgba: [...rgb, s.a] });+ list.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 3, height: 22 }, rgba: [...rgb, 150], count: o.drops, seed: seed + 1,+ area: { x: 1, y: 1, width: Wd - 4, height: 231 } });+ if (o.froth) {+ for (const [w, h, a, n, k] of [[18, 14, 120, 40, 4], [10, 8, 170, 60, 5], [5, 4, 210, 30, 6]]) {+ list.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: w, height: h }, rgba: [...rgb, a], count: n, seed: seed + 10 * k,+ area: { x: 386, y: 1, width: 124 - w, height: 254 - h } });+ }+ }+ return list;+ };+ const albedo = proceduralTexture({ schemaVersion: 3, width: 512, height: 256, usage: 'albedo', background: [...o.tint, o.base], operations: ops([248, 253, 253]) });+ const emissive = proceduralTexture({ schemaVersion: 3, width: 512, height: 256, usage: 'emissive', background: [36, 48, 52, 255], operations: ops([224, 240, 242]) });+ // height for the normal map: fine vertical ridges, so the sheet catches long specular lines+ const height = proceduralTexture({ schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'stripes', colorA: 0x707070, colorB: 0x909090, count: 22, angleDeg: 0 },+ { op: 'noise', colorA: 0x606060, colorB: 0xa0a0a0, scale: 8, octaves: 3, seed, blend: 'overlay', opacity: 0.5 },+ ] });+ return { albedo, emissive, normal: normalMapFromHeight(height, { strength: o.relief }) };+}+function sheetMaterial(seed, o) {+ const t = sheetTextures(seed, o);+ return pbrMaterial({ albedo: t.albedo, normal: t.normal, emissive: t.emissive, emissiveIntensity: o.glow,+ roughness: 0.08, metalness: 0, alphaMode: 'blend', doubleSided: true });+}+// Mist and spray: a soft white blob, built up from stacked faint ellipses and cloudy puffs, with+// a near-zero (not zero) alpha floor so filtering never darkens its edge.+function mistMaterial(seed, peak) {+ const ops = [];+ for (let k = 0; k < 18; k++) {+ const s = 126 - k * 6;+ ops.push({ op: 'paint', shape: { kind: 'ellipse', x: 64 - s / 2, y: Math.round(64 - s / 3.2), width: s, height: Math.round(s / 1.6) }, rgba: [255, 255, 255, peak] });+ }+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 30, height: 24 }, rgba: [255, 255, 255, 14], count: 40, seed, area: { x: 20, y: 24, width: 78, height: 70 } });+ const albedo = proceduralTexture({ schemaVersion: 3, width: 128, height: 128, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ // Single-sided (one draw); card() emits every card both ways round instead.+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.3, roughness: 1, metalness: 0, alphaMode: 'blend', doubleSided: false });+}+// Foam lying on the water round a fall's foot (turn 10: the reviews of revision 12 read the+// standing spray cards as cotton-ball sprites on the wall, cut flat at the waterline). Rows run+// out from the impact: a dense bubbly band near it thinning to nothing at the rim, with one faint+// ripple ring, so the foam has a soft edge; columns tile round the ring.+function foamMaterial(seed) {+ // turn 15 (round 5: a dark ellipse at each fall's foot): denser and self-lit, so the ring reads+ // white against the mirrored water round it instead of a duller ring in it+ const W = 256, H = 128, ops = [];+ for (const [y0, h, a] of [[0, 18, 196], [18, 22, 132], [40, 26, 66], [66, 30, 22]]) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: y0, width: W, height: h }, rgba: [252, 254, 254, a] });+ for (const [y, h, w, bh, a, n, k] of [[1, 44, 9, 6, 200, 70, 1], [10, 60, 6, 4, 170, 60, 2], [30, 66, 4, 3, 130, 40, 3]]) {+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: w, height: bh }, rgba: [255, 255, 255, a], count: n, seed: seed + k, area: { x: 1, y, width: W - w - 2, height: h } });+ }+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, 90], to: [W + 4, 90], width: 2 }, rgba: [255, 255, 255, 34] });+ const albedo = proceduralTexture({ schemaVersion: 3, width: W, height: H, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.7, roughness: 0.5, metalness: 0, alphaMode: 'blend', doubleSided: false });+}+// turn 15 (round 5: the falls read as strings, with no bright lip): white water where a sheet+// curls over its edge, densest at the top and thinning into the sheet; it is not a flow node, so+// the curl holds still while the sheet below it runs.+function lipMaterial(seed) {+ const W = 256, H = 64, R = rng(seed), ops = [];+ for (const [y0, h, a] of [[0, 10, 236], [10, 12, 196], [22, 14, 132], [36, 14, 70], [50, 14, 20]]) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: y0, width: W, height: h }, rgba: [252, 254, 254, a] });+ for (let i = 0; i < 26; i++) {+ const x = Math.floor(R() * W);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [x, -2], to: [x, Math.round(40 + R() * 24)], width: 2 + Math.floor(R() * 5) }, rgba: [255, 255, 255, 120 + Math.floor(R() * 100)] });+ }+ const albedo = proceduralTexture({ schemaVersion: 3, width: W, height: H, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.6, roughness: 0.3, metalness: 0, alphaMode: 'blend', doubleSided: true });+}+// Still basin water: azure turquoise (blue at least green) of medium alpha with slow ripples+// (the normal map drifts), and a faint turquoise emission so it stays turquoise in shade.+function basinMaterial() {+ const albedo = proceduralTexture({ schemaVersion: 3, width: 256, height: 256, usage: 'albedo', background: [0, 0, 0, 0], operations: [+ { op: 'legacy-v2', alpha: 168, spec: { schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x1d8cb0, colorB: 0x36b0d2, scale: 3, octaves: 3, seed: 71 }] } },+ ] });+ const height = proceduralTexture({ schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x585858, colorB: 0xa8a8a8, scale: 6, octaves: 4, seed: 72 }] });+ const glow = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0x2a9cbc }] });+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 0.9 }), emissive: glow, emissiveIntensity: 0.3, roughness: 0.03, metalness: 0, alphaMode: 'blend' });+}+// The overflow weir: white marble with soft veins, and a dark strip (bottom rows) for the+// slot the water leaves from.+function weirMaterial() {+ const R = rng(91), ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xe9e6e1, colorB: 0xfcfbf9, scale: 3, octaves: 4, seed: 91 }] } }];+ for (let i = 0; i < 4; i++) {+ const y0 = Math.floor(R() * 200), y1 = y0 + Math.floor((R() - 0.5) * 60);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y0], to: [260, y1], width: 1 }, rgba: [168, 161, 152, 255], opacity: 110 });+ }+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 232, width: 256, height: 24 }, rgba: [168, 162, 152, 255] }); // turn 15: a shadowed recess (it read as a near-black bar)+ return pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 3, width: 256, height: 256, usage: 'albedo', operations: ops }), roughness: 0.25, metalness: 0 });+}++// ---------------------------------------------------------------- geometry+// Mesh accumulator: several sweeps, fans and cards can share one node.+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.quad = (a, b, c, d, n, uv) => { // a b c d counterclockwise seen from n's side+ const base = M.P.length / 3;+ for (const [i, v] of [a, b, c, d].entries()) { M.P.push(...v); M.N.push(...n); M.T.push(...uv[i]); }+ M.I.push(base, base + 1, base + 2, base, base + 2, base + 3);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A sheet swept along one axis from a cross-section profile of [p, y, t] points (p across the+// face, y up, t the water's travel time), into mesh M. axis 'x': p is local z (falls on a +Z+// face); axis 'z': p is local x (spills off a +X edge). u runs from u0 at uPerMetre;+// widthAt(t, i) narrows or roughens the sweep about its middle without changing u.+function sweep(M, profile, axis, a0, a1, u0, uPerMetre, widthAt = () => 1) {+ const mid = (a0 + a1) / 2, base = M.P.length / 3;+ profile.forEach(([p, y, t], i) => {+ const prev = profile[Math.max(0, i - 1)], next = profile[Math.min(profile.length - 1, i + 1)];+ const dp = next[0] - prev[0], dy = next[1] - prev[1], l = Math.hypot(dp, dy) || 1, np = -dy / l, ny = dp / l; // outward/up+ for (const [k, a] of [a0, a1].entries()) {+ const w = mid + (a - mid) * widthAt(t, i, k);+ M.P.push(...(axis === 'x' ? [w, y, p] : [p, y, w]));+ M.N.push(...(axis === 'x' ? [0, ny, np] : [np, ny, 0]));+ M.T.push(u0 + (a - a0) * uPerMetre, t);+ }+ });+ const at = (k) => M.P.slice(3 * k, 3 * k + 3);+ for (let i = 0; i + 1 < profile.length; i++) {+ const v00 = base + 2 * i, v01 = v00 + 1, v10 = v00 + 2, v11 = v00 + 3;+ // wind each quad so its geometric normal agrees with the supplied normal+ const e1 = at(v10).map((v, j) => v - at(v00)[j]), e2 = at(v11).map((v, j) => v - at(v00)[j]);+ const g = [e1[1] * e2[2] - e1[2] * e2[1], e1[2] * e2[0] - e1[0] * e2[2], e1[0] * e2[1] - e1[1] * e2[0]];+ const n = M.N.slice(3 * v00, 3 * v00 + 3);+ if (g[0] * n[0] + g[1] * n[1] + g[2] * n[2] >= 0) M.I.push(v00, v10, v11, v00, v11, v01); else M.I.push(v00, v11, v10, v00, v01, v11);+ }+}+// turn 15: the lip band, the profile's channel and curl (to time tEnd) swept again a few+// millimetres proud of the sheet, its v running 0 - 1 down the band.+function lipBand(M, profile, axis, a0, a1, tEnd, lift = 0.006) {+ const base = M.P.length / 3, pts = profile.filter(([, , t]) => t <= tEnd);+ sweep(M, pts, axis, a0, a1, 0, 1 / (a1 - a0));+ for (let k = base; k < M.P.length / 3; k++) {+ for (let j = 0; j < 3; j++) M.P[3 * k + j] += lift * M.N[3 * k + j];+ M.T[2 * k + 1] /= tEnd;+ }+}+// Low mist where a fall meets the water: wide, faint cards standing just clear of the face,+// centred well above the surface so none is cut by it.+function mistAt(M, c, w, h, n, R) {+ for (let i = 0; i < n; i++) card(M, [c[0] + (R() - 0.5) * w * 0.4, c[1] + h * (0.45 + 0.1 * R()), c[2] + 0.1 + 0.3 * R()], w * (0.8 + 0.4 * R()), h, (R() - 0.5) * 1.1);+}+// Water that runs along a channel at speed v, then leaves its edge at (p0, y0) at speed v0 and+// falls ballistically to yEnd: [p, y, t] points with t from 0 at the channel's start.+function trajectory(channel, v, p0, y0, yEnd, steps, v0 = v) {+ const pts = channel.map(([p, y]) => [p, y, (p - channel[0][0]) / v]), t0 = pts[pts.length - 1][2];+ const tEnd = Math.sqrt((2 * (y0 - yEnd)) / G);+ for (let k = 1; k <= steps; k++) {+ const tau = tEnd * (k / steps) ** 1.4; // denser near the lip, where the sheet curls+ pts.push([p0 + v0 * tau, y0 - 0.5 * G * tau * tau, t0 + tau]);+ }+ return pts;+}+// A flat froth fan on the water at height y around an impact at (0, cz), spread rx by rz in+// front of it (+Z), from radius r0 to 1: froth-region u across the fan, v = distance / 0.3 m,+// so flow speed [0, 1] carries the bubbles outward at 0.3 m/s.+function frothFan(M, cz, y, rx, rz, r0 = 0.12) {+ const rings = [r0, 0.3, 0.5, 0.72, 1.0], fan = 12;+ for (let i = 0; i + 1 < rings.length; i++) for (let j = 0; j < fan; j++) {+ const pt = (r, k) => { const th = -Math.PI / 2 + (Math.PI * k) / fan; return [rx * r * Math.sin(th), y, cz + rz * r * Math.cos(th)]; };+ const uv = (r, k) => [FROTH_U + ((1 - FROTH_U) * k) / fan, ((r - r0) * Math.max(rx, rz)) / 0.3];+ const [ra, rb] = [rings[i], rings[i + 1]];+ M.quad(pt(ra, j), pt(ra, j + 1), pt(rb, j + 1), pt(rb, j), [0, 1, 0], [uv(ra, j), uv(ra, j + 1), uv(rb, j + 1), uv(rb, j)].map(([u, v]) => [u, v]));+ }+}+// A flat foam ring on the water at height y round an impact at (0, cz), facing up: from radius+// r0 to 1 of rx by rz, over angles within a of straight out (+Z), so it wraps a little toward the+// wall; u tiles round it, v runs from the inner edge (0) to the outer (1), where the foam fades.+function foamRing(M, cz, y, rx, rz, r0, a = 1.95) {+ const rings = [r0, r0 + (1 - r0) * 0.3, r0 + (1 - r0) * 0.62, 1.0], fan = 14;+ for (let i = 0; i + 1 < rings.length; i++) for (let j = 0; j < fan; j++) {+ const pt = (r, k) => { const th = -a + (2 * a * k) / fan; return [rx * r * Math.sin(th), y, cz + rz * r * Math.cos(th)]; };+ const uv = (r, k) => [(2 * k) / fan, (r - r0) / (1 - r0)];+ const [ra, rb] = [rings[i], rings[i + 1]];+ M.quad(pt(ra, j), pt(ra, j + 1), pt(rb, j + 1), pt(rb, j), [0, 1, 0], [uv(ra, j), uv(ra, j + 1), uv(rb, j + 1), uv(rb, j)]);+ }+}+// A vertical card of width w and height h centred at c, facing yaw (radians about +Y from +Z),+// emitted both ways round so a single-sided material shows it from either side.+function card(M, c, w, h, yaw) {+ const ax = [Math.cos(yaw), 0, -Math.sin(yaw)], n = [Math.sin(yaw), 0, Math.cos(yaw)];+ const p = (s, t) => [c[0] + ax[0] * s * w / 2, c[1] + t * h / 2, c[2] + ax[2] * s * w / 2];+ M.quad(p(-1, -1), p(1, -1), p(1, 1), p(-1, 1), n, [[0, 1], [1, 1], [1, 0], [0, 0]]);+ M.quad(p(-1, 1), p(1, 1), p(1, -1), p(-1, -1), n.map((v) => -v), [[0, 0], [1, 0], [1, 1], [0, 1]]);+}+// A box with per-face UVs mapped into a texture window [u0, v0, u1, v1].+function boxInto(B, lo, hi, win, skip = []) {+ const faces = [+ ['px', [[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]]]],+ ['nx', [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]]]],+ ['py', [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]]]],+ ['ny', [[lo[0], lo[1], lo[2]], [hi[0], lo[1], lo[2]], [hi[0], lo[1], hi[2]], [lo[0], lo[1], hi[2]]]],+ ['pz', [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]]]],+ ['nz', [[hi[0], lo[1], lo[2]], [lo[0], lo[1], lo[2]], [lo[0], hi[1], lo[2]], [hi[0], hi[1], lo[2]]]],+ ];+ const nrmOf = { px: [1, 0, 0], nx: [-1, 0, 0], py: [0, 1, 0], ny: [0, -1, 0], pz: [0, 0, 1], nz: [0, 0, -1] };+ for (const [f, q] of faces) {+ if (skip.includes(f)) continue;+ const [u0, v0, u1, v1] = win;+ B.quad(q[0], q[1], q[2], q[3], nrmOf[f], [[u0, v1], [u1, v1], [u1, v0], [u0, v0]]);+ }+}++// ---------------------------------------------------------------- pieces+// Falls from a cascade tower's spout, in the tower's frame: spout floor 4.2 m, its back at+// z 1.65 and its lip on the face at z 2.0; the pool or basin surface is 0.9 m above the+// tower's base. A bright white ribbon runs 2.5 cm deep along the spout at 0.5 m/s, falls+// 3.4 m and lands about 0.4 m out from the face, where bubbling froth drifts out from the+// impact and a ring of foam lies on the water round it (turn 10: no standing spray cards).+// turn 15 (round 5: strings, a pale band under the waterline and a dark ring at the foot): the+// sheet ends at the basin surface, denser and brighter, under a bright lip; the foam ring is+// self-lit, and faint mist stands low in front of the impact.+const FALLS = { half: 0.78, profile: () => trajectory([[1.68, 4.225], [1.84, 4.225], [2.0, 4.225]], 0.5, 2.0, 4.225, 0.905, 12),+ widthAt: (t) => (t <= 0.64 ? 1 : 1 - 0.07 * Math.sin(Math.min(1, (t - 0.64) / 0.83) * Math.PI * 0.8)) };+function fallsPiece() {+ const M = makeMesh(), profile = FALLS.profile(), cz = profile[profile.length - 1][0];+ sweep(M, profile, 'x', -FALLS.half, FALLS.half, 0, FROTH_U / (2 * FALLS.half), FALLS.widthAt);+ frothFan(M, cz, 0.925, 0.55, 0.45);+ const F = makeMesh(), L = makeMesh(), S = makeMesh();+ foamRing(F, cz, 0.93, 1.5, 1.25, 0.367); // from the froth's edge (0.55 by 0.45 m) to 1.5 by 1.25 m+ lipBand(L, profile, 'x', -FALLS.half, FALLS.half, 0.94);+ mistAt(S, [0, 0.9, cz], 2.6, 1.0, 2, rng(14));+ return [['falls_sheet', M.geo(), sheetMaterial(11, { tint: [236, 248, 250], base: 104, lines: 40, bright: 0.3, drops: 110, relief: 2.2, glow: 0.75, froth: true })],+ ['falls_lip', L.geo(), lipMaterial(15)], ['falls_foam', F.geo(), foamMaterial(12)], ['falls_mist', S.geo(), mistMaterial(13, 6)]];+}+// Falls from a rim tower's cornice into the cloud sea (turn 10, rule 7: water spilling into the+// cloud sea in view of the arrival; the pools' own rim spills fall below the lip, out of sight+// from eye height), in the cornice's frame: its face is z = 0 (+Z outward) and its top y = 0. A+// bright ribbon 2.2 m wide runs 3 cm deep over the cornice at 0.6 m/s and leaves its edge in+// tongues of different widths that arc 2 - 4 m out and narrow as they fall 100 - 108 m.+function towerFallsPiece() {+ const M = makeMesh(), R = rng(53), half = 1.1, L = makeMesh(), head = trajectory([[-0.3, 0.03], [-0.12, 0.03], [0, 0.03]], 0.6, 0, 0.03, -0.35, 4);+ sweep(M, head, 'x', -half, half, 0, 1 / (2 * half));+ lipBand(L, head, 'x', -half, half, 0.62); // turn 15: a bright lip over the cornice+ for (let x = -half; x < half - 0.1;) {+ const w = Math.min(0.24 + R() * 0.42, half - x), v0 = 0.5 + R() * 0.4, yEnd = -100 - R() * 8, jitter = rng(Math.floor(R() * 1e6));+ const wob = Array.from({ length: 64 }, () => 0.84 + 0.32 * jitter());+ const profile = trajectory([[0, 0.03]], 0.6, 0, 0.03, yEnd, 18, v0).map(([p, y, t]) => [p, y, t + 0.5]);+ const narrow = 0.35 + 0.3 * R();+ sweep(M, profile, 'x', x, x + w, R(), 1 / 2, (t, i, k) => (1 - (1 - narrow) * Math.min(1, (t - 0.5) / 2.5)) * (i > 1 ? wob[2 * i + k] : 1));+ x += w + 0.04 + R() * 0.12;+ }+ return [['falls_sheet', M.geo(), sheetMaterial(53, { tint: [236, 248, 250], base: 96, lines: 50, bright: 0.34, drops: 130, relief: 2.0, glow: 0.7 })],+ ['falls_lip', L.geo(), lipMaterial(54)]];+}+// Overflow weir on a terrace wall, in the wall's frame: the face is z = 0 (+Z toward the pool)+// and y = 0 is the terrace top. A marble ledge 4.2 m wide projects 0.2 m at y -0.36..-0.26+// under a dark slot; the sheet slides over it at 0.4 m/s and falls 2.3 m to 5 cm under the+// pool surface (y -2.5), with a froth band where it lands.+function overflowPiece() {+ const B = makeMesh(), marble = [0.02, 0.02, 0.98, 0.86], dark = [0.02, 0.92, 0.98, 0.98];+ boxInto(B, [-2.1, -0.36, 0], [2.1, -0.26, 0.2], marble, ['nz']);+ boxInto(B, [-2.0, -0.26, 0], [2.0, -0.17, 0.004], dark, ['nz', 'ny', 'py', 'px', 'nx']);+ // turn 15: the sheet stops at the pool surface (it showed through the water as a pale band),+ // under a bright lip, with faint mist at its foot+ const M = makeMesh(), profile = trajectory([[0.006, -0.24], [0.1, -0.243], [0.2, -0.245]], 0.4, 0.2, -0.245, -2.49, 12);+ sweep(M, profile, 'x', -1.95, 1.95, 0, FROTH_U / 3.9);+ const L = makeMesh(), S = makeMesh();+ lipBand(L, profile, 'x', -1.95, 1.95, 0.9);+ mistAt(S, [0, -2.5, profile[profile.length - 1][0]], 3.6, 0.9, 2, rng(24));+ for (let j = 0; j < 6; j++) { // froth band on the pool, drifting outward+ const xa = -1.95 + 0.65 * j, xb = xa + 0.65, y = -2.475, ua = FROTH_U + ((1 - FROTH_U) * j) / 6, ub = FROTH_U + ((1 - FROTH_U) * (j + 1)) / 6;+ M.quad([xa, y, 0.3], [xb, y, 0.3], [xb, y, 1.25], [xa, y, 1.25], [0, 1, 0], [[ua, 0], [ub, 0], [ub, 0.95 / 0.3], [ua, 0.95 / 0.3]]);+ }+ return [['overflow_weir', B.geo(), weirMaterial()],+ ['overflow_sheet', M.geo(), sheetMaterial(23, { tint: [236, 248, 250], base: 96, lines: 52, bright: 0.3, drops: 100, relief: 1.6, glow: 0.7, froth: true })],+ ['overflow_lip', L.geo(), lipMaterial(25)], ['overflow_mist', S.geo(), mistMaterial(26, 6)]];+}+// Rim spill over an infinity lip, in the lip's frame: x = 0 is the pool's water edge (+X+// outward), y = 0 the water level, z along the lip (±11.95). Water slides 1 cm deep over the+// 0.25 m coping at 0.3 m/s along the whole lip, then breaks into ragged ribbons of different+// widths, arcs and lengths that narrow as they fall 22 - 30 m into the cloud deck; mist hangs+// where they meet the deck.+const SPILL = { half: 11.95 };+function spillPiece() {+ const M = makeMesh(), R = rng(37), lip = [[-0.02, -0.004], [0.1, -0.008], [0.25, -0.012]], head = trajectory(lip, 0.3, 0.25, -0.012, -0.3, 4);+ sweep(M, head, 'z', -SPILL.half, SPILL.half, 0, 1 / 3);+ const L = makeMesh();+ lipBand(L, head, 'z', -SPILL.half, SPILL.half, 1.2); // turn 15: a bright lip along the whole edge+ for (let z = -SPILL.half + R() * 0.3; z < SPILL.half - 0.3;) {+ // turn 15 (round 5: a striped wall of strings): mostly broad sheets 1.4 - 3.6 m wide with+ // tight gaps, a few narrow tongues, each thinning as it falls; arcs from 0.16 to 0.5 m/s+ const w = Math.min(R() < 0.15 ? 0.4 + R() * 0.5 : 1.4 + R() * 2.2, SPILL.half - z), v0 = 0.16 + R() * 0.34;+ const yEnd = -92 - R() * 12, seed = Math.floor(R() * 1e6), jitter = rng(seed); // turn 8: into the deck, now 80 m down+ const wob = Array.from({ length: 64 }, () => 0.82 + 0.36 * jitter());+ const profile = trajectory([[0.25, -0.012]], 0.3, 0.25, -0.012, yEnd, 16, v0).map(([p, y, t]) => [p, y, t + 0.9]);+ const narrow = 0.3 + 0.35 * R(); // how much of its width each tongue keeps at the bottom+ sweep(M, profile, 'z', z, z + w, R(), 1 / 3, (t, i, k) => (1 - (1 - narrow) * Math.min(1, (t - 0.9) / 2.2)) * (i > 1 ? wob[2 * i + k] : 1));+ z += w + (R() < 0.2 ? 0.3 + R() * 0.6 : 0.03 + R() * 0.15);+ }+ const S = makeMesh();+ // crossed mist cards, kept inside the lip's length (each reaches 3.44 m along z)+ for (const zc of [-8, -2.8, 2.6, 7.6]) for (const yaw of [Math.PI / 2 - 0.7, Math.PI / 2 + 0.7]) card(S, [1.0 + 1.2 * R(), -78 + R() * 2, zc + R() - 0.5], 9, 5.5, yaw);+ return [['spill_sheet', M.geo(), sheetMaterial(37, { tint: [236, 248, 250], base: 64, lines: 52, bright: 0.3, drops: 130, relief: 1.8, glow: 0.62 })],+ ['spill_lip', L.geo(), lipMaterial(39)], ['spill_mist', S.geo(), mistMaterial(38, 12)]];+}+// Still water over a T1 basin: 8 x 16 m at the surface (y = 0), 2 mm inside the basin walls,+// with ripple UVs at 2 m per repeat.+function basinPiece() {+ const hx = 3.998, hz = 7.998;+ const geo = meshGeo({ positions: [-hx, 0, hz, hx, 0, hz, hx, 0, -hz, -hx, 0, -hz], normals: [0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0],+ uvs: [0, 8, 4, 8, 4, 0, 0, 0], indices: [0, 1, 2, 0, 2, 3] });+ return [['basin_surface', geo, basinMaterial()]];+}++// Review only (never saved): the falls in front of a stand-in tower and pool, and the overflow+// on a stand-in wall over a stand-in pool.+function previewPieces() {+ const stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const pool = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0x2fa8b0 }] }), roughness: 0.1, metalness: 0 });+ const box = (lo, hi) => { const B = makeMesh(); boxInto(B, lo, hi, [0, 0, 1, 1]); return B.geo(); };+ const shift = (geo, d) => { geo.translate(d[0], d[1], d[2]); return geo; };+ const out = [['stand_tower', box([-2, 0, -2], [2, 6.4, 2]), stone], ['stand_pool', box([-6, 0, 2], [12, 0.9, 7]), pool]];+ for (const piece of fallsPiece()) out.push(piece);+ out.push(['stand_wall', box([4, -0.5, -2], [10, 3.4, 2]), stone]);+ for (const [name, geo, mat] of overflowPiece()) out.push([name, shift(geo, [7, 3.4, 2]), mat]);+ return out;+}++const PIECES = { 'falls-narrow': fallsPiece, 'overflow-wide': overflowPiece, 'rim-spill': spillPiece, 'basin-water': basinPiece, 'tower-falls': towerFallsPiece, 'preview-water': previewPieces };++async function build() {+ const root = createRoot(PIECE);+ for (const [name, geo, mat] of PIECES[PIECE]()) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_8e3dc511b0a74bee83928f75486d67b0/r_18f9489150844e0d8d8fe5b526b5b0ad/manifest.json b/packs/holodeck/sources/project/a_8e3dc511b0a74bee83928f75486d67b0/r_18f9489150844e0d8d8fe5b526b5b0ad/manifest.jsonnew file mode 100644index 00000000..759bbe1d--- /dev/null+++ b/packs/holodeck/sources/project/a_8e3dc511b0a74bee83928f75486d67b0/r_18f9489150844e0d8d8fe5b526b5b0ad/manifest.json@@ -0,0 +1,363 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_8e3dc511b0a74bee83928f75486d67b0",+ "revisionId": "r_18f9489150844e0d8d8fe5b526b5b0ad",+ "parentRevision": "r_adc684b454bc45978d01698652c954a5",+ "name": "shrub-b",+ "tags": [],+ "createdAt": "2026-10-25T09:16:53.278Z",+ "description": "Turn 14 (corrects r_adc684b4, which was saved from shrub-a's build): the shrub-b mound, its blossoms on the shared atlas's cream rows 0-1.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:b0f7b81d888b267ea85a1d4977af957004a8b02afdd6ab9ba3d8fa58ef322253",+ "bytes": 229668+ },+ "source.kiln.js": {+ "sha256": "sha256:c495fcd1fe3a468725c2a3eee3c8c288a92689b8a12907d085c59620515ec218",+ "bytes": 28630+ },+ "preview.png": {+ "sha256": "sha256:b790b568bdccf6b060f81c511a3ccdaed56a6985e18d6fb7ea836966f5fe5e28",+ "bytes": 545520+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "b0f7b81d888b267ea85a1d4977af957004a8b02afdd6ab9ba3d8fa58ef322253",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.8891697525978088,+ -0.06315445899963379,+ -0.8844153881072998+ ],+ "max": [+ 0.9512253999710083,+ 0.7825636267662048,+ 0.952945351600647+ ],+ "size": [+ 1.8403951525688171,+ 0.8457180857658386,+ 1.8373607397079468+ ],+ "center": [+ 0.03102782368659973,+ 0.3597045838832855,+ 0.034264981746673584+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -0.06315445899963379,+ "offsetToGround": 0.06315445899963379,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 2712,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 2712,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:b0f7b81d888b267ea85a1d4977af957004a8b02afdd6ab9ba3d8fa58ef322253",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "light"+ }+}diff --git a/packs/holodeck/sources/project/a_8e3dc511b0a74bee83928f75486d67b0/r_18f9489150844e0d8d8fe5b526b5b0ad/source.kiln.js b/packs/holodeck/sources/project/a_8e3dc511b0a74bee83928f75486d67b0/r_18f9489150844e0d8d8fe5b526b5b0ad/source.kiln.jsnew file mode 100644index 00000000..61cc796d--- /dev/null+++ b/packs/holodeck/sources/project/a_8e3dc511b0a74bee83928f75486d67b0/r_18f9489150844e0d8d8fe5b526b5b0ad/source.kiln.js@@ -0,0 +1,355 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'shrub-b';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [60, 76, 36, 255], operations: [ // turn 13: a little lighter, so gaps between clumps read as depth, not holes+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs (turn 9: the reviews of revision 11 saw crumpled dark bowls with no flowers): a 512 px+// atlas of 128 px cells in the cypress's manner. Column 0 is the opaque leafy core; columns 1 - 2+// hold eight rounded clusters of small leaves (rows by height on the mound, lighter higher up),+// column 3 four clusters of cream and white blossom heads over leaves.+async function shrubAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 80, 40, 255], operations: [ // turn 13: lighter, so the crown never reads as a dark hollow+ { op: 'stamps', shape: ell(10, 8), rgba: [70, 104, 52, 255], count: 140, seed: 31, area: { x: 0, y: 0, width: 114, height: 500 } },+ { op: 'stamps', shape: ell(8, 6), rgba: [28, 46, 24, 255], count: 90, seed: 32, area: { x: 0, y: 0, width: 116, height: 502 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2]) {+ const lift = 7 * r + 5 * (c - 1), seed = 700 + 11 * r + 3 * c;+ regions.push({ name: `leaves-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(12, 9), rgba: [44 + lift, 74 + lift, 36, 255], count: 76, seed, area: { x: 16, y: 10, width: 80, height: 70 } },+ { op: 'stamps', shape: ell(10, 7), rgba: [72 + lift, 110 + lift, 52, 255], count: 100, seed: seed + 1, area: { x: 10, y: 22, width: 94, height: 82 } },+ { op: 'stamps', shape: ell(7, 5), rgba: [112 + lift, 150 + lift, 74, 255], count: 76, seed: seed + 2, area: { x: 14, y: 34, width: 90, height: 78 } }] } } });+ }+ // turn 14: rows 0 - 1 cream and white (shrub-a, shrub-b), rows 2 - 3 old rose (shrub-c), so the+ // three shrubs share one atlas and one material+ for (let r = 0; r < 4; r++) {+ const seed = 800 + 13 * r, [petal, light, eye] = r < 2 ? [[248, 238, 212], [255, 252, 244], [236, 204, 120]] : [[232, 160, 172], [248, 204, 210], [226, 184, 112]];+ regions.push({ name: `blossom-${r}`, content: { x: 384 + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(11, 8), rgba: [56, 90, 44, 255], count: 70, seed, area: { x: 14, y: 14, width: 84, height: 80 } },+ { op: 'stamps', shape: ell(10, 9), rgba: [...petal, 255], count: 64, seed: seed + 1, area: { x: 14, y: 12, width: 88, height: 90 } },+ { op: 'stamps', shape: ell(6, 6), rgba: [...light, 255], count: 90, seed: seed + 2, area: { x: 12, y: 10, width: 96, height: 96 } },+ { op: 'stamps', shape: ell(2, 2), rgba: [...eye, 255], count: 30, seed: seed + 3, area: { x: 20, y: 18, width: 82, height: 84 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+// turn 14 (rule 9's varied pairs): o.peak is where the column is widest (0.32 of its height),+// o.taper the power of its narrowing above (0.75), o.lean the top's offset in metres (x, z),+// growing with the square of height so the column bows rather than tilts.+async function cypress(H, W, n, seed, trunk, o = {}) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12, pk = o.peak ?? 0.32, tp = o.taper ?? 0.75, [lx, lz] = o.lean ?? [0, 0];+ const prof = (t) => (t < pk ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / pk)) : Math.pow((1 - t) / (1 - pk), tp));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]) + lx * t * t, 0.04 * t * Math.sin(4.3 * t + ph[1]) + lz * t * t];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ // turn 13 (the reviews of revision 15: near cypresses read as stacked cardboard with a sawtooth+ // outline): clumps two thirds the size and nearly twice as many, so the outline breaks finer+ const L = (0.19 + 0.17 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.75 + 0.35 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound (turn 9): a dome, widest just above the ground, of small crossed clusters of+// leaves rooted by area in a dark leafy core, a share of them blossom heads, more on its crown and+// sun side of the dome; rounded (spherical) shading normals; it spills a little past a planter's+// rim. Card rows follow height, so the wind stirs the crown more than the foot.+// turn 14: o.rose takes the old-rose blossom rows (2 - 3) and the lighter leaf rows; the cream+// shrubs take blossom rows 0 - 1, low on the mound and high+async function shrub(H, R0, n, seed, bloom, o = {}) {+ const R = rng(seed), M = makeMesh(), bRow = (row) => (o.rose ? 2 : 0) + (row >= 2 ? 1 : 0), lRow = (row) => (o.rose ? Math.min(3, row + 1) : row);+ const radius = (t) => R0 * Math.max(0.005, Math.sqrt(Math.max(0, 1 - t ** 2.4)) * (0.9 + 0.12 * Math.sin(Math.PI * Math.min(1, t * 1.8)))); // turn 13: closed at the top (a pinhole showed the sky)+ const bump = body(M, H, 0, radius, 8, 14, 0.12, R, 0.3);+ // turn 13 (the reviews of revision 15 saw hollow domes from above, h8): a dense pass of+ // clusters over the crown, rooted across it (not only round its rim) and pointing up+ for (let k = 0; k < Math.round(n * 0.35); k++) {+ const t = 0.62 + 0.36 * R(), th = R() * 2 * Math.PI, rr = radius(t) * Math.sqrt(R()), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = 1.05 + 0.45 * R(), dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R());+ const root = [rr * out[0], t * H - 0.04, rr * out[2]], tip = add(root, dir, L), flower = R() < bloom * 1.1;+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = flower ? 0.25 * bRow(3) + 0.006 : 0.756, v1 = v0 + 0.238;+ const ns = nrm([out[0] * 0.3, 1, out[2] * 0.3]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ for (let k = 0; k < n;) {+ const t = 0.04 + R() * 0.94, rad = radius(t);+ if (R() * R0 > rad + 0.5 * R0 * t) continue; // by area, the crown favoured (turn 13: it showed a dark hollow from above)+ k++;+ const th = R() * 2 * Math.PI, y = t * H, out = [Math.cos(th), 0, Math.sin(th)], r = rad * bump(th, t);+ const elev = 0.25 + R() * 0.55 + 0.7 * t * t, dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R()); // turn 13: smaller and more of them+ const root = [(r - 0.05) * out[0], y - 0.02, (r - 0.05) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), flower = t > 0.3 && R() < bloom * (0.6 + 0.6 * t);+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * (flower ? bRow(row) : lRow(row)) + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0] * (1 - 0.6 * t), 0.35 + 0.8 * t, out[2] * (1 - 0.6 * t)]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ return [['shrub', M.geo(), foliage(await shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 850, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 600, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.1, 0.85, 300, 3, 0.4), // turn 13: narrower, so it stays in the island planters+ 'shrub-b': () => shrub(0.62, 0.74, 230, 4, 0.45), // fills a square planter to its rim and spills a little (turn 13: counts held to rule 16's triangle reserve)+ // turn 14 (rule 9: pairs that vary in height and fullness): a pencil cypress, 8.8 : 1 and+ // bowing a little; a young broad cone, 3.5 : 1, widest low; an old-rose shrub, taller than+ // shrub-b and lighter in leaf+ 'cypress-slim': () => cypress(11.5, 1.3, 720, 7, 0.7, { peak: 0.42, taper: 0.62, lean: [0.24, -0.1] }),+ 'cypress-broad': () => cypress(6.2, 1.75, 560, 8, 0.45, { peak: 0.22, taper: 0.95 }),+ 'shrub-c': () => shrub(0.9, 0.78, 260, 9, 0.6, { rose: true }),+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(await PIECES['shrub-a'](), [-2, 0, 3]);+ place(await PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_9ecaccacab1641468887b8759dd9970f/r_5711672892fd428891bab109fb5f2c78/manifest.json b/packs/holodeck/sources/project/a_9ecaccacab1641468887b8759dd9970f/r_5711672892fd428891bab109fb5f2c78/manifest.jsonnew file mode 100644index 00000000..33c5aefd--- /dev/null+++ b/packs/holodeck/sources/project/a_9ecaccacab1641468887b8759dd9970f/r_5711672892fd428891bab109fb5f2c78/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_9ecaccacab1641468887b8759dd9970f",+ "revisionId": "r_5711672892fd428891bab109fb5f2c78",+ "parentRevision": "r_d6625c132b9343e39fafcb15e382e49d",+ "name": "deck-4",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:17:21.880Z",+ "description": "Stone kit deck 4 m, turn 16 atlas (fine warm-grey veins, banded travertine pits).",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:71ee59d021e2bf91924b47cc7538a8e7a0777d4c7d49b32935274d773364769b",+ "bytes": 340520+ },+ "source.kiln.js": {+ "sha256": "sha256:e09577d89a4388cf056b5ba9efa52bee3ef24f2936e57b9070c081355eae9fdb",+ "bytes": 31487+ },+ "preview.png": {+ "sha256": "sha256:c7c7e0830cf9366e4a806232ff30d5cebde8bc8fc3e0272a86d7129b860bb300",+ "bytes": 153568+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "71ee59d021e2bf91924b47cc7538a8e7a0777d4c7d49b32935274d773364769b",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2,+ -1,+ -2+ ],+ "max": [+ 2,+ 0,+ 2+ ],+ "size": [+ 4,+ 1,+ 4+ ],+ "center": [+ 0,+ -0.5,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -1,+ "offsetToGround": 1,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 592,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 592,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:71ee59d021e2bf91924b47cc7538a8e7a0777d4c7d49b32935274d773364769b",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_9ecaccacab1641468887b8759dd9970f/r_5711672892fd428891bab109fb5f2c78/source.kiln.js b/packs/holodeck/sources/project/a_9ecaccacab1641468887b8759dd9970f/r_5711672892fd428891bab109fb5f2c78/source.kiln.jsnew file mode 100644index 00000000..affdab1c--- /dev/null+++ b/packs/holodeck/sources/project/a_9ecaccacab1641468887b8759dd9970f/r_5711672892fd428891bab109fb5f2c78/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'deck-4';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_9f4e630b3c014b5a85b80b271b6a533c/r_d9957682b89b4c0289370544667ba823/manifest.json b/packs/holodeck/sources/project/a_9f4e630b3c014b5a85b80b271b6a533c/r_d9957682b89b4c0289370544667ba823/manifest.jsonnew file mode 100644index 00000000..051e2b67--- /dev/null+++ b/packs/holodeck/sources/project/a_9f4e630b3c014b5a85b80b271b6a533c/r_d9957682b89b4c0289370544667ba823/manifest.json@@ -0,0 +1,398 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_9f4e630b3c014b5a85b80b271b6a533c",+ "revisionId": "r_d9957682b89b4c0289370544667ba823",+ "parentRevision": "r_4a97697cd3c24886b3937882f593efe1",+ "name": "overflow-wide",+ "tags": [],+ "createdAt": "2026-10-25T09:58:37.288Z",+ "description": "Turn 15 (round 5): the weir's slot is a light shadowed recess instead of a near-black bar. The sheet is denser and brighter and stops at the pool surface, under a bright lip, with faint mist at its foot.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:5cc57f59320d62f219856f21b61ee1f34f4940e1c86420b553d8af972257744f",+ "bytes": 74552+ },+ "source.kiln.js": {+ "sha256": "sha256:e912cfe6d9e23619a03f3e04a015a437b0f5a497b0f63cd26aa97a895178a003",+ "bytes": 26825+ },+ "preview.png": {+ "sha256": "sha256:36a5e77f434eb2e1ffb640a7e805a0d28bf8dadb5e815d2fbd156ad4457b9e07",+ "bytes": 254555+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "5cc57f59320d62f219856f21b61ee1f34f4940e1c86420b553d8af972257744f",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2.567209482192993,+ -2.5446653366088867,+ -0.4348621964454651+ ],+ "max": [+ 2.0999999046325684,+ -0.17000000178813934,+ 1.6244289875030518+ ],+ "size": [+ 4.6672093868255615,+ 2.3746653348207474,+ 2.059291183948517+ ],+ "center": [+ -0.2336047887802124,+ -1.357332669198513,+ 0.5947833955287933+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -2.5446653366088867,+ "offsetToGround": 2.5446653366088867,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian water"+ },+ "renderMetrics": {+ "triangles": 80,+ "drawCalls": 4,+ "uniqueGeometries": 4,+ "uniqueMaterials": 4,+ "textureCount": 7,+ "transparentMaterials": 3,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "warn",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [+ {+ "code": "GEO_PART_SELF_INTERSECTION_UNMEASURED",+ "disposition": "observe",+ "dimension": "visualQuality",+ "profile": "geometry.selfIntersection",+ "message": "3 part-volume measurements were unavailable. 3 because a valid closed solid could not be measured (Not manifold): \"Mesh_overflow_weir\", \"Mesh_overflow_sheet\", \"Mesh_overflow_lip\". 4 overlapping part pairs include one of these parts and were not measured. These parts are not certified clear."+ }+ ],+ "metrics": {+ "partVolumeCoverage": "partial",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 4,+ "partVolumeCandidatePairs": 4,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 4,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 3+ }+ },+ "runtimeCost": {+ "status": "warn",+ "findings": [+ {+ "code": "MATERIAL_IMAGE_COUNT_BUDGET",+ "disposition": "warn",+ "dimension": "runtimeCost",+ "profile": "web.portable.v1.standard",+ "message": "7 images exceed the 4-image web.portable.v1/standard budget. Reuse approved resource IDs, remove unused images, or atlas compatible same-color-space slots; never atlas normal/data maps into an sRGB image.",+ "measurement": {+ "name": "imageCount",+ "actual": 7,+ "threshold": 4,+ "unit": "images"+ }+ },+ {+ "code": "MATERIAL_BLEND_AREA_BUDGET",+ "disposition": "warn",+ "dimension": "runtimeCost",+ "profile": "web.portable.v1.standard",+ "message": "Blended primitive surface area is 92.6% (31.434 of 33.934 square asset units); the budget is 15.0%. Largest BLEND materials by share of surface area: \"material-4\" 42.4%, \"material-2\" 39.3%, \"material-3\" 10.9%. Use MASK for binary cutouts such as foliage, reduce layered transparent surfaces, and reserve BLEND for genuinely translucent glass/effects.",+ "measurement": {+ "name": "blendedSurfaceAreaRatio",+ "actual": 0.926328264275584,+ "threshold": 0.15,+ "unit": "ratio"+ }+ }+ ],+ "metrics": {+ "instanceabilityGrade": "C",+ "instanceabilitySummary": "C (informational, not a QA verdict), set by 4 distinct materials (C at 4-6). Also: 3 transparent materials (lowers only A/B to C); 7 textures (over 4 lowers only A/B to C); 4 geometries; 4 draw calls.",+ "uniqueGeometries": 4,+ "uniqueMaterials": 4,+ "meshNodes": 4,+ "meshInstances": 4,+ "drawCalls": 4,+ "textureCount": 7,+ "skinned": false,+ "transparentMaterials": 3,+ "triangles": 80,+ "materialCount": 4,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 3,+ "singleSidedMaterials": 2,+ "doubleSidedMaterials": 2,+ "texturedMaterials": 4,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 7,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1704000,+ "estimatedGpuBytesWithMipmaps": 2272004,+ "blendedSurfaceAreaRatio": 0.926328264275584+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "notEvaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:5cc57f59320d62f219856f21b61ee1f34f4940e1c86420b553d8af972257744f",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "dark"+ }+}diff --git a/packs/holodeck/sources/project/a_9f4e630b3c014b5a85b80b271b6a533c/r_d9957682b89b4c0289370544667ba823/source.kiln.js b/packs/holodeck/sources/project/a_9f4e630b3c014b5a85b80b271b6a533c/r_d9957682b89b4c0289370544667ba823/source.kiln.jsnew file mode 100644index 00000000..e4bf6cd2--- /dev/null+++ b/packs/holodeck/sources/project/a_9f4e630b3c014b5a85b80b271b6a533c/r_d9957682b89b4c0289370544667ba823/source.kiln.js@@ -0,0 +1,370 @@+// Meridian Sanctuary water (plan.md sections 4.3 and 4.6, assets 27-31).+// One program builds every water piece; PIECE selects which one this revision is.+// Moving sheets are alpha-blended, double-sided and bound to Holodeck's asset.flow by their+// Mesh_<name> node: every map scrolls along V at the asset's speed. V is laid out as the+// water's travel time (seconds, at flow speed [0, 1]), so the pattern moves with the water:+// slowly in a spout or over a lip, fast and stretched as it falls. Froth fans at the foot of a+// fall use V as distance from the impact, so their bubbles drift outward. Mist cards are a+// separate, static node.+const meta = { name: 'Meridian water' };+const PIECE = 'overflow-wide';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const G = 9.81;++// ---------------------------------------------------------------- textures+// Falling water, 512 x 256. The streak region (all of it, or columns 0-383 when the piece has+// froth) holds a faint white base, streaks of strongly varying alpha (mostly faint, a few+// bright bands of white water) in clusters with open gaps, soft patches and drawn-out+// droplets. Columns 384-511 hold froth: overlapping bubbles. Streaks are full-height lines and+// stamps stay inside their region, so the image tiles along V as it scrolls. The emissive twin+// repeats the strokes over dark teal: a little self-light for water seen against the sun.+const FROTH_U = 0.75; // where the froth region starts, as a share of the width+function sheetTextures(seed, o) {+ const R = rng(seed), Wd = o.froth ? 384 : 512, strokes = [];+ let x = 3 + R() * 12;+ for (let i = 0; i < o.lines; i++) {+ const bright = R() < o.bright;+ strokes.push({ x: Math.round(x), w: bright ? 5 + Math.floor(R() * 9) : 1 + Math.floor(R() * R() * 4),+ a: bright ? 150 + Math.floor(R() * 80) : 30 + Math.floor(R() * R() * 190) });+ x += R() < 0.3 ? 1 + R() * 4 : 4 + R() * ((2 * Wd) / o.lines);+ if (x > Wd - 6) x = 3 + R() * 60;+ }+ const ops = (rgb) => {+ const list = [{ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 40, height: 110 }, rgba: [...rgb, 34], count: 14, seed: seed + 3,+ area: { x: 1, y: 1, width: Wd - 42, height: 144 } }];+ for (const s of strokes) list.push({ op: 'paint', shape: { kind: 'line', from: [s.x, -4], to: [s.x, 260], width: s.w }, rgba: [...rgb, s.a] });+ list.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 3, height: 22 }, rgba: [...rgb, 150], count: o.drops, seed: seed + 1,+ area: { x: 1, y: 1, width: Wd - 4, height: 231 } });+ if (o.froth) {+ for (const [w, h, a, n, k] of [[18, 14, 120, 40, 4], [10, 8, 170, 60, 5], [5, 4, 210, 30, 6]]) {+ list.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: w, height: h }, rgba: [...rgb, a], count: n, seed: seed + 10 * k,+ area: { x: 386, y: 1, width: 124 - w, height: 254 - h } });+ }+ }+ return list;+ };+ const albedo = proceduralTexture({ schemaVersion: 3, width: 512, height: 256, usage: 'albedo', background: [...o.tint, o.base], operations: ops([248, 253, 253]) });+ const emissive = proceduralTexture({ schemaVersion: 3, width: 512, height: 256, usage: 'emissive', background: [36, 48, 52, 255], operations: ops([224, 240, 242]) });+ // height for the normal map: fine vertical ridges, so the sheet catches long specular lines+ const height = proceduralTexture({ schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'stripes', colorA: 0x707070, colorB: 0x909090, count: 22, angleDeg: 0 },+ { op: 'noise', colorA: 0x606060, colorB: 0xa0a0a0, scale: 8, octaves: 3, seed, blend: 'overlay', opacity: 0.5 },+ ] });+ return { albedo, emissive, normal: normalMapFromHeight(height, { strength: o.relief }) };+}+function sheetMaterial(seed, o) {+ const t = sheetTextures(seed, o);+ return pbrMaterial({ albedo: t.albedo, normal: t.normal, emissive: t.emissive, emissiveIntensity: o.glow,+ roughness: 0.08, metalness: 0, alphaMode: 'blend', doubleSided: true });+}+// Mist and spray: a soft white blob, built up from stacked faint ellipses and cloudy puffs, with+// a near-zero (not zero) alpha floor so filtering never darkens its edge.+function mistMaterial(seed, peak) {+ const ops = [];+ for (let k = 0; k < 18; k++) {+ const s = 126 - k * 6;+ ops.push({ op: 'paint', shape: { kind: 'ellipse', x: 64 - s / 2, y: Math.round(64 - s / 3.2), width: s, height: Math.round(s / 1.6) }, rgba: [255, 255, 255, peak] });+ }+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 30, height: 24 }, rgba: [255, 255, 255, 14], count: 40, seed, area: { x: 20, y: 24, width: 78, height: 70 } });+ const albedo = proceduralTexture({ schemaVersion: 3, width: 128, height: 128, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ // Single-sided (one draw); card() emits every card both ways round instead.+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.3, roughness: 1, metalness: 0, alphaMode: 'blend', doubleSided: false });+}+// Foam lying on the water round a fall's foot (turn 10: the reviews of revision 12 read the+// standing spray cards as cotton-ball sprites on the wall, cut flat at the waterline). Rows run+// out from the impact: a dense bubbly band near it thinning to nothing at the rim, with one faint+// ripple ring, so the foam has a soft edge; columns tile round the ring.+function foamMaterial(seed) {+ // turn 15 (round 5: a dark ellipse at each fall's foot): denser and self-lit, so the ring reads+ // white against the mirrored water round it instead of a duller ring in it+ const W = 256, H = 128, ops = [];+ for (const [y0, h, a] of [[0, 18, 196], [18, 22, 132], [40, 26, 66], [66, 30, 22]]) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: y0, width: W, height: h }, rgba: [252, 254, 254, a] });+ for (const [y, h, w, bh, a, n, k] of [[1, 44, 9, 6, 200, 70, 1], [10, 60, 6, 4, 170, 60, 2], [30, 66, 4, 3, 130, 40, 3]]) {+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: w, height: bh }, rgba: [255, 255, 255, a], count: n, seed: seed + k, area: { x: 1, y, width: W - w - 2, height: h } });+ }+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, 90], to: [W + 4, 90], width: 2 }, rgba: [255, 255, 255, 34] });+ const albedo = proceduralTexture({ schemaVersion: 3, width: W, height: H, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.7, roughness: 0.5, metalness: 0, alphaMode: 'blend', doubleSided: false });+}+// turn 15 (round 5: the falls read as strings, with no bright lip): white water where a sheet+// curls over its edge, densest at the top and thinning into the sheet; it is not a flow node, so+// the curl holds still while the sheet below it runs.+function lipMaterial(seed) {+ const W = 256, H = 64, R = rng(seed), ops = [];+ for (const [y0, h, a] of [[0, 10, 236], [10, 12, 196], [22, 14, 132], [36, 14, 70], [50, 14, 20]]) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: y0, width: W, height: h }, rgba: [252, 254, 254, a] });+ for (let i = 0; i < 26; i++) {+ const x = Math.floor(R() * W);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [x, -2], to: [x, Math.round(40 + R() * 24)], width: 2 + Math.floor(R() * 5) }, rgba: [255, 255, 255, 120 + Math.floor(R() * 100)] });+ }+ const albedo = proceduralTexture({ schemaVersion: 3, width: W, height: H, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.6, roughness: 0.3, metalness: 0, alphaMode: 'blend', doubleSided: true });+}+// Still basin water: azure turquoise (blue at least green) of medium alpha with slow ripples+// (the normal map drifts), and a faint turquoise emission so it stays turquoise in shade.+function basinMaterial() {+ const albedo = proceduralTexture({ schemaVersion: 3, width: 256, height: 256, usage: 'albedo', background: [0, 0, 0, 0], operations: [+ { op: 'legacy-v2', alpha: 168, spec: { schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x1d8cb0, colorB: 0x36b0d2, scale: 3, octaves: 3, seed: 71 }] } },+ ] });+ const height = proceduralTexture({ schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x585858, colorB: 0xa8a8a8, scale: 6, octaves: 4, seed: 72 }] });+ const glow = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0x2a9cbc }] });+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 0.9 }), emissive: glow, emissiveIntensity: 0.3, roughness: 0.03, metalness: 0, alphaMode: 'blend' });+}+// The overflow weir: white marble with soft veins, and a dark strip (bottom rows) for the+// slot the water leaves from.+function weirMaterial() {+ const R = rng(91), ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xe9e6e1, colorB: 0xfcfbf9, scale: 3, octaves: 4, seed: 91 }] } }];+ for (let i = 0; i < 4; i++) {+ const y0 = Math.floor(R() * 200), y1 = y0 + Math.floor((R() - 0.5) * 60);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y0], to: [260, y1], width: 1 }, rgba: [168, 161, 152, 255], opacity: 110 });+ }+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 232, width: 256, height: 24 }, rgba: [168, 162, 152, 255] }); // turn 15: a shadowed recess (it read as a near-black bar)+ return pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 3, width: 256, height: 256, usage: 'albedo', operations: ops }), roughness: 0.25, metalness: 0 });+}++// ---------------------------------------------------------------- geometry+// Mesh accumulator: several sweeps, fans and cards can share one node.+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.quad = (a, b, c, d, n, uv) => { // a b c d counterclockwise seen from n's side+ const base = M.P.length / 3;+ for (const [i, v] of [a, b, c, d].entries()) { M.P.push(...v); M.N.push(...n); M.T.push(...uv[i]); }+ M.I.push(base, base + 1, base + 2, base, base + 2, base + 3);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A sheet swept along one axis from a cross-section profile of [p, y, t] points (p across the+// face, y up, t the water's travel time), into mesh M. axis 'x': p is local z (falls on a +Z+// face); axis 'z': p is local x (spills off a +X edge). u runs from u0 at uPerMetre;+// widthAt(t, i) narrows or roughens the sweep about its middle without changing u.+function sweep(M, profile, axis, a0, a1, u0, uPerMetre, widthAt = () => 1) {+ const mid = (a0 + a1) / 2, base = M.P.length / 3;+ profile.forEach(([p, y, t], i) => {+ const prev = profile[Math.max(0, i - 1)], next = profile[Math.min(profile.length - 1, i + 1)];+ const dp = next[0] - prev[0], dy = next[1] - prev[1], l = Math.hypot(dp, dy) || 1, np = -dy / l, ny = dp / l; // outward/up+ for (const [k, a] of [a0, a1].entries()) {+ const w = mid + (a - mid) * widthAt(t, i, k);+ M.P.push(...(axis === 'x' ? [w, y, p] : [p, y, w]));+ M.N.push(...(axis === 'x' ? [0, ny, np] : [np, ny, 0]));+ M.T.push(u0 + (a - a0) * uPerMetre, t);+ }+ });+ const at = (k) => M.P.slice(3 * k, 3 * k + 3);+ for (let i = 0; i + 1 < profile.length; i++) {+ const v00 = base + 2 * i, v01 = v00 + 1, v10 = v00 + 2, v11 = v00 + 3;+ // wind each quad so its geometric normal agrees with the supplied normal+ const e1 = at(v10).map((v, j) => v - at(v00)[j]), e2 = at(v11).map((v, j) => v - at(v00)[j]);+ const g = [e1[1] * e2[2] - e1[2] * e2[1], e1[2] * e2[0] - e1[0] * e2[2], e1[0] * e2[1] - e1[1] * e2[0]];+ const n = M.N.slice(3 * v00, 3 * v00 + 3);+ if (g[0] * n[0] + g[1] * n[1] + g[2] * n[2] >= 0) M.I.push(v00, v10, v11, v00, v11, v01); else M.I.push(v00, v11, v10, v00, v01, v11);+ }+}+// turn 15: the lip band, the profile's channel and curl (to time tEnd) swept again a few+// millimetres proud of the sheet, its v running 0 - 1 down the band.+function lipBand(M, profile, axis, a0, a1, tEnd, lift = 0.006) {+ const base = M.P.length / 3, pts = profile.filter(([, , t]) => t <= tEnd);+ sweep(M, pts, axis, a0, a1, 0, 1 / (a1 - a0));+ for (let k = base; k < M.P.length / 3; k++) {+ for (let j = 0; j < 3; j++) M.P[3 * k + j] += lift * M.N[3 * k + j];+ M.T[2 * k + 1] /= tEnd;+ }+}+// Low mist where a fall meets the water: wide, faint cards standing just clear of the face,+// centred well above the surface so none is cut by it.+function mistAt(M, c, w, h, n, R) {+ for (let i = 0; i < n; i++) card(M, [c[0] + (R() - 0.5) * w * 0.4, c[1] + h * (0.45 + 0.1 * R()), c[2] + 0.1 + 0.3 * R()], w * (0.8 + 0.4 * R()), h, (R() - 0.5) * 1.1);+}+// Water that runs along a channel at speed v, then leaves its edge at (p0, y0) at speed v0 and+// falls ballistically to yEnd: [p, y, t] points with t from 0 at the channel's start.+function trajectory(channel, v, p0, y0, yEnd, steps, v0 = v) {+ const pts = channel.map(([p, y]) => [p, y, (p - channel[0][0]) / v]), t0 = pts[pts.length - 1][2];+ const tEnd = Math.sqrt((2 * (y0 - yEnd)) / G);+ for (let k = 1; k <= steps; k++) {+ const tau = tEnd * (k / steps) ** 1.4; // denser near the lip, where the sheet curls+ pts.push([p0 + v0 * tau, y0 - 0.5 * G * tau * tau, t0 + tau]);+ }+ return pts;+}+// A flat froth fan on the water at height y around an impact at (0, cz), spread rx by rz in+// front of it (+Z), from radius r0 to 1: froth-region u across the fan, v = distance / 0.3 m,+// so flow speed [0, 1] carries the bubbles outward at 0.3 m/s.+function frothFan(M, cz, y, rx, rz, r0 = 0.12) {+ const rings = [r0, 0.3, 0.5, 0.72, 1.0], fan = 12;+ for (let i = 0; i + 1 < rings.length; i++) for (let j = 0; j < fan; j++) {+ const pt = (r, k) => { const th = -Math.PI / 2 + (Math.PI * k) / fan; return [rx * r * Math.sin(th), y, cz + rz * r * Math.cos(th)]; };+ const uv = (r, k) => [FROTH_U + ((1 - FROTH_U) * k) / fan, ((r - r0) * Math.max(rx, rz)) / 0.3];+ const [ra, rb] = [rings[i], rings[i + 1]];+ M.quad(pt(ra, j), pt(ra, j + 1), pt(rb, j + 1), pt(rb, j), [0, 1, 0], [uv(ra, j), uv(ra, j + 1), uv(rb, j + 1), uv(rb, j)].map(([u, v]) => [u, v]));+ }+}+// A flat foam ring on the water at height y round an impact at (0, cz), facing up: from radius+// r0 to 1 of rx by rz, over angles within a of straight out (+Z), so it wraps a little toward the+// wall; u tiles round it, v runs from the inner edge (0) to the outer (1), where the foam fades.+function foamRing(M, cz, y, rx, rz, r0, a = 1.95) {+ const rings = [r0, r0 + (1 - r0) * 0.3, r0 + (1 - r0) * 0.62, 1.0], fan = 14;+ for (let i = 0; i + 1 < rings.length; i++) for (let j = 0; j < fan; j++) {+ const pt = (r, k) => { const th = -a + (2 * a * k) / fan; return [rx * r * Math.sin(th), y, cz + rz * r * Math.cos(th)]; };+ const uv = (r, k) => [(2 * k) / fan, (r - r0) / (1 - r0)];+ const [ra, rb] = [rings[i], rings[i + 1]];+ M.quad(pt(ra, j), pt(ra, j + 1), pt(rb, j + 1), pt(rb, j), [0, 1, 0], [uv(ra, j), uv(ra, j + 1), uv(rb, j + 1), uv(rb, j)]);+ }+}+// A vertical card of width w and height h centred at c, facing yaw (radians about +Y from +Z),+// emitted both ways round so a single-sided material shows it from either side.+function card(M, c, w, h, yaw) {+ const ax = [Math.cos(yaw), 0, -Math.sin(yaw)], n = [Math.sin(yaw), 0, Math.cos(yaw)];+ const p = (s, t) => [c[0] + ax[0] * s * w / 2, c[1] + t * h / 2, c[2] + ax[2] * s * w / 2];+ M.quad(p(-1, -1), p(1, -1), p(1, 1), p(-1, 1), n, [[0, 1], [1, 1], [1, 0], [0, 0]]);+ M.quad(p(-1, 1), p(1, 1), p(1, -1), p(-1, -1), n.map((v) => -v), [[0, 0], [1, 0], [1, 1], [0, 1]]);+}+// A box with per-face UVs mapped into a texture window [u0, v0, u1, v1].+function boxInto(B, lo, hi, win, skip = []) {+ const faces = [+ ['px', [[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]]]],+ ['nx', [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]]]],+ ['py', [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]]]],+ ['ny', [[lo[0], lo[1], lo[2]], [hi[0], lo[1], lo[2]], [hi[0], lo[1], hi[2]], [lo[0], lo[1], hi[2]]]],+ ['pz', [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]]]],+ ['nz', [[hi[0], lo[1], lo[2]], [lo[0], lo[1], lo[2]], [lo[0], hi[1], lo[2]], [hi[0], hi[1], lo[2]]]],+ ];+ const nrmOf = { px: [1, 0, 0], nx: [-1, 0, 0], py: [0, 1, 0], ny: [0, -1, 0], pz: [0, 0, 1], nz: [0, 0, -1] };+ for (const [f, q] of faces) {+ if (skip.includes(f)) continue;+ const [u0, v0, u1, v1] = win;+ B.quad(q[0], q[1], q[2], q[3], nrmOf[f], [[u0, v1], [u1, v1], [u1, v0], [u0, v0]]);+ }+}++// ---------------------------------------------------------------- pieces+// Falls from a cascade tower's spout, in the tower's frame: spout floor 4.2 m, its back at+// z 1.65 and its lip on the face at z 2.0; the pool or basin surface is 0.9 m above the+// tower's base. A bright white ribbon runs 2.5 cm deep along the spout at 0.5 m/s, falls+// 3.4 m and lands about 0.4 m out from the face, where bubbling froth drifts out from the+// impact and a ring of foam lies on the water round it (turn 10: no standing spray cards).+// turn 15 (round 5: strings, a pale band under the waterline and a dark ring at the foot): the+// sheet ends at the basin surface, denser and brighter, under a bright lip; the foam ring is+// self-lit, and faint mist stands low in front of the impact.+const FALLS = { half: 0.78, profile: () => trajectory([[1.68, 4.225], [1.84, 4.225], [2.0, 4.225]], 0.5, 2.0, 4.225, 0.905, 12),+ widthAt: (t) => (t <= 0.64 ? 1 : 1 - 0.07 * Math.sin(Math.min(1, (t - 0.64) / 0.83) * Math.PI * 0.8)) };+function fallsPiece() {+ const M = makeMesh(), profile = FALLS.profile(), cz = profile[profile.length - 1][0];+ sweep(M, profile, 'x', -FALLS.half, FALLS.half, 0, FROTH_U / (2 * FALLS.half), FALLS.widthAt);+ frothFan(M, cz, 0.925, 0.55, 0.45);+ const F = makeMesh(), L = makeMesh(), S = makeMesh();+ foamRing(F, cz, 0.93, 1.5, 1.25, 0.367); // from the froth's edge (0.55 by 0.45 m) to 1.5 by 1.25 m+ lipBand(L, profile, 'x', -FALLS.half, FALLS.half, 0.94);+ mistAt(S, [0, 0.9, cz], 2.6, 1.0, 2, rng(14));+ return [['falls_sheet', M.geo(), sheetMaterial(11, { tint: [236, 248, 250], base: 104, lines: 40, bright: 0.3, drops: 110, relief: 2.2, glow: 0.75, froth: true })],+ ['falls_lip', L.geo(), lipMaterial(15)], ['falls_foam', F.geo(), foamMaterial(12)], ['falls_mist', S.geo(), mistMaterial(13, 6)]];+}+// Falls from a rim tower's cornice into the cloud sea (turn 10, rule 7: water spilling into the+// cloud sea in view of the arrival; the pools' own rim spills fall below the lip, out of sight+// from eye height), in the cornice's frame: its face is z = 0 (+Z outward) and its top y = 0. A+// bright ribbon 2.2 m wide runs 3 cm deep over the cornice at 0.6 m/s and leaves its edge in+// tongues of different widths that arc 2 - 4 m out and narrow as they fall 100 - 108 m.+function towerFallsPiece() {+ const M = makeMesh(), R = rng(53), half = 1.1, L = makeMesh(), head = trajectory([[-0.3, 0.03], [-0.12, 0.03], [0, 0.03]], 0.6, 0, 0.03, -0.35, 4);+ sweep(M, head, 'x', -half, half, 0, 1 / (2 * half));+ lipBand(L, head, 'x', -half, half, 0.62); // turn 15: a bright lip over the cornice+ for (let x = -half; x < half - 0.1;) {+ const w = Math.min(0.24 + R() * 0.42, half - x), v0 = 0.5 + R() * 0.4, yEnd = -100 - R() * 8, jitter = rng(Math.floor(R() * 1e6));+ const wob = Array.from({ length: 64 }, () => 0.84 + 0.32 * jitter());+ const profile = trajectory([[0, 0.03]], 0.6, 0, 0.03, yEnd, 18, v0).map(([p, y, t]) => [p, y, t + 0.5]);+ const narrow = 0.35 + 0.3 * R();+ sweep(M, profile, 'x', x, x + w, R(), 1 / 2, (t, i, k) => (1 - (1 - narrow) * Math.min(1, (t - 0.5) / 2.5)) * (i > 1 ? wob[2 * i + k] : 1));+ x += w + 0.04 + R() * 0.12;+ }+ return [['falls_sheet', M.geo(), sheetMaterial(53, { tint: [236, 248, 250], base: 96, lines: 50, bright: 0.34, drops: 130, relief: 2.0, glow: 0.7 })],+ ['falls_lip', L.geo(), lipMaterial(54)]];+}+// Overflow weir on a terrace wall, in the wall's frame: the face is z = 0 (+Z toward the pool)+// and y = 0 is the terrace top. A marble ledge 4.2 m wide projects 0.2 m at y -0.36..-0.26+// under a dark slot; the sheet slides over it at 0.4 m/s and falls 2.3 m to 5 cm under the+// pool surface (y -2.5), with a froth band where it lands.+function overflowPiece() {+ const B = makeMesh(), marble = [0.02, 0.02, 0.98, 0.86], dark = [0.02, 0.92, 0.98, 0.98];+ boxInto(B, [-2.1, -0.36, 0], [2.1, -0.26, 0.2], marble, ['nz']);+ boxInto(B, [-2.0, -0.26, 0], [2.0, -0.17, 0.004], dark, ['nz', 'ny', 'py', 'px', 'nx']);+ // turn 15: the sheet stops at the pool surface (it showed through the water as a pale band),+ // under a bright lip, with faint mist at its foot+ const M = makeMesh(), profile = trajectory([[0.006, -0.24], [0.1, -0.243], [0.2, -0.245]], 0.4, 0.2, -0.245, -2.49, 12);+ sweep(M, profile, 'x', -1.95, 1.95, 0, FROTH_U / 3.9);+ const L = makeMesh(), S = makeMesh();+ lipBand(L, profile, 'x', -1.95, 1.95, 0.9);+ mistAt(S, [0, -2.5, profile[profile.length - 1][0]], 3.6, 0.9, 2, rng(24));+ for (let j = 0; j < 6; j++) { // froth band on the pool, drifting outward+ const xa = -1.95 + 0.65 * j, xb = xa + 0.65, y = -2.475, ua = FROTH_U + ((1 - FROTH_U) * j) / 6, ub = FROTH_U + ((1 - FROTH_U) * (j + 1)) / 6;+ M.quad([xa, y, 0.3], [xb, y, 0.3], [xb, y, 1.25], [xa, y, 1.25], [0, 1, 0], [[ua, 0], [ub, 0], [ub, 0.95 / 0.3], [ua, 0.95 / 0.3]]);+ }+ return [['overflow_weir', B.geo(), weirMaterial()],+ ['overflow_sheet', M.geo(), sheetMaterial(23, { tint: [236, 248, 250], base: 96, lines: 52, bright: 0.3, drops: 100, relief: 1.6, glow: 0.7, froth: true })],+ ['overflow_lip', L.geo(), lipMaterial(25)], ['overflow_mist', S.geo(), mistMaterial(26, 6)]];+}+// Rim spill over an infinity lip, in the lip's frame: x = 0 is the pool's water edge (+X+// outward), y = 0 the water level, z along the lip (±11.95). Water slides 1 cm deep over the+// 0.25 m coping at 0.3 m/s along the whole lip, then breaks into ragged ribbons of different+// widths, arcs and lengths that narrow as they fall 22 - 30 m into the cloud deck; mist hangs+// where they meet the deck.+const SPILL = { half: 11.95 };+function spillPiece() {+ const M = makeMesh(), R = rng(37), lip = [[-0.02, -0.004], [0.1, -0.008], [0.25, -0.012]], head = trajectory(lip, 0.3, 0.25, -0.012, -0.3, 4);+ sweep(M, head, 'z', -SPILL.half, SPILL.half, 0, 1 / 3);+ const L = makeMesh();+ lipBand(L, head, 'z', -SPILL.half, SPILL.half, 1.2); // turn 15: a bright lip along the whole edge+ for (let z = -SPILL.half + R() * 0.3; z < SPILL.half - 0.3;) {+ // turn 15 (round 5: a striped wall of strings): mostly broad sheets 1.4 - 3.6 m wide with+ // tight gaps, a few narrow tongues, each thinning as it falls; arcs from 0.16 to 0.5 m/s+ const w = Math.min(R() < 0.15 ? 0.4 + R() * 0.5 : 1.4 + R() * 2.2, SPILL.half - z), v0 = 0.16 + R() * 0.34;+ const yEnd = -92 - R() * 12, seed = Math.floor(R() * 1e6), jitter = rng(seed); // turn 8: into the deck, now 80 m down+ const wob = Array.from({ length: 64 }, () => 0.82 + 0.36 * jitter());+ const profile = trajectory([[0.25, -0.012]], 0.3, 0.25, -0.012, yEnd, 16, v0).map(([p, y, t]) => [p, y, t + 0.9]);+ const narrow = 0.3 + 0.35 * R(); // how much of its width each tongue keeps at the bottom+ sweep(M, profile, 'z', z, z + w, R(), 1 / 3, (t, i, k) => (1 - (1 - narrow) * Math.min(1, (t - 0.9) / 2.2)) * (i > 1 ? wob[2 * i + k] : 1));+ z += w + (R() < 0.2 ? 0.3 + R() * 0.6 : 0.03 + R() * 0.15);+ }+ const S = makeMesh();+ // crossed mist cards, kept inside the lip's length (each reaches 3.44 m along z)+ for (const zc of [-8, -2.8, 2.6, 7.6]) for (const yaw of [Math.PI / 2 - 0.7, Math.PI / 2 + 0.7]) card(S, [1.0 + 1.2 * R(), -78 + R() * 2, zc + R() - 0.5], 9, 5.5, yaw);+ return [['spill_sheet', M.geo(), sheetMaterial(37, { tint: [236, 248, 250], base: 64, lines: 52, bright: 0.3, drops: 130, relief: 1.8, glow: 0.62 })],+ ['spill_lip', L.geo(), lipMaterial(39)], ['spill_mist', S.geo(), mistMaterial(38, 12)]];+}+// Still water over a T1 basin: 8 x 16 m at the surface (y = 0), 2 mm inside the basin walls,+// with ripple UVs at 2 m per repeat.+function basinPiece() {+ const hx = 3.998, hz = 7.998;+ const geo = meshGeo({ positions: [-hx, 0, hz, hx, 0, hz, hx, 0, -hz, -hx, 0, -hz], normals: [0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0],+ uvs: [0, 8, 4, 8, 4, 0, 0, 0], indices: [0, 1, 2, 0, 2, 3] });+ return [['basin_surface', geo, basinMaterial()]];+}++// Review only (never saved): the falls in front of a stand-in tower and pool, and the overflow+// on a stand-in wall over a stand-in pool.+function previewPieces() {+ const stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const pool = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0x2fa8b0 }] }), roughness: 0.1, metalness: 0 });+ const box = (lo, hi) => { const B = makeMesh(); boxInto(B, lo, hi, [0, 0, 1, 1]); return B.geo(); };+ const shift = (geo, d) => { geo.translate(d[0], d[1], d[2]); return geo; };+ const out = [['stand_tower', box([-2, 0, -2], [2, 6.4, 2]), stone], ['stand_pool', box([-6, 0, 2], [12, 0.9, 7]), pool]];+ for (const piece of fallsPiece()) out.push(piece);+ out.push(['stand_wall', box([4, -0.5, -2], [10, 3.4, 2]), stone]);+ for (const [name, geo, mat] of overflowPiece()) out.push([name, shift(geo, [7, 3.4, 2]), mat]);+ return out;+}++const PIECES = { 'falls-narrow': fallsPiece, 'overflow-wide': overflowPiece, 'rim-spill': spillPiece, 'basin-water': basinPiece, 'tower-falls': towerFallsPiece, 'preview-water': previewPieces };++async function build() {+ const root = createRoot(PIECE);+ for (const [name, geo, mat] of PIECES[PIECE]()) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_a107bf0519104ce9849cc823fca52a20/r_36354c34ee5946cd910255a4a8b3f606/manifest.json b/packs/holodeck/sources/project/a_a107bf0519104ce9849cc823fca52a20/r_36354c34ee5946cd910255a4a8b3f606/manifest.jsonnew file mode 100644index 00000000..9136e6bd--- /dev/null+++ b/packs/holodeck/sources/project/a_a107bf0519104ce9849cc823fca52a20/r_36354c34ee5946cd910255a4a8b3f606/manifest.json@@ -0,0 +1,367 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_a107bf0519104ce9849cc823fca52a20",+ "revisionId": "r_36354c34ee5946cd910255a4a8b3f606",+ "parentRevision": "r_ce273f6eb5e6434ab91aba8a4f8c48a3",+ "name": "cube-mirror-court",+ "tags": [+ "meridian-sanctuary",+ "mirror",+ "sky"+ ],+ "createdAt": "2026-10-25T15:09:27.600Z",+ "description": "The mirror cube under the court's reflection probe: true mirror faces with a 4 cm pale-gold bevel at roughness 0.25 (turn 16).",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:de76c91d812d79382063b892c77295ff5deef58b1b677eddfda98bc421e0f2e1",+ "bytes": 5244+ },+ "source.kiln.js": {+ "sha256": "sha256:a0e97376a24e2c50762181c1a042945706d003b99979f8e841132943b8231cbb",+ "bytes": 63624+ },+ "preview.png": {+ "sha256": "sha256:cfd0c95d2741ae9c0e88c14a274154136acefd274a864ea7e305d9ef07a985ae",+ "bytes": 20359+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "de76c91d812d79382063b892c77295ff5deef58b1b677eddfda98bc421e0f2e1",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.5,+ -0.5,+ -0.5+ ],+ "max": [+ 0.5,+ 0.5,+ 0.5+ ],+ "size": [+ 1,+ 1,+ 1+ ],+ "center": [+ 0,+ 0,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -0.5,+ "offsetToGround": 0.5,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 44,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 2,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 2,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 44,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 2,+ "maxImageDimension": 64,+ "decodedImageBytesRgba8": 32768,+ "estimatedGpuBytesWithMipmaps": 43692,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:de76c91d812d79382063b892c77295ff5deef58b1b677eddfda98bc421e0f2e1",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_a107bf0519104ce9849cc823fca52a20/r_36354c34ee5946cd910255a4a8b3f606/source.kiln.js b/packs/holodeck/sources/project/a_a107bf0519104ce9849cc823fca52a20/r_36354c34ee5946cd910255a4a8b3f606/source.kiln.jsnew file mode 100644index 00000000..e01a3639--- /dev/null+++ b/packs/holodeck/sources/project/a_a107bf0519104ce9849cc823fca52a20/r_36354c34ee5946cd910255a4a8b3f606/source.kiln.js@@ -0,0 +1,957 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'cube-mirror-court';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ for (let i = 0; i < 3; i++) {+ const x = -0.05 * q, y = ((i + 0.2 + R() * 0.6) * q) / 3, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 8 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [214, 203, 184, 255], opacity: 45 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 2.4 * s + 0.8, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [170, 152, 122, 255], opacity: 120 });+ }+ for (let i = 0; i < 6; i++) {+ const opacity = 50 + Math.floor(R() * 25);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 1.1 * s + 0.6, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [190, 176, 152, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe7d8c0), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed },+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area: { x: 0, y: 0, width: q, height: q } });+ pits(3, 3, [214, 199, 174, 255], 60);+ pits(6, 4, [210, 194, 167, 255], 60);+ pits(9, 7, [205, 188, 160, 255], 30);+ pits(14, 10, [212, 196, 170, 255], 10);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ const stops = [[1, [178, 114, 52]], [0.86, [200, 136, 66]], [0.74, [220, 160, 88]], [0.63, [236, 184, 112]], [0.52, [246, 202, 136]],+ [0.42, [252, 216, 158]], [0.32, [255, 226, 180]], [0.23, [255, 233, 197]], [0.14, [255, 237, 208]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [150, 92, 40], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2);+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'slot:pz'; // turn 9: the spout's back glows (it read as a black slit)+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 4.2 && y < 5.4 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0);+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_a28ecbc7dc134d758deefea5105e7845/r_32c14b58648b4b66b9f916ddd8d796ba/manifest.json b/packs/holodeck/sources/project/a_a28ecbc7dc134d758deefea5105e7845/r_32c14b58648b4b66b9f916ddd8d796ba/manifest.jsonnew file mode 100644index 00000000..892848b1--- /dev/null+++ b/packs/holodeck/sources/project/a_a28ecbc7dc134d758deefea5105e7845/r_32c14b58648b4b66b9f916ddd8d796ba/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_a28ecbc7dc134d758deefea5105e7845",+ "revisionId": "r_32c14b58648b4b66b9f916ddd8d796ba",+ "parentRevision": "r_b020b7d4ed704cb39ed5ca4ad55e35cc",+ "name": "coping-4",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:17:54.117Z",+ "description": "Stone kit pool coping 4 m with its brass lip 2 mm proud, turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:26647e19679146f84d7e9fcdeb9104f5273fcf7496b783b9b5de66252437c20c",+ "bytes": 299044+ },+ "source.kiln.js": {+ "sha256": "sha256:84f8a8c2a6ad51d8d1547080d8c06dd261893932fbab711a5948a627e6d9fb03",+ "bytes": 31489+ },+ "preview.png": {+ "sha256": "sha256:101e3571f1bfb1a93d086c67aa15cd74f95205570523aa981b3fcadd5fe688ee",+ "bytes": 80330+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "26647e19679146f84d7e9fcdeb9104f5273fcf7496b783b9b5de66252437c20c",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.20000000298023224,+ -1,+ -2+ ],+ "max": [+ 0.23999999463558197,+ 0.0020000000949949026,+ 2+ ],+ "size": [+ 0.4399999976158142,+ 1.002000000094995,+ 4+ ],+ "center": [+ 0.019999995827674866,+ -0.49899999995250255,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -1,+ "offsetToGround": 1,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 196,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 196,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:26647e19679146f84d7e9fcdeb9104f5273fcf7496b783b9b5de66252437c20c",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_a28ecbc7dc134d758deefea5105e7845/r_32c14b58648b4b66b9f916ddd8d796ba/source.kiln.js b/packs/holodeck/sources/project/a_a28ecbc7dc134d758deefea5105e7845/r_32c14b58648b4b66b9f916ddd8d796ba/source.kiln.jsnew file mode 100644index 00000000..3cfd8338--- /dev/null+++ b/packs/holodeck/sources/project/a_a28ecbc7dc134d758deefea5105e7845/r_32c14b58648b4b66b9f916ddd8d796ba/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'coping-4';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_aeeaca8105cf481c95589666b06d2828/r_f492f2ff386f42e98744b929aa38b228/manifest.json b/packs/holodeck/sources/project/a_aeeaca8105cf481c95589666b06d2828/r_f492f2ff386f42e98744b929aa38b228/manifest.jsonnew file mode 100644index 00000000..51472f43--- /dev/null+++ b/packs/holodeck/sources/project/a_aeeaca8105cf481c95589666b06d2828/r_f492f2ff386f42e98744b929aa38b228/manifest.json@@ -0,0 +1,402 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_aeeaca8105cf481c95589666b06d2828",+ "revisionId": "r_f492f2ff386f42e98744b929aa38b228",+ "parentRevision": "r_3a91e637f8ad457487faefa9fbe828a3",+ "name": "rim-spill",+ "tags": [+ "meridian-sanctuary",+ "water",+ "flow"+ ],+ "createdAt": "2026-10-25T15:08:52.455Z",+ "description": "Rim spill over an infinity lip: a bright lip along the whole 23.9 m edge, then six or seven ribbons 1 - 2.6 m wide with open 1 - 2.6 m gaps, whiter and more opaque, narrowing as they fall about 100 m into the cloud deck, mist cards at the deck (turn 16).",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:25b86da922bc5cbd0a45dad8bfb693d7d1aef882d4e577a2fdbec525066eb64c",+ "bytes": 67360+ },+ "source.kiln.js": {+ "sha256": "sha256:3a52621b6938554b20934a05e0684dce56ce0755786c8375571a2fb8ed86e7fd",+ "bytes": 26967+ },+ "preview.png": {+ "sha256": "sha256:9d214f18f24b0ded33809477226f9c83121ce03d40a90cb18f8f3b7ff6ab1879",+ "bytes": 59388+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "25b86da922bc5cbd0a45dad8bfb693d7d1aef882d4e577a2fdbec525066eb64c",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -1.7510017156600952,+ -103.19159698486328,+ -12.018757820129395+ ],+ "max": [+ 5.056397914886475,+ 0.001996669452637434,+ 11.949999809265137+ ],+ "size": [+ 6.80739963054657,+ 103.19359365431592,+ 23.96875762939453+ ],+ "center": [+ 1.6526980996131897,+ -51.59480015770532,+ -0.034379005432128906+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -103.19159698486328,+ "offsetToGround": 103.19159698486328,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian water"+ },+ "renderMetrics": {+ "triangles": 280,+ "drawCalls": 3,+ "uniqueGeometries": 3,+ "uniqueMaterials": 3,+ "textureCount": 6,+ "transparentMaterials": 3,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "warn",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [+ {+ "code": "GEO_PART_SELF_INTERSECTION_UNMEASURED",+ "disposition": "observe",+ "dimension": "visualQuality",+ "profile": "geometry.selfIntersection",+ "message": "2 part-volume measurements were unavailable. 2 because a valid closed solid could not be measured (Not manifold): \"Mesh_spill_sheet\", \"Mesh_spill_lip\". 2 overlapping part pairs include one of these parts and were not measured. These parts are not certified clear."+ }+ ],+ "metrics": {+ "partVolumeCoverage": "partial",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 3,+ "partVolumeCandidatePairs": 2,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 2,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 2+ }+ },+ "runtimeCost": {+ "status": "warn",+ "findings": [+ {+ "code": "MATERIAL_IMAGE_COUNT_BUDGET",+ "disposition": "warn",+ "dimension": "runtimeCost",+ "profile": "web.portable.v1.standard",+ "message": "6 images exceed the 4-image web.portable.v1/standard budget. Reuse approved resource IDs, remove unused images, or atlas compatible same-color-space slots; never atlas normal/data maps into an sRGB image.",+ "measurement": {+ "name": "imageCount",+ "actual": 6,+ "threshold": 4,+ "unit": "images"+ }+ },+ {+ "code": "MATERIAL_BLEND_AREA_BUDGET",+ "disposition": "warn",+ "dimension": "runtimeCost",+ "profile": "web.portable.v1.standard",+ "message": "Blended primitive surface area is 100.0% (1335.504 of 1335.504 square asset units); the budget is 15.0%. Largest BLEND materials by share of surface area: \"material-3\" 59.3%, \"material-1\" 39.7%, \"material-2\" 1.0%. Use MASK for binary cutouts such as foliage, reduce layered transparent surfaces, and reserve BLEND for genuinely translucent glass/effects.",+ "measurement": {+ "name": "blendedSurfaceAreaRatio",+ "actual": 1,+ "threshold": 0.15,+ "unit": "ratio"+ }+ }+ ],+ "metrics": {+ "instanceabilityGrade": "C",+ "instanceabilitySummary": "C (informational, not a QA verdict), set by 3 transparent materials (lowers A/B to C) and 6 textures (over 4 lowers A/B to C). Also: 3 distinct materials (B at 2-3); 3 geometries; 3 draw calls.",+ "uniqueGeometries": 3,+ "uniqueMaterials": 3,+ "meshNodes": 3,+ "meshInstances": 3,+ "drawCalls": 3,+ "textureCount": 6,+ "skinned": false,+ "transparentMaterials": 3,+ "triangles": 280,+ "materialCount": 3,+ "opaqueMaterials": 0,+ "maskedMaterials": 0,+ "blendedMaterials": 3,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 2,+ "texturedMaterials": 3,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 6,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1441856,+ "estimatedGpuBytesWithMipmaps": 1922478,+ "blendedSurfaceAreaRatio": 1+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "notEvaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:25b86da922bc5cbd0a45dad8bfb693d7d1aef882d4e577a2fdbec525066eb64c",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "dark"+ }+}diff --git a/packs/holodeck/sources/project/a_aeeaca8105cf481c95589666b06d2828/r_f492f2ff386f42e98744b929aa38b228/source.kiln.js b/packs/holodeck/sources/project/a_aeeaca8105cf481c95589666b06d2828/r_f492f2ff386f42e98744b929aa38b228/source.kiln.jsnew file mode 100644index 00000000..90bc6d22--- /dev/null+++ b/packs/holodeck/sources/project/a_aeeaca8105cf481c95589666b06d2828/r_f492f2ff386f42e98744b929aa38b228/source.kiln.js@@ -0,0 +1,372 @@+// Meridian Sanctuary water (plan.md sections 4.3 and 4.6, assets 27-31).+// One program builds every water piece; PIECE selects which one this revision is.+// Moving sheets are alpha-blended, double-sided and bound to Holodeck's asset.flow by their+// Mesh_<name> node: every map scrolls along V at the asset's speed. V is laid out as the+// water's travel time (seconds, at flow speed [0, 1]), so the pattern moves with the water:+// slowly in a spout or over a lip, fast and stretched as it falls. Froth fans at the foot of a+// fall use V as distance from the impact, so their bubbles drift outward. Mist cards are a+// separate, static node.+const meta = { name: 'Meridian water' };+const PIECE = 'rim-spill';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const G = 9.81;++// ---------------------------------------------------------------- textures+// Falling water, 512 x 256. The streak region (all of it, or columns 0-383 when the piece has+// froth) holds a faint white base, streaks of strongly varying alpha (mostly faint, a few+// bright bands of white water) in clusters with open gaps, soft patches and drawn-out+// droplets. Columns 384-511 hold froth: overlapping bubbles. Streaks are full-height lines and+// stamps stay inside their region, so the image tiles along V as it scrolls. The emissive twin+// repeats the strokes over dark teal: a little self-light for water seen against the sun.+const FROTH_U = 0.75; // where the froth region starts, as a share of the width+function sheetTextures(seed, o) {+ const R = rng(seed), Wd = o.froth ? 384 : 512, strokes = [];+ let x = 3 + R() * 12;+ for (let i = 0; i < o.lines; i++) {+ const bright = R() < o.bright;+ strokes.push({ x: Math.round(x), w: bright ? 5 + Math.floor(R() * 9) : 1 + Math.floor(R() * R() * 4),+ a: bright ? 150 + Math.floor(R() * 80) : 30 + Math.floor(R() * R() * 190) });+ x += R() < 0.3 ? 1 + R() * 4 : 4 + R() * ((2 * Wd) / o.lines);+ if (x > Wd - 6) x = 3 + R() * 60;+ }+ const ops = (rgb) => {+ const list = [{ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 40, height: 110 }, rgba: [...rgb, 34], count: 14, seed: seed + 3,+ area: { x: 1, y: 1, width: Wd - 42, height: 144 } }];+ for (const s of strokes) list.push({ op: 'paint', shape: { kind: 'line', from: [s.x, -4], to: [s.x, 260], width: s.w }, rgba: [...rgb, s.a] });+ list.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 3, height: 22 }, rgba: [...rgb, 150], count: o.drops, seed: seed + 1,+ area: { x: 1, y: 1, width: Wd - 4, height: 231 } });+ if (o.froth) {+ for (const [w, h, a, n, k] of [[18, 14, 120, 40, 4], [10, 8, 170, 60, 5], [5, 4, 210, 30, 6]]) {+ list.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: w, height: h }, rgba: [...rgb, a], count: n, seed: seed + 10 * k,+ area: { x: 386, y: 1, width: 124 - w, height: 254 - h } });+ }+ }+ return list;+ };+ const albedo = proceduralTexture({ schemaVersion: 3, width: 512, height: 256, usage: 'albedo', background: [...o.tint, o.base], operations: ops([248, 253, 253]) });+ const emissive = proceduralTexture({ schemaVersion: 3, width: 512, height: 256, usage: 'emissive', background: [36, 48, 52, 255], operations: ops([224, 240, 242]) });+ // height for the normal map: fine vertical ridges, so the sheet catches long specular lines+ const height = proceduralTexture({ schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'stripes', colorA: 0x707070, colorB: 0x909090, count: 22, angleDeg: 0 },+ { op: 'noise', colorA: 0x606060, colorB: 0xa0a0a0, scale: 8, octaves: 3, seed, blend: 'overlay', opacity: 0.5 },+ ] });+ return { albedo, emissive, normal: normalMapFromHeight(height, { strength: o.relief }) };+}+function sheetMaterial(seed, o) {+ const t = sheetTextures(seed, o);+ return pbrMaterial({ albedo: t.albedo, normal: t.normal, emissive: t.emissive, emissiveIntensity: o.glow,+ roughness: 0.08, metalness: 0, alphaMode: 'blend', doubleSided: true });+}+// Mist and spray: a soft white blob, built up from stacked faint ellipses and cloudy puffs, with+// a near-zero (not zero) alpha floor so filtering never darkens its edge.+function mistMaterial(seed, peak) {+ const ops = [];+ for (let k = 0; k < 18; k++) {+ const s = 126 - k * 6;+ ops.push({ op: 'paint', shape: { kind: 'ellipse', x: 64 - s / 2, y: Math.round(64 - s / 3.2), width: s, height: Math.round(s / 1.6) }, rgba: [255, 255, 255, peak] });+ }+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: 30, height: 24 }, rgba: [255, 255, 255, 14], count: 40, seed, area: { x: 20, y: 24, width: 78, height: 70 } });+ const albedo = proceduralTexture({ schemaVersion: 3, width: 128, height: 128, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ // Single-sided (one draw); card() emits every card both ways round instead.+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.3, roughness: 1, metalness: 0, alphaMode: 'blend', doubleSided: false });+}+// Foam lying on the water round a fall's foot (turn 10: the reviews of revision 12 read the+// standing spray cards as cotton-ball sprites on the wall, cut flat at the waterline). Rows run+// out from the impact: a dense bubbly band near it thinning to nothing at the rim, with one faint+// ripple ring, so the foam has a soft edge; columns tile round the ring.+function foamMaterial(seed) {+ // turn 15 (round 5: a dark ellipse at each fall's foot): denser and self-lit, so the ring reads+ // white against the mirrored water round it instead of a duller ring in it+ const W = 256, H = 128, ops = [];+ for (const [y0, h, a] of [[0, 18, 196], [18, 22, 132], [40, 26, 66], [66, 30, 22]]) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: y0, width: W, height: h }, rgba: [252, 254, 254, a] });+ for (const [y, h, w, bh, a, n, k] of [[1, 44, 9, 6, 200, 70, 1], [10, 60, 6, 4, 170, 60, 2], [30, 66, 4, 3, 130, 40, 3]]) {+ ops.push({ op: 'stamps', shape: { kind: 'ellipse', x: 0, y: 0, width: w, height: bh }, rgba: [255, 255, 255, a], count: n, seed: seed + k, area: { x: 1, y, width: W - w - 2, height: h } });+ }+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, 90], to: [W + 4, 90], width: 2 }, rgba: [255, 255, 255, 34] });+ const albedo = proceduralTexture({ schemaVersion: 3, width: W, height: H, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.7, roughness: 0.5, metalness: 0, alphaMode: 'blend', doubleSided: false });+}+// turn 15 (round 5: the falls read as strings, with no bright lip): white water where a sheet+// curls over its edge, densest at the top and thinning into the sheet; it is not a flow node, so+// the curl holds still while the sheet below it runs.+function lipMaterial(seed) {+ const W = 256, H = 64, R = rng(seed), ops = [];+ for (const [y0, h, a] of [[0, 10, 236], [10, 12, 196], [22, 14, 132], [36, 14, 70], [50, 14, 20]]) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: y0, width: W, height: h }, rgba: [252, 254, 254, a] });+ for (let i = 0; i < 26; i++) {+ const x = Math.floor(R() * W);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [x, -2], to: [x, Math.round(40 + R() * 24)], width: 2 + Math.floor(R() * 5) }, rgba: [255, 255, 255, 120 + Math.floor(R() * 100)] });+ }+ const albedo = proceduralTexture({ schemaVersion: 3, width: W, height: H, usage: 'albedo', background: [255, 255, 255, 2], operations: ops });+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0xffffff }] });+ return pbrMaterial({ albedo, emissive: white, emissiveIntensity: 0.6, roughness: 0.3, metalness: 0, alphaMode: 'blend', doubleSided: true });+}+// Still basin water: azure turquoise (blue at least green) of medium alpha with slow ripples+// (the normal map drifts), and a faint turquoise emission so it stays turquoise in shade.+function basinMaterial() {+ const albedo = proceduralTexture({ schemaVersion: 3, width: 256, height: 256, usage: 'albedo', background: [0, 0, 0, 0], operations: [+ { op: 'legacy-v2', alpha: 168, spec: { schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x1d8cb0, colorB: 0x36b0d2, scale: 3, octaves: 3, seed: 71 }] } },+ ] });+ const height = proceduralTexture({ schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0x585858, colorB: 0xa8a8a8, scale: 6, octaves: 4, seed: 72 }] });+ const glow = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'emissive', layers: [{ op: 'solid', color: 0x2a9cbc }] });+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 0.9 }), emissive: glow, emissiveIntensity: 0.3, roughness: 0.03, metalness: 0, alphaMode: 'blend' });+}+// The overflow weir: white marble with soft veins, and a dark strip (bottom rows) for the+// slot the water leaves from.+function weirMaterial() {+ const R = rng(91), ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 256, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xe9e6e1, colorB: 0xfcfbf9, scale: 3, octaves: 4, seed: 91 }] } }];+ for (let i = 0; i < 4; i++) {+ const y0 = Math.floor(R() * 200), y1 = y0 + Math.floor((R() - 0.5) * 60);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y0], to: [260, y1], width: 1 }, rgba: [168, 161, 152, 255], opacity: 110 });+ }+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 232, width: 256, height: 24 }, rgba: [168, 162, 152, 255] }); // turn 15: a shadowed recess (it read as a near-black bar)+ return pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 3, width: 256, height: 256, usage: 'albedo', operations: ops }), roughness: 0.25, metalness: 0 });+}++// ---------------------------------------------------------------- geometry+// Mesh accumulator: several sweeps, fans and cards can share one node.+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.quad = (a, b, c, d, n, uv) => { // a b c d counterclockwise seen from n's side+ const base = M.P.length / 3;+ for (const [i, v] of [a, b, c, d].entries()) { M.P.push(...v); M.N.push(...n); M.T.push(...uv[i]); }+ M.I.push(base, base + 1, base + 2, base, base + 2, base + 3);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A sheet swept along one axis from a cross-section profile of [p, y, t] points (p across the+// face, y up, t the water's travel time), into mesh M. axis 'x': p is local z (falls on a +Z+// face); axis 'z': p is local x (spills off a +X edge). u runs from u0 at uPerMetre;+// widthAt(t, i) narrows or roughens the sweep about its middle without changing u.+function sweep(M, profile, axis, a0, a1, u0, uPerMetre, widthAt = () => 1) {+ const mid = (a0 + a1) / 2, base = M.P.length / 3;+ profile.forEach(([p, y, t], i) => {+ const prev = profile[Math.max(0, i - 1)], next = profile[Math.min(profile.length - 1, i + 1)];+ const dp = next[0] - prev[0], dy = next[1] - prev[1], l = Math.hypot(dp, dy) || 1, np = -dy / l, ny = dp / l; // outward/up+ for (const [k, a] of [a0, a1].entries()) {+ const w = mid + (a - mid) * widthAt(t, i, k);+ M.P.push(...(axis === 'x' ? [w, y, p] : [p, y, w]));+ M.N.push(...(axis === 'x' ? [0, ny, np] : [np, ny, 0]));+ M.T.push(u0 + (a - a0) * uPerMetre, t);+ }+ });+ const at = (k) => M.P.slice(3 * k, 3 * k + 3);+ for (let i = 0; i + 1 < profile.length; i++) {+ const v00 = base + 2 * i, v01 = v00 + 1, v10 = v00 + 2, v11 = v00 + 3;+ // wind each quad so its geometric normal agrees with the supplied normal+ const e1 = at(v10).map((v, j) => v - at(v00)[j]), e2 = at(v11).map((v, j) => v - at(v00)[j]);+ const g = [e1[1] * e2[2] - e1[2] * e2[1], e1[2] * e2[0] - e1[0] * e2[2], e1[0] * e2[1] - e1[1] * e2[0]];+ const n = M.N.slice(3 * v00, 3 * v00 + 3);+ if (g[0] * n[0] + g[1] * n[1] + g[2] * n[2] >= 0) M.I.push(v00, v10, v11, v00, v11, v01); else M.I.push(v00, v11, v10, v00, v01, v11);+ }+}+// turn 15: the lip band, the profile's channel and curl (to time tEnd) swept again a few+// millimetres proud of the sheet, its v running 0 - 1 down the band.+function lipBand(M, profile, axis, a0, a1, tEnd, lift = 0.006) {+ const base = M.P.length / 3, pts = profile.filter(([, , t]) => t <= tEnd);+ sweep(M, pts, axis, a0, a1, 0, 1 / (a1 - a0));+ for (let k = base; k < M.P.length / 3; k++) {+ for (let j = 0; j < 3; j++) M.P[3 * k + j] += lift * M.N[3 * k + j];+ M.T[2 * k + 1] /= tEnd;+ }+}+// Low mist where a fall meets the water: wide, faint cards standing just clear of the face,+// centred well above the surface so none is cut by it.+function mistAt(M, c, w, h, n, R) {+ for (let i = 0; i < n; i++) card(M, [c[0] + (R() - 0.5) * w * 0.4, c[1] + h * (0.45 + 0.1 * R()), c[2] + 0.1 + 0.3 * R()], w * (0.8 + 0.4 * R()), h, (R() - 0.5) * 1.1);+}+// Water that runs along a channel at speed v, then leaves its edge at (p0, y0) at speed v0 and+// falls ballistically to yEnd: [p, y, t] points with t from 0 at the channel's start.+function trajectory(channel, v, p0, y0, yEnd, steps, v0 = v) {+ const pts = channel.map(([p, y]) => [p, y, (p - channel[0][0]) / v]), t0 = pts[pts.length - 1][2];+ const tEnd = Math.sqrt((2 * (y0 - yEnd)) / G);+ for (let k = 1; k <= steps; k++) {+ const tau = tEnd * (k / steps) ** 1.4; // denser near the lip, where the sheet curls+ pts.push([p0 + v0 * tau, y0 - 0.5 * G * tau * tau, t0 + tau]);+ }+ return pts;+}+// A flat froth fan on the water at height y around an impact at (0, cz), spread rx by rz in+// front of it (+Z), from radius r0 to 1: froth-region u across the fan, v = distance / 0.3 m,+// so flow speed [0, 1] carries the bubbles outward at 0.3 m/s.+function frothFan(M, cz, y, rx, rz, r0 = 0.12) {+ const rings = [r0, 0.3, 0.5, 0.72, 1.0], fan = 12;+ for (let i = 0; i + 1 < rings.length; i++) for (let j = 0; j < fan; j++) {+ const pt = (r, k) => { const th = -Math.PI / 2 + (Math.PI * k) / fan; return [rx * r * Math.sin(th), y, cz + rz * r * Math.cos(th)]; };+ const uv = (r, k) => [FROTH_U + ((1 - FROTH_U) * k) / fan, ((r - r0) * Math.max(rx, rz)) / 0.3];+ const [ra, rb] = [rings[i], rings[i + 1]];+ M.quad(pt(ra, j), pt(ra, j + 1), pt(rb, j + 1), pt(rb, j), [0, 1, 0], [uv(ra, j), uv(ra, j + 1), uv(rb, j + 1), uv(rb, j)].map(([u, v]) => [u, v]));+ }+}+// A flat foam ring on the water at height y round an impact at (0, cz), facing up: from radius+// r0 to 1 of rx by rz, over angles within a of straight out (+Z), so it wraps a little toward the+// wall; u tiles round it, v runs from the inner edge (0) to the outer (1), where the foam fades.+function foamRing(M, cz, y, rx, rz, r0, a = 1.95) {+ const rings = [r0, r0 + (1 - r0) * 0.3, r0 + (1 - r0) * 0.62, 1.0], fan = 14;+ for (let i = 0; i + 1 < rings.length; i++) for (let j = 0; j < fan; j++) {+ const pt = (r, k) => { const th = -a + (2 * a * k) / fan; return [rx * r * Math.sin(th), y, cz + rz * r * Math.cos(th)]; };+ const uv = (r, k) => [(2 * k) / fan, (r - r0) / (1 - r0)];+ const [ra, rb] = [rings[i], rings[i + 1]];+ M.quad(pt(ra, j), pt(ra, j + 1), pt(rb, j + 1), pt(rb, j), [0, 1, 0], [uv(ra, j), uv(ra, j + 1), uv(rb, j + 1), uv(rb, j)]);+ }+}+// A vertical card of width w and height h centred at c, facing yaw (radians about +Y from +Z),+// emitted both ways round so a single-sided material shows it from either side.+function card(M, c, w, h, yaw) {+ const ax = [Math.cos(yaw), 0, -Math.sin(yaw)], n = [Math.sin(yaw), 0, Math.cos(yaw)];+ const p = (s, t) => [c[0] + ax[0] * s * w / 2, c[1] + t * h / 2, c[2] + ax[2] * s * w / 2];+ M.quad(p(-1, -1), p(1, -1), p(1, 1), p(-1, 1), n, [[0, 1], [1, 1], [1, 0], [0, 0]]);+ M.quad(p(-1, 1), p(1, 1), p(1, -1), p(-1, -1), n.map((v) => -v), [[0, 0], [1, 0], [1, 1], [0, 1]]);+}+// A box with per-face UVs mapped into a texture window [u0, v0, u1, v1].+function boxInto(B, lo, hi, win, skip = []) {+ const faces = [+ ['px', [[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]]]],+ ['nx', [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]]]],+ ['py', [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]]]],+ ['ny', [[lo[0], lo[1], lo[2]], [hi[0], lo[1], lo[2]], [hi[0], lo[1], hi[2]], [lo[0], lo[1], hi[2]]]],+ ['pz', [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]]]],+ ['nz', [[hi[0], lo[1], lo[2]], [lo[0], lo[1], lo[2]], [lo[0], hi[1], lo[2]], [hi[0], hi[1], lo[2]]]],+ ];+ const nrmOf = { px: [1, 0, 0], nx: [-1, 0, 0], py: [0, 1, 0], ny: [0, -1, 0], pz: [0, 0, 1], nz: [0, 0, -1] };+ for (const [f, q] of faces) {+ if (skip.includes(f)) continue;+ const [u0, v0, u1, v1] = win;+ B.quad(q[0], q[1], q[2], q[3], nrmOf[f], [[u0, v1], [u1, v1], [u1, v0], [u0, v0]]);+ }+}++// ---------------------------------------------------------------- pieces+// Falls from a cascade tower's spout, in the tower's frame: spout floor 4.2 m, its back at+// z 1.65 and its lip on the face at z 2.0; the pool or basin surface is 0.9 m above the+// tower's base. A bright white ribbon runs 2.5 cm deep along the spout at 0.5 m/s, falls+// 3.4 m and lands about 0.4 m out from the face, where bubbling froth drifts out from the+// impact and a ring of foam lies on the water round it (turn 10: no standing spray cards).+// turn 15 (round 5: strings, a pale band under the waterline and a dark ring at the foot): the+// sheet ends at the basin surface, denser and brighter, under a bright lip; the foam ring is+// self-lit, and faint mist stands low in front of the impact.+const FALLS = { half: 0.78, profile: () => trajectory([[1.68, 4.225], [1.84, 4.225], [2.0, 4.225]], 0.5, 2.0, 4.225, 0.905, 12),+ widthAt: (t) => (t <= 0.64 ? 1 : 1 - 0.07 * Math.sin(Math.min(1, (t - 0.64) / 0.83) * Math.PI * 0.8)) };+function fallsPiece() {+ const M = makeMesh(), profile = FALLS.profile(), cz = profile[profile.length - 1][0];+ sweep(M, profile, 'x', -FALLS.half, FALLS.half, 0, FROTH_U / (2 * FALLS.half), FALLS.widthAt);+ frothFan(M, cz, 0.925, 0.55, 0.45);+ const F = makeMesh(), L = makeMesh(), S = makeMesh();+ foamRing(F, cz, 0.93, 1.5, 1.25, 0.367); // from the froth's edge (0.55 by 0.45 m) to 1.5 by 1.25 m+ lipBand(L, profile, 'x', -FALLS.half, FALLS.half, 0.94);+ mistAt(S, [0, 0.9, cz], 2.6, 1.0, 2, rng(14));+ return [['falls_sheet', M.geo(), sheetMaterial(11, { tint: [236, 248, 250], base: 104, lines: 40, bright: 0.3, drops: 110, relief: 2.2, glow: 0.75, froth: true })],+ ['falls_lip', L.geo(), lipMaterial(15)], ['falls_foam', F.geo(), foamMaterial(12)], ['falls_mist', S.geo(), mistMaterial(13, 6)]];+}+// Falls from a rim tower's cornice into the cloud sea (turn 10, rule 7: water spilling into the+// cloud sea in view of the arrival; the pools' own rim spills fall below the lip, out of sight+// from eye height), in the cornice's frame: its face is z = 0 (+Z outward) and its top y = 0. A+// bright ribbon 2.2 m wide runs 3 cm deep over the cornice at 0.6 m/s and leaves its edge in+// tongues of different widths that arc 2 - 4 m out and narrow as they fall 100 - 108 m.+function towerFallsPiece() {+ const M = makeMesh(), R = rng(53), half = 1.1, L = makeMesh(), head = trajectory([[-0.3, 0.03], [-0.12, 0.03], [0, 0.03]], 0.6, 0, 0.03, -0.35, 4);+ sweep(M, head, 'x', -half, half, 0, 1 / (2 * half));+ lipBand(L, head, 'x', -half, half, 0.62); // turn 15: a bright lip over the cornice+ for (let x = -half; x < half - 0.1;) {+ const w = Math.min(0.24 + R() * 0.42, half - x), v0 = 0.5 + R() * 0.4, yEnd = -100 - R() * 8, jitter = rng(Math.floor(R() * 1e6));+ const wob = Array.from({ length: 64 }, () => 0.84 + 0.32 * jitter());+ const profile = trajectory([[0, 0.03]], 0.6, 0, 0.03, yEnd, 18, v0).map(([p, y, t]) => [p, y, t + 0.5]);+ const narrow = 0.35 + 0.3 * R();+ sweep(M, profile, 'x', x, x + w, R(), 1 / 2, (t, i, k) => (1 - (1 - narrow) * Math.min(1, (t - 0.5) / 2.5)) * (i > 1 ? wob[2 * i + k] : 1));+ x += w + 0.04 + R() * 0.12;+ }+ return [['falls_sheet', M.geo(), sheetMaterial(53, { tint: [236, 248, 250], base: 96, lines: 50, bright: 0.34, drops: 130, relief: 2.0, glow: 0.7 })],+ ['falls_lip', L.geo(), lipMaterial(54)]];+}+// Overflow weir on a terrace wall, in the wall's frame: the face is z = 0 (+Z toward the pool)+// and y = 0 is the terrace top. A marble ledge 4.2 m wide projects 0.2 m at y -0.36..-0.26+// under a dark slot; the sheet slides over it at 0.4 m/s and falls 2.3 m to 5 cm under the+// pool surface (y -2.5), with a froth band where it lands.+function overflowPiece() {+ const B = makeMesh(), marble = [0.02, 0.02, 0.98, 0.86], dark = [0.02, 0.92, 0.98, 0.98];+ boxInto(B, [-2.1, -0.36, 0], [2.1, -0.26, 0.2], marble, ['nz']);+ boxInto(B, [-2.0, -0.26, 0], [2.0, -0.17, 0.004], dark, ['nz', 'ny', 'py', 'px', 'nx']);+ // turn 15: the sheet stops at the pool surface (it showed through the water as a pale band),+ // under a bright lip, with faint mist at its foot+ const M = makeMesh(), profile = trajectory([[0.006, -0.24], [0.1, -0.243], [0.2, -0.245]], 0.4, 0.2, -0.245, -2.49, 12);+ sweep(M, profile, 'x', -1.95, 1.95, 0, FROTH_U / 3.9);+ const L = makeMesh(), S = makeMesh();+ lipBand(L, profile, 'x', -1.95, 1.95, 0.9);+ mistAt(S, [0, -2.5, profile[profile.length - 1][0]], 3.6, 0.9, 2, rng(24));+ for (let j = 0; j < 6; j++) { // froth band on the pool, drifting outward+ const xa = -1.95 + 0.65 * j, xb = xa + 0.65, y = -2.475, ua = FROTH_U + ((1 - FROTH_U) * j) / 6, ub = FROTH_U + ((1 - FROTH_U) * (j + 1)) / 6;+ M.quad([xa, y, 0.3], [xb, y, 0.3], [xb, y, 1.25], [xa, y, 1.25], [0, 1, 0], [[ua, 0], [ub, 0], [ub, 0.95 / 0.3], [ua, 0.95 / 0.3]]);+ }+ return [['overflow_weir', B.geo(), weirMaterial()],+ ['overflow_sheet', M.geo(), sheetMaterial(23, { tint: [236, 248, 250], base: 96, lines: 52, bright: 0.3, drops: 100, relief: 1.6, glow: 0.7, froth: true })],+ ['overflow_lip', L.geo(), lipMaterial(25)], ['overflow_mist', S.geo(), mistMaterial(26, 6)]];+}+// Rim spill over an infinity lip, in the lip's frame: x = 0 is the pool's water edge (+X+// outward), y = 0 the water level, z along the lip (±11.95). Water slides 1 cm deep over the+// 0.25 m coping at 0.3 m/s along the whole lip, then breaks into ragged ribbons of different+// widths, arcs and lengths that narrow as they fall 22 - 30 m into the cloud deck; mist hangs+// where they meet the deck.+const SPILL = { half: 11.95 };+function spillPiece() {+ const M = makeMesh(), R = rng(37), lip = [[-0.02, -0.004], [0.1, -0.008], [0.25, -0.012]], head = trajectory(lip, 0.3, 0.25, -0.012, -0.3, 4);+ sweep(M, head, 'z', -SPILL.half, SPILL.half, 0, 1 / 3);+ const L = makeMesh();+ lipBand(L, head, 'z', -SPILL.half, SPILL.half, 1.2); // turn 15: a bright lip along the whole edge+ for (let z = -SPILL.half + R() * 0.3; z < SPILL.half - 0.3;) {+ // turn 15 (round 5: a striped wall of strings): mostly broad sheets 1.4 - 3.6 m wide with+ // tight gaps, a few narrow tongues, each thinning as it falls; arcs from 0.16 to 0.5 m/s.+ // Turn 16 (round 7: a frosted shower curtain, net curtains in the arches): six or seven+ // ribbons 1 - 2.6 m wide with open gaps of 1 - 2.6 m, so sky shows between them.+ const w = Math.min(1.0 + R() * 1.6, SPILL.half - z), v0 = 0.16 + R() * 0.34;+ const yEnd = -92 - R() * 12, seed = Math.floor(R() * 1e6), jitter = rng(seed); // turn 8: into the deck, now 80 m down+ const wob = Array.from({ length: 64 }, () => 0.82 + 0.36 * jitter());+ const profile = trajectory([[0.25, -0.012]], 0.3, 0.25, -0.012, yEnd, 16, v0).map(([p, y, t]) => [p, y, t + 0.9]);+ const narrow = 0.3 + 0.35 * R(); // how much of its width each tongue keeps at the bottom+ sweep(M, profile, 'z', z, z + w, R(), 1 / 3, (t, i, k) => (1 - (1 - narrow) * Math.min(1, (t - 0.9) / 2.2)) * (i > 1 ? wob[2 * i + k] : 1));+ z += w + 1.0 + R() * 1.6;+ }+ const S = makeMesh();+ // crossed mist cards, kept inside the lip's length (each reaches 3.44 m along z)+ for (const zc of [-8, -2.8, 2.6, 7.6]) for (const yaw of [Math.PI / 2 - 0.7, Math.PI / 2 + 0.7]) card(S, [1.0 + 1.2 * R(), -78 + R() * 2, zc + R() - 0.5], 9, 5.5, yaw);+ return [['spill_sheet', M.geo(), sheetMaterial(37, { tint: [240, 250, 252], base: 96, lines: 44, bright: 0.4, drops: 110, relief: 1.8, glow: 0.7 })], // turn 16: whiter, more opaque+ ['spill_lip', L.geo(), lipMaterial(39)], ['spill_mist', S.geo(), mistMaterial(38, 12)]];+}+// Still water over a T1 basin: 8 x 16 m at the surface (y = 0), 2 mm inside the basin walls,+// with ripple UVs at 2 m per repeat.+function basinPiece() {+ const hx = 3.998, hz = 7.998;+ const geo = meshGeo({ positions: [-hx, 0, hz, hx, 0, hz, hx, 0, -hz, -hx, 0, -hz], normals: [0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0],+ uvs: [0, 8, 4, 8, 4, 0, 0, 0], indices: [0, 1, 2, 0, 2, 3] });+ return [['basin_surface', geo, basinMaterial()]];+}++// Review only (never saved): the falls in front of a stand-in tower and pool, and the overflow+// on a stand-in wall over a stand-in pool.+function previewPieces() {+ const stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const pool = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0x2fa8b0 }] }), roughness: 0.1, metalness: 0 });+ const box = (lo, hi) => { const B = makeMesh(); boxInto(B, lo, hi, [0, 0, 1, 1]); return B.geo(); };+ const shift = (geo, d) => { geo.translate(d[0], d[1], d[2]); return geo; };+ const out = [['stand_tower', box([-2, 0, -2], [2, 6.4, 2]), stone], ['stand_pool', box([-6, 0, 2], [12, 0.9, 7]), pool]];+ for (const piece of fallsPiece()) out.push(piece);+ out.push(['stand_wall', box([4, -0.5, -2], [10, 3.4, 2]), stone]);+ for (const [name, geo, mat] of overflowPiece()) out.push([name, shift(geo, [7, 3.4, 2]), mat]);+ return out;+}++const PIECES = { 'falls-narrow': fallsPiece, 'overflow-wide': overflowPiece, 'rim-spill': spillPiece, 'basin-water': basinPiece, 'tower-falls': towerFallsPiece, 'preview-water': previewPieces };++async function build() {+ const root = createRoot(PIECE);+ for (const [name, geo, mat] of PIECES[PIECE]()) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_b0480b746fa5406c82626f5037e30f5c/r_1b9bef4f0c2d46ae8bdd1261f64b4c71/manifest.json b/packs/holodeck/sources/project/a_b0480b746fa5406c82626f5037e30f5c/r_1b9bef4f0c2d46ae8bdd1261f64b4c71/manifest.jsonnew file mode 100644index 00000000..52e37960--- /dev/null+++ b/packs/holodeck/sources/project/a_b0480b746fa5406c82626f5037e30f5c/r_1b9bef4f0c2d46ae8bdd1261f64b4c71/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_b0480b746fa5406c82626f5037e30f5c",+ "revisionId": "r_1b9bef4f0c2d46ae8bdd1261f64b4c71",+ "name": "cube-mirror-far",+ "tags": [+ "meridian-sanctuary",+ "mirror",+ "sky"+ ],+ "createdAt": "2026-10-25T15:09:33.899Z",+ "description": "The mirror cube for the far cubes and mirror slabs over the cloud sea, which reflect the sky dome (asset.reflection sky): true mirror faces with a 4 cm pale-gold bevel at roughness 0.25 (turn 16).",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:7565e0872c555de2563f19c2a4533a90743a290497888d7b24f29ab10755fd41",+ "bytes": 5240+ },+ "source.kiln.js": {+ "sha256": "sha256:e17b2e8d8591d78aa62bad7f690e33878fff5bdb34668bce9747592275ac90b8",+ "bytes": 63622+ },+ "preview.png": {+ "sha256": "sha256:cfd0c95d2741ae9c0e88c14a274154136acefd274a864ea7e305d9ef07a985ae",+ "bytes": 20359+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "7565e0872c555de2563f19c2a4533a90743a290497888d7b24f29ab10755fd41",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.5,+ -0.5,+ -0.5+ ],+ "max": [+ 0.5,+ 0.5,+ 0.5+ ],+ "size": [+ 1,+ 1,+ 1+ ],+ "center": [+ 0,+ 0,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -0.5,+ "offsetToGround": 0.5,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 44,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 2,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 2,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 44,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 2,+ "maxImageDimension": 64,+ "decodedImageBytesRgba8": 32768,+ "estimatedGpuBytesWithMipmaps": 43692,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:7565e0872c555de2563f19c2a4533a90743a290497888d7b24f29ab10755fd41",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_b0480b746fa5406c82626f5037e30f5c/r_1b9bef4f0c2d46ae8bdd1261f64b4c71/source.kiln.js b/packs/holodeck/sources/project/a_b0480b746fa5406c82626f5037e30f5c/r_1b9bef4f0c2d46ae8bdd1261f64b4c71/source.kiln.jsnew file mode 100644index 00000000..1e420d7d--- /dev/null+++ b/packs/holodeck/sources/project/a_b0480b746fa5406c82626f5037e30f5c/r_1b9bef4f0c2d46ae8bdd1261f64b4c71/source.kiln.js@@ -0,0 +1,957 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'cube-mirror-far';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ for (let i = 0; i < 3; i++) {+ const x = -0.05 * q, y = ((i + 0.2 + R() * 0.6) * q) / 3, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 8 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [214, 203, 184, 255], opacity: 45 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 2.4 * s + 0.8, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [170, 152, 122, 255], opacity: 120 });+ }+ for (let i = 0; i < 6; i++) {+ const opacity = 50 + Math.floor(R() * 25);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 1.1 * s + 0.6, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [190, 176, 152, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe7d8c0), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed },+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area: { x: 0, y: 0, width: q, height: q } });+ pits(3, 3, [214, 199, 174, 255], 60);+ pits(6, 4, [210, 194, 167, 255], 60);+ pits(9, 7, [205, 188, 160, 255], 30);+ pits(14, 10, [212, 196, 170, 255], 10);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ const stops = [[1, [178, 114, 52]], [0.86, [200, 136, 66]], [0.74, [220, 160, 88]], [0.63, [236, 184, 112]], [0.52, [246, 202, 136]],+ [0.42, [252, 216, 158]], [0.32, [255, 226, 180]], [0.23, [255, 233, 197]], [0.14, [255, 237, 208]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [150, 92, 40], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2);+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'slot:pz'; // turn 9: the spout's back glows (it read as a black slit)+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 4.2 && y < 5.4 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0);+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_b2ed39a4ce1a4fd99dd876cc5c703165/r_8f1700e3aaf04919865f86ce1522f5b8/manifest.json b/packs/holodeck/sources/project/a_b2ed39a4ce1a4fd99dd876cc5c703165/r_8f1700e3aaf04919865f86ce1522f5b8/manifest.jsonnew file mode 100644index 00000000..642a5272--- /dev/null+++ b/packs/holodeck/sources/project/a_b2ed39a4ce1a4fd99dd876cc5c703165/r_8f1700e3aaf04919865f86ce1522f5b8/manifest.json@@ -0,0 +1,367 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_b2ed39a4ce1a4fd99dd876cc5c703165",+ "revisionId": "r_8f1700e3aaf04919865f86ce1522f5b8",+ "parentRevision": "r_9999e0d94987445181dcf656f540e669",+ "name": "cube-mirror",+ "tags": [+ "meridian-sanctuary",+ "mirror",+ "sky"+ ],+ "createdAt": "2026-10-25T15:09:17.790Z",+ "description": "Floating mirror cube, 1 m: true mirror faces (metal, roughness 0.02) with a 4 cm pale-gold bevel at roughness 0.25 that catches the sun (turn 16).",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:f052282ea7389236f220c25277fb00504de1dfa440c6e7d2c8d398de9439de1a",+ "bytes": 5236+ },+ "source.kiln.js": {+ "sha256": "sha256:6dc71b75323e034faa934c6f8a22c50bf3e1fd01c45a118ee43322cac322d6cf",+ "bytes": 63618+ },+ "preview.png": {+ "sha256": "sha256:cfd0c95d2741ae9c0e88c14a274154136acefd274a864ea7e305d9ef07a985ae",+ "bytes": 20359+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "f052282ea7389236f220c25277fb00504de1dfa440c6e7d2c8d398de9439de1a",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.5,+ -0.5,+ -0.5+ ],+ "max": [+ 0.5,+ 0.5,+ 0.5+ ],+ "size": [+ 1,+ 1,+ 1+ ],+ "center": [+ 0,+ 0,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -0.5,+ "offsetToGround": 0.5,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 44,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 2,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 2,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 44,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 2,+ "maxImageDimension": 64,+ "decodedImageBytesRgba8": 32768,+ "estimatedGpuBytesWithMipmaps": 43692,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:f052282ea7389236f220c25277fb00504de1dfa440c6e7d2c8d398de9439de1a",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_b2ed39a4ce1a4fd99dd876cc5c703165/r_8f1700e3aaf04919865f86ce1522f5b8/source.kiln.js b/packs/holodeck/sources/project/a_b2ed39a4ce1a4fd99dd876cc5c703165/r_8f1700e3aaf04919865f86ce1522f5b8/source.kiln.jsnew file mode 100644index 00000000..319ef206--- /dev/null+++ b/packs/holodeck/sources/project/a_b2ed39a4ce1a4fd99dd876cc5c703165/r_8f1700e3aaf04919865f86ce1522f5b8/source.kiln.js@@ -0,0 +1,957 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'cube-mirror';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ for (let i = 0; i < 3; i++) {+ const x = -0.05 * q, y = ((i + 0.2 + R() * 0.6) * q) / 3, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 8 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [214, 203, 184, 255], opacity: 45 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 2.4 * s + 0.8, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [170, 152, 122, 255], opacity: 120 });+ }+ for (let i = 0; i < 6; i++) {+ const opacity = 50 + Math.floor(R() * 25);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 1.1 * s + 0.6, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [190, 176, 152, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe7d8c0), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed },+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area: { x: 0, y: 0, width: q, height: q } });+ pits(3, 3, [214, 199, 174, 255], 60);+ pits(6, 4, [210, 194, 167, 255], 60);+ pits(9, 7, [205, 188, 160, 255], 30);+ pits(14, 10, [212, 196, 170, 255], 10);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ const stops = [[1, [178, 114, 52]], [0.86, [200, 136, 66]], [0.74, [220, 160, 88]], [0.63, [236, 184, 112]], [0.52, [246, 202, 136]],+ [0.42, [252, 216, 158]], [0.32, [255, 226, 180]], [0.23, [255, 233, 197]], [0.14, [255, 237, 208]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [150, 92, 40], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2);+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'slot:pz'; // turn 9: the spout's back glows (it read as a black slit)+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 4.2 && y < 5.4 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0);+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_bc0c70b042c5495c9b6d4e75138f5d79/r_90b595799305471aa23d5c522b098917/manifest.json b/packs/holodeck/sources/project/a_bc0c70b042c5495c9b6d4e75138f5d79/r_90b595799305471aa23d5c522b098917/manifest.jsonnew file mode 100644index 00000000..5b18b749--- /dev/null+++ b/packs/holodeck/sources/project/a_bc0c70b042c5495c9b6d4e75138f5d79/r_90b595799305471aa23d5c522b098917/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_bc0c70b042c5495c9b6d4e75138f5d79",+ "revisionId": "r_90b595799305471aa23d5c522b098917",+ "parentRevision": "r_c0f61c891fc74c23afe3e82dc8b12f78",+ "name": "block-8",+ "tags": [+ "meridian-sanctuary",+ "stone-kit"+ ],+ "createdAt": "2026-10-25T15:17:06.926Z",+ "description": "Stone kit block 8 m: white veined marble paving over coursed ivory travertine. Turn 16 atlas: fine warm-grey veins with forked branches and faint halos; travertine pits long and thin in bedding bands.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:b2fdece4ef00a30c62a46e0236df6ac04bf5a7a94257ee3f508f75b6ee6f0fe4",+ "bytes": 574980+ },+ "source.kiln.js": {+ "sha256": "sha256:338004d210428f630defa533258f36b3450f4ae2b9df65da4c5efd2343627051",+ "bytes": 31488+ },+ "preview.png": {+ "sha256": "sha256:9b44fa99a07e45f1b23c500c4218abc13300d0ff85644f45d570cbb14bcec3e7",+ "bytes": 298263+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "b2fdece4ef00a30c62a46e0236df6ac04bf5a7a94257ee3f508f75b6ee6f0fe4",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -4,+ -3.4000000953674316,+ -4+ ],+ "max": [+ 4,+ 0,+ 4+ ],+ "size": [+ 8,+ 3.4000000953674316,+ 8+ ],+ "center": [+ 0,+ -1.7000000476837158,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -3.4000000953674316,+ "offsetToGround": 3.4000000953674316,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian stone kit"+ },+ "renderMetrics": {+ "triangles": 2864,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 2864,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:b2fdece4ef00a30c62a46e0236df6ac04bf5a7a94257ee3f508f75b6ee6f0fe4",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_bc0c70b042c5495c9b6d4e75138f5d79/r_90b595799305471aa23d5c522b098917/source.kiln.js b/packs/holodeck/sources/project/a_bc0c70b042c5495c9b6d4e75138f5d79/r_90b595799305471aa23d5c522b098917/source.kiln.jsnew file mode 100644index 00000000..e7c08330--- /dev/null+++ b/packs/holodeck/sources/project/a_bc0c70b042c5495c9b6d4e75138f5d79/r_90b595799305471aa23d5c522b098917/source.kiln.js@@ -0,0 +1,488 @@+// Meridian Sanctuary stone kit (plan.md section 5, assets 1-13).+// One program builds every stone piece; PIECE selects which one this revision is.+// Each piece is one mesh with one material: an atlas holding two white veined marble+// patches, two ivory travertine patches and a brushed brass band, so every placement+// of a piece batches into a single instanced draw.+const meta = { name: 'Meridian stone kit' };+const PIECE = 'block-8';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const crs = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures+const BAND = 0.047; // brass band: top of quadrant 4, as a fraction of the atlas edge+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.512, 0.506, 0.988, 0.5 + BAND - 0.006],+};++// A meandering vein as short overlapping polygon segments: V3 fill work grows with+// bounding-box area times edge count, so one long diagonal polygon is too costly.+function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]); // + 0 turns -0 into 0+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse())+ .filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}++// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } }); // noise octaves dominate the work bound, which an atlas shares across its regions+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins (as architecture.kiln.js, so the atlases stay identical)+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth,+// soft pits of several sizes (fewer tiny dark ones, which sparkled at distance), and a tint per+// patch (warm or cream), so neighbouring blocks differ.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: q, height: bh }, rgba: band });+ if (band[0] !== 128) for (let i = 0; i < 12; i++) {+ const y = Math.round(R() * bh);+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y], width: 1 },+ rgba: R() < 0.5 ? [212, 175, 108, 255] : [160, 124, 66, 255], opacity: 70 });+ }+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}++function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) ops.push({ op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: oq, height: Math.max(1, Math.round(BAND * 2 * oq)) }, rgba: [0, 82, 255, 255] });+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}++async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ // pack selects the newer atlas compiler, whose aggregate work budget fits four regions+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}++async function stoneMaterial(edge) {+ const q = edge / 2, oq = edge / 8;+ const brass = [188, 148, 82, 255], grey = [128, 128, 128, 255];+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null), travSpec(q, 404, brass, 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, grey)]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ return pbrMaterial({ albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 });+}++// ---------------------------------------------------------------- geometry+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ return {+ poly(verts, n, uvs) { // convex polygon; winding is fixed to face n+ let vs = verts, us = uvs;+ if (dot(crs(sub(verts[1], verts[0]), sub(verts[2], verts[0])), n) < 0) { vs = verts.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(n[0], n[1], n[2]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// Texture window: kind marble | trav | brass; face size in metres; density in atlas units per metre.+function pickWindow(R, kind, fw, fh, dens, square) {+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'trav' ? (R() < 0.5 ? 'TA' : 'TB') : 'BR';+ const [r0, s0, r1, s1] = REG[key];+ const rot = kind === 'brass' ? 0 : square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (kind === 'brass') { ww = Math.min(r1 - r0, 0.3); wh = s1 - s0; }+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A box stone with chamfered edges, emitting only faces, edges and corners that touch+// an exposed side. exp keys: px nx py ny pz nz.+const PARAM = [[2, 1], [0, 2], [0, 1]]; // face axis -> (a, b) parameter axes+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, kind, dens, exp } = st;+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], dens, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]); const [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {}, flat = st.flat || [];+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge. Turn 15:+ // the edges round a stone's flat faces (st.flat: a module's butt ends) take none, so modules+ // laid end to end close without the V-notch whose corners let the sun through their shadows+ const dep = (f, g) => (flat.includes(f) || flat.includes(g) ? 0 : f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // turn 9: a joint crossing on a face: run the corner down to the joint point, closing the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: the sun leaked through+// joints in dashed lines onto shaded paving). Every edge where one face of a stone shows and the+// other does not gets one depth, the same as the stone across the joint: none at an inner+// corner (the space diagonally across both faces is stone), or against a stone without bevels+// (the brass strips), where the bevel used to open a slot into the hollow behind; at a joint+// between two faces that both show, the deeper of the two bevels on both sides, where a tile+// bevel (6 mm) met a wall course's (2 cm) and left a slot between them. The stone across is+// looked for at a quarter, half and three quarters along the edge: courses stagger by half a+// stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if (!(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (as architecture.kiln.js): a stone whose texture window would be+// capped at its atlas region by more than 15 % splits into equal parts; the plain foundation+// shaft (94 m at density 0.05, stretched nearly ten times on the tall west foundations) takes the+// big-face density 0.12 and a bevel, and reads as tall courses.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [];+ for (const st of S) {+ if (st.kind === 'brass') { out.push(st); continue; }+ const shaft = st.dens < SHAFT_DENS, dens = Math.max(st.dens, SHAFT_DENS), size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], exp = {};+ for (const [f, v] of Object.entries(st.exp)) {+ const i = 'xyz'.indexOf(f[1]);+ if (v && (f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0)) exp[f] = true;+ }+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, ...(shaft ? { dens: SHAFT_DENS, c: STONE_C } : {}) });+ }+ }+ return out;+}++// Convex prism between x0 and x1 over a (z, y) profile; hide lists edge indices to skip.+function emitPrismX(B, R, x0, x1, prof, hide, capEdge = -1) {+ const area = prof.reduce((acc, p, i) => { const q = prof[(i + 1) % prof.length]; return acc + p[0] * q[1] - q[0] * p[1]; }, 0);+ const zs = prof.map((p) => p[0]), ys = prof.map((p) => p[1]);+ const zmin = Math.min(...zs), ymin = Math.min(...ys), zr = Math.max(...zs) - zmin, yr = Math.max(...ys) - ymin;+ for (const [x, nx] of [[x0, -1], [x1, 1]]) {+ const w = pickWindow(R, 'trav', zr, yr, 0.19, false);+ const verts = prof.map(([z, y]) => [x, y, z]);+ B.poly(verts, [nx, 0, 0], verts.map((v) => uvOf(w, (v[2] - zmin) / zr, (v[1] - ymin) / yr)));+ }+ prof.forEach((p, i) => {+ if (hide.includes(i)) return;+ const q = prof[(i + 1) % prof.length];+ const dz = q[0] - p[0], dy = q[1] - p[1], len = Math.hypot(dz, dy);+ const sgn = area > 0 ? 1 : -1; // outward normal in the (z, y) plane+ const n = nrm([0, -dz * sgn, dy * sgn]);+ const w = pickWindow(R, i === capEdge ? 'marble' : 'trav', x1 - x0, len, i === capEdge ? 0.25 : 0.19, false);+ const verts = [[x0, p[1], p[0]], [x1, p[1], p[0]], [x1, q[1], q[0]], [x0, q[1], q[0]]];+ B.poly(verts, n, [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ });+}++// ---------------------------------------------------------------- piece helpers+const TILE_C = 0.006, STONE_C = 0.02; // turn 9: larger bevels, so edges catch the light+function tiles(S, x0, x1, z0, z1, nx, nz, top, th, perim, dens = 0.2) { // turn 9: 0.2 (was 0.25), so a metre of floor shows bolder veins+ const dx = (x1 - x0) / nx, dz = (z1 - z0) / nz;+ for (let i = 0; i < nx; i++) for (let j = 0; j < nz; j++) {+ S.push({ lo: [x0 + i * dx, top - th, z0 + j * dz], hi: [x0 + (i + 1) * dx, top, z0 + (j + 1) * dz], c: TILE_C, kind: 'marble', dens,+ exp: { py: true, nx: !!perim.nx && i === 0, px: !!perim.px && i === nx - 1, nz: !!perim.nz && j === 0, pz: !!perim.pz && j === nz - 1 } });+ }+}+// Travertine courses on one side: outer plane coordinate, run [s0, s1], courses from yTop down to yBot.+function courses(S, side, outer, s0, s1, yTop, yBot, ch, len, depth, ends) {+ const ax = side[1] === 'x' ? 0 : 2, along = ax === 0 ? 2 : 0, sg = side[0] === 'p' ? 1 : -1;+ let row = 0;+ for (let yt = yTop; yt > yBot + 1e-6; yt -= ch, row++) {+ const yb = Math.max(yBot, yt - ch), cuts = [s0];+ for (let p = s0 + (row % 2 ? len / 2 : len); p < s1 - 0.3; p += len) cuts.push(p);+ cuts.push(s1);+ for (let k = 0; k + 1 < cuts.length; k++) {+ const lo = [0, yb, 0], hi = [0, yt, 0];+ lo[ax] = sg > 0 ? outer - depth : outer; hi[ax] = sg > 0 ? outer : outer + depth;+ lo[along] = cuts[k]; hi[along] = cuts[k + 1];+ const exp = { [side]: true };+ if (ends && k === 0) exp['n' + 'xyz'[along]] = true;+ if (ends && k === cuts.length - 2) exp['p' + 'xyz'[along]] = true;+ S.push({ lo, hi, c: STONE_C, kind: 'trav', dens: 0.19, exp });+ }+ }+}+function fourSides(S, hx, hz, yTop, yBot, ch, len, depth) {+ courses(S, 'px', hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'nx', -hx, -hz, hz, yTop, yBot, ch, len, depth, true);+ courses(S, 'pz', hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+ courses(S, 'nz', -hz, -hx + depth, hx - depth, yTop, yBot, ch, len, depth, false);+}+const brassStrip = (S, lo, hi, exp) => S.push({ lo, hi, c: 0, kind: 'brass', dens: 1, exp });+const ALL = { px: true, nx: true, pz: true, nz: true };++// A flight climbing toward -Z from a foot at z = 0: 15 risers of 0.16 m, 13 treads of+// 0.40 m and a 2.8 m landing after the eighth riser; brass nosings; mass from base. Every+// stone also draws its underside, the end stones their outer sides and the last tread its+// back, so a flight in the air reads as one solid wedge of stone from below and the side.+const RISE = 0.16, TREAD = 0.4, LANDING = 2.8, NOSE = 0.035;+function flightStones(S, x0, x1, base, stones) {+ let z = 0;+ for (let k = 1; k < 15; k++) {+ const depth = k === 8 ? LANDING : TREAD, top = RISE * k, w = (x1 - x0) / stones;+ for (let i = 0; i < stones; i++) {+ const ends = { ny: true, nx: i === 0, px: i === stones - 1 };+ if (k === 8) for (let j = 0; j < 2; j++) S.push({ lo: [x0 + i * w, base, z - NOSE - (j + 1) * (depth - NOSE) / 2], hi: [x0 + (i + 1) * w, top, z - NOSE - j * (depth - NOSE) / 2], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: j === 0, ...ends } });+ else S.push({ lo: [x0 + i * w, base, z - depth], hi: [x0 + (i + 1) * w, top, z - NOSE], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, pz: true, nz: k === 14, ...ends } });+ }+ // turn 10: its back closes the notch at the tread's bevel; turn 15: 3 mm proud of the tread+ // (flush, the strip resolved differently on each backend at the forecourt's edge in h8)+ brassStrip(S, [x0, top - 0.03, z - NOSE], [x1, top + 0.003, z + 0.006], { py: true, pz: true, nz: true });+ z -= depth;+ }+}++const PIECES = {+ 'block-8': { edge: 1024, build(S) { tiles(S, -4, 4, -4, 4, 8, 8, 0, 0.2, ALL); fourSides(S, 4, 4, -0.2, -3.4, 0.8, 2, 0.3); } },+ 'deck-4': { edge: 1024, build(S) { tiles(S, -2, 2, -2, 2, 4, 4, 0, 0.2, ALL); fourSides(S, 2, 2, -0.2, -1.0, 0.8, 2, 0.3); } },+ 'deck-6': { edge: 1024, build(S) {+ for (const sx of [-1, 1]) {+ // turn 7: the brass inlays along the causeway's edges are 8 cm wide (they were 3 cm and+ // did not read from the arrival)+ for (let j = 0; j < 4; j++) S.push({ lo: [sx < 0 ? -3 : 2.65, -0.2, -2 + j], hi: [sx < 0 ? -2.65 : 3, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25,+ exp: { py: true, [sx < 0 ? 'nx' : 'px']: true } });+ brassStrip(S, [sx < 0 ? -2.65 : 2.57, -0.2, -2], [sx < 0 ? -2.57 : 2.65, 0.002, 2], { py: true, px: true, nx: true }); // turn 15: 2 mm proud, not coplanar+ courses(S, sx < 0 ? 'nx' : 'px', 3 * sx, -2, 2, -0.2, -1.0, 0.8, 2, 0.3, false);+ }+ tiles(S, -2.57, 2.57, -2, 2, 5, 4, 0, 0.2, {});+ } },+ 'step-slab': { edge: 1024, build(S) {+ for (let i = 0; i < 3; i++) S.push({ lo: [-3 + 2 * i, -1, -1.35], hi: [-1 + 2 * i, 0, 1.35], c: STONE_C, kind: 'marble', dens: 0.17,+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 2 } });+ } },+ 'coping-4': { edge: 1024, build(S) {+ for (let j = 0; j < 4; j++) S.push({ lo: [-0.2, -0.25, -2 + j], hi: [0.2, 0, -1 + j], c: TILE_C, kind: 'marble', dens: 0.25, exp: { py: true, px: true, nx: true } });+ for (let j = 0; j < 2; j++) S.push({ lo: [-0.2, -1, -2 + 2 * j], hi: [0.2, -0.25, 2 * j], c: STONE_C, kind: 'trav', dens: 0.19, exp: { px: true, nx: true } });+ brassStrip(S, [0.2, -0.05, -2], [0.24, 0.002, 2], { px: true, py: true, ny: true, nx: true }); // a 4 cm brass lip over the water (was 1.2 cm); turn 10: its back closes the notch at the coping's bevel; turn 15: 2 mm proud+ } },+ 'pool-steps': { edge: 1024, build(S) {+ for (let k = 1; k <= 5; k++) for (let i = 0; i < 2; i++) S.push({ lo: [-1.5 + 1.5 * i, -1, 0.36 * (k - 1)], hi: [1.5 * i, -k / 6, 0.36 * k], c: 0.008, kind: 'marble', dens: 0.25,+ exp: { py: true, pz: true, nx: i === 0, px: i === 1 } });+ } },+ 'stair-8': { edge: 1024, build(S) { flightStones(S, -4, 4, -1, 4); } },+ 'stair-4': { edge: 1024, build(S, R, B) {+ flightStones(S, -1.7, 1.7, 0, 2);+ // Sloped travertine cheeks 0.9 m above the nosing line at the foot, in three sections.+ const top = (z) => 1.06 - 0.28 * z;+ for (const [za, zb, hide] of [[0, -8 / 3, [2, 3]], [-8 / 3, -16 / 3, [0, 2, 3]], [-16 / 3, -8, [0, 2, 3]]]) {+ const prof = [[za, 0], [za, top(za)], [zb, top(zb)], [zb, 0]];+ emitPrismX(B, R, -2, -1.7, prof, hide, 1); // edge 1 is the sloped top: a marble coping+ emitPrismX(B, R, 1.7, 2, prof, hide, 1);+ }+ } },+ 'parapet-4': { edge: 1024, build(S) {+ // turn 15: the module's butt ends are flat (no bevel), so a run closes without notches at its+ // joints (the sun leaked through them in pairs of dots, h8); the brass 2 mm proud+ for (let i = 0; i < 2; i++) {+ const flat = [i === 0 ? 'nx' : 'px'];+ S.push({ lo: [-2 + 2 * i, 0, -0.2], hi: [2 * i, 0.92, 0.2], c: STONE_C, kind: 'trav', dens: 0.19, flat, exp: { pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (const [z0, z1] of [[-0.22, -0.01], [0.01, 0.22]]) S.push({ lo: [-2 + 2 * i, 0.92, z0], hi: [2 * i, 1.0, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat,+ exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ }+ brassStrip(S, [-2, 0.92, -0.01], [2, 1.002, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (h8: the forecourt's solid balustrades hid the flights and pools below): an open+ // balustrade, 4 m and 0.9 m tall, flat-ended like parapet-4 - a marble plinth, thirteen square+ // travertine balusters 0.12 m on 0.3 m centres, a marble rail with a brass inlay+ 'balustrade-4': { edge: 1024, build(S) {+ const ends = (i, n) => [...(i === 0 ? ['nx'] : []), ...(i === n - 1 ? ['px'] : [])];+ for (let i = 0; i < 2; i++) S.push({ lo: [-2 + 2 * i, 0, -0.19], hi: [2 * i, 0.14, 0.19], c: TILE_C, kind: 'marble', dens: 0.25, flat: ends(i, 2),+ exp: { py: true, pz: true, nz: true, nx: i === 0, px: i === 1 } });+ for (let k = 0; k < 13; k++) {+ const x = -1.8 + 0.3 * k;+ S.push({ lo: [x - 0.06, 0.14, -0.06], hi: [x + 0.06, 0.76, 0.06], c: 0.012, kind: 'trav', dens: 0.19, exp: ALL });+ }+ for (let i = 0; i < 2; i++) for (const [z0, z1] of [[-0.17, -0.01], [0.01, 0.17]]) S.push({ lo: [-2 + 2 * i, 0.76, z0], hi: [2 * i, 0.9, z1], c: TILE_C, kind: 'marble', dens: 0.25,+ flat: ends(i, 2), exp: { py: true, ny: true, [z0 < 0 ? 'nz' : 'pz']: true, nx: i === 0, px: i === 1 } });+ brassStrip(S, [-2, 0.76, -0.01], [2, 0.902, 0.01], { py: true, px: true, nx: true });+ } },+ // turn 15 (round 5: the hanging terraces' undersides were flat white slabs): a coffered slab+ // for the inverted sanctuary, 8 m square and 1.2 m deep, read from below: a 3 x 3 grid of+ // coffers 2 m square between marble ribs 0.6 m deep, each stepping in once more round a+ // travertine molding 0.18 m wide and 0.24 m deep to its field; plain travertine on top. Its+ // butt edges are flat, so slabs laid edge to edge close.+ 'coffer-8': { edge: 1024, build(S) {+ const SIDES = ['px', 'nx', 'pz', 'nz'], OPEN = [[-3.6, -1.6], [-1.0, 1.0], [1.6, 3.6]], RIB = [[-4, -3.6], [-1.6, -1.0], [1.0, 1.6], [3.6, 4]];+ S.push({ lo: [-4, -0.6, -4], hi: [4, 0, 4], c: STONE_C, kind: 'trav', dens: 0.12, flat: SIDES, exp: { py: true, ny: true, px: true, nx: true, pz: true, nz: true } });+ RIB.forEach(([x0, x1], i) => S.push({ lo: [x0, -1.2, -4], hi: [x1, -0.6, 4], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: true, nz: true, nx: true, px: true } }));+ for (const [z0, z1] of RIB) for (const [x0, x1] of OPEN) S.push({ lo: [x0, -1.2, z0], hi: [x1, -0.6, z1], c: TILE_C, kind: 'marble', dens: 0.25, flat: SIDES,+ exp: { ny: true, pz: z1 < 4, nz: z0 > -4 } });+ for (const [xa, xb] of OPEN) for (const [za, zb] of OPEN) {+ const m = 0.18, y0 = -0.84, y1 = -0.6;+ S.push({ lo: [xa, y0, za], hi: [xa + m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, px: true } });+ S.push({ lo: [xb - m, y0, za], hi: [xb, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nx: true } });+ S.push({ lo: [xa + m, y0, za], hi: [xb - m, y1, za + m], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, pz: true } });+ S.push({ lo: [xa + m, y0, zb - m], hi: [xb - m, y1, zb], c: 0.01, kind: 'trav', dens: 0.19, exp: { ny: true, nz: true } });+ }+ } },+ 'foundation-4': { edge: 1024, build(S) {+ courses(S, 'pz', 0, -2, 2, 0, -16, 1.0, 2, 1.2, true);+ for (const st of S) if (st.hi[1] === 0) st.exp.py = true; // the top course is the arcade floor+ // turn 8: the plain shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-2, -110, -1.2], hi: [2, -16, 0], c: 0, kind: 'trav', dens: 0.05, exp: { pz: true, px: true, nx: true } });+ } },+};++async function build() {+ const root = createRoot(PIECE);+ const piece = PIECES[PIECE];+ const R = rng(hash(PIECE));+ const B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(piece.edge), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_bdac34882fa14b84be3d33ea14adb9c9/r_080cc7c6bf3a4e55b9348a9bf6136646/manifest.json b/packs/holodeck/sources/project/a_bdac34882fa14b84be3d33ea14adb9c9/r_080cc7c6bf3a4e55b9348a9bf6136646/manifest.jsonnew file mode 100644index 00000000..2e2942cd--- /dev/null+++ b/packs/holodeck/sources/project/a_bdac34882fa14b84be3d33ea14adb9c9/r_080cc7c6bf3a4e55b9348a9bf6136646/manifest.json@@ -0,0 +1,362 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_bdac34882fa14b84be3d33ea14adb9c9",+ "revisionId": "r_080cc7c6bf3a4e55b9348a9bf6136646",+ "name": "shrub-c",+ "tags": [],+ "createdAt": "2026-10-25T08:44:46.518Z",+ "description": "Turn 14: an old-rose flowering mound, 1.1 m tall and lighter in leaf. It uses the shared shrub atlas's rose blossom rows.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:f7eeae666d6bac7bacd40f1514ebee4323ebef7afcc4c84adc44c50f57ce2d2c",+ "bytes": 252068+ },+ "source.kiln.js": {+ "sha256": "sha256:d9a73fedacc110f5f929454ca0a12276ee7b206e906f37339065fe3e1bff1406",+ "bytes": 28630+ },+ "preview.png": {+ "sha256": "sha256:c2330064760dbf6bad1b33d0b1764e9df2884df5eb8946ad77d34291b1b24ad8",+ "bytes": 690526+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "f7eeae666d6bac7bacd40f1514ebee4323ebef7afcc4c84adc44c50f57ce2d2c",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.9382637739181519,+ -0.08528347313404083,+ -0.9410887956619263+ ],+ "max": [+ 1.0218547582626343,+ 1.1247280836105347,+ 1.033998727798462+ ],+ "size": [+ 1.9601185321807861,+ 1.2100115567445755,+ 1.9750875234603882+ ],+ "center": [+ 0.04179549217224121,+ 0.5197223052382469,+ 0.04645496606826782+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -0.08528347313404083,+ "offsetToGround": 0.08528347313404083,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 3032,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 3032,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:f7eeae666d6bac7bacd40f1514ebee4323ebef7afcc4c84adc44c50f57ce2d2c",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "light"+ }+}diff --git a/packs/holodeck/sources/project/a_bdac34882fa14b84be3d33ea14adb9c9/r_080cc7c6bf3a4e55b9348a9bf6136646/source.kiln.js b/packs/holodeck/sources/project/a_bdac34882fa14b84be3d33ea14adb9c9/r_080cc7c6bf3a4e55b9348a9bf6136646/source.kiln.jsnew file mode 100644index 00000000..52953877--- /dev/null+++ b/packs/holodeck/sources/project/a_bdac34882fa14b84be3d33ea14adb9c9/r_080cc7c6bf3a4e55b9348a9bf6136646/source.kiln.js@@ -0,0 +1,355 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'shrub-c';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [60, 76, 36, 255], operations: [ // turn 13: a little lighter, so gaps between clumps read as depth, not holes+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs (turn 9: the reviews of revision 11 saw crumpled dark bowls with no flowers): a 512 px+// atlas of 128 px cells in the cypress's manner. Column 0 is the opaque leafy core; columns 1 - 2+// hold eight rounded clusters of small leaves (rows by height on the mound, lighter higher up),+// column 3 four clusters of cream and white blossom heads over leaves.+async function shrubAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 80, 40, 255], operations: [ // turn 13: lighter, so the crown never reads as a dark hollow+ { op: 'stamps', shape: ell(10, 8), rgba: [70, 104, 52, 255], count: 140, seed: 31, area: { x: 0, y: 0, width: 114, height: 500 } },+ { op: 'stamps', shape: ell(8, 6), rgba: [28, 46, 24, 255], count: 90, seed: 32, area: { x: 0, y: 0, width: 116, height: 502 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2]) {+ const lift = 7 * r + 5 * (c - 1), seed = 700 + 11 * r + 3 * c;+ regions.push({ name: `leaves-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(12, 9), rgba: [44 + lift, 74 + lift, 36, 255], count: 76, seed, area: { x: 16, y: 10, width: 80, height: 70 } },+ { op: 'stamps', shape: ell(10, 7), rgba: [72 + lift, 110 + lift, 52, 255], count: 100, seed: seed + 1, area: { x: 10, y: 22, width: 94, height: 82 } },+ { op: 'stamps', shape: ell(7, 5), rgba: [112 + lift, 150 + lift, 74, 255], count: 76, seed: seed + 2, area: { x: 14, y: 34, width: 90, height: 78 } }] } } });+ }+ // turn 14: rows 0 - 1 cream and white (shrub-a, shrub-b), rows 2 - 3 old rose (shrub-c), so the+ // three shrubs share one atlas and one material+ for (let r = 0; r < 4; r++) {+ const seed = 800 + 13 * r, [petal, light, eye] = r < 2 ? [[248, 238, 212], [255, 252, 244], [236, 204, 120]] : [[232, 160, 172], [248, 204, 210], [226, 184, 112]];+ regions.push({ name: `blossom-${r}`, content: { x: 384 + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(11, 8), rgba: [56, 90, 44, 255], count: 70, seed, area: { x: 14, y: 14, width: 84, height: 80 } },+ { op: 'stamps', shape: ell(10, 9), rgba: [...petal, 255], count: 64, seed: seed + 1, area: { x: 14, y: 12, width: 88, height: 90 } },+ { op: 'stamps', shape: ell(6, 6), rgba: [...light, 255], count: 90, seed: seed + 2, area: { x: 12, y: 10, width: 96, height: 96 } },+ { op: 'stamps', shape: ell(2, 2), rgba: [...eye, 255], count: 30, seed: seed + 3, area: { x: 20, y: 18, width: 82, height: 84 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+// turn 14 (rule 9's varied pairs): o.peak is where the column is widest (0.32 of its height),+// o.taper the power of its narrowing above (0.75), o.lean the top's offset in metres (x, z),+// growing with the square of height so the column bows rather than tilts.+async function cypress(H, W, n, seed, trunk, o = {}) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12, pk = o.peak ?? 0.32, tp = o.taper ?? 0.75, [lx, lz] = o.lean ?? [0, 0];+ const prof = (t) => (t < pk ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / pk)) : Math.pow((1 - t) / (1 - pk), tp));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]) + lx * t * t, 0.04 * t * Math.sin(4.3 * t + ph[1]) + lz * t * t];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ // turn 13 (the reviews of revision 15: near cypresses read as stacked cardboard with a sawtooth+ // outline): clumps two thirds the size and nearly twice as many, so the outline breaks finer+ const L = (0.19 + 0.17 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.75 + 0.35 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound (turn 9): a dome, widest just above the ground, of small crossed clusters of+// leaves rooted by area in a dark leafy core, a share of them blossom heads, more on its crown and+// sun side of the dome; rounded (spherical) shading normals; it spills a little past a planter's+// rim. Card rows follow height, so the wind stirs the crown more than the foot.+// turn 14: o.rose takes the old-rose blossom rows (2 - 3) and the lighter leaf rows; the cream+// shrubs take blossom rows 0 - 1, low on the mound and high+async function shrub(H, R0, n, seed, bloom, o = {}) {+ const R = rng(seed), M = makeMesh(), bRow = (row) => (o.rose ? 2 : 0) + (row >= 2 ? 1 : 0), lRow = (row) => (o.rose ? Math.min(3, row + 1) : row);+ const radius = (t) => R0 * Math.max(0.005, Math.sqrt(Math.max(0, 1 - t ** 2.4)) * (0.9 + 0.12 * Math.sin(Math.PI * Math.min(1, t * 1.8)))); // turn 13: closed at the top (a pinhole showed the sky)+ const bump = body(M, H, 0, radius, 8, 14, 0.12, R, 0.3);+ // turn 13 (the reviews of revision 15 saw hollow domes from above, h8): a dense pass of+ // clusters over the crown, rooted across it (not only round its rim) and pointing up+ for (let k = 0; k < Math.round(n * 0.35); k++) {+ const t = 0.62 + 0.36 * R(), th = R() * 2 * Math.PI, rr = radius(t) * Math.sqrt(R()), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = 1.05 + 0.45 * R(), dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R());+ const root = [rr * out[0], t * H - 0.04, rr * out[2]], tip = add(root, dir, L), flower = R() < bloom * 1.1;+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = flower ? 0.25 * bRow(3) + 0.006 : 0.756, v1 = v0 + 0.238;+ const ns = nrm([out[0] * 0.3, 1, out[2] * 0.3]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ for (let k = 0; k < n;) {+ const t = 0.04 + R() * 0.94, rad = radius(t);+ if (R() * R0 > rad + 0.5 * R0 * t) continue; // by area, the crown favoured (turn 13: it showed a dark hollow from above)+ k++;+ const th = R() * 2 * Math.PI, y = t * H, out = [Math.cos(th), 0, Math.sin(th)], r = rad * bump(th, t);+ const elev = 0.25 + R() * 0.55 + 0.7 * t * t, dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R()); // turn 13: smaller and more of them+ const root = [(r - 0.05) * out[0], y - 0.02, (r - 0.05) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), flower = t > 0.3 && R() < bloom * (0.6 + 0.6 * t);+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * (flower ? bRow(row) : lRow(row)) + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0] * (1 - 0.6 * t), 0.35 + 0.8 * t, out[2] * (1 - 0.6 * t)]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ return [['shrub', M.geo(), foliage(await shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 850, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 600, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.1, 0.85, 300, 3, 0.4), // turn 13: narrower, so it stays in the island planters+ 'shrub-b': () => shrub(0.62, 0.74, 230, 4, 0.45), // fills a square planter to its rim and spills a little (turn 13: counts held to rule 16's triangle reserve)+ // turn 14 (rule 9: pairs that vary in height and fullness): a pencil cypress, 8.8 : 1 and+ // bowing a little; a young broad cone, 3.5 : 1, widest low; an old-rose shrub, taller than+ // shrub-b and lighter in leaf+ 'cypress-slim': () => cypress(11.5, 1.3, 720, 7, 0.7, { peak: 0.42, taper: 0.62, lean: [0.24, -0.1] }),+ 'cypress-broad': () => cypress(6.2, 1.75, 560, 8, 0.45, { peak: 0.22, taper: 0.95 }),+ 'shrub-c': () => shrub(0.9, 0.78, 260, 9, 0.6, { rose: true }),+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(await PIECES['shrub-a'](), [-2, 0, 3]);+ place(await PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_dfd044d6b13642c5bf52251a76e7c865/r_be51d33b5f0a4afc93ade339d923e4a2/manifest.json b/packs/holodeck/sources/project/a_dfd044d6b13642c5bf52251a76e7c865/r_be51d33b5f0a4afc93ade339d923e4a2/manifest.jsonnew file mode 100644index 00000000..441d4a8d--- /dev/null+++ b/packs/holodeck/sources/project/a_dfd044d6b13642c5bf52251a76e7c865/r_be51d33b5f0a4afc93ade339d923e4a2/manifest.json@@ -0,0 +1,363 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_dfd044d6b13642c5bf52251a76e7c865",+ "revisionId": "r_be51d33b5f0a4afc93ade339d923e4a2",+ "parentRevision": "r_d0b3cc0be0f84670ade5eb7165f35050",+ "name": "cypress-tall",+ "tags": [],+ "createdAt": "2026-10-25T06:27:05.043Z",+ "description": "Turn 13: 850 smaller clumps (from 1000) to hold rule 16's triangle reserve.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:689ed8584fff0fe276e8a45adaee3bbeec6a4e72a6a1839f934bdb531fa4a98f",+ "bytes": 550724+ },+ "source.kiln.js": {+ "sha256": "sha256:83d1da82bbf8cb71158400be5be5cb8549e647b10387af7eb8fc163091ead19f",+ "bytes": 27179+ },+ "preview.png": {+ "sha256": "sha256:35e827f604b2d57528e34eeb7d843c47aed7c54fe4313716b9d89e81522f1d1f",+ "bytes": 287342+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "689ed8584fff0fe276e8a45adaee3bbeec6a4e72a6a1839f934bdb531fa4a98f",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.8264937996864319,+ 0,+ -0.8286526799201965+ ],+ "max": [+ 0.8950513005256653,+ 10,+ 0.8717613220214844+ ],+ "size": [+ 1.7215451002120972,+ 10,+ 1.700414001941681+ ],+ "center": [+ 0.0342787504196167,+ 5,+ 0.02155432105064392+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 7968,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 7968,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:689ed8584fff0fe276e8a45adaee3bbeec6a4e72a6a1839f934bdb531fa4a98f",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_dfd044d6b13642c5bf52251a76e7c865/r_be51d33b5f0a4afc93ade339d923e4a2/source.kiln.js b/packs/holodeck/sources/project/a_dfd044d6b13642c5bf52251a76e7c865/r_be51d33b5f0a4afc93ade339d923e4a2/source.kiln.jsnew file mode 100644index 00000000..50df0f8d--- /dev/null+++ b/packs/holodeck/sources/project/a_dfd044d6b13642c5bf52251a76e7c865/r_be51d33b5f0a4afc93ade339d923e4a2/source.kiln.js@@ -0,0 +1,342 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'cypress-tall';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [60, 76, 36, 255], operations: [ // turn 13: a little lighter, so gaps between clumps read as depth, not holes+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs (turn 9: the reviews of revision 11 saw crumpled dark bowls with no flowers): a 512 px+// atlas of 128 px cells in the cypress's manner. Column 0 is the opaque leafy core; columns 1 - 2+// hold eight rounded clusters of small leaves (rows by height on the mound, lighter higher up),+// column 3 four clusters of cream and white blossom heads over leaves.+async function shrubAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 80, 40, 255], operations: [ // turn 13: lighter, so the crown never reads as a dark hollow+ { op: 'stamps', shape: ell(10, 8), rgba: [70, 104, 52, 255], count: 140, seed: 31, area: { x: 0, y: 0, width: 114, height: 500 } },+ { op: 'stamps', shape: ell(8, 6), rgba: [28, 46, 24, 255], count: 90, seed: 32, area: { x: 0, y: 0, width: 116, height: 502 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2]) {+ const lift = 7 * r + 5 * (c - 1), seed = 700 + 11 * r + 3 * c;+ regions.push({ name: `leaves-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(12, 9), rgba: [44 + lift, 74 + lift, 36, 255], count: 76, seed, area: { x: 16, y: 10, width: 80, height: 70 } },+ { op: 'stamps', shape: ell(10, 7), rgba: [72 + lift, 110 + lift, 52, 255], count: 100, seed: seed + 1, area: { x: 10, y: 22, width: 94, height: 82 } },+ { op: 'stamps', shape: ell(7, 5), rgba: [112 + lift, 150 + lift, 74, 255], count: 76, seed: seed + 2, area: { x: 14, y: 34, width: 90, height: 78 } }] } } });+ }+ for (let r = 0; r < 4; r++) {+ const seed = 800 + 13 * r;+ regions.push({ name: `blossom-${r}`, content: { x: 384 + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(11, 8), rgba: [56, 90, 44, 255], count: 70, seed, area: { x: 14, y: 14, width: 84, height: 80 } },+ { op: 'stamps', shape: ell(10, 9), rgba: [248, 238, 212, 255], count: 64, seed: seed + 1, area: { x: 14, y: 12, width: 88, height: 90 } },+ { op: 'stamps', shape: ell(6, 6), rgba: [255, 252, 244, 255], count: 90, seed: seed + 2, area: { x: 12, y: 10, width: 96, height: 96 } },+ { op: 'stamps', shape: ell(2, 2), rgba: [236, 204, 120, 255], count: 30, seed: seed + 3, area: { x: 20, y: 18, width: 82, height: 84 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+async function cypress(H, W, n, seed, trunk) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12;+ const prof = (t) => (t < 0.32 ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / 0.32)) : Math.pow((1 - t) / 0.68, 0.75));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]), 0.04 * t * Math.sin(4.3 * t + ph[1])];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ // turn 13 (the reviews of revision 15: near cypresses read as stacked cardboard with a sawtooth+ // outline): clumps two thirds the size and nearly twice as many, so the outline breaks finer+ const L = (0.19 + 0.17 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.75 + 0.35 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound (turn 9): a dome, widest just above the ground, of small crossed clusters of+// leaves rooted by area in a dark leafy core, a share of them blossom heads, more on its crown and+// sun side of the dome; rounded (spherical) shading normals; it spills a little past a planter's+// rim. Card rows follow height, so the wind stirs the crown more than the foot.+async function shrub(H, R0, n, seed, bloom) {+ const R = rng(seed), M = makeMesh();+ const radius = (t) => R0 * Math.max(0.005, Math.sqrt(Math.max(0, 1 - t ** 2.4)) * (0.9 + 0.12 * Math.sin(Math.PI * Math.min(1, t * 1.8)))); // turn 13: closed at the top (a pinhole showed the sky)+ const bump = body(M, H, 0, radius, 8, 14, 0.12, R, 0.3);+ // turn 13 (the reviews of revision 15 saw hollow domes from above, h8): a dense pass of+ // clusters over the crown, rooted across it (not only round its rim) and pointing up+ for (let k = 0; k < Math.round(n * 0.35); k++) {+ const t = 0.62 + 0.36 * R(), th = R() * 2 * Math.PI, rr = radius(t) * Math.sqrt(R()), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = 1.05 + 0.45 * R(), dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R());+ const root = [rr * out[0], t * H - 0.04, rr * out[2]], tip = add(root, dir, L), flower = R() < bloom * 1.1;+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.756, v1 = v0 + 0.238;+ const ns = nrm([out[0] * 0.3, 1, out[2] * 0.3]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ for (let k = 0; k < n;) {+ const t = 0.04 + R() * 0.94, rad = radius(t);+ if (R() * R0 > rad + 0.5 * R0 * t) continue; // by area, the crown favoured (turn 13: it showed a dark hollow from above)+ k++;+ const th = R() * 2 * Math.PI, y = t * H, out = [Math.cos(th), 0, Math.sin(th)], r = rad * bump(th, t);+ const elev = 0.25 + R() * 0.55 + 0.7 * t * t, dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R()); // turn 13: smaller and more of them+ const root = [(r - 0.05) * out[0], y - 0.02, (r - 0.05) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), flower = t > 0.3 && R() < bloom * (0.6 + 0.6 * t);+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0] * (1 - 0.6 * t), 0.35 + 0.8 * t, out[2] * (1 - 0.6 * t)]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ return [['shrub', M.geo(), foliage(await shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 850, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 600, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.1, 0.85, 300, 3, 0.4), // turn 13: narrower, so it stays in the island planters+ 'shrub-b': () => shrub(0.62, 0.74, 230, 4, 0.45), // fills a square planter to its rim and spills a little (turn 13: counts held to rule 16's triangle reserve)+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(await PIECES['shrub-a'](), [-2, 0, 3]);+ place(await PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_e6f9b6d59c9e48e88b6c266fe8df0f01/r_90ab6b974ebb41c4a72e5062a24334fb/manifest.json b/packs/holodeck/sources/project/a_e6f9b6d59c9e48e88b6c266fe8df0f01/r_90ab6b974ebb41c4a72e5062a24334fb/manifest.jsonnew file mode 100644index 00000000..63250545--- /dev/null+++ b/packs/holodeck/sources/project/a_e6f9b6d59c9e48e88b6c266fe8df0f01/r_90ab6b974ebb41c4a72e5062a24334fb/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_e6f9b6d59c9e48e88b6c266fe8df0f01",+ "revisionId": "r_90ab6b974ebb41c4a72e5062a24334fb",+ "parentRevision": "r_c669751d68b54093b8174490a253eb1b",+ "name": "cascade-tower",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-25T15:20:42.913Z",+ "description": "Cascade tower 4 m square against a terrace wall; its spout's back is plain marble again (no lit slot over the fall), the courses over and under the spout closed; turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:dc18db681668df8be1a07ef3e024b85faaa47ae818f5cca56240a031f1fdbfe1",+ "bytes": 478736+ },+ "source.kiln.js": {+ "sha256": "sha256:a4f9821254f3140ce70f263a232bcf30a7570dbe36c85856f9cb985a020130d2",+ "bytes": 65352+ },+ "preview.png": {+ "sha256": "sha256:d18c8aa35c34e3ea6619ec052fea45286cfa679504fb54665a6430c879d14646",+ "bytes": 287068+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "dc18db681668df8be1a07ef3e024b85faaa47ae818f5cca56240a031f1fdbfe1",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2.0999999046325684,+ 0,+ -2+ ],+ "max": [+ 2.0999999046325684,+ 6.400000095367432,+ 2.0999999046325684+ ],+ "size": [+ 4.199999809265137,+ 6.400000095367432,+ 4.099999904632568+ ],+ "center": [+ 0,+ 3.200000047683716,+ 0.04999995231628418+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 1830,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 4,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 4,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 1830,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 1,+ "materialExtensionsUsed": "KHR_materials_emissive_strength",+ "imageCount": 4,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 12845056,+ "estimatedGpuBytesWithMipmaps": 17126744,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:dc18db681668df8be1a07ef3e024b85faaa47ae818f5cca56240a031f1fdbfe1",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_e6f9b6d59c9e48e88b6c266fe8df0f01/r_90ab6b974ebb41c4a72e5062a24334fb/source.kiln.js b/packs/holodeck/sources/project/a_e6f9b6d59c9e48e88b6c266fe8df0f01/r_90ab6b974ebb41c4a72e5062a24334fb/source.kiln.jsnew file mode 100644index 00000000..3e0d9515--- /dev/null+++ b/packs/holodeck/sources/project/a_e6f9b6d59c9e48e88b6c266fe8df0f01/r_90ab6b974ebb41c4a72e5062a24334fb/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'cascade-tower';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_e7849305e90b44eeab88fb69bc7c5c1e/r_65d968a6e4a34968bfaed1504cf759ba/manifest.json b/packs/holodeck/sources/project/a_e7849305e90b44eeab88fb69bc7c5c1e/r_65d968a6e4a34968bfaed1504cf759ba/manifest.jsonnew file mode 100644index 00000000..28c5a228--- /dev/null+++ b/packs/holodeck/sources/project/a_e7849305e90b44eeab88fb69bc7c5c1e/r_65d968a6e4a34968bfaed1504cf759ba/manifest.json@@ -0,0 +1,362 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_e7849305e90b44eeab88fb69bc7c5c1e",+ "revisionId": "r_65d968a6e4a34968bfaed1504cf759ba",+ "name": "cypress-broad",+ "tags": [],+ "createdAt": "2026-10-25T08:44:44.959Z",+ "description": "Turn 14: a young broad cypress cone, 6.2 m tall at 3.5:1 and widest low, in the shared cypress atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:26743581289a7b2799e09df6909e7ee72184f544c8f5a8bb677adae92c7c6a9e",+ "bytes": 378448+ },+ "source.kiln.js": {+ "sha256": "sha256:dab8bd8cc17939f56be234363d07c9e79fec544a89d0a1de70386d2f528183bb",+ "bytes": 28636+ },+ "preview.png": {+ "sha256": "sha256:3e62eec4027f81ea1c38e0462ba0b610ff8346c1cbebbce41a9d6d387670b228",+ "bytes": 333808+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "26743581289a7b2799e09df6909e7ee72184f544c8f5a8bb677adae92c7c6a9e",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.9349740743637085,+ 0,+ -0.9607555270195007+ ],+ "max": [+ 0.9444140195846558,+ 6.203531265258789,+ 0.9500118494033813+ ],+ "size": [+ 1.8793880939483643,+ 6.203531265258789,+ 1.910767376422882+ ],+ "center": [+ 0.004719972610473633,+ 3.1017656326293945,+ -0.005371838808059692+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 5216,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 5216,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:26743581289a7b2799e09df6909e7ee72184f544c8f5a8bb677adae92c7c6a9e",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "light"+ }+}diff --git a/packs/holodeck/sources/project/a_e7849305e90b44eeab88fb69bc7c5c1e/r_65d968a6e4a34968bfaed1504cf759ba/source.kiln.js b/packs/holodeck/sources/project/a_e7849305e90b44eeab88fb69bc7c5c1e/r_65d968a6e4a34968bfaed1504cf759ba/source.kiln.jsnew file mode 100644index 00000000..e48a9111--- /dev/null+++ b/packs/holodeck/sources/project/a_e7849305e90b44eeab88fb69bc7c5c1e/r_65d968a6e4a34968bfaed1504cf759ba/source.kiln.js@@ -0,0 +1,355 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'cypress-broad';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [60, 76, 36, 255], operations: [ // turn 13: a little lighter, so gaps between clumps read as depth, not holes+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs (turn 9: the reviews of revision 11 saw crumpled dark bowls with no flowers): a 512 px+// atlas of 128 px cells in the cypress's manner. Column 0 is the opaque leafy core; columns 1 - 2+// hold eight rounded clusters of small leaves (rows by height on the mound, lighter higher up),+// column 3 four clusters of cream and white blossom heads over leaves.+async function shrubAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 80, 40, 255], operations: [ // turn 13: lighter, so the crown never reads as a dark hollow+ { op: 'stamps', shape: ell(10, 8), rgba: [70, 104, 52, 255], count: 140, seed: 31, area: { x: 0, y: 0, width: 114, height: 500 } },+ { op: 'stamps', shape: ell(8, 6), rgba: [28, 46, 24, 255], count: 90, seed: 32, area: { x: 0, y: 0, width: 116, height: 502 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2]) {+ const lift = 7 * r + 5 * (c - 1), seed = 700 + 11 * r + 3 * c;+ regions.push({ name: `leaves-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(12, 9), rgba: [44 + lift, 74 + lift, 36, 255], count: 76, seed, area: { x: 16, y: 10, width: 80, height: 70 } },+ { op: 'stamps', shape: ell(10, 7), rgba: [72 + lift, 110 + lift, 52, 255], count: 100, seed: seed + 1, area: { x: 10, y: 22, width: 94, height: 82 } },+ { op: 'stamps', shape: ell(7, 5), rgba: [112 + lift, 150 + lift, 74, 255], count: 76, seed: seed + 2, area: { x: 14, y: 34, width: 90, height: 78 } }] } } });+ }+ // turn 14: rows 0 - 1 cream and white (shrub-a, shrub-b), rows 2 - 3 old rose (shrub-c), so the+ // three shrubs share one atlas and one material+ for (let r = 0; r < 4; r++) {+ const seed = 800 + 13 * r, [petal, light, eye] = r < 2 ? [[248, 238, 212], [255, 252, 244], [236, 204, 120]] : [[232, 160, 172], [248, 204, 210], [226, 184, 112]];+ regions.push({ name: `blossom-${r}`, content: { x: 384 + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(11, 8), rgba: [56, 90, 44, 255], count: 70, seed, area: { x: 14, y: 14, width: 84, height: 80 } },+ { op: 'stamps', shape: ell(10, 9), rgba: [...petal, 255], count: 64, seed: seed + 1, area: { x: 14, y: 12, width: 88, height: 90 } },+ { op: 'stamps', shape: ell(6, 6), rgba: [...light, 255], count: 90, seed: seed + 2, area: { x: 12, y: 10, width: 96, height: 96 } },+ { op: 'stamps', shape: ell(2, 2), rgba: [...eye, 255], count: 30, seed: seed + 3, area: { x: 20, y: 18, width: 82, height: 84 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+// turn 14 (rule 9's varied pairs): o.peak is where the column is widest (0.32 of its height),+// o.taper the power of its narrowing above (0.75), o.lean the top's offset in metres (x, z),+// growing with the square of height so the column bows rather than tilts.+async function cypress(H, W, n, seed, trunk, o = {}) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12, pk = o.peak ?? 0.32, tp = o.taper ?? 0.75, [lx, lz] = o.lean ?? [0, 0];+ const prof = (t) => (t < pk ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / pk)) : Math.pow((1 - t) / (1 - pk), tp));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]) + lx * t * t, 0.04 * t * Math.sin(4.3 * t + ph[1]) + lz * t * t];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ // turn 13 (the reviews of revision 15: near cypresses read as stacked cardboard with a sawtooth+ // outline): clumps two thirds the size and nearly twice as many, so the outline breaks finer+ const L = (0.19 + 0.17 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.75 + 0.35 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound (turn 9): a dome, widest just above the ground, of small crossed clusters of+// leaves rooted by area in a dark leafy core, a share of them blossom heads, more on its crown and+// sun side of the dome; rounded (spherical) shading normals; it spills a little past a planter's+// rim. Card rows follow height, so the wind stirs the crown more than the foot.+// turn 14: o.rose takes the old-rose blossom rows (2 - 3) and the lighter leaf rows; the cream+// shrubs take blossom rows 0 - 1, low on the mound and high+async function shrub(H, R0, n, seed, bloom, o = {}) {+ const R = rng(seed), M = makeMesh(), bRow = (row) => (o.rose ? 2 : 0) + (row >= 2 ? 1 : 0), lRow = (row) => (o.rose ? Math.min(3, row + 1) : row);+ const radius = (t) => R0 * Math.max(0.005, Math.sqrt(Math.max(0, 1 - t ** 2.4)) * (0.9 + 0.12 * Math.sin(Math.PI * Math.min(1, t * 1.8)))); // turn 13: closed at the top (a pinhole showed the sky)+ const bump = body(M, H, 0, radius, 8, 14, 0.12, R, 0.3);+ // turn 13 (the reviews of revision 15 saw hollow domes from above, h8): a dense pass of+ // clusters over the crown, rooted across it (not only round its rim) and pointing up+ for (let k = 0; k < Math.round(n * 0.35); k++) {+ const t = 0.62 + 0.36 * R(), th = R() * 2 * Math.PI, rr = radius(t) * Math.sqrt(R()), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = 1.05 + 0.45 * R(), dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R());+ const root = [rr * out[0], t * H - 0.04, rr * out[2]], tip = add(root, dir, L), flower = R() < bloom * 1.1;+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = flower ? 0.25 * bRow(3) + 0.006 : 0.756, v1 = v0 + 0.238;+ const ns = nrm([out[0] * 0.3, 1, out[2] * 0.3]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ for (let k = 0; k < n;) {+ const t = 0.04 + R() * 0.94, rad = radius(t);+ if (R() * R0 > rad + 0.5 * R0 * t) continue; // by area, the crown favoured (turn 13: it showed a dark hollow from above)+ k++;+ const th = R() * 2 * Math.PI, y = t * H, out = [Math.cos(th), 0, Math.sin(th)], r = rad * bump(th, t);+ const elev = 0.25 + R() * 0.55 + 0.7 * t * t, dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R()); // turn 13: smaller and more of them+ const root = [(r - 0.05) * out[0], y - 0.02, (r - 0.05) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), flower = t > 0.3 && R() < bloom * (0.6 + 0.6 * t);+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * (flower ? bRow(row) : lRow(row)) + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0] * (1 - 0.6 * t), 0.35 + 0.8 * t, out[2] * (1 - 0.6 * t)]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ return [['shrub', M.geo(), foliage(await shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 850, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 600, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.1, 0.85, 300, 3, 0.4), // turn 13: narrower, so it stays in the island planters+ 'shrub-b': () => shrub(0.62, 0.74, 230, 4, 0.45), // fills a square planter to its rim and spills a little (turn 13: counts held to rule 16's triangle reserve)+ // turn 14 (rule 9: pairs that vary in height and fullness): a pencil cypress, 8.8 : 1 and+ // bowing a little; a young broad cone, 3.5 : 1, widest low; an old-rose shrub, taller than+ // shrub-b and lighter in leaf+ 'cypress-slim': () => cypress(11.5, 1.3, 720, 7, 0.7, { peak: 0.42, taper: 0.62, lean: [0.24, -0.1] }),+ 'cypress-broad': () => cypress(6.2, 1.75, 560, 8, 0.45, { peak: 0.22, taper: 0.95 }),+ 'shrub-c': () => shrub(0.9, 0.78, 260, 9, 0.6, { rose: true }),+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(await PIECES['shrub-a'](), [-2, 0, 3]);+ place(await PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6/r_60cc31247cad446a95672bddc01ae520/manifest.json b/packs/holodeck/sources/project/a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6/r_60cc31247cad446a95672bddc01ae520/manifest.jsonnew file mode 100644index 00000000..c73678f4--- /dev/null+++ b/packs/holodeck/sources/project/a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6/r_60cc31247cad446a95672bddc01ae520/manifest.json@@ -0,0 +1,367 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6",+ "revisionId": "r_60cc31247cad446a95672bddc01ae520",+ "parentRevision": "r_205d267f0d22467ba12953656d47e268",+ "name": "arcade-bay",+ "tags": [+ "meridian-sanctuary",+ "architecture",+ "arcade"+ ],+ "createdAt": "2026-10-25T15:19:53.397Z",+ "description": "One arcade bay in one mesh (plain pier with its arch on the +x side), turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:bf2e816bd344c60734361a581266831601546c8afddd49e80554110d64de815d",+ "bytes": 561964+ },+ "source.kiln.js": {+ "sha256": "sha256:19ea35e682ab0761fc4e479b9e0dc85a75a947fe6b97020d8d9e0a59c1ba000f",+ "bytes": 65349+ },+ "preview.png": {+ "sha256": "sha256:9e95dcb4de1ab79fee6293fd5a5869870f7aa753b279c0e7cfae22bc1840c1e6",+ "bytes": 149231+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "bf2e816bd344c60734361a581266831601546c8afddd49e80554110d64de815d",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.699999988079071,+ 0,+ -0.8500000238418579+ ],+ "max": [+ 4.800000190734863,+ 9.399999618530273,+ 0.8500000238418579+ ],+ "size": [+ 5.500000178813934,+ 9.399999618530273,+ 1.7000000476837158+ ],+ "center": [+ 2.050000101327896,+ 4.699999809265137,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 2676,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 2676,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:bf2e816bd344c60734361a581266831601546c8afddd49e80554110d64de815d",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6/r_60cc31247cad446a95672bddc01ae520/source.kiln.js b/packs/holodeck/sources/project/a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6/r_60cc31247cad446a95672bddc01ae520/source.kiln.jsnew file mode 100644index 00000000..291f64df--- /dev/null+++ b/packs/holodeck/sources/project/a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6/r_60cc31247cad446a95672bddc01ae520/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'arcade-bay';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_f2de801b1cbb472b99638a036c22221a/r_4cb4690620ab4a2aa57cf69cd06255e5/manifest.json b/packs/holodeck/sources/project/a_f2de801b1cbb472b99638a036c22221a/r_4cb4690620ab4a2aa57cf69cd06255e5/manifest.jsonnew file mode 100644index 00000000..394f0043--- /dev/null+++ b/packs/holodeck/sources/project/a_f2de801b1cbb472b99638a036c22221a/r_4cb4690620ab4a2aa57cf69cd06255e5/manifest.json@@ -0,0 +1,362 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_f2de801b1cbb472b99638a036c22221a",+ "revisionId": "r_4cb4690620ab4a2aa57cf69cd06255e5",+ "name": "cypress-slim",+ "tags": [],+ "createdAt": "2026-10-25T08:44:43.693Z",+ "description": "Turn 14: a pencil cypress, 11.5 m tall at 8.8:1, bowing slightly toward its top, in the shared cypress atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:003f4e9395fb5c6a3ff97c5d02762800b61687cd8f8064f7d920af798b600624",+ "bytes": 481224+ },+ "source.kiln.js": {+ "sha256": "sha256:df66b9dabaecd49dd2f9e096c63e875c74c187a208ba674d2e641def1483c18c",+ "bytes": 28635+ },+ "preview.png": {+ "sha256": "sha256:748340a4337f249ff6759193335f0d252973bb9d6310fc4beb5fc93d983cdbc6",+ "bytes": 246106+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "003f4e9395fb5c6a3ff97c5d02762800b61687cd8f8064f7d920af798b600624",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.6411319375038147,+ 0,+ -0.7029708623886108+ ],+ "max": [+ 0.7775365710258484,+ 11.5,+ 0.6987123489379883+ ],+ "size": [+ 1.418668508529663,+ 11.5,+ 1.4016832113265991+ ],+ "center": [+ 0.06820231676101685,+ 5.75,+ -0.0021292567253112793+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": 0,+ "offsetToGround": 0,+ "grounded": true+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian planting"+ },+ "renderMetrics": {+ "triangles": 7072,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 1,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 1,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 7072,+ "materialCount": 1,+ "opaqueMaterials": 0,+ "maskedMaterials": 1,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 1,+ "maxImageDimension": 512,+ "decodedImageBytesRgba8": 1048576,+ "estimatedGpuBytesWithMipmaps": 1398102,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:003f4e9395fb5c6a3ff97c5d02762800b61687cd8f8064f7d920af798b600624",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "light"+ }+}diff --git a/packs/holodeck/sources/project/a_f2de801b1cbb472b99638a036c22221a/r_4cb4690620ab4a2aa57cf69cd06255e5/source.kiln.js b/packs/holodeck/sources/project/a_f2de801b1cbb472b99638a036c22221a/r_4cb4690620ab4a2aa57cf69cd06255e5/source.kiln.jsnew file mode 100644index 00000000..03eb9e8c--- /dev/null+++ b/packs/holodeck/sources/project/a_f2de801b1cbb472b99638a036c22221a/r_4cb4690620ab4a2aa57cf69cd06255e5/source.kiln.js@@ -0,0 +1,355 @@+// Meridian Sanctuary planting (plan.md section 5, assets 32-37): columnar cypress, flowering+// shrubs and trailing ivy. PIECE selects which one this revision is. Each plant is one mesh with+// one alpha-masked material, so placements batch, and binds Holodeck's asset.foliage by its+// Mesh_<name> node. Wind weight is UV.y: a plant's body runs v 0 at its foot to 1 at its top+// (the whole column sways a little), each tuft or strand card runs 0 at its attachment to 1 at+// its tip. Cards are emitted on both sides with outward normals, so foliage shades as a+// volume instead of darkening when a card is seen from behind.+const meta = { name: 'Meridian planting' };+const PIECE = 'cypress-slim';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };+const add = (a, b, k = 1) => [a[0] + b[0] * k, a[1] + b[1] * k, a[2] + b[2] * k];+const cross = (a, b) => [a[1] * b[2] - a[2] * b[1], a[2] * b[0] - a[0] * b[2], a[0] * b[1] - a[1] * b[0]];++// ---------------------------------------------------------------- textures (512 x 512 atlases)+// Column 0 (u 0 - 0.25) is an opaque body strip; columns 1 - 3 hold card sprays drawn with their+// attachment at the top of the image (v = 0) and their tip at the bottom (v = 1). Cleared texels+// keep a near-zero alpha and a foliage colour, so filtering never darkens a silhouette.+function bodyStrip(layers, floor) { // floor: the colour cleared texels keep, at alpha 1+ return [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: 512, usage: 'albedo', layers } },+ { op: 'mask', shape: { kind: 'rectangle', x: 0, y: 0, width: 128, height: 512 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 128, y: 0, width: 384, height: 512 }, rgba: [...floor, 1] }];+}+// A flame-shaped spray in column c: overlapping leaf blobs in bands that widen then taper.+function spray(c, bands, blob, colours, seed) {+ const cx = 128 * c + 64, ops = [];+ bands.forEach(([y0, y1, w, n], i) => colours.forEach(([rgba, share], k) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: blob[0], height: blob[1] }, rgba, count: Math.max(1, Math.round(n * share)),+ seed: seed + 31 * i + 7 * k, area: { x: cx - Math.round(w / 2), y: y0, width: w, height: y1 - y0 } })));+ return ops;+}+// Cypress (turn 8): a 512 px atlas of 128 px cells (2 px gutters), composed from one procedural+// source per region since a single texture allows only 256 stamps. Column 0 is the opaque core+// strip, dark olive with lighter and darker blotches, over a band of bark at its foot (v 0 -+// 0.05, which the trunk maps). Columns 1 - 3 hold twelve clump cells in four rows by height on+// the tree (row 0 at the foot, so the wind weight grows upward). Each clump is a dense oval of+// needle tufts: dark at its root (the cell's top), deep olive in the middle, and a fringe of+// fine lit tufts round its tip and sides, so the outline is soft rather than serrated; higher+// rows and the third column a little brighter.+async function cypressAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [60, 76, 36, 255], operations: [ // turn 13: a little lighter, so gaps between clumps read as depth, not holes+ { op: 'stamps', shape: ell(12, 14), rgba: [78, 94, 42, 255], count: 110, seed: 22, area: { x: 0, y: 30, width: 112, height: 470 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [36, 46, 24, 255], count: 80, seed: 24, area: { x: 0, y: 30, width: 114, height: 470 } },+ { op: 'paint', shape: { kind: 'rectangle', x: 0, y: 0, width: 124, height: 26 }, rgba: [104, 90, 70, 255] },+ { op: 'stamps', shape: { kind: 'rectangle', x: 0, y: 0, width: 3, height: 9 }, rgba: [74, 62, 48, 255], count: 40, seed: 23, area: { x: 0, y: 0, width: 121, height: 17 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2, 3]) {+ const lift = 5 * r + 5 * (c - 2), seed = 500 + 13 * r + 5 * c;+ regions.push({ name: `clump-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [74, 92, 40, 1], operations: [+ { op: 'stamps', shape: ell(12, 14), rgba: [44 + lift, 58 + lift, 28, 255], count: 64, seed, area: { x: 28, y: 6, width: 56, height: 50 } },+ { op: 'stamps', shape: ell(10, 12), rgba: [72 + lift, 90 + lift, 40, 255], count: 92, seed: seed + 1, area: { x: 18, y: 24, width: 78, height: 58 } },+ { op: 'stamps', shape: ell(6, 8), rgba: [108 + lift, 126 + lift, 54, 255], count: 98, seed: seed + 2, area: { x: 12, y: 40, width: 94, height: 74 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Shrubs (turn 9: the reviews of revision 11 saw crumpled dark bowls with no flowers): a 512 px+// atlas of 128 px cells in the cypress's manner. Column 0 is the opaque leafy core; columns 1 - 2+// hold eight rounded clusters of small leaves (rows by height on the mound, lighter higher up),+// column 3 four clusters of cream and white blossom heads over leaves.+async function shrubAtlas() {+ const ell = (w, h) => ({ kind: 'ellipse', x: 0, y: 0, width: w, height: h });+ const regions = [{ name: 'core', content: { x: 2, y: 2, width: 124, height: 508 }, source: { kind: 'procedural', spec: { schemaVersion: 3, width: 124, height: 508, usage: 'albedo',+ background: [52, 80, 40, 255], operations: [ // turn 13: lighter, so the crown never reads as a dark hollow+ { op: 'stamps', shape: ell(10, 8), rgba: [70, 104, 52, 255], count: 140, seed: 31, area: { x: 0, y: 0, width: 114, height: 500 } },+ { op: 'stamps', shape: ell(8, 6), rgba: [28, 46, 24, 255], count: 90, seed: 32, area: { x: 0, y: 0, width: 116, height: 502 } }] } } }];+ for (let r = 0; r < 4; r++) for (const c of [1, 2]) {+ const lift = 7 * r + 5 * (c - 1), seed = 700 + 11 * r + 3 * c;+ regions.push({ name: `leaves-${r}-${c}`, content: { x: 128 * c + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(12, 9), rgba: [44 + lift, 74 + lift, 36, 255], count: 76, seed, area: { x: 16, y: 10, width: 80, height: 70 } },+ { op: 'stamps', shape: ell(10, 7), rgba: [72 + lift, 110 + lift, 52, 255], count: 100, seed: seed + 1, area: { x: 10, y: 22, width: 94, height: 82 } },+ { op: 'stamps', shape: ell(7, 5), rgba: [112 + lift, 150 + lift, 74, 255], count: 76, seed: seed + 2, area: { x: 14, y: 34, width: 90, height: 78 } }] } } });+ }+ // turn 14: rows 0 - 1 cream and white (shrub-a, shrub-b), rows 2 - 3 old rose (shrub-c), so the+ // three shrubs share one atlas and one material+ for (let r = 0; r < 4; r++) {+ const seed = 800 + 13 * r, [petal, light, eye] = r < 2 ? [[248, 238, 212], [255, 252, 244], [236, 204, 120]] : [[232, 160, 172], [248, 204, 210], [226, 184, 112]];+ regions.push({ name: `blossom-${r}`, content: { x: 384 + 2, y: 128 * r + 2, width: 124, height: 124 }, source: { kind: 'procedural', spec: {+ schemaVersion: 3, width: 124, height: 124, usage: 'albedo', background: [64, 98, 48, 1], operations: [+ { op: 'stamps', shape: ell(11, 8), rgba: [56, 90, 44, 255], count: 70, seed, area: { x: 14, y: 14, width: 84, height: 80 } },+ { op: 'stamps', shape: ell(10, 9), rgba: [...petal, 255], count: 64, seed: seed + 1, area: { x: 14, y: 12, width: 88, height: 90 } },+ { op: 'stamps', shape: ell(6, 6), rgba: [...light, 255], count: 90, seed: seed + 2, area: { x: 12, y: 10, width: 96, height: 96 } },+ { op: 'stamps', shape: ell(2, 2), rgba: [...eye, 255], count: 30, seed: seed + 3, area: { x: 20, y: 18, width: 82, height: 84 } }] } } });+ }+ return textureAtlas({ schemaVersion: 1, width: 512, height: 512, usage: 'albedo', regions });+}+// Ivy (turn 8): sixteen 128 px cells, one five-lobed leaf hanging from its stalk in each, with a+// pale midrib and lateral veins, in four rows by place along a strand: row 0 the mature, darker+// leaves of the crown and the strand tops, row 3 the light yellow-green tips (the mean stays near+// sRGB 90, 130, 50). Four hues per row. A card maps one cell, its stalk at the cell's top, so the+// wind weight (UV.y) grows toward a strand's tip.+const IVY_LEAF = [[50, 14], [58, 6], [68, 2], [78, 4], [86, 10], [90, 18], [86, 26], [80, 30], [90, 36], [98, 44], [96, 52], [88, 56], [76, 58],+ [72, 66], [66, 78], [58, 90], [50, 100], [42, 90], [34, 78], [28, 66], [24, 58], [12, 56], [4, 52], [2, 44], [10, 36], [20, 30], [14, 26],+ [10, 18], [14, 10], [22, 4], [32, 2], [42, 6]]; // in a 100 x 100 box, the stalk joining at (50, 14)+const IVY_HUES = [[[58, 94, 38], [66, 104, 42], [52, 86, 36], [72, 110, 46]], [[76, 116, 46], [86, 126, 50], [70, 108, 44], [94, 132, 54]],+ [[102, 140, 56], [112, 148, 60], [96, 134, 52], [120, 156, 64]], [[136, 168, 70], [146, 176, 78], [128, 160, 66], [156, 182, 84]]];+function ivyAtlas() {+ const ops = [];+ for (let r = 0; r < 4; r++) for (let c = 0; c < 4; c++) {+ const x = 128 * c, y = 128 * r, wide = [1.04, 0.94, 1.0, 1.1][c], body = IVY_HUES[r][c];+ const pt = ([px, py]) => [Math.round(x + 64 + (px - 50) * 1.04 * wide), Math.round(y + 20 + py * 1.04)];+ const vein = [...body.map((v, i) => Math.min(255, v + [44, 40, 26][i])), 255];+ ops.push({ op: 'paint', shape: { kind: 'polygon', points: IVY_LEAF.map(pt) }, rgba: [...body, 255] },+ { op: 'paint', shape: { kind: 'line', from: [x + 64, y + 1], to: [x + 64, y + 112], width: 3 }, rgba: vein },+ { op: 'paint', shape: { kind: 'polygon', points: [[20, 62], [50, 30], [80, 62], [80, 65], [50, 33], [20, 65]].map(pt) }, rgba: vein });+ }+ return proceduralTexture({ schemaVersion: 3, width: 512, height: 512, usage: 'albedo', background: [90, 130, 50, 1], operations: ops });+}+const foliage = (albedo, roughness) => pbrMaterial({ albedo, roughness, metalness: 0, alphaMode: 'mask', alphaCutoff: 0.5, doubleSided: false });++// ---------------------------------------------------------------- geometry+function makeMesh() {+ const M = { P: [], N: [], T: [], I: [] };+ M.vert = (p, n, uv) => { M.P.push(...p); M.N.push(...n); M.T.push(...uv); return M.P.length / 3 - 1; };+ // a card both ways round, all four corners shaded with normal n+ M.card = (c, n, uv) => {+ const i = c.map((p, k) => M.vert(p, n, uv[k])), j = c.map((p, k) => M.vert(p, n, uv[k]));+ M.I.push(i[0], i[1], i[2], i[0], i[2], i[3], j[0], j[2], j[1], j[0], j[3], j[2]);+ };+ M.geo = () => meshGeo({ positions: M.P, normals: M.N, uvs: M.T, indices: M.I });+ return M;+}+// A lathed body around +Y with a lumpy radius: rings from y0 to H, the strip u 0 - 0.25 around,+// v 0 at the foot to vTop at the top (1 for a column that sways; less for a low mound, which+// also keeps its texture from squashing).+function body(M, H, y0, radius, rings, segs, lump, R, vTop = 1) {+ const ph = Array.from({ length: 4 }, () => R() * 6.283);+ const bump = (th, t) => 1 + lump * (0.5 * Math.sin(3 * th + ph[0] + 9 * t) + 0.3 * Math.sin(5 * th + ph[1] - 13 * t) + 0.2 * Math.sin(7 * th + ph[2] + 21 * t));+ const base = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([rr * Math.cos(th), y, rr * Math.sin(th)], nrm([Math.cos(th), 0.25 + 0.6 * t * t, Math.sin(th)]), [(0.25 * j) / segs, t * vTop]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = base + i * (segs + 1) + j, b = a + 1, c = a + segs + 1, d = c + 1;+ M.I.push(a, c, b, b, c, d);+ }+ return bump;+}+// Crossed tuft cards rooted just inside the body, pointing out and up: n of them, placed by+// area (rejection sampling on the radius), each picking one of the spray columns.+function tufts(M, H, y0, radius, bump, n, R, o) {+ for (let k = 0; k < n;) {+ const t = o.t0 + R() * (o.t1 - o.t0), rad = radius(t);+ if (R() * o.rmax > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, y = y0 + t * (H - y0), r = rad * bump(th, t), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = o.elev[0] + R() * (o.elev[1] - o.elev[0]) + o.elevTop * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const side1 = [-Math.sin(th), 0, Math.cos(th)], side2 = nrm(cross(dir, side1));+ const L = (o.len[0] + R() * (o.len[1] - o.len[0])) * (0.55 + 0.45 * (rad / o.rmax)), W = L * (o.aspect[0] + R() * (o.aspect[1] - o.aspect[0]));+ const root = add([r * out[0], y, r * out[2]], out, -o.sink), tip = add(root, dir, L);+ const col = 1 + Math.floor(R() * 3), u0 = 0.25 * col + 0.01, u1 = u0 + 0.23, n2 = nrm(add(out, [0, 1, 0], 0.4)), vt = o.vMax ?? 1;+ for (const side of o.cross === false ? [side1] : [side1, side2]) {+ M.card([add(root, side, -W / 2), add(root, side, W / 2), add(tip, side, W * 0.45), add(tip, side, -W * 0.45)], n2,+ [[u0, 0], [u1, 0], [u1, vt], [u0, vt]]);+ }+ }+}+// Italian cypress (turn 8, after the reviews of revision 10): a slender column, height about six+// times its width, on a short visible trunk; widest a third of the way up, tapering to a blunt+// point, its axis wandering a little. A dark core carries several hundred small crossed clump+// cards rooted in it and set by area, pointing out and up, so the outline is soft and irregular.+// Their shading normals are spherical (out from the axis, a little up) so the column shades as+// one volume: dark in its shade, lit olive on the sun side, with bright tips.+// turn 14 (rule 9's varied pairs): o.peak is where the column is widest (0.32 of its height),+// o.taper the power of its narrowing above (0.75), o.lean the top's offset in metres (x, z),+// growing with the square of height so the column bows rather than tilts.+async function cypress(H, W, n, seed, trunk, o = {}) {+ const R = rng(seed), M = makeMesh(), rc = W / 2 - 0.2, y0 = trunk - 0.12, pk = o.peak ?? 0.32, tp = o.taper ?? 0.75, [lx, lz] = o.lean ?? [0, 0];+ const prof = (t) => (t < pk ? 0.58 + 0.42 * Math.sin((Math.PI / 2) * (t / pk)) : Math.pow((1 - t) / (1 - pk), tp));+ const radius = (t) => Math.max(0.02, rc * prof(t));+ const ph = [R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283, R() * 6.283];+ const axis = (t) => [0.05 * t * Math.sin(5.5 * t + ph[0]) + lx * t * t, 0.04 * t * Math.sin(4.3 * t + ph[1]) + lz * t * t];+ const bump = (th, t) => 1 + 0.09 * (0.5 * Math.sin(3 * th + ph[2] + 11 * t) + 0.3 * Math.sin(5 * th + ph[3] - 17 * t) + 0.2 * Math.sin(7 * th + ph[4] + 23 * t));+ // the trunk: 8 sides tapering from 0.12 to 0.085 m, bark at v 0 - 0.05 (it does not sway)+ const tb = M.P.length / 3;+ for (let i = 0; i <= 1; i++) for (let j = 0; j <= 8; j++) {+ const th = (j / 8) * 2 * Math.PI, r = i ? 0.085 : 0.12;+ M.vert([r * Math.cos(th), i ? trunk : 0, r * Math.sin(th)], [Math.cos(th), 0, Math.sin(th)], [(0.25 * j) / 8, i ? 0.05 : 0.004]);+ }+ for (let j = 0; j < 8; j++) M.I.push(tb + j, tb + j + 9, tb + j + 1, tb + j + 1, tb + j + 9, tb + j + 10);+ // the core: a ring every 0.3 m, 18 sides; strip u 0 - 0.25 around, v 0.07 at its foot to 1 at the top+ const rings = Math.round((H - y0) / 0.3), segs = 18, cb = M.P.length / 3;+ for (let i = 0; i <= rings; i++) {+ const t = i / rings, y = y0 + t * (H - y0), r = radius(t), [ax, az] = axis(t);+ for (let j = 0; j <= segs; j++) {+ const th = (j / segs) * 2 * Math.PI, rr = r * bump(th, t);+ M.vert([ax + rr * Math.cos(th), y, az + rr * Math.sin(th)], nrm([Math.cos(th), 0.2 + 0.5 * t * t, Math.sin(th)]), [(0.25 * j) / segs, 0.07 + 0.93 * t]);+ }+ }+ for (let i = 0; i < rings; i++) for (let j = 0; j < segs; j++) {+ const a = cb + i * (segs + 1) + j, c = a + segs + 1;+ M.I.push(a, c, a + 1, a + 1, c, c + 1);+ }+ // the clumps, by area over the core: rooted 0.1 m inside it, longer where the column is wide+ for (let k = 0; k < n;) {+ const t = 0.015 + R() * 0.975, rad = radius(t);+ if (R() * rc > rad) continue;+ k++;+ const th = R() * 2 * Math.PI, [ax, az] = axis(t), y = y0 + t * (H - y0), out = [Math.cos(th), 0, Math.sin(th)];+ const r = rad * bump(th, t), elev = 0.45 + R() * 0.5 + 0.55 * t * t;+ const dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI; // the crossed pair turned at random about its axis+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ // turn 13 (the reviews of revision 15: near cypresses read as stacked cardboard with a sawtooth+ // outline): clumps two thirds the size and nearly twice as many, so the outline breaks finer+ const L = (0.19 + 0.17 * R()) * (0.55 + 0.45 * Math.min(1, rad / (0.7 * rc))), Wc = L * (0.75 + 0.35 * R());+ const root = [ax + (r - 0.1) * out[0], y - 0.04, az + (r - 0.1) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), col = 1 + Math.floor(R() * 3);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0], 0.3 + 0.4 * t, out[2]]);+ for (const side of [side1, side2]) {+ M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ }+ return [['cypress', M.geo(), foliage(await cypressAtlas(), 0.85)]];+}+// Flowering mound (turn 9): a dome, widest just above the ground, of small crossed clusters of+// leaves rooted by area in a dark leafy core, a share of them blossom heads, more on its crown and+// sun side of the dome; rounded (spherical) shading normals; it spills a little past a planter's+// rim. Card rows follow height, so the wind stirs the crown more than the foot.+// turn 14: o.rose takes the old-rose blossom rows (2 - 3) and the lighter leaf rows; the cream+// shrubs take blossom rows 0 - 1, low on the mound and high+async function shrub(H, R0, n, seed, bloom, o = {}) {+ const R = rng(seed), M = makeMesh(), bRow = (row) => (o.rose ? 2 : 0) + (row >= 2 ? 1 : 0), lRow = (row) => (o.rose ? Math.min(3, row + 1) : row);+ const radius = (t) => R0 * Math.max(0.005, Math.sqrt(Math.max(0, 1 - t ** 2.4)) * (0.9 + 0.12 * Math.sin(Math.PI * Math.min(1, t * 1.8)))); // turn 13: closed at the top (a pinhole showed the sky)+ const bump = body(M, H, 0, radius, 8, 14, 0.12, R, 0.3);+ // turn 13 (the reviews of revision 15 saw hollow domes from above, h8): a dense pass of+ // clusters over the crown, rooted across it (not only round its rim) and pointing up+ for (let k = 0; k < Math.round(n * 0.35); k++) {+ const t = 0.62 + 0.36 * R(), th = R() * 2 * Math.PI, rr = radius(t) * Math.sqrt(R()), out = [Math.cos(th), 0, Math.sin(th)];+ const elev = 1.05 + 0.45 * R(), dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R());+ const root = [rr * out[0], t * H - 0.04, rr * out[2]], tip = add(root, dir, L), flower = R() < bloom * 1.1;+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = flower ? 0.25 * bRow(3) + 0.006 : 0.756, v1 = v0 + 0.238;+ const ns = nrm([out[0] * 0.3, 1, out[2] * 0.3]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ for (let k = 0; k < n;) {+ const t = 0.04 + R() * 0.94, rad = radius(t);+ if (R() * R0 > rad + 0.5 * R0 * t) continue; // by area, the crown favoured (turn 13: it showed a dark hollow from above)+ k++;+ const th = R() * 2 * Math.PI, y = t * H, out = [Math.cos(th), 0, Math.sin(th)], r = rad * bump(th, t);+ const elev = 0.25 + R() * 0.55 + 0.7 * t * t, dir = nrm([out[0] * Math.cos(elev), Math.sin(elev), out[2] * Math.cos(elev)]);+ const tan = [-Math.sin(th), 0, Math.cos(th)], spin = R() * Math.PI;+ const side1 = add(tan.map((v) => v * Math.cos(spin)), cross(dir, tan), Math.sin(spin)), side2 = nrm(cross(dir, side1));+ const L = (0.12 + 0.1 * R()) * (H / 0.6) ** 0.5, Wc = L * (0.85 + 0.25 * R()); // turn 13: smaller and more of them+ const root = [(r - 0.05) * out[0], y - 0.02, (r - 0.05) * out[2]], tip = add(root, dir, L);+ const row = Math.min(3, Math.floor(t * 4)), flower = t > 0.3 && R() < bloom * (0.6 + 0.6 * t);+ const col = flower ? 3 : 1 + Math.floor(R() * 2), u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * (flower ? bRow(row) : lRow(row)) + 0.006, v1 = v0 + 0.238;+ const ns = nrm([out[0] * (1 - 0.6 * t), 0.35 + 0.8 * t, out[2] * (1 - 0.6 * t)]);+ for (const side of [side1, side2]) M.card([add(root, side, -Wc / 2), add(root, side, Wc / 2), add(tip, side, Wc / 2), add(tip, side, -Wc / 2)], ns, [[u0, v0], [u1, v0], [u1, v1], [u0, v1]]);+ }+ return [['shrub', M.geo(), foliage(await shrubAtlas(), 0.85)]];+}+// Trailing ivy (turn 8, after the reviews of revision 10), in the ledge's frame: the edge runs+// along x at y = 0, z = 0, the ledge top lies toward -Z and the drop toward +Z. Strands in two or+// three loose groups root on the ledge, run over the edge and hang, bulging out a little and+// drifting outward toward the ends, as ivy trails down pier edges. Every leaf is its own small+// card hung from its stalk, turned and tipped out from the wall at random, on alternate sides of+// its strand: close-set, large and dark near the top, sparser, smaller and lighter toward the+// tapering tip. A crown of leaves over each group and a ragged line along the edge between them+// make the top densest. Shading normals are bent out from the wall (and a little up), toward+// the warm haze and the court rather than the blue zenith, so curtains in shade stay green.+function ivy(span, strands, lenRange, seed, o) {+ const R = rng(seed), M = makeMesh();+ const leaf = (p, size, row, lean) => { // a card from its stalk at p, the blade below it+ const roll = (R() - 0.5) * 0.9, twist = (R() - 0.5) * 1.2;+ const d = nrm([Math.sin(roll) * Math.cos(lean), -Math.cos(lean) * Math.cos(roll), Math.sin(lean)]);+ const a0 = nrm(cross(d, [0, 0, 1])), a = add(a0.map((v) => v * Math.cos(twist)), cross(d, a0), Math.sin(twist));+ const half = add([0, 0, 0], a, size / 2), foot = add(p, d, size), col = Math.floor(R() * 4);+ const u0 = 0.25 * col + 0.006, u1 = u0 + 0.238, v0 = 0.25 * row + 0.006, v1 = v0 + 0.238;+ const n = nrm([0.25 * (R() - 0.5), 0.3 + 0.2 * R(), 1]);+ M.card([add(p, half, -1), add(p, half, 1), add(foot, half, 1), add(foot, half, -1)], n, [[u1, v0], [u0, v0], [u0, v1], [u1, v1]]);+ };+ const groups = Array.from({ length: 2 + Math.floor(R() * 2) }, () => (R() - 0.5) * span * 0.8);+ const raw = Array.from({ length: strands }, (_, k) => groups[k % groups.length] + (R() - 0.5) * span * 0.32);+ const mid = (Math.min(...raw) + Math.max(...raw)) / 2; // centre the curtain on the piece+ groups.forEach((g, i) => { groups[i] = g - mid; });+ const roots = raw.map((x) => Math.max(-span / 2, Math.min(span / 2, x - mid))).sort((a, b) => a - b);+ for (const x0 of roots) {+ const L = lenRange[0] + Math.pow(R(), 0.7) * (lenRange[1] - lenRange[0]), bulge = 0.08 + R() * 0.22;+ const out = Math.sign(x0 || 1) * Math.pow(Math.abs(x0) / (span / 2), 2) * (0.3 + R() * 0.6) + (R() - 0.5) * 0.3; // drift at the tip+ const at = (s) => (s < 0.2 ? [x0, 0.04, -0.2 + s] // along the ledge top to the edge, then down the face+ : [x0 + out * ((s - 0.2) / (L - 0.2)) ** 1.6, -(s - 0.2), 0.05 + bulge * (1 - Math.exp(-(s - 0.2) / 0.55)) - 0.04 * ((s - 0.2) / (L - 0.2))]);+ let side = R() < 0.5 ? -1 : 1;+ for (let s = 0.04 + 0.06 * R(); s < L; s += 0.045 + 0.12 * (s / L) ** 1.2 + 0.03 * R()) {+ const f = s / L, p = add(at(s), [side * (0.03 + 0.07 * R()) * (1 - 0.5 * f), 0, 0.015]);+ const row = Math.max(0, Math.min(3, Math.floor(4 * f ** 0.85 + 0.6 * (R() - 0.5))));+ leaf(p, o.leaf * (1 - 0.48 * f) * (0.85 + 0.3 * R()), row, s < 0.2 ? 1.1 + 0.4 * R() : 0.25 + 0.55 * R()); // flatter on the ledge top+ side = R() < 0.82 ? -side : side; // mostly alternate, sometimes two on one side+ }+ }+ for (const g of groups) for (let k = 0; k < o.crown; k++) { // the crown over each group, on the ledge top and over the edge+ const x = g + (R() + R() - 1) * span * 0.2, z = -0.26 + 0.34 * R(), onTop = z < -0.02;+ leaf([x, onTop ? 0.06 + 0.1 * R() : 0.08 * R() - 0.06, z], o.leaf * (0.9 + 0.35 * R()), R() < 0.7 ? 0 : 1, onTop ? 1.0 + 0.5 * R() : 0.4 + 0.5 * R());+ }+ for (let x = -span / 2; x < span / 2; x += 0.12 + 0.2 * R()) { // a ragged line along the edge between the groups+ if (R() < 0.45) leaf([x, 0.05 * R(), -0.05 + 0.08 * R()], o.leaf * (0.75 + 0.3 * R()), R() < 0.6 ? 0 : 1, 0.6 + 0.6 * R());+ }+ return [['ivy', M.geo(), foliage(ivyAtlas(), 0.85)]];+}++const PIECES = {+ 'cypress-tall': () => cypress(10, 1.6, 850, 1, 0.6), // 6.3 : 1+ 'cypress-mid': () => cypress(7.2, 1.24, 600, 2, 0.5), // 5.8 : 1+ 'shrub-a': () => shrub(1.1, 0.85, 300, 3, 0.4), // turn 13: narrower, so it stays in the island planters+ 'shrub-b': () => shrub(0.62, 0.74, 230, 4, 0.45), // fills a square planter to its rim and spills a little (turn 13: counts held to rule 16's triangle reserve)+ // turn 14 (rule 9: pairs that vary in height and fullness): a pencil cypress, 8.8 : 1 and+ // bowing a little; a young broad cone, 3.5 : 1, widest low; an old-rose shrub, taller than+ // shrub-b and lighter in leaf+ 'cypress-slim': () => cypress(11.5, 1.3, 720, 7, 0.7, { peak: 0.42, taper: 0.62, lean: [0.24, -0.1] }),+ 'cypress-broad': () => cypress(6.2, 1.75, 560, 8, 0.45, { peak: 0.22, taper: 0.95 }),+ 'shrub-c': () => shrub(0.9, 0.78, 260, 9, 0.6, { rose: true }),+ 'ivy-long': () => ivy(3.4, 13, [3.0, 7.0], 5, { leaf: 0.26, crown: 40 }),+ 'ivy-short': () => ivy(2.6, 9, [1.2, 3.0], 6, { leaf: 0.24, crown: 30 }),+};+// Review only (never saved): a cypress pair, shrubs and both ivies on a stand-in ledge.+async function previewPlanting() {+ const out = [], stone = pbrMaterial({ albedo: proceduralTexture({ schemaVersion: 2, size: 64, usage: 'albedo', layers: [{ op: 'noise', colorA: 0xe7dfd0, colorB: 0xf8f4ec, scale: 4, octaves: 2, seed: 5 }] }), roughness: 0.7, metalness: 0 });+ const B = makeMesh(), box = (lo, hi) => { // a plain box for the stand-ins+ const f = [[[hi[0], lo[1], hi[2]], [hi[0], lo[1], lo[2]], [hi[0], hi[1], lo[2]], [hi[0], hi[1], hi[2]], [1, 0, 0]], [[lo[0], lo[1], lo[2]], [lo[0], lo[1], hi[2]], [lo[0], hi[1], hi[2]], [lo[0], hi[1], lo[2]], [-1, 0, 0]],+ [[lo[0], hi[1], hi[2]], [hi[0], hi[1], hi[2]], [hi[0], hi[1], lo[2]], [lo[0], hi[1], lo[2]], [0, 1, 0]], [[lo[0], lo[1], hi[2]], [hi[0], lo[1], hi[2]], [hi[0], hi[1], hi[2]], [lo[0], hi[1], hi[2]], [0, 0, 1]]];+ for (const [a, b, c, d, n] of f) { const i = [a, b, c, d].map((p, k) => B.vert(p, n, [k % 2, k > 1 ? 1 : 0])); B.I.push(i[0], i[1], i[2], i[0], i[2], i[3]); }+ };+ box([-4, 0, -1], [4, 8, 0]);+ out.push(['stand_wall', B.geo(), stone]);+ const place = (parts, d) => { for (const [name, geo, mat] of parts) { geo.translate(d[0], d[1], d[2]); out.push([`${name}_${out.length}`, geo, mat]); } };+ place(PIECES['ivy-long'](), [-2, 8, 0]);+ place(PIECES['ivy-short'](), [2, 8, 0]);+ place(await PIECES['cypress-tall'](), [-6, 0, 3]);+ place(await PIECES['cypress-mid'](), [6, 0, 3]);+ place(await PIECES['shrub-a'](), [-2, 0, 3]);+ place(await PIECES['shrub-b'](), [1.5, 0, 3]);+ return out;+}++async function build() {+ const root = createRoot(PIECE);+ const parts = await (PIECE === 'preview-planting' ? previewPlanting() : PIECES[PIECE]());+ for (const [name, geo, mat] of parts) createPart(name, geo, mat, { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_faa275ba070e49f388ba9dcec5841ac4/r_fbc6774707564a54923a9d1f9b1c8ca9/manifest.json b/packs/holodeck/sources/project/a_faa275ba070e49f388ba9dcec5841ac4/r_fbc6774707564a54923a9d1f9b1c8ca9/manifest.jsonnew file mode 100644index 00000000..688327aa--- /dev/null+++ b/packs/holodeck/sources/project/a_faa275ba070e49f388ba9dcec5841ac4/r_fbc6774707564a54923a9d1f9b1c8ca9/manifest.json@@ -0,0 +1,367 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_faa275ba070e49f388ba9dcec5841ac4",+ "revisionId": "r_fbc6774707564a54923a9d1f9b1c8ca9",+ "parentRevision": "r_1ad0568e8cd24de68d28e8c4a9452eb4",+ "name": "cube-marble",+ "tags": [+ "meridian-sanctuary",+ "architecture",+ "sky"+ ],+ "createdAt": "2026-10-25T15:21:13.924Z",+ "description": "Honed white veined marble cube, 1 m, chamfered; turn 16 atlas (long soft warm-grey veins).",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:a53ffada88901ed9323f7a8c9639eeb11d1927ea5a20477571a35e1d9789d96e",+ "bytes": 282288+ },+ "source.kiln.js": {+ "sha256": "sha256:7c5a1112490c0ac6a031239f9cfd61869c6f51d8d899941bc8961a28d0b0c81f",+ "bytes": 65350+ },+ "preview.png": {+ "sha256": "sha256:d1a3c83e617bf4352552abb02b4bafca67863986a15d4db657a491a3b9123890",+ "bytes": 154623+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "a53ffada88901ed9323f7a8c9639eeb11d1927ea5a20477571a35e1d9789d96e",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -0.5,+ -0.5,+ -0.5+ ],+ "max": [+ 0.5,+ 0.5,+ 0.5+ ],+ "size": [+ 1,+ 1,+ 1+ ],+ "center": [+ 0,+ 0,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -0.5,+ "offsetToGround": 0.5,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 44,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 44,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:a53ffada88901ed9323f7a8c9639eeb11d1927ea5a20477571a35e1d9789d96e",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_faa275ba070e49f388ba9dcec5841ac4/r_fbc6774707564a54923a9d1f9b1c8ca9/source.kiln.js b/packs/holodeck/sources/project/a_faa275ba070e49f388ba9dcec5841ac4/r_fbc6774707564a54923a9d1f9b1c8ca9/source.kiln.jsnew file mode 100644index 00000000..8c7e17df--- /dev/null+++ b/packs/holodeck/sources/project/a_faa275ba070e49f388ba9dcec5841ac4/r_fbc6774707564a54923a9d1f9b1c8ca9/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'cube-marble';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/packs/holodeck/sources/project/a_fcde0b57fef04d3698a139126d44f416/r_3745cc9353f44c1b8d3102d59c9f9d46/manifest.json b/packs/holodeck/sources/project/a_fcde0b57fef04d3698a139126d44f416/r_3745cc9353f44c1b8d3102d59c9f9d46/manifest.jsonnew file mode 100644index 00000000..cae6f6b0--- /dev/null+++ b/packs/holodeck/sources/project/a_fcde0b57fef04d3698a139126d44f416/r_3745cc9353f44c1b8d3102d59c9f9d46/manifest.json@@ -0,0 +1,366 @@+{+ "version": "kiln.asset.v1",+ "assetId": "a_fcde0b57fef04d3698a139126d44f416",+ "revisionId": "r_3745cc9353f44c1b8d3102d59c9f9d46",+ "parentRevision": "r_ce8753d65b814006a5104477fc9a6885",+ "name": "pavilion",+ "tags": [+ "meridian-sanctuary",+ "architecture"+ ],+ "createdAt": "2026-10-25T15:21:51.728Z",+ "description": "Open belvedere on a coursed shaft standing out of the cloud sea, arches on four sides under a stepped roof; turn 16 atlas.",+ "editable": true,+ "files": {+ "asset.glb": {+ "sha256": "sha256:80c78c7effe5f1a71afb0f23b52b0126de5b724497114e49914958960f905282",+ "bytes": 596512+ },+ "source.kiln.js": {+ "sha256": "sha256:d32376c8fca4872936cbbaf631a9e618326aedda77aefbbb44ac9148274cbdbf",+ "bytes": 65347+ },+ "preview.png": {+ "sha256": "sha256:b296259a434d57408a2daeb2694e597d297d6d8b9f86507cdb3ec84df37a8ec7",+ "bytes": 147316+ }+ },+ "build": {+ "engine": "sha256:006bc21ed78828c59f6b4a6db970c011787fbe738957c932383b85a649117357",+ "options": {+ "gltfExporter": "legacy",+ "optimize": "off",+ "instance": "auto",+ "geometryPolicy": "warn",+ "indexPolicy": "indexed",+ "qaMode": "enforce",+ "evaluatorMode": "subprocess",+ "requirements": {+ "kind": "kiln.requirements-context.v1",+ "requirements": {+ "kind": "kiln.asset-requirements",+ "schemaVersion": 1,+ "labels": [],+ "frame": {+ "units": "m",+ "forward": "+X",+ "up": "+Y",+ "right": "+Z",+ "groundY": 0+ },+ "requirements": {}+ },+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268"+ }+ },+ "warnings": [],+ "integration": {+ "schemaVersion": "kiln.integration-manifest.v1",+ "analyzerVersion": 1,+ "artifactSha256": "80c78c7effe5f1a71afb0f23b52b0126de5b724497114e49914958960f905282",+ "units": "m",+ "axes": {+ "forward": "+X",+ "up": "+Y",+ "right": "+Z"+ },+ "bounds": {+ "min": [+ -2.5999999046325684,+ -60,+ -2.5999999046325684+ ],+ "max": [+ 2.5999999046325684,+ 7.599999904632568,+ 2.5999999046325684+ ],+ "size": [+ 5.199999809265137,+ 67.59999990463257,+ 5.199999809265137+ ],+ "center": [+ 0,+ -26.200000047683716,+ 0+ ]+ },+ "pivot": {+ "convention": "author-origin",+ "position": [+ 0,+ 0,+ 0+ ]+ },+ "ground": {+ "groundY": 0,+ "contactTolerance": 0.02,+ "minY": -60,+ "offsetToGround": 60,+ "grounded": false+ },+ "defaultScene": {+ "index": 0,+ "name": "Meridian architecture"+ },+ "renderMetrics": {+ "triangles": 2996,+ "drawCalls": 1,+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "textureCount": 3,+ "transparentMaterials": 0,+ "skinned": false+ },+ "structuralQa": {+ "hasDefaultScene": true,+ "finiteBounds": true,+ "validatorErrors": 0,+ "validatorWarnings": 0+ },+ "visualQa": "not_assessed"+ },+ "qa": {+ "kind": "kiln.asset-qa-report",+ "schemaVersion": 2,+ "qaProfile": "asset.requirements.v1",+ "policyHash": "sha256:9efcec929bf8a510c7dd0e18b687381e3824ff3d26cc20307f601d17535e5f34",+ "adviceHash": "sha256:ca1f59b45e82e712e06149909000e2bc37b8cf159af70e32847088cecf153268",+ "acceptance": "accepted",+ "disposition": "pass",+ "dimensions": {+ "exportIntegrity": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "gltfErrors": 0,+ "gltfWarnings": 0+ }+ },+ "requirementReadiness": {+ "status": "pass",+ "findings": []+ },+ "promptAlignment": {+ "status": "notEvaluated",+ "findings": []+ },+ "visualQuality": {+ "status": "notEvaluated",+ "findings": [],+ "metrics": {+ "partVolumeCoverage": "complete-static-pairs",+ "partVolumeScope": "Visible static closed mesh pairs, except alternates on different LOD levels; excludes intra-mesh intersections, motion, open surfaces and usable passage space. Positive overlap may be intentional.",+ "partVolumeEligibleParts": 1,+ "partVolumeCandidatePairs": 0,+ "partVolumeCandidatesLowerBound": false,+ "partVolumePairsTested": 0,+ "partVolumeUnmeasurablePairs": 0,+ "partVolumePairsNotReached": 0,+ "partVolumeLodAlternatePairs": 0,+ "partVolumeSkipped": 0+ }+ },+ "runtimeCost": {+ "status": "pass",+ "findings": [],+ "metrics": {+ "instanceabilityGrade": "A",+ "instanceabilitySummary": "A (informational, not a QA verdict), set by 1 distinct material (A at 0-1). Also: 1 geometry; 1 draw call.",+ "uniqueGeometries": 1,+ "uniqueMaterials": 1,+ "meshNodes": 1,+ "meshInstances": 1,+ "drawCalls": 1,+ "textureCount": 3,+ "skinned": false,+ "transparentMaterials": 0,+ "triangles": 2996,+ "materialCount": 1,+ "opaqueMaterials": 1,+ "maskedMaterials": 0,+ "blendedMaterials": 0,+ "singleSidedMaterials": 1,+ "doubleSidedMaterials": 0,+ "texturedMaterials": 1,+ "materialExtensionCount": 0,+ "materialExtensionsUsed": "",+ "imageCount": 3,+ "maxImageDimension": 1024,+ "decodedImageBytesRgba8": 8650752,+ "estimatedGpuBytesWithMipmaps": 11534338,+ "blendedSurfaceAreaRatio": 0+ }+ }+ },+ "rules": [+ {+ "id": "UNIVERSAL_SCENE_CONTENT_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_FINITE_DATA_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_INDEX_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ZERO_SCALE_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_NODE_NAME_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "UNIVERSAL_ANIMATION_TARGET_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "MATERIAL_PORTABLE_PBR_RULE",+ "mode": "enforce",+ "status": "evaluated"+ },+ {+ "id": "ARCHITECTURE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ARCHITECTURE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "CHARACTER_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEHICLE_W6_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_CONTACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VEGETATION_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "PROP_CAPABILITY_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "PROP_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ENVIRONMENT_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "VFX_EXACT_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "VFX_ADVISORY_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "MODULAR_JOIN_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ },+ {+ "id": "ASSET_SCOPE_PROFILE",+ "mode": "observe",+ "status": "notRequested"+ },+ {+ "id": "GEO_PART_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "GEO_PART_CONNECTIVITY",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "REF_COMPARISON",+ "mode": "observe",+ "status": "notEvaluated",+ "reason": "Neutral measurement adapter remains to be qualified; no category fallback is used."+ },+ {+ "id": "SWEEP_SELF_INTERSECTION",+ "mode": "observe",+ "status": "evaluated"+ },+ {+ "id": "HOST_VALIDATION_PROFILE",+ "mode": "enforce",+ "status": "notRequested"+ }+ ],+ "unevaluatedRequirements": []+ },+ "dependencies": [],+ "rebuild": "engine-required"+ },+ "preview": {+ "fidelity": {+ "version": "kiln.view-fidelity.v1",+ "requested": "full-preferred",+ "delivered": "full-material",+ "materialFaithful": true,+ "exactArtifact": true,+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0",+ "inputGlbSha256": "sha256:80c78c7effe5f1a71afb0f23b52b0126de5b724497114e49914958960f905282",+ "degraded": false,+ "reasonCodes": []+ },+ "backdrop": "neutral"+ }+}diff --git a/packs/holodeck/sources/project/a_fcde0b57fef04d3698a139126d44f416/r_3745cc9353f44c1b8d3102d59c9f9d46/source.kiln.js b/packs/holodeck/sources/project/a_fcde0b57fef04d3698a139126d44f416/r_3745cc9353f44c1b8d3102d59c9f9d46/source.kiln.jsnew file mode 100644index 00000000..e0cf9969--- /dev/null+++ b/packs/holodeck/sources/project/a_fcde0b57fef04d3698a139126d44f416/r_3745cc9353f44c1b8d3102d59c9f9d46/source.kiln.js@@ -0,0 +1,972 @@+// Meridian Sanctuary architecture (plan.md sections 3 and 5, assets 14-20).+// One program builds every piece; PIECE selects which one this revision is. Each stone piece+// is one mesh with one material: an atlas of white veined marble, ivory travertine and a+// band of brass, warm-white glow and planting soil, with an emissive map for the glow.+// Masses are coursed, chamfered stones on a cell grid; arches are true round arches.+const meta = { name: 'Meridian architecture' };+const PIECE = 'pavilion';++function rng(seed) {+ let s = (seed >>> 0) || 0x9e3779b9;+ return () => { s ^= s << 13; s >>>= 0; s ^= s >>> 17; s ^= s << 5; s >>>= 0; return s / 4294967296; };+}+function hash(str) { let h = 2166136261; for (const ch of str) { h ^= ch.charCodeAt(0); h = Math.imul(h, 16777619); } return h >>> 0; }+const sub = (a, b) => [a[0] - b[0], a[1] - b[1], a[2] - b[2]];+const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];+const nrm = (a) => { const l = Math.hypot(a[0], a[1], a[2]) || 1; return [a[0] / l, a[1] / l, a[2] / l]; };++// ---------------------------------------------------------------- textures (as the stone kit)+const BAND = 0.047; // top band of quadrant 4: brass | glow | soil+const BAND_COLS = [[0.5, 0.66], [0.66, 0.83], [0.83, 1.0]];+const REG = {+ MA: [0.008, 0.008, 0.492, 0.492], MB: [0.508, 0.008, 0.992, 0.492],+ TA: [0.008, 0.508, 0.492, 0.992], TB: [0.508, 0.5 + BAND + 0.008, 0.992, 0.992],+ BR: [0.506, 0.507, 0.654, 0.5 + BAND - 0.007], GL: [0.672, 0.509, 0.818, 0.5 + BAND - 0.009], SO: [0.836, 0.508, 0.99, 0.5 + BAND - 0.007],+};++function veinPolys(R, x, y, ang, steps, len, halfW, wiggle, seg = 6) {+ const left = [], right = [];+ for (let k = 0; k < steps; k++) {+ ang += (R() - 0.5) * wiggle;+ x += Math.cos(ang) * len; y += Math.sin(ang) * len;+ const t = k / (steps - 1);+ const w = Math.max(1, halfW * (0.35 + 0.65 * Math.sin(Math.PI * t)) * (0.7 + 0.6 * R()));+ const nx = -Math.sin(ang) * w, ny = Math.cos(ang) * w;+ left.push([Math.round(x + nx) + 0, Math.round(y + ny) + 0]);+ right.push([Math.round(x - nx) + 0, Math.round(y - ny) + 0]);+ }+ const polys = [];+ for (let a = 0; a < steps - 1; a += seg) {+ const b = Math.min(steps - 1, a + seg);+ const pts = left.slice(a, b + 1).concat(right.slice(a, b + 1).reverse()).filter((p, i, arr) => i === 0 || p[0] !== arr[i - 1][0] || p[1] !== arr[i - 1][1]);+ if (pts.length >= 3) polys.push(pts);+ }+ return polys;+}+// White veined marble (turn 9, after the reviews of revision 11: veins did not read at eye height):+// a near-white ground with bold grey-gold veins, a soft halo round each, at a scale where a metre+// of floor carries a vein or two.+function marbleSpec(q, seed, baseAng) {+ const s = q / 512, R = rng(seed), ops = [];+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: 0xf1efea, colorB: 0xfefdfb, scale: 3, octaves: 4, seed },+ { op: 'noise', colorA: 0xdcd6cc, colorB: 0xfaf8f4, scale: 10, octaves: 2, seed: seed + 5, blend: 'overlay', opacity: 0.25 },+ ] } });+ // turn 16 (round 7: thick brown crescent strokes on every tile read as scuffs or cracks): two+ // long veins a patch, each a wide faint halo round a fine warm-grey core with a forked branch,+ // and fainter, finer secondary veins+ for (let i = 0; i < 2; i++) {+ const x = -0.05 * q, y = ((i + 0.25 + R() * 0.5) * q) / 2, ang = baseAng + (R() - 0.5) * 0.3, vs = Math.floor(R() * 1e9);+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 10 * s + 1, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [222, 216, 206, 255], opacity: 28 });+ for (const p of veinPolys(rng(vs), x, y, ang, 31, q / 19, 1.2 * s + 0.6, 0.22)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [178, 172, 162, 255], opacity: 75 });+ const t = 0.3 + 0.3 * R(), ba = ang + (R() < 0.5 ? -1 : 1) * (0.4 + 0.3 * R());+ for (const p of veinPolys(R, x + t * q * Math.cos(ang), y + t * q * Math.sin(ang), ba, 13, q / 26, 0.9 * s + 0.5, 0.35)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [186, 180, 170, 255], opacity: 60 });+ }+ for (let i = 0; i < 5; i++) {+ const opacity = 30 + Math.floor(R() * 18);+ for (const p of veinPolys(R, R() * q, R() * q, baseAng + (R() - 0.5) * 0.9, 19, q / 30, 0.8 * s + 0.5, 0.5)) ops.push({ op: 'paint', shape: { kind: 'polygon', points: p }, rgba: [200, 194, 186, 255], opacity });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+// Ivory travertine (turn 9: it read as flat plaster): bedding bands of varied width and warmth+// across each patch, soft pits of several sizes (fewer tiny dark ones, which sparkled at+// distance), and a tint per patch (warm or cream), so neighbouring blocks differ. band: null, or+// three RGBA colours for the brass, glow and soil columns of the band.+// Turn 13 (the reviews of revision 15: travertine read cool grey in shade and its pits as+// polka dots and dashes): a warmer ivory ground and bedding, and fewer, rounder, paler pits.+function travSpec(q, seed, band, tint = 0) {+ const s = q / 512, R = rng(seed), ops = [], t = (c) => c + tint * 0x030406; // tint > 0: a creamier patch+ ops.push({ op: 'legacy-v2', spec: { schemaVersion: 2, size: q, usage: 'albedo', layers: [+ { op: 'noise', colorA: t(0xe1d0b5), colorB: t(0xf8efdf), scale: 4, octaves: 3, seed }, // turn 16: more value from block to block (was e7d8c0)+ { op: 'stripes', colorA: t(0xe3d2b6), colorB: t(0xf7eedd), count: 14, angleDeg: 90, blend: 'overlay', opacity: 0.45 },+ ] } });+ for (let i = 0; i < 14; i++) { // bedding: a few broad soft bands and fine streaks+ const y = Math.round(R() * q), dy = Math.round((R() - 0.5) * 6 * s), broad = i < 4, light = R() < 0.45;+ ops.push({ op: 'paint', shape: { kind: 'line', from: [-4, y], to: [q + 4, y + dy], width: Math.max(1, Math.round((broad ? 9 + R() * 10 : 1 + R() * 2) * s)) },+ rgba: light ? [250, 244, 232, 255] : [220, 202, 172, 255], opacity: broad ? 55 : 50 });+ }+ const pits = (w, h, rgba, count, area = { x: 0, y: 0, width: q, height: q }) => ops.push({ op: 'stamps',+ shape: { kind: 'ellipse', x: 0, y: 0, width: Math.max(2, Math.round(w * s)), height: Math.max(1, Math.round(h * s)) },+ rgba, count, seed: Math.floor(R() * 4e9), area });+ // turn 16 (round 7: the pits read as a uniform sprinkle of dark dots): long thin pits along the+ // bedding, in five bands where they gather, and a few rounder ones between+ for (let i = 0; i < 5; i++) {+ const bh = Math.round((14 + R() * 26) * s), y0 = Math.round(R() * (q - bh));+ pits(10, 2, [208, 192, 166, 255], 14, { x: 0, y: y0, width: q, height: bh });+ pits(18, 3, [212, 197, 172, 255], 6, { x: 0, y: y0, width: q, height: bh });+ }+ pits(6, 4, [214, 200, 176, 255], 12);+ if (band) {+ const bh = Math.round(BAND * 2 * q);+ BAND_COLS.forEach(([a, b], i) => {+ const x0 = Math.round((a - 0.5) * 2 * q), x1 = Math.round((b - 0.5) * 2 * q);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba: band[i] });+ });+ }+ return { schemaVersion: 3, width: q, height: q, usage: 'albedo', operations: ops };+}+function ormSpec(oq, roughA, roughB, seed, band) {+ const ops = [{ op: 'legacy-v2', spec: { schemaVersion: 2, size: oq, usage: 'metallicRoughness', layers: [+ { op: 'noise', colorA: roughA << 8, colorB: roughB << 8, scale: 5, octaves: 3, seed }] } }];+ if (band) {+ const bh = Math.max(1, Math.round(BAND * 2 * oq));+ [[0, 82, 255, 255], [0, 110, 0, 255], [0, 245, 0, 255]].forEach((rgba, i) => {+ const [a, b] = BAND_COLS[i], x0 = Math.round((a - 0.5) * 2 * oq), x1 = Math.round((b - 0.5) * 2 * oq);+ ops.push({ op: 'paint', shape: { kind: 'rectangle', x: x0, y: 0, width: x1 - x0, height: bh }, rgba });+ });+ }+ return { schemaVersion: 3, width: oq, height: oq, usage: 'metallicRoughness', operations: ops };+}+async function atlas(edge, usage, specs) {+ const q = edge / 2, names = ['marble-a', 'marble-b', 'trav-a', 'trav-b'], pos = [[0, 0], [q, 0], [0, q], [q, q]];+ return textureAtlas({ schemaVersion: 1, width: edge, height: edge, usage, pack: { edge: 1024, gutter: 0 },+ regions: specs.map((spec, i) => ({ name: names[i], content: { x: pos[i][0], y: pos[i][1], width: q, height: q }, gutter: 0, source: { kind: 'procedural', spec } })) });+}+// Emissive map: black except the glow column, which falls off from a warm-white core to a deep+// amber rim in both directions, so a niche's back wall (which maps the whole column) glows in+// its middle and dims toward its reveals. Under the Neutral grade (revision 13) at strength GLOW+// the core shows about #fef0db and the rim about #fad5a6 (tonemap.mjs --grade neutral glow).+const GLOW = 3.5;+function glowMap(n) {+ const [a, b] = BAND_COLS[1], x0 = Math.round(a * n), x1 = Math.round(b * n), y0 = n / 2, h = Math.round(BAND * n), w = x1 - x0;+ const ring = (f, rgb, kind = 'ellipse') => { const dx = Math.round((w * (1 - f)) / 2), dy = Math.round((h * (1 - f)) / 2);+ return { op: 'paint', shape: { kind, x: x0 + dx, y: y0 + dy, width: w - 2 * dx, height: h - 2 * dy }, rgba: [...rgb, 255] }; };+ // turn 16 (round 7: the slots and the vault read apricot, about 253, 222, 190): a warm-white+ // core (#fff1e0 and paler) over a pale gold rim+ const stops = [[1, [196, 160, 118]], [0.86, [212, 180, 140]], [0.74, [226, 198, 162]], [0.63, [238, 214, 182]], [0.52, [246, 226, 198]],+ [0.42, [251, 234, 212]], [0.32, [254, 240, 222]], [0.23, [255, 244, 230]], [0.14, [255, 247, 236]]];+ return proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'emissive', background: [0, 0, 0, 255],+ operations: [ring(1, [176, 138, 96], 'rectangle'), ...stops.map(([f, c]) => ring(f, c))] });+}+async function stoneMaterial(edge, glow) {+ const q = edge / 2, oq = edge / 8, grey = [128, 128, 128, 255];+ // The planting column is a leafy groundcover green (it was soil brown, which read as dark+ // troughs from below on inverted pieces and as brown rails along the arcades from the air).+ const albedo = await atlas(edge, 'albedo', [marbleSpec(q, 101, 0.55), marbleSpec(q, 202, -0.5), travSpec(q, 303, null),+ travSpec(q, 404, [[188, 148, 82, 255], [255, 228, 184, 255], [84, 112, 58, 255]], 1)]);+ const flat = { schemaVersion: 3, width: q, height: q, usage: 'albedo', background: grey, operations: [] };+ const height = await atlas(edge, 'albedo', [flat, flat, travSpec(q, 303, null), travSpec(q, 404, [grey, grey, grey])]);+ const orm = await atlas(edge / 4, 'metallicRoughness', [ormSpec(oq, 0x20, 0x34, 5, false), ormSpec(oq, 0x22, 0x36, 6, false),+ ormSpec(oq, 0xae, 0xda, 7, false), ormSpec(oq, 0xb0, 0xdc, 8, true)]);+ const opts = { albedo, normal: normalMapFromHeight(height, { strength: 3 }), metallicRoughness: orm, roughness: 1, metalness: 1 };+ if (glow) Object.assign(opts, { emissive: glowMap(1024), emissiveIntensity: glow });+ return pbrMaterial(opts);+}++// ---------------------------------------------------------------- mesh building+function makeBuilder() {+ const P = [], N = [], T = [], I = [];+ const push = (verts, norms, uvs, n) => {+ let s = [0, 0, 0]; // Newell normal: robust winding even with a degenerate corner+ for (let i = 0; i < verts.length; i++) {+ const a = verts[i], b = verts[(i + 1) % verts.length];+ s = [s[0] + (a[1] - b[1]) * (a[2] + b[2]), s[1] + (a[2] - b[2]) * (a[0] + b[0]), s[2] + (a[0] - b[0]) * (a[1] + b[1])];+ }+ if (Math.hypot(...s) < 1e-12) return;+ let vs = verts, ns = norms, us = uvs;+ if (dot(s, n) < 0) { vs = verts.slice().reverse(); ns = norms.slice().reverse(); us = uvs.slice().reverse(); }+ const base = P.length / 3;+ vs.forEach((v, i) => { P.push(v[0], v[1], v[2]); N.push(...ns[i]); T.push(us[i][0], us[i][1]); });+ for (let i = 1; i + 1 < vs.length; i++) I.push(base, base + i, base + i + 1);+ };+ return {+ poly(verts, n, uvs) { push(verts, verts.map(() => n), uvs, n); },+ polyN(verts, norms, uvs) { push(verts, norms, uvs, nrm(norms.reduce((a, b) => [a[0] + b[0], a[1] + b[1], a[2] + b[2]], [0, 0, 0]))); },+ geometry() { return meshGeo({ positions: P, normals: N, uvs: T, indices: I }); },+ };+}++// trav-a and marble-a draw only from the travertine and marble patches away from the brass /+// glow / soil band, so large faces seen from far off cannot pick up the band in their mips.+const DENS = { marble: 0.25, trav: 0.19, 'trav-a': 0.12, 'marble-a': 0.2 };+function pickWindow(R, kind, fw, fh, dens, square) {+ if (kind === 'brass' || kind === 'glow' || kind === 'soil') {+ const [r0, s0, r1, s1] = REG[kind === 'brass' ? 'BR' : kind === 'glow' ? 'GL' : 'SO'];+ return { u0: r0, v0: s0, du: r1 - r0, dv: s1 - s0, rot: 0 };+ }+ const key = kind === 'marble' ? (R() < 0.5 ? 'MA' : 'MB') : kind === 'marble-a' ? 'MA' : kind === 'trav-a' ? 'TA' : (R() < 0.5 ? 'TA' : 'TB');+ const [r0, s0, r1, s1] = REG[key];+ const rot = square ? Math.floor(R() * 4) : (R() < 0.5 ? 0 : 2);+ let ww = fw * dens, wh = fh * dens;+ if (rot % 2) [ww, wh] = [wh, ww];+ ww = Math.min(ww, r1 - r0); wh = Math.min(wh, s1 - s0);+ return { u0: r0 + R() * (r1 - r0 - ww), v0: s0 + R() * (s1 - s0 - wh), du: ww, dv: wh, rot };+}+function uvOf(w, a, b) {+ let s = a, t = 1 - b;+ if (w.rot === 1) [s, t] = [t, 1 - s]; else if (w.rot === 2) [s, t] = [1 - s, 1 - t]; else if (w.rot === 3) [s, t] = [1 - t, s];+ return [w.u0 + s * w.du, w.v0 + t * w.dv];+}++// A chamfered box stone emitting only faces, edges and corners touching an exposed side.+// st: { lo, hi, c, kind, exp: {px..nz}, faceKind?: {face: kind}, dens? }+const PARAM = [[2, 1], [0, 2], [0, 1]];+const fkey = (ax, s) => (s > 0 ? 'p' : 'n') + 'xyz'[ax];+function emitStone(B, R, st) {+ const { lo, hi, c, exp } = st, fk = st.faceKind || {};+ const size = [hi[0] - lo[0], hi[1] - lo[1], hi[2] - lo[2]];+ const wins = {};+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const kind = fk[f] || st.kind, [pa, pb] = PARAM[ax];+ wins[f] = pickWindow(R, kind, size[pa], size[pb], st.dens || DENS[kind] || 0.2, ax === 1 && Math.abs(size[pa] - size[pb]) < 0.01);+ }+ const order = ['py', 'px', 'nx', 'pz', 'nz', 'ny'];+ const uvFor = (f, v) => { const ax = 'xyz'.indexOf(f[1]), [pa, pb] = PARAM[ax];+ return uvOf(wins[f], (v[pa] - lo[pa]) / size[pa], (v[pb] - lo[pb]) / size[pb]); };+ const emit = (verts, n, fs) => { const f = order.find((k) => fs.includes(k) && exp[k]); if (f) B.poly(verts, n, verts.map((v) => uvFor(f, v))); };+ const C = (i, s) => (s > 0 ? hi[i] : lo[i]), E = st.E || {};+ // turn 10: the depth of the edge between faces f and g (seal() sets it where only one shows);+ // a vertex on a face that does not show takes the depth of the showing face's edge+ const dep = (f, g) => (f + g in E ? E[f + g] : g + f in E ? E[g + f] : c);+ const V = (ax, sg) => {+ const F = fkey(ax, sg[ax]);+ return [0, 1, 2].map((i) => {+ if (i === ax) return C(i, sg[i]);+ const G = fkey(i, sg[i]), K = fkey(3 - ax - i, sg[3 - ax - i]);+ return C(i, sg[i]) - sg[i] * (exp[F] ? dep(F, G) : exp[G] ? dep(G, F) : dep(K, G));+ });+ };+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const f = fkey(ax, s); if (!exp[f]) continue;+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax);+ const pts = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const sg = [0, 0, 0]; sg[ax] = s; sg[a1] = p; sg[a2] = q; return V(ax, sg); });+ const n = [0, 0, 0]; n[ax] = s;+ emit(pts, n, [f]);+ }+ if (c <= 0) return;+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const fa = fkey(a, sa), fb = fkey(b, sb); if ((!exp[fa] && !exp[fb]) || dep(fa, fb) <= 0) continue;+ const o = [0, 1, 2].find((i) => i !== a && i !== b);+ const sg = (so) => { const g = [0, 0, 0]; g[a] = sa; g[b] = sb; g[o] = so; return g; };+ const n = [0, 0, 0]; n[a] = sa; n[b] = sb;+ emit([V(a, sg(-1)), V(a, sg(1)), V(b, sg(1)), V(b, sg(-1))], nrm(n), [fa, fb]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) {+ const fs = [fkey(0, sx), fkey(1, sy), fkey(2, sz)]; if (!fs.some((f) => exp[f])) continue;+ const g = [sx, sy, sz], open = [0, 1, 2].filter((i) => exp[fs[i]]);+ if (open.length === 1) { // a joint crossing on a face: run the corner down to the joint point, which closes the pinhole four bevels leave+ const e = open[0], [a, b] = [0, 1, 2].filter((i) => i !== e), d = Math.max(dep(fs[e], fs[a]), dep(fs[e], fs[b]));+ if (d <= 0) continue;+ const P = [0, 1, 2].map((i) => (i === e ? C(i, g[i]) - g[i] * d : C(i, g[i])));+ emit([V(e, g), V(a, g), P, V(b, g)], nrm(g), fs);+ } else emit([V(0, g), V(1, g), V(2, g)], nrm(g), fs);+ }+}++// turn 10: sealed joints (glb-cracks.mjs, on the reviews of revision 12: sky still showed through+// the gateway's niche corners and the joint under its first cornice, and the sun leaked through+// the arcade and planter joints in dashed lines onto shaded paving). Every edge where one face of+// a stone shows and the other does not gets one depth, the same as the stone across the joint:+// - at an inner corner (the cell diagonally across both faces is solid: a niche's back corners,+// a wall under a projecting band), at a hidden join, or against a stone without bevels (brass,+// shafts, custom geometry), none: the face runs flush, where the bevel used to open a slot+// into the hollow behind;+// - at a joint between two faces that both show, the bevel, which course() makes one size for+// every stone (marble 1 cm against travertine 2 cm left a slot between the two halves of a+// groove).+// The stone across is looked for at a quarter, half and three quarters along the edge: courses+// stagger by half a stone, so a stone's midpoint lies on the joint of the course beside it.+function seal(S) {+ const grid = new Map(), fl = Math.floor, key = (p) => `${fl(p[0])},${fl(p[1])},${fl(p[2])}`;+ for (const st of S) for (let i = fl(st.lo[0]); i <= fl(st.hi[0]); i++) for (let j = fl(st.lo[1]); j <= fl(st.hi[1]); j++) for (let k = fl(st.lo[2]); k <= fl(st.hi[2]); k++) {+ const kk = `${i},${j},${k}`; if (!grid.has(kk)) grid.set(kk, []); grid.get(kk).push(st);+ }+ const at = (p, own) => (grid.get(key(p)) || []).find((t) => t !== own && p.every((v, i) => v > t.lo[i] && v < t.hi[i]));+ const e = 1e-3, dirs = ['px', 'nx', 'py', 'ny', 'pz', 'nz'];+ for (const st of S) {+ st.E = {};+ const lim = (i, s) => (s > 0 ? st.hi[i] : st.lo[i]);+ for (const F of dirs) {+ if (!st.exp[F]) continue;+ const ax = 'xyz'.indexOf(F[1]), s = F[0] === 'p' ? 1 : -1;+ for (const G of dirs) {+ const bx = 'xyz'.indexOf(G[1]); if (bx === ax || st.exp[G]) continue;+ if ((st.flush && st.flush[G]) || (st.inner && st.inner[F + G]) || !(st.c > 0)) { st.E[F + G] = 0; continue; }+ const t = G[0] === 'p' ? 1 : -1, o = 3 - ax - bx;+ let depth = st.c, found = false, flush = false;+ for (const f of [0.25, 0.5, 0.75]) {+ const p = [0, 0, 0], q = [0, 0, 0];+ p[o] = q[o] = st.lo[o] + f * (st.hi[o] - st.lo[o]);+ p[bx] = q[bx] = lim(bx, t) + t * e; // across the joint+ p[ax] = lim(ax, s) - s * e; q[ax] = lim(ax, s) + s * e; // under the face; diagonally across it+ if (at(q, st)) { flush = true; break; } // an inner corner+ const N = at(p, st);+ if (!N) continue;+ found = true;+ if (!N.exp[F] || !(N.c > 0)) { flush = true; break; } // its face does not show here, or has no bevel+ depth = Math.max(depth, N.c);+ }+ st.E[F + G] = flush || !found ? 0 : depth;+ }+ }+ }+}++// turn 13: one texel density (the technical review of revision 15: travertine stretched on tall+// faces). A face's texture window is its size times its density, capped at the atlas region, so+// a face larger than the region stretched it: the plain shafts under the rim towers, pylons and+// foundations (30 - 110 m at density 0.04 - 0.05) by up to nine times, the arcade cornice stones+// (a whole 4.8 m span) by 2.5. A stone whose window would be capped by more than 15 % splits+// into equal parts, each within one window; the plain shafts take the big-face density (0.12)+// and a bevel, so they read as tall courses. Parts meet in joints that seal() closes.+const REGION = 0.48, SHAFT_DENS = 0.12;+function splitStones(S) {+ const out = [], fixed = (k) => k === 'brass' || k === 'glow' || k === 'soil';+ for (const st of S) {+ const kinds = [st.kind, ...Object.values(st.faceKind || {})];+ if (kinds.some(fixed)) { out.push(st); continue; }+ const shaft = st.dens !== undefined && st.dens < SHAFT_DENS;+ const dens = Math.max(...kinds.map((k) => (st.dens !== undefined ? Math.max(st.dens, SHAFT_DENS) : DENS[k] || 0.2)));+ const size = [0, 1, 2].map((i) => st.hi[i] - st.lo[i]);+ const n = [0, 1, 2].map((i) => {+ const shows = [0, 1, 2].some((ax) => ax !== i && (st.exp[fkey(ax, 1)] || st.exp[fkey(ax, -1)]));+ const r = (size[i] * dens) / REGION;+ return shows && r > 1.15 ? Math.ceil(r - 1e-9) : 1;+ });+ if (n.every((v) => v === 1)) { out.push(shaft ? { ...st, dens: SHAFT_DENS } : st); continue; }+ for (let a = 0; a < n[0]; a++) for (let b = 0; b < n[1]; b++) for (let d = 0; d < n[2]; d++) {+ const idx = [a, b, d], outer = (f) => { const i = 'xyz'.indexOf(f[1]); return f[0] === 'p' ? idx[i] === n[i] - 1 : idx[i] === 0; };+ const exp = {}, flush = {}, inner = {}, faceKind = {};+ for (const [f, v] of Object.entries(st.exp)) if (v && outer(f)) exp[f] = true;+ for (const [f, v] of Object.entries(st.flush || {})) if (outer(f)) flush[f] = v;+ for (const [fg, v] of Object.entries(st.inner || {})) if (outer(fg.slice(2))) inner[fg] = v;+ for (const [f, k] of Object.entries(st.faceKind || {})) if (exp[f]) faceKind[f] = k;+ if (!Object.keys(exp).length) continue;+ out.push({ ...st, lo: [0, 1, 2].map((i) => st.lo[i] + (size[i] * idx[i]) / n[i]), hi: [0, 1, 2].map((i) => st.lo[i] + (size[i] * (idx[i] + 1)) / n[i]),+ exp, flush, inner, faceKind, ...(shaft ? { dens: SHAFT_DENS, c: 0.02 } : {}) });+ }+ }+ return out;+}++// One course of coursed masonry on a cell grid. state(x, y, z) returns 'solid', 'empty',+// 'phantom' (solid for neighbours, never drawn: custom geometry or a hidden join), 'spout',+// or 'slot:<face>' (an open slot whose back wall, facing <face>, glows). Faces next to+// open cells are exposed; slot and spout reveals are marble.+const isOpen = (s) => s === 'empty' || s === 'spout' || s.startsWith('slot');+function course(S, y0, y1, xCuts, zCutsFor, state, kindOf) {+ const e = 1e-4, ym = (y0 + y1) / 2;+ for (let i = 0; i + 1 < xCuts.length; i++) {+ const xa = xCuts[i], xb = xCuts[i + 1]; if (xb - xa < 1e-4) continue;+ const zc = zCutsFor(xa, xb, y0, y1);+ for (let j = 0; j + 1 < zc.length; j++) {+ const za = zc[j], zb = zc[j + 1]; if (zb - za < 1e-4) continue;+ const xm = (xa + xb) / 2, zm = (za + zb) / 2;+ if (state(xm, ym, zm) !== 'solid') continue;+ const nb = { px: state(xb + e, ym, zm), nx: state(xa - e, ym, zm), pz: state(xm, ym, zb + e), nz: state(xm, ym, za - e), py: state(xm, y1 + e, zm), ny: state(xm, y0 - e, zm) };+ const exp = {}, faceKind = {}, flush = {};+ for (const [f, s] of Object.entries(nb)) {+ if (s === 'phantom') flush[f] = true;+ if (!isOpen(s)) continue;+ exp[f] = true;+ if (s.startsWith('slot')) faceKind[f] = s.slice(5) === f ? 'glow' : 'marble';+ else if (s === 'spout') faceKind[f] = 'marble';+ }+ if (!Object.keys(exp).length) continue;+ // turn 10: inner corners against cells that are solid or custom geometry (seal() finds those+ // against other stones)+ const inner = {}, clo = [xa, y0, za], chi = [xb, y1, zb], cm = [xm, ym, zm];+ for (const f of Object.keys(exp)) {+ const ax = 'xyz'.indexOf(f[1]), s = f[0] === 'p' ? 1 : -1;+ for (const g of ['px', 'nx', 'py', 'ny', 'pz', 'nz']) {+ const bx = 'xyz'.indexOf(g[1]); if (bx === ax || exp[g] || flush[g]) continue;+ const t = g[0] === 'p' ? 1 : -1, q = cm.slice();+ q[ax] = s > 0 ? chi[ax] + e : clo[ax] - e; q[bx] = t > 0 ? chi[bx] + e : clo[bx] - e;+ if (!isOpen(state(q[0], q[1], q[2]))) inner[f + g] = true;+ }+ }+ const kind = kindOf(xm, ym, zm, exp, faceKind);+ // turn 9: larger bevels so the edges catch the light; no bevel toward custom geometry or+ // hidden joins (phantom), whose faces carry no matching bevel, so the groove there opened+ // onto the hollow behind and showed the sky (the gateway's string courses). Turn 10: one+ // size, 1.5 cm, for marble and travertine (seal()).+ S.push({ lo: [xa, y0, za], hi: [xb, y1, zb], c: 0.015, kind, exp, faceKind, flush, inner });+ }+ }+}+// Sorted cut list: the given special cuts plus stone breaks every `len` metres from lo to hi+// (the first at len * (1 - shift), so shift 0.5 staggers alternate courses), skipping breaks+// within `gap` of another cut.+function cuts(lo, hi, special, len, shift, gap = 0.3) {+ const list = [lo, hi, ...special.filter((v) => v > lo + 1e-6 && v < hi - 1e-6)];+ for (let p = lo + len * (1 - shift); p < hi - gap; p += len) if (list.every((v) => Math.abs(v - p) > gap)) list.push(p);+ return [...new Set(list.map((v) => Math.round(v * 1e4) / 1e4))].sort((a, b) => a - b);+}++// ---------------------------------------------------------------- round arches+// Arches lie in the XY plane, centred at (cx, ys) on the springline, with depth along Z.+// Angles run from 0 (+X) over the crown (PI/2) to PI (-X).+const at = (cx, ys, r, a, z) => [cx + r * Math.cos(a), ys + r * Math.sin(a), z];+const steps = (a0, a1, n) => Array.from({ length: n + 1 }, (_, i) => a0 + ((a1 - a0) * i) / n);++// Wall face at z = zf around an arched opening: the region between the arc of radius r and+// the rectangle [x0, x1] x [ys, yt], as quads from the arc to their radial projection.+function spandrel(B, R, o) {+ const { cx, ys, r, x0, x1, yt, zf, nz, a0 = 0, a1 = Math.PI, n = 12, kind = 'trav', dens = 0.12 } = o;+ const corners = [Math.atan2(yt - ys, x1 - cx), Math.atan2(yt - ys, x0 - cx)].filter((a) => a > a0 + 1e-6 && a < a1 - 1e-6);+ const angs = [...steps(a0, a1, n), ...corners].sort((p, q) => p - q);+ const hit = (a) => {+ const c = Math.cos(a), s = Math.sin(a);+ let t = Infinity;+ if (c > 1e-9) t = Math.min(t, (x1 - cx) / c);+ if (c < -1e-9) t = Math.min(t, (x0 - cx) / c);+ if (s > 1e-9) t = Math.min(t, (yt - ys) / s);+ return [cx + t * c, ys + t * s, zf];+ };+ const w = pickWindow(R, kind, x1 - x0, yt - ys, dens, false);+ const uv = (p) => uvOf(w, (p[0] - x0) / (x1 - x0), (p[1] - ys) / (yt - ys));+ for (let k = 0; k + 1 < angs.length; k++) {+ const a = angs[k], b = angs[k + 1];+ if (b - a < 1e-9) continue;+ const v = [at(cx, ys, r, a, zf), at(cx, ys, r, b, zf), hit(b), hit(a)];+ B.poly(v, [0, 0, nz], v.map(uv));+ }+}+// Flat annular sector at z = zf between radii r0 < r1, split into k stones with their own windows.+function ringFace(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, a0 = 0, a1 = Math.PI, n = 16, kind = 'marble', k = 1 } = o;+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, ((r0 + r1) / 2) * (sb - sa), r1 - r0, DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.poly([at(cx, ys, r0, p, zf), at(cx, ys, r0, a, zf), at(cx, ys, r1, a, zf), at(cx, ys, r1, p, zf)], [0, 0, nz],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Cylindrical band of radius r from z0 to z1 with smooth normals, facing the centre when inward.+function band(B, R, o) {+ const { cx, ys, r, z0, z1, a0 = 0, a1 = Math.PI, n = 16, inward = true, kind = 'marble', k = 1 } = o;+ const nAt = (a) => (inward ? [-Math.cos(a), -Math.sin(a), 0] : [Math.cos(a), Math.sin(a), 0]);+ for (let s = 0; s < k; s++) {+ const sa = a0 + ((a1 - a0) * s) / k, sb = a0 + ((a1 - a0) * (s + 1)) / k, m = Math.max(1, Math.round(n / k));+ const w = pickWindow(R, kind, r * (sb - sa), Math.abs(z1 - z0), DENS[kind] || 0.25, false);+ steps(sa, sb, m).forEach((a, i, arr) => {+ if (i === 0) return;+ const p = arr[i - 1], up = (p - sa) / (sb - sa), ua = (a - sa) / (sb - sa);+ B.polyN([at(cx, ys, r, p, z0), at(cx, ys, r, a, z0), at(cx, ys, r, a, z1), at(cx, ys, r, p, z1)], [nAt(p), nAt(a), nAt(a), nAt(p)],+ [uvOf(w, up, 0), uvOf(w, ua, 0), uvOf(w, ua, 1), uvOf(w, up, 1)]);+ });+ }+}+// Archivolt of k projecting marble voussoirs on the face z = zf (projecting p toward nz), with+// fine joints between stones and an optional larger, deeper keystone at the crown.+function voussoirs(B, R, o) {+ const { cx, ys, r0, r1, zf, nz, p, k, gap = 0.006, key = null, n = 2, inner = true } = o;+ for (let s = 0; s < k; s++) {+ const isKey = key && s === (k - 1) / 2, R1 = isKey ? r1 + key.dr : r1, zt = zf + nz * (isKey ? p + key.dp : p);+ const g = gap / ((r0 + R1) / 2), sa = (Math.PI * s) / k + g, sb = (Math.PI * (s + 1)) / k - g;+ ringFace(B, R, { cx, ys, r0, r1: R1, zf: zt, nz, a0: sa, a1: sb, n });+ band(B, R, { cx, ys, r: R1, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: false });+ if (inner) band(B, R, { cx, ys, r: r0, z0: zf, z1: zt, a0: sa, a1: sb, n, inward: true });+ for (const [a, sg] of [[sa, -1], [sb, 1]]) {+ const w = pickWindow(R, 'marble', R1 - r0, Math.abs(zt - zf), DENS.marble, false);+ B.poly([at(cx, ys, r0, a, zf), at(cx, ys, R1, a, zf), at(cx, ys, R1, a, zt), at(cx, ys, r0, a, zt)], [-Math.sin(a) * sg, Math.cos(a) * sg, 0],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ }+ }+}+// The two halves of a spandrel, each with its own texture window.+function spandrels(B, R, o) {+ spandrel(B, R, { ...o, x0: o.cx, a0: 0, a1: Math.PI / 2 });+ spandrel(B, R, { ...o, x1: o.cx, a0: Math.PI / 2, a1: Math.PI });+}+// Courses from a list of boundaries, breaking stones every `len` metres along both axes and+// shifting alternate courses by half a stone for running bond. A course that projects past the+// course below or above also breaks where that neighbour ends: a stone straddling the step+// would test its neighbour at its middle, find stone, and leave its projecting underside (or+// top) undrawn, a slit that shows the sky.+function courses(S, ys, half, special, state, kindOf, len) {+ for (let i = 0; i + 1 < ys.length; i++) {+ const y0 = ys[i], y1 = ys[i + 1], ym = (y0 + y1) / 2, [hx, hz] = half(ym), sp = special(ym), shift = i % 2 ? 0.5 : 0;+ const nb = [i > 0 ? half((ys[i - 1] + y0) / 2) : null, i + 2 < ys.length ? half((y1 + ys[i + 2]) / 2) : null].filter(Boolean);+ const steps = (k, h) => nb.map((n) => n[k]).filter((v) => v < h - 1e-6).flatMap((v) => [-v, v]);+ course(S, y0, y1, cuts(-hx, hx, [...(sp.x || []), ...steps(0, hx)], len, shift), () => cuts(-hz, hz, [...(sp.z || []), ...steps(1, hz)], len, shift), state, kindOf);+ }+}++// ---------------------------------------------------------------- pieces+// Arcade span, pier centre to pier centre (x -2.4..2.4), faces at z +/-0.6, floor at y = 0:+// a round arch (soffit r 1.8, springing at 5.2 from the pier impost) with one stepped order+// (r 2.1), an archivolt of 13 voussoirs and a keystone, string course, frieze, cornice and a+// planting trough for ivy along the top.+function arcadeArch(S, R, B) {+ const ys = 5.2;+ for (const nz of [1, -1]) {+ spandrels(B, R, { cx: 0, ys, r: 2.1, x0: -2.4, x1: 2.4, yt: 7.75, zf: 0.6 * nz, nz, n: 9, dens: 0.12 });+ ringFace(B, R, { cx: 0, ys, r0: 1.8, r1: 2.1, zf: 0.45 * nz, nz, n: 18, k: 9 });+ band(B, R, { cx: 0, ys, r: 2.1, z0: 0.45 * nz, z1: 0.6 * nz, n: 18, k: 3 });+ voussoirs(B, R, { cx: 0, ys, r0: 2.1, r1: 2.4, zf: 0.6 * nz, nz, p: 0.07, k: 13, key: { dr: 0.1, dp: 0.05 } });+ }+ band(B, R, { cx: 0, ys, r: 1.8, z0: -0.45, z1: 0.45, n: 18, k: 3 });+ const hz = (y) => (y < 7.9 ? 0.66 : y < 8.6 ? 0.6 : y < 8.75 ? 0.72 : y < 9.0 ? 0.85 : 0.6);+ const state = (x, y, z) => {+ if (Math.abs(x) > 2.4) return 'phantom';+ if (y < 7.75) return Math.abs(z) <= 0.6 ? 'phantom' : 'empty';+ if (y > 9.4 || Math.abs(z) > hz(y)) return 'empty';+ if (y > 9.33 && Math.abs(z) < 0.42) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ // turn 13: the trough floor is travertine, not soil: turned over in the hanging courts it+ // faced down as a flat green strip (all four reviews of revision 15); the ivy hangs from+ // placements of its own+ if (y > 9.0 && Math.abs(z) < 0.42) return 'trav';+ return y < 7.9 || y > 8.6 ? 'marble' : 'trav';+ };+ courses(S, [7.75, 7.9, 8.6, 8.75, 9.0, 9.33, 9.4], (y) => [2.4, hz(y)], (y) => ({ x: [0], z: y > 9.0 ? [-0.42, 0.42] : [] }), state, kindOf, 99);+}++// Arcade pier 1.2 m square to the impost at 5.0-5.2 m, on a marble plinth; the slot variant+// has a warm glowing niche on its court and outer faces (turn 9: one 0.52 x 1.55 m niche 0.2 m+// deep, where a 3.1 m hairline slot read as LED tape).+function arcadePier(S, slot) {+ const half = (y) => (y < 0.35 ? 0.7 : y < 5.0 ? 0.6 : 0.68);+ const inSlot = (y) => slot && y > 1.9 && y < 3.45;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 5.2) return 'empty';+ const h = half(y);+ if (Math.abs(x) > h || Math.abs(z) > h) return 'empty';+ if (inSlot(y) && Math.abs(x) < 0.26 && Math.abs(z) > 0.4) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ // one tall course holds the niche, so its glowing back is a single face+ courses(S, slot ? [0, 0.35, 1.125, 1.9, 3.45, 4.225, 5.0, 5.2] : [0, 0.35, 1.125, 1.9, 2.675, 3.45, 4.225, 5.0, 5.2], (y) => [half(y), half(y)],+ (y) => (inSlot(y) || inSlot(y + 0.8) || inSlot(y - 0.8) ? { x: [-0.26, 0.26], z: [-0.4, 0.4] } : {}), state, (x, y) => (y < 0.35 || y > 5.0 ? 'marble' : 'trav'), 1.2); // turn 16: the courses over and under the niche cut at its edges+}++// Pylon 1.8 m square and 12.6 m tall, proud of the arcade so it closes the arch modules'+// cornices and troughs: ends each arcade run and marks every terrace step, with marble bands+// at both impost levels and a glowing niche on each face (turn 9: one 0.6 x 1.8 m niche 0.2 m+// deep at walking height, where two tall slots per face read as LED tape). A plain shaft+// continues it down the foundation face into the cloud, as on the rim towers.+function pylon(S) {+ const ys = [0, 0.5, 1.4, 2.3, 4.1, 5.0, 5.25, 5.967, 6.683, 7.4, 7.65, 8.44, 9.23, 10.02, 10.81, 11.6, 11.85, 12.05, 12.45, 12.6]; // 2.3 - 4.1 one course: the niche's+ const half = (y) => (y < 0.5 ? 1.0 : y < 5.0 ? 0.9 : y < 5.25 ? 0.96 : y < 7.4 ? 0.9 : y < 7.65 ? 0.96 : y < 11.6 ? 0.9 : y < 11.85 ? 1.02 : y < 12.05 ? 1.1 : y < 12.45 ? 0.75 : 0.8);+ const inSlot = (y) => y > 2.3 && y < 4.1;+ const marble = (y) => y < 0.5 || (y > 5.0 && y < 5.25) || (y > 7.4 && y < 7.65) || (y > 11.6 && y < 12.05) || y > 12.45;+ const state = (x, y, z) => {+ if (y < 0) return Math.abs(x) <= 0.9 && Math.abs(z) <= 0.9 ? 'phantom' : 'empty';+ if (y > 12.6) return 'empty';+ const h = half(y), ax = Math.abs(x), az = Math.abs(z);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.3 && az > h - 0.2) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.3 && ax > h - 0.2) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ courses(S, ys, (y) => [half(y), half(y)], (y) => (inSlot(y) || inSlot(y + 0.95) || inSlot(y - 0.95) ? { x: [-0.3, 0.3, -0.7, 0.7], z: [-0.3, 0.3, -0.7, 0.7] } : {}), // turn 16: also over and under the niche+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 1.8);+ // turn 8: the shaft runs to -110, below the cloud deck (now 80 m down), to dissolve in it+ S.push({ lo: [-0.9, -110, -0.9], hi: [0.9, 0, 0.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+}++// Rim tower 4 m square rising 24 m above its terrace, with a plain shaft dissolving into the+// cloud below, marble bands and cornice, and a glowing niche in each face of both lower stages+// (turn 9: 0.9 x 2.4 m and 0.3 m deep, where 6 m hairline slots read as LED tape). tower-slot+// keeps the 32 m shaft (it also hangs from an inverted court, shaft up); tower-rim, for the rim+// towers, runs it to -110 under the lowered cloud deck.+// turn 14: extra stages (each 7.45 m: a storey with its glowing niches and a marble band) go in+// under the plain top stage; tower-gate, the rim towers either side of the gateway, has two+// (39 m), so from the head of F2 (04) they fill the frame's upper corners as the hero's flanking+// towers do.+function tower(S, shaft = 32, extra = 0) {+ const E = 7.45 * extra, top = 21.3 + E;+ const ys = [-0.6, 0.4, 1.6, 2.8, 5.2, 6.4, 7.6, 7.85, 9.05, 10.25, 12.65, 13.85, 15.05, 15.3];+ for (let k = 0; k < extra; k++) { const b = 15.3 + 7.45 * k; ys.push(b + 1.2, b + 2.4, b + 4.8, b + 6.0, b + 7.2, b + 7.45); }+ ys.push(...[16.5, 17.7, 18.9, 20.1, 21.3, 21.6, 21.9, 22.65, 23.4, 23.7, 24.0].map((v) => +(v + E).toFixed(3))); // each niche in one course+ const bandAt = (y) => [7.6, 15.05, ...Array.from({ length: extra }, (_, k) => 15.05 + 7.45 * (k + 1))].some((b) => y > b && y < b + 0.25);+ const half = (y) => (y < 0.4 ? 2.12 : y < top ? (bandAt(y) ? 2.08 : 2.0) : y < top + 0.3 ? 2.15 : y < top + 0.6 ? 2.3 : y < top + 2.1 ? 1.85 : y < top + 2.4 ? 1.95 : 1.2);+ const inSlot = (y) => (y > 2.8 && y < 5.2) || (y > 10.25 && y < 12.65) || Array.from({ length: extra }, (_, k) => 15.3 + 7.45 * k).some((b) => y > b + 2.4 && y < b + 4.8);+ const marble = (y) => y < 0.4 || bandAt(y) || (y > top && y < top + 0.6) || y > top + 2.1;+ const state = (x, y, z) => {+ const ax = Math.abs(x), az = Math.abs(z);+ if (y < -0.6) return ax <= 1.9 && az <= 1.9 ? 'phantom' : 'empty';+ if (y > 24 + E) return 'empty';+ const h = half(y);+ if (ax > h || az > h) return 'empty';+ if (inSlot(y) && ax < 0.45 && az > h - 0.3) return z > 0 ? 'slot:pz' : 'slot:nz';+ if (inSlot(y) && az < 0.45 && ax > h - 0.3) return x > 0 ? 'slot:px' : 'slot:nx';+ return 'solid';+ };+ // turn 16 (C: sky showed through the top of the niches, a 63 px blue wedge in h6): the courses+ // over and under each niche are cut at its edges too, so the stones closing it are its own+ // and show their faces into it+ const nearSlot = (y) => inSlot(y) || inSlot(y + 1.25) || inSlot(y - 1.25);+ courses(S, ys, (y) => [half(y), half(y)], (y) => (nearSlot(y) ? { x: [-0.45, 0.45, -1.7, 1.7], z: [-0.45, 0.45, -1.7, 1.7] } : {}),+ state, (x, y) => (marble(y) ? 'marble' : 'trav'), 2.0);+ if (shaft > 0.6) S.push({ lo: [-1.9, -shaft, -1.9], hi: [1.9, -0.6, 1.9], c: 0, kind: 'trav', dens: 0.04, exp: { px: true, nx: true, pz: true, nz: true } });+ else S.push({ lo: [-1.9, -0.6, -1.9], hi: [1.9, -0.5, 1.9], c: 0, kind: 'trav', dens: 0.12, exp: { ny: true } }); // turn 15: no shaft, a closing course under the plinth+}++// Cascade tower 4 m square and 6.4 m tall standing against a terrace wall (-Z) whose top is+// 3.4 m above the tower's base, with a recessed spout for the waterfall on its +Z face and a+// marble-rimmed planting top. Its back is closed above the wall top.+function cascade(S) {+ const half = (y) => (y < 0.6 ? 2.08 : y < 5.4 ? 2.0 : y < 5.6 ? 2.1 : 2.0);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (z < -2.0) return y < 3.0 ? 'phantom' : 'empty';+ if (y > 6.4) return 'empty';+ const h = half(y), ax = Math.abs(x);+ if (ax > h || z > h) return 'empty';+ if (y > 4.2 && y < 5.4 && ax < 0.9 && z > 1.65) return 'spout'; // turn 9: the spout's back glowed (it read as a black slit); turn 16 (A, D: the falls poured out of lamp boxes) it is marble again+ if (y > 6.2 && ax < 1.65 && Math.abs(z) < 1.65) return 'empty';+ return 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > 5.6 && y < 6.2 && Math.abs(x) < 1.65 && Math.abs(z) < 1.65) { fk.py = 'soil'; return 'trav'; }+ return y < 0.6 || y > 5.4 ? 'marble' : 'trav';+ };+ courses(S, [0, 0.6, 1.8, 3.0, 4.2, 5.4, 5.6, 6.2, 6.4], (y) => [half(y), half(y)],+ (y) => (y > 3.0 && y < 5.6 ? { x: [-0.9, 0.9], z: [1.65] } : y > 5.6 ? { x: [-1.65, 1.65], z: [-1.65, 1.65] } : {}), state, kindOf, 2.0); // turn 16: the courses over and under the spout cut at its edges too+}++// The gateway, rebuilt in turn 7 on the hero's silhouette: 31 m wide, 12 m deep and 98.6 m+// above its threshold (front at +Z), three stacked stages under a plain stepped cornice and a+// crown that steps in through three tiers.+// - Main arch: 12 m wide and 28 m to its crown (2.3:1), springing at 22 m behind three stepped+// marble orders and a voussoir archivolt; the passage vault glows warm white between ribs.+// - Second arch: 9 m wide and 23.5 m tall, open to the sky, with a glowing ribbed soffit.+// - Lantern: 7 m wide; its reveals, order band and soffit glow.+// - Piers: a tall glowing slot on every face at each stage; small glowing niches in the crown.+// The passage walls are travertine with small bevels (rough, so the bevels do not mirror the+// sky as the marble ones did); the threshold is one seamless marble floor.+function gateway(S, R, B) {+ const seq = (a, b, n) => Array.from({ length: n }, (_, i) => +(a + ((b - a) * (i + 1)) / n).toFixed(4));+ const YS1 = 22.0, YS2 = 52.0, YS3 = 78.0;+ // turn 9: glowing niches 1 m wide and 0.3 m deep, each in one double-height course (so its+ // glowing back is one face), stacked three to a stage on the piers' faces and one to a stage+ // on the sides, where full-stage hairline slots read as LED tape+ const s1 = seq(0.6, 21.6, 17), s2 = seq(33.0, 52.0, 16), s3 = seq(64.0, 78.0, 12);+ const nicheF = [[s1[2], s1[4]], [s1[6], s1[8]], [s1[10], s1[12]], [s2[1], s2[3]], [s2[5], s2[7]], [s2[9], s2[11]], [s3[1], s3[3]], [s3[5], s3[7]]];+ const nicheS = [[s1[6], s1[8]], [s2[5], s2[7]], [s3[5], s3[7]]];+ const merged = new Set([s1[3], s1[7], s1[11], s2[2], s2[6], s2[10], s3[2], s3[6]]);+ const ys = [0, 0.6, ...s1, 22.0, ...seq(22.0, 31.0, 8), 31.6, 33.0, ...s2, ...seq(52.0, 59.0, 6),+ ...seq(59.0, 61.0, 2), 61.6, ...seq(61.6, 64.0, 2), ...s3, ...seq(78.0, 83.0, 4), ...seq(83.0, 86.0, 3), 86.4, 86.9, 87.4,+ ...seq(87.4, 91.0, 3), 91.4, ...seq(91.4, 95.0, 3), 95.4, ...seq(95.4, 98.0, 2), 98.6, 37.15].filter((y) => !merged.has(y)).sort((a, b) => a - b);+ const half0 = (y) => (y < 0.6 ? [15.7, 5.9] : y < 21.6 ? [15.5, 5.7] : y < 22.0 ? [15.65, 5.85] : y < 31.0 ? [15.5, 5.7] : y < 31.6 ? [15.8, 6.0]+ : y < 61.0 ? [15.0, 5.5] : y < 61.6 ? [15.3, 5.8] : y < 86.0 ? [14.6, 5.3] : y < 86.4 ? [14.9, 5.6] : y < 86.9 ? [15.2, 5.9] : y < 87.4 ? [15.5, 6.2]+ : y < 91.0 ? [12.4, 5.0] : y < 91.4 ? [12.7, 5.3] : y < 95.0 ? [9.4, 4.4] : y < 95.4 ? [9.7, 4.7] : y < 98.0 ? [6.2, 3.6] : [6.5, 3.9]);+ // turn 14 (the reviews of revision 15: a campanile with a grid of window-like slots, not the+ // hero's portal; widen the massing with stepped flanking piers that carry planted ledges, and+ // one or two full-height glowing slits per pier):+ // - front piers either side of the main arch, 9.4 - 15.5 m out, stand 3.5 m proud of the+ // front face up to 37.75 m, over the arch's crown and the string course, banded with the+ // body's marble courses and capped by a marble coping that is their planted ledge (the+ // planters, cypresses and ivy are placements); each carries one glowing slit 1.8 - 34.2 m+ // - the first stage steps out into two tiers of wings, so the base reads broad: to 19.5 m+ // either side up to 12.95 m, then to 18 m up to 19.13 m, full depth, each tier under a+ // marble coping course, a tall slit in each wing face+ // - elsewhere in the first two stages each pier's outer 1.9 m stands 0.45 m proud of its face,+ // a pilaster running the stage's height+ // - the body's faces take one tall glowing slit per stage where the front piers leave them open+ const PIL = 13.6, PROUD = 0.45, pilY = (y) => (y > 0.6 && y < 31.0) || (y > 33.0 && y < 61.0);+ const FP = { x0: 9.4, x1: 15.5, top: s2[3], cope: 37.15, z: 9.2 };+ const fpZ = (y) => (y < 0.6 ? 9.4 : (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || y > FP.cope ? 9.5 : FP.z);+ const W1 = [19.5, s1[9]], W2 = [18.0, s1[14]];+ const wingX = (y) => (y < W1[1] ? W1[0] : y < W2[1] ? W2[0] : 0);+ const half = (y) => { const [hx, hz] = half0(y); return [Math.max(hx, wingX(y)), y < FP.top ? fpZ(y) : pilY(y) ? hz + PROUD : hz]; };+ const open1 = (az) => (az > 5.2 ? 7.5 : az > 4.6 ? 7.0 : az > 4.0 ? 6.5 : 6.0); // passage and its orders+ const open2 = (az) => (az > 4.9 ? 5.2 : az > 4.3 ? 4.85 : 4.5); // second arch+ const open3 = (az) => (az > 4.7 ? 4.0 : 3.5); // lantern+ const inN = (list, y) => list.some(([a, b]) => y > a && y < b);+ // the tall slits, 1 m wide and 0.3 m deep: [x0, x1, y0, y1, face (1 front, -1 back, 0 both)];+ // their glowing backs are drawn as one panel each (below), so the glow runs the slit's whole+ // height instead of restarting in every course+ const SLITS = [[11.35, 12.35, s1[1], s1[14], -1], [11.35, 12.35, s2[1], s2[13], -1], [11.35, 12.35, s2[4], s2[13], 1],+ [11.35, 12.35, s3[1], s3[9], 0], [17.0, 18.0, s1[1], s1[8], 0]];+ const PSLIT = [11.95, 12.95, s1[1], s2[0]]; // in the front piers' faces+ const inSlit = (ax, y, z) => SLITS.some(([x0, x1, y0, y1, f]) => (!f || f === Math.sign(z)) && ax > x0 && ax < x1 && y > y0 && y < y1);+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > 98.6) return 'empty';+ const [hx, hz1] = half(y), ax = Math.abs(x), az = Math.abs(z), hz = half0(y)[1];+ if (ax > hx || az > hz1) return 'empty';+ if (az > hz) { // proud of the body's face: a front pier, or a pilaster+ if (z > 0 && y < FP.top && ax > FP.x0 && ax < FP.x1) {+ if (z > fpZ(y)) return 'empty';+ if (ax > PSLIT[0] && ax < PSLIT[1] && y > PSLIT[2] && y < PSLIT[3]) { if (z > FP.z - 0.3) return 'empty'; if (z > FP.z - 0.6) return 'phantom'; }+ return 'solid';+ }+ return pilY(y) && ax > PIL && ax < half0(y)[0] && az < hz + PROUD ? 'solid' : 'empty';+ }+ if (y < 87.4) {+ if (inSlit(ax, y, z)) { if (az > hz - 0.3) return 'empty'; if (az > hz - 0.6) return 'phantom'; }+ if (ax > hx - 0.3 && az < 0.5 && inN(nicheS, y)) return x > 0 ? 'slot:px' : 'slot:nx';+ }+ if (y < YS1) return ax < open1(az) ? 'empty' : 'solid';+ if (y < 31.0) return ax < 8.6 ? 'phantom' : 'solid';+ if (y < 33.0) return 'solid'; // string course and the second arch's sill+ if (y < YS2) return ax < open2(az) ? 'empty' : 'solid';+ if (y < 59.0) return ax < 6.2 ? 'phantom' : 'solid';+ if (y < 64.0) return 'solid';+ if (y < YS3) return ax < open3(az) ? (x > 0 ? 'slot:nx' : 'slot:px') : 'solid'; // the lantern's reveals glow+ if (y < 83.0) return ax < 4.8 ? 'phantom' : 'solid';+ if (y > 91.4 && y < 95.0 && ax < 1.8 && az > 3.6) return z > 0 ? 'slot:pz' : 'slot:nz';+ return 'solid';+ };+ const marbleY = (y) => y < 0.6 || (y > 21.6 && y < 22.0) || (y > 31.0 && y < 31.6) || (y > 61.0 && y < 61.6) || (y > 86.0 && y < 87.4)+ || (y > 91.0 && y < 91.4) || (y > 95.0 && y < 95.4) || y > 98.0;+ const kindOf = (x, y, z) => {+ const ax = Math.abs(x);+ if (marbleY(y) || (y > 33.0 && y < 59.0 && ax < 6.2) || (y > 64.0 && y < 83.0 && ax < 4.8)) return 'marble';+ if (ax > 15.5 && ((y > s1[8] && y < W1[1]) || (y > s1[13] && y < W2[1]))) return 'marble'; // the wings' copings+ if (y > FP.cope && z > half0(y)[1]) return 'marble'; // the front piers' copings+ return 'trav';+ };+ // the faces of the courses above and below: with the piers and pilasters a course's extent is+ // no longer its face, so the coursing's steps miss a band's 0.15 m projection and its underside+ // went undrawn (cracks at the main arch's springing, glb-cracks.mjs)+ const nearFaces = (y) => { const i = ys.findIndex((v) => v > y); return [i > 1 ? (ys[i - 2] + ys[i - 1]) / 2 : y, i + 1 < ys.length ? (ys[i] + ys[i + 1]) / 2 : y].map((m) => half0(m)[1]); };+ const special = (y) => {+ const [hx] = half(y), hx0 = half0(y)[0], hz = half0(y)[1], x = [], z = [];+ if (y < 87.4) { x.push(11.35, 12.35, hx0 - 0.3); z.push(hz - 0.3, hz - 0.6, 0.5); }+ if (y < 61.6) z.push(...nearFaces(y));+ if (pilY(y)) { x.push(PIL); z.push(hz, hz + PROUD); }+ if (y < FP.top) { x.push(FP.x0, FP.x1, PSLIT[0], PSLIT[1]); z.push(hz, FP.z - 0.6, FP.z - 0.3, FP.z); }+ if (wingX(y)) x.push(hx0, ...(y < W1[1] ? [17.0, 18.0, W2[0]] : []), hx - 0.3);+ if (y < YS1) { x.push(6.0, 6.5, 7.0, 7.5); z.push(4.0, 4.6, 5.2); }+ else if (y < 31.0) x.push(8.6);+ else if (y > 33.0 && y < YS2) { x.push(4.5, 4.85, 5.2); z.push(4.3, 4.9); }+ else if (y > YS2 && y < 59.0) x.push(6.2);+ else if (y > 64.0 && y < YS3) { x.push(3.5, 4.0); z.push(4.7); }+ else if (y > YS3 && y < 83.0) x.push(4.8);+ else if (y > 91.4 && y < 95.0) { x.push(1.8); z.push(3.6); }+ return { x: x.flatMap((v) => [-v, v]), z: z.flatMap((v) => [-v, v]) };+ };+ courses(S, ys, half, special, state, kindOf, 2.0); // turn 10: the passage walls keep the common bevel (their 6 mm met 2 cm and opened slots)+ // the slits' glowing backs, one panel per slit+ const glowPanel = (x0, x1, y0, y1, sx, zb, sz) => {+ const w = pickWindow(R, 'glow', x1 - x0, y1 - y0, 1, false);+ B.poly([[sx * x0, y0, zb], [sx * x1, y0, zb], [sx * x1, y1, zb], [sx * x0, y1, zb]], [0, 0, sz],+ [uvOf(w, 0, 0), uvOf(w, 1, 0), uvOf(w, 1, 1), uvOf(w, 0, 1)]);+ };+ for (const [x0, x1, y0, y1, f] of SLITS) for (const sx of [-1, 1]) for (const sz of f ? [f] : [-1, 1]) glowPanel(x0, x1, y0, y1, sx, sz * (half0((y0 + y1) / 2)[1] - 0.3), sz);+ for (const sx of [-1, 1]) glowPanel(PSLIT[0], PSLIT[1], PSLIT[2], PSLIT[3], sx, FP.z - 0.3, 1);+ // Threshold: a seamless marble floor through the passage, 2 cm proud of the deck and running+ // under the walls and reveals, so no deck joint shows in it.+ for (const [z0, z1] of [[-5.9, -1.9], [-1.9, 1.9], [1.9, 5.9]]) {+ S.push({ lo: [-7.6, 0, z0], hi: [7.6, 0.02, z1], c: 0, kind: 'marble', exp: { py: true, pz: z1 > 5, nz: z0 < -5 } });+ }++ for (const nz of [1, -1]) {+ // main arch: spandrels up to the string course, a voussoir archivolt, three stepped orders+ spandrels(B, R, { cx: 0, ys: YS1, r: 7.5, x0: -8.6, x1: 8.6, yt: 31.0, zf: 5.7 * nz, nz, n: 20, dens: 0.06 });+ voussoirs(B, R, { cx: 0, ys: YS1, r0: 7.5, r1: 8.4, zf: 5.7 * nz, nz, p: 0.22, k: 27, key: { dr: 0.6, dp: 0.16 } });+ for (const [r0, r1, zf, zo] of [[7.0, 7.5, 5.2, 5.7], [6.5, 7.0, 4.6, 5.2], [6.0, 6.5, 4.0, 4.6]]) {+ ringFace(B, R, { cx: 0, ys: YS1, r0, r1, zf: zf * nz, nz, n: 44, k: 21 });+ band(B, R, { cx: 0, ys: YS1, r: r1, z0: zf * nz, z1: zo * nz, n: 44, k: 5 });+ }+ // second arch, open to the sky: two orders+ spandrels(B, R, { cx: 0, ys: YS2, r: 5.2, x0: -6.2, x1: 6.2, yt: 59.0, zf: 5.5 * nz, nz, n: 16, dens: 0.08 });+ voussoirs(B, R, { cx: 0, ys: YS2, r0: 5.2, r1: 5.9, zf: 5.5 * nz, nz, p: 0.18, k: 21, key: { dr: 0.4, dp: 0.12 } });+ for (const [r0, r1, zf, zo] of [[4.85, 5.2, 4.9, 5.5], [4.5, 4.85, 4.3, 4.9]]) {+ ringFace(B, R, { cx: 0, ys: YS2, r0, r1, zf: zf * nz, nz, n: 36, k: 15 });+ band(B, R, { cx: 0, ys: YS2, r: r1, z0: zf * nz, z1: zo * nz, n: 36, k: 4 });+ }+ // lantern: a marble order whose band glows+ spandrels(B, R, { cx: 0, ys: YS3, r: 4.0, x0: -4.8, x1: 4.8, yt: 83.0, zf: 5.3 * nz, nz, n: 14, dens: 0.1 });+ voussoirs(B, R, { cx: 0, ys: YS3, r0: 4.0, r1: 4.6, zf: 5.3 * nz, nz, p: 0.16, k: 17, key: { dr: 0.3, dp: 0.1 } });+ ringFace(B, R, { cx: 0, ys: YS3, r0: 3.5, r1: 4.0, zf: 4.7 * nz, nz, n: 30, k: 11 });+ band(B, R, { cx: 0, ys: YS3, r: 4.0, z0: 4.7 * nz, z1: 5.3 * nz, n: 30, kind: 'glow' });+ }+ // Soffits: glowing panels between marble ribs in the passage and the second arch; the+ // lantern glows all through.+ const vault = (y0, r, zEnd, ribs, w, n) => {+ const zc = [-zEnd, ...ribs.flatMap((zr) => [zr - w, zr + w]), zEnd];+ for (let i = 0; i + 1 < zc.length; i += 2) band(B, R, { cx: 0, ys: y0, r, z0: zc[i], z1: zc[i + 1], n, kind: 'glow' });+ for (const zr of ribs) {+ band(B, R, { cx: 0, ys: y0, r: r - 0.15, z0: zr - w, z1: zr + w, n, k: 9 });+ for (const sg of [-1, 1]) ringFace(B, R, { cx: 0, ys: y0, r0: r - 0.15, r1: r, zf: zr + w * sg, nz: sg, n, k: 9 });+ // turn 10: the rib's ends, where it springs from the walls (they were open to the sky)+ const wnd = pickWindow(R, 'marble', 0.15, 2 * w, DENS.marble, false);+ for (const a of [0, Math.PI]) B.poly([at(0, y0, r - 0.15, a, zr - w), at(0, y0, r, a, zr - w), at(0, y0, r, a, zr + w), at(0, y0, r - 0.15, a, zr + w)],+ [0, -1, 0], [uvOf(wnd, 0, 0), uvOf(wnd, 1, 0), uvOf(wnd, 1, 1), uvOf(wnd, 0, 1)]);+ }+ };+ vault(YS1, 6.0, 4.0, [-2.4, -0.8, 0.8, 2.4], 0.2, 44);+ vault(YS2, 4.5, 4.3, [-1.4, 1.4], 0.18, 36);+ band(B, R, { cx: 0, ys: YS3, r: 3.5, z0: -4.7, z1: 4.7, n: 30, kind: 'glow' });+}++// Planter for the cypresses and shrubs: a recessed brass strip at the foot, a marble plinth, a+// coursed ivory travertine body and a marble rim 0.12 m wide over a soil top 6 cm down.+function planter(S, hx, hz, h) {+ const half = (y) => (y < 0.05 ? [hx, hz] : y < 0.15 ? [hx + 0.03, hz + 0.03] : y < h - 0.12 ? [hx, hz] : [hx + 0.04, hz + 0.04]);+ const inside = (x, z) => Math.abs(x) < hx - 0.12 && Math.abs(z) < hz - 0.12;+ const state = (x, y, z) => {+ if (y < 0) return 'phantom';+ if (y > h) return 'empty';+ const [a, b] = half(y);+ if (Math.abs(x) > a || Math.abs(z) > b) return 'empty';+ return y > h - 0.06 && inside(x, z) ? 'empty' : 'solid';+ };+ const kindOf = (x, y, z, exp, fk) => {+ if (y > h - 0.12 && y < h - 0.06 && inside(x, z)) { fk.py = 'soil'; return 'trav'; }+ return y < 0.05 ? 'brass' : y < 0.15 || y > h - 0.12 ? 'marble' : 'trav';+ };+ const mid = (0.15 + h - 0.12) / 2;+ courses(S, [0, 0.05, 0.15, +mid.toFixed(3), +(h - 0.12).toFixed(3), +(h - 0.06).toFixed(3), h], (y) => half(y),+ (y) => (y > h - 0.12 ? { x: [-(hx - 0.12), hx - 0.12], z: [-(hz - 0.12), hz - 0.12] } : {}), state, kindOf, 0.8);+}++// Floating cube, 1 m with a 2 cm bevel, polished white marble; placements scale it from a block+// you could almost touch to monoliths. cube-mirror (in build) is the same block as a mirror.+const CUBE = { lo: [-0.5, -0.5, -0.5], hi: [0.5, 0.5, 0.5], c: 0.02, kind: 'marble-a', dens: 0.5, exp: { px: true, nx: true, py: true, ny: true, pz: true, nz: true } };+function cubeMarble(S) { S.push({ ...CUBE, exp: { ...CUBE.exp } }); }+// The mirror cube's mesh: each face spans its whole texture (a mirror inside a brass border),+// and the 2 cm bevels and corners sample the border, so the frame runs round every edge.+function mirrorCube(B) {+ const h = 0.5, c = 0.04, rim = [0.015, 0.5]; // turn 16: a bevel twice as wide, to catch the sun (round 7: flat faces)+ const V = (g, ax) => [0, 1, 2].map((i) => (i === ax ? g[i] * h : g[i] * (h - c)));+ for (let ax = 0; ax < 3; ax++) for (const s of [-1, 1]) {+ const [a1, a2] = [0, 1, 2].filter((i) => i !== ax), n = [0, 0, 0];+ n[ax] = s;+ const gs = [[-1, -1], [1, -1], [1, 1], [-1, 1]].map(([p, q]) => { const g = [0, 0, 0]; g[ax] = s; g[a1] = p; g[a2] = q; return g; });+ B.poly(gs.map((g) => V(g, ax)), n, [[0, 0], [1, 0], [1, 1], [0, 1]]);+ }+ for (let a = 0; a < 3; a++) for (let b = a + 1; b < 3; b++) for (const sa of [-1, 1]) for (const sb of [-1, 1]) {+ const o = [0, 1, 2].find((i) => i !== a && i !== b), n = [0, 0, 0];+ const g = (so) => { const t = [0, 0, 0]; t[a] = sa; t[b] = sb; t[o] = so; return t; };+ n[a] = sa; n[b] = sb;+ B.poly([V(g(-1), a), V(g(1), a), V(g(1), b), V(g(-1), b)], nrm(n), [rim, rim, rim, rim]);+ }+ for (const sx of [-1, 1]) for (const sy of [-1, 1]) for (const sz of [-1, 1]) B.poly([V([sx, sy, sz], 0), V([sx, sy, sz], 1), V([sx, sy, sz], 2)], nrm([sx, sy, sz]), [rim, rim, rim]);+}++// Floating isle: a marble deck 24 m square over an inverted ziggurat of coursed ivory travertine+// with marble bands, narrowing in steps to a 4.4 m keel 18.4 m down. Decks, arcades and+// planting from the kit stand on top.+function isle(S) {+ const halves = [12, 11.3, 10.5, 9.6, 8.6, 7.6, 6.5, 5.4, 4.3, 3.2, 2.2], tops = [0, -0.4]; // course boundaries from the deck down+ for (let k = 1; k < halves.length; k++) tops.push(+(-0.4 - 1.8 * k).toFixed(2));+ const course = (y) => Math.max(0, tops.findIndex((v, i) => i + 1 < tops.length && y <= v && y >= tops[i + 1]));+ const half = (y) => { const h = halves[Math.min(halves.length - 1, course(y))]; return [h, h]; };+ const state = (x, y, z) => {+ if (y > 0 || y < tops[tops.length - 1]) return 'empty';+ const [h] = half(y);+ return Math.abs(x) <= h && Math.abs(z) <= h ? 'solid' : 'empty';+ };+ const kindOf = (x, y) => (y > -0.4 || course(y) % 4 === 3 ? 'marble-a' : 'trav-a');+ // turn 10: courses() takes the boundaries from the bottom up; given them from the top down it+ // found no step's underside, so the keel showed the sky between its courses+ courses(S, tops.slice().reverse(), half, () => ({}), state, kindOf, 2.4);+}++// Far monolith (turn 9, rule 6's far layer): a colossal coursed travertine stele, 10 x 40 x 10 m+// at scale 1 (placements scale it two to five times), on a stepped marble plinth under a+// stepped cap, with a marble band every sixth course; stones 2.5 m long in 1.6 m courses with+// 6 cm bevels, so at a few hundred metres it reads as built masonry, not a plain block. It+// floats, so its underside is drawn too.+function monolith(S) {+ const ys = [0, 0.8];+ for (let y = 1.6; y < 38.4 + 1e-6; y += 1.6) ys.push(+y.toFixed(2));+ ys.push(39.2, 40);+ const half = (y) => (y < 0.8 ? 5.6 : y < 1.6 ? 5.3 : y < 38.4 ? 5.0 : y < 39.2 ? 5.3 : 4.6);+ const state = (x, y, z) => (y < 0 || y > 40 || Math.abs(x) > half(y) || Math.abs(z) > half(y) ? 'empty' : 'solid');+ const band = (y) => y < 1.6 || y > 38.4 || Math.floor((y - 1.6) / 1.6) % 6 === 5;+ courses(S, ys, (y) => [half(y), half(y)], () => ({}), state, (x, y) => (band(y) ? 'marble-a' : 'trav-a'), 2.5);+ for (const st of S) st.c = 0.06;+}++// turn 15 (round 5: the arcade tops ran as one flat line; staggered pavilions should break it):+// an open belvedere on a coursed shaft standing up out of the cloud sea. A marble plinth 4.8 m+// square, four travertine corner piers 0.8 m square, on every side a round arch 3 m wide+// springing at 2.9 m under a marble archivolt, a marble entablature from 4.8 to 5.95 m and a roof+// stepping in three times to a marble finial at 7.6 m; the shaft, 3.4 m square, runs 60 m down.+// The arches of the x-facing sides are drawn through a proxy that turns them a quarter about y.+function pavilion(S, R, B) {+ const H = 2.3, P = 0.8, ys = 2.9, r = 1.5, yt = 4.8, open = { px: true, nx: true, pz: true, nz: true };+ S.push({ lo: [-H - 0.1, -0.3, -H - 0.1], hi: [H + 0.1, 0, H + 0.1], c: 0.02, kind: 'marble', dens: 0.25, exp: { py: true, ny: true, ...open } });+ S.push({ lo: [-1.7, -60, -1.7], hi: [1.7, -0.3, 1.7], c: 0.02, kind: 'trav', dens: 0.12, exp: open });+ for (const sx of [-1, 1]) for (const sz of [-1, 1]) {+ S.push({ lo: [sx > 0 ? H - P : -H, 0, sz > 0 ? H - P : -H], hi: [sx > 0 ? H : -H + P, yt, sz > 0 ? H : -H + P], c: 0.02, kind: 'trav', dens: 0.19, exp: open });+ }+ for (const [y0, y1, h, kind] of [[yt, 5.2, 2.45, 'marble'], [5.2, 5.75, 2.35, 'trav'], [5.75, 5.95, 2.6, 'marble'], [5.95, 6.3, 2.1, 'trav'], [6.3, 6.65, 1.6, 'trav'],+ [6.65, 7.0, 1.1, 'marble'], [7.0, 7.6, 0.35, 'marble']]) S.push({ lo: [-h, y0, -h], hi: [h, y1, h], c: 0.015, kind, dens: kind === 'marble' ? 0.25 : 0.19, exp: { py: true, ny: true, ...open } });+ const turned = { poly: (v, n, uv) => B.poly(v.map(([x, y, z]) => [z, y, -x]), [n[2], n[1], -n[0]], uv),+ polyN: (v, ns, uv) => B.polyN(v.map(([x, y, z]) => [z, y, -x]), ns.map((n) => [n[2], n[1], -n[0]]), uv) };+ for (const BB of [B, turned]) for (const s of [-1, 1]) {+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: H * s, nz: s, n: 12, dens: 0.12 }); // outer face+ spandrels(BB, R, { cx: 0, ys, r, x0: -1.5, x1: 1.5, yt, zf: (H - P) * s, nz: -s, n: 12, dens: 0.12 }); // inner face+ voussoirs(BB, R, { cx: 0, ys, r0: r, r1: r + 0.3, zf: H * s, nz: s, p: 0.06, k: 9, key: { dr: 0.12, dp: 0.04 } });+ band(BB, R, { cx: 0, ys, r, z0: (H - P) * s, z1: H * s, n: 16 });+ }+}++// A piece's stones and faces moved dx along x, into another piece's mesh.+function putShifted(S, R, B, fn, dx) {+ const S2 = [], shift = (v) => [v[0] + dx, v[1], v[2]];+ fn(S2, R, { poly: (v, n, uv) => B.poly(v.map(shift), n, uv), polyN: (v, ns, uv) => B.polyN(v.map(shift), ns, uv) });+ for (const st of S2) S.push({ ...st, lo: shift(st.lo), hi: shift(st.hi) });+}++// Review only (never saved): three arches on their piers between two pylons, in one mesh.+function previewArcade(S, R, B) {+ const put = (fn, dx) => putShifted(S, R, B, fn, dx);+ for (const dx of [-4.8, 0, 4.8]) put((S2, R2, B2) => arcadeArch(S2, R2, B2), dx);+ put((S2) => arcadePier(S2, true), -2.4);+ put((S2) => arcadePier(S2, false), 2.4);+ for (const dx of [-7.2, 7.2]) put((S2) => pylon(S2), dx);+}++// Turn 15: one bay of the arcade in one mesh, the plain pier at x = 0 and its arch on the +x+// side (x -0.7 .. 4.8), so the inverted sanctuary's arcades take one placement a bay.+function arcadeBay(S, R, B) {+ putShifted(S, R, B, (S2) => arcadePier(S2, false), 0);+ putShifted(S, R, B, (S2, R2, B2) => arcadeArch(S2, R2, B2), 2.4);+}++const PIECES = {+ 'preview-arcade': { glow: GLOW, build: previewArcade },+ 'arcade-arch': { glow: 0, build: arcadeArch },+ 'arcade-pier': { glow: 0, build: (S) => arcadePier(S, false) },+ 'arcade-pier-slot': { glow: GLOW, build: (S) => arcadePier(S, true) },+ 'arcade-pylon': { glow: GLOW, build: pylon },+ 'tower-slot': { glow: GLOW, build: (S) => tower(S) },+ 'tower-rim': { glow: GLOW, build: (S) => tower(S, 110) },+ 'tower-gate': { glow: GLOW, build: (S) => tower(S, 110, 2) }, // turn 14: the T3 rim towers beside the gateway, two storeys taller+ 'cascade-tower': { glow: GLOW, build: cascade },+ 'gateway': { glow: GLOW, build: gateway },+ 'planter-sq': { glow: 0, build: (S) => planter(S, 0.8, 0.8, 0.9) },+ 'planter-long': { glow: 0, build: (S) => planter(S, 2.0, 0.6, 0.7) },+ 'cube-marble': { glow: 0, build: cubeMarble },+ 'isle-base': { glow: 0, build: isle },+ 'monolith': { glow: 0, build: monolith },+ 'pavilion': { glow: 0, build: pavilion }, // turn 15+ 'tower-hang': { glow: GLOW, build: (S) => tower(S, 0.6, 1) }, // turn 15: a rim tower one storey taller with no shaft, to hang from the inverted sanctuary+ 'arcade-bay': { glow: 0, build: arcadeBay }, // turn 15+};++async function build() {+ const root = createRoot(PIECE);+ if (PIECE === 'orb') { // a true mirror: white metal, roughness 0.02, smooth normals+ const white = proceduralTexture({ schemaVersion: 2, size: 4, usage: 'albedo', layers: [{ op: 'solid', color: 0xf2f4f6 }] });+ createPart('orb', sphereGeo(2.25, 96, 64), pbrMaterial({ albedo: white, roughness: 0.02, metalness: 1 }), { parent: root });+ return root;+ }+ // the floating cube as a true mirror with a hairline brass edge (turn 9: the frame read as a crate);+ // cube-mirror-court (turn 11) is the same cube under its own name, for the court's reflection probe+ if (PIECE === 'cube-mirror' || PIECE === 'cube-mirror-court' || PIECE === 'cube-mirror-far') { // turn 16: cube-mirror-far, the same cube for the far ones' sky reflection+ const n = 64, f = 1, inner = { kind: 'rectangle', x: f, y: f, width: n - 2 * f, height: n - 2 * f };+ const albedo = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'albedo', background: [236, 212, 156, 255], // turn 16: a paler gold bevel (was 212, 176, 104)+ operations: [{ op: 'paint', shape: inner, rgba: [238, 240, 243, 255] }] });+ const mr = proceduralTexture({ schemaVersion: 3, width: n, height: n, usage: 'metallicRoughness', background: [0, 64, 255, 255], // turn 16: bevel roughness 0.25 (was 0.35)+ operations: [{ op: 'paint', shape: inner, rgba: [0, 5, 255, 255] }] }); // turn 13: roughness 0.02 (was 0.04)+ const B = makeBuilder();+ mirrorCube(B);+ createPart('cube_mirror', B.geometry(), pbrMaterial({ albedo, metallicRoughness: mr, roughness: 1, metalness: 1 }), { parent: root });+ return root;+ }+ const piece = PIECES[PIECE], R = rng(hash(PIECE)), B = makeBuilder(), S0 = [];+ piece.build(S0, R, B);+ const S = splitStones(S0);+ seal(S);+ for (const st of S) emitStone(B, R, st);+ createPart(PIECE.replace(/-/g, '_'), B.geometry(), await stoneMaterial(1024, piece.glow), { parent: root });+ return root;+}diff --git a/site/scripts/holodeck-spec.mjs b/site/scripts/holodeck-spec.mjsindex 73e393fe..cb97353c 100644--- a/site/scripts/holodeck-spec.mjs+++ b/site/scripts/holodeck-spec.mjs@@ -48,13 +48,20 @@ export const HOLODECK_PACKS = [description: 'A furnished timber cabin above a snowy mountain forest, with a sleeping loft, deck, stone hearth and woodland trails, built in Holodeck.',expectedAssets: 56,},+ {+ id: 'holodeck-meridian-sanctuary',+ scene: 'meridian-sanctuary',+ name: 'Meridian Sanctuary',+ description: 'A marble sanctuary above a sea of cloud: a causeway between mirror pools, terraces up to a colossal gate tower with a mirror orb, floating statues of a figure and a whale, arcades, cypresses and a bridge path to a pavilion, built in Holodeck around the Cove.',+ expectedAssets: 53,+ },];/*** Two shots of each walkable scene: a wide view of the scene, then a place in it. Pack pages show them side by side;* the pack's card on /packs/ shows the wide one. Each camera is a Holodeck benchmark pose (metres, +Y up) shot by* `scripts/capture-holodeck-shots.mjs` from the published world. Seven reuse the framings of Holodeck's own site- * shots; the Tidemark overview, the cabin views and the Cove seat are framed for these pages.+ * shots; the Tidemark overview, the cabin views, the Cove seat and the Meridian Sanctuary views are framed for these pages.*/const shot = (view, position, target, fov, cove, alt) => ({ view, camera: { position, target, fov, cove }, alt });export const HOLODECK_SHOTS = {@@ -78,6 +85,10 @@ export const HOLODECK_SHOTS = {shot('winter-mountainside-cabin-exterior', [28, 10, -2], [20, 8, -29], 52, true, 'The timber cabin with its glazed gable, deck and stair among snow-covered firs and spruces.'),shot('winter-mountainside-cabin-living', [21.8, 7.6, -25.4], [20.3, 6.9, -30.5], 63, true, 'The cabin’s living room: a sofa and armchair around the stone hearth, the loft stair and warm lantern light.'),],+ 'holodeck-meridian-sanctuary': [+ shot('meridian-sanctuary-overview', [14, 62, 34], [14, 2, -78], 55, true, 'Meridian Sanctuary from above: a marble causeway between mirror pools and terraces climbing to the gate tower, over a sea of cloud.'),+ shot('meridian-sanctuary-arrival', [14, 1.72, -9], [14, 13, -124], 63, true, 'Arriving at Meridian Sanctuary: the causeway runs between mirror pools and cypresses toward the gate tower and its mirror orb.'),+ ],};/** Every scene shot is a full-HD capture, so a half-width pair stays sharp on large and high-density screens. */export const HOLODECK_SHOT_SIZE = { width: 1920, height: 1080 };@@ -88,7 +99,7 @@ export const HOLODECK_PLANNED = [];/*** Owner approval, by gallery slug and the exact revision approved. On 2026-10-23 the owner approved the 47 staged* Courtyard, Cove and Tidemark cards as staged, and their packs for delivery, then the 41 new Crescent Cove cards as- * staged. On 2026-10-24 the owner approved the 55 new Winter Mountainside Cabin cards as staged. On 2026-10-25 the owner approved Crescent Cove's revision 17 palms (tall, lean, arch, young) and fallen fronds as staged. On 2026-10-25 the owner authorized repairing and deploying the seven winter tree bark-winding successors. The approval covers these revisions only: a new card, or a new revision of one of these, awaits review until it is recorded here. A pack is available+ * staged. On 2026-10-24 the owner approved the 55 new Winter Mountainside Cabin cards as staged. On 2026-10-25 the owner approved Crescent Cove's revision 17 palms (tall, lean, arch, young) and fallen fronds as staged. On 2026-10-25 the owner authorized repairing and deploying the seven winter tree bark-winding successors. On 2026-10-25 the owner also approved the 45 new Meridian Sanctuary cards as staged. The approval covers these revisions only: a new card, or a new revision of one of these, awaits review until it is recorded here. A pack is available* when every asset it lists is approved.*/export const HOLODECK_APPROVAL = {@@ -237,6 +248,51 @@ export const HOLODECK_APPROVAL = {'winter-wmc-wall-west': 'r_a06b37dfb34843d394c049e0b9913019','winter-wmc-window-tall': 'r_8c85b15ec6434f91b67353da68c41630','winter-wmc-window-test': 'r_a68e049d8cbf4449bbad83b4b2d33499',+ 'meridian-deck-4': 'r_5711672892fd428891bab109fb5f2c78',+ 'meridian-block-8': 'r_90b595799305471aa23d5c522b098917',+ 'meridian-step-slab': 'r_ed119ee06e04495787eb74e6fa1b3588',+ 'meridian-deck-6': 'r_cfc1654b7c0147418c5980fc0155b73f',+ 'meridian-coping-4': 'r_32c14b58648b4b66b9f916ddd8d796ba',+ 'meridian-pool-steps': 'r_70d3b4de07f64f518c0a77e49779e0ef',+ 'meridian-stair-8': 'r_e2c7668c4b704b608fa1faa7e4c9d42f',+ 'meridian-stair-4': 'r_6a0f08a3449a4786b7e0c8d085fa247d',+ 'meridian-parapet-4': 'r_e28232a177ef4fb0be41c5bbf7236674',+ 'meridian-foundation-4': 'r_ccec44961e6449a7ab752499408139b6',+ 'meridian-arcade-pylon': 'r_269d44f66ec944079983349b9dc2cb5a',+ 'meridian-arcade-pier': 'r_e09059fd12874fbea948389061ee8736',+ 'meridian-arcade-pier-slot': 'r_23415f3bcad34dbea52c9b930878be28',+ 'meridian-arcade-arch': 'r_e9e14002aa444492805007f0bf30dfee',+ 'meridian-tower-slot': 'r_c4851c428d0e4931a2983eea9d6e1d8d',+ 'meridian-cascade-tower': 'r_90ab6b974ebb41c4a72e5062a24334fb',+ 'meridian-gateway': 'r_c33d46440935478180576e38ffa20662',+ 'meridian-orb': 'r_14709d822a9a444ba5b3e6a6db89d0ca',+ 'meridian-falls-narrow': 'r_792166fb225343fbb5ea84c29d051c19',+ 'meridian-overflow-wide': 'r_d9957682b89b4c0289370544667ba823',+ 'meridian-rim-spill': 'r_f492f2ff386f42e98744b929aa38b228',+ 'meridian-basin-water': 'r_302353e26e6545dbb54266b1adcb6876',+ 'meridian-planter-sq': 'r_903a72978cfe465186200a1fb3c0efad',+ 'meridian-cypress-tall': 'r_be51d33b5f0a4afc93ade339d923e4a2',+ 'meridian-shrub-b': 'r_18f9489150844e0d8d8fe5b526b5b0ad',+ 'meridian-cypress-mid': 'r_44c60f904a8e4598a05f248c438fca73',+ 'meridian-planter-long': 'r_df7f82a951694294b7a6bf91aa6a8111',+ 'meridian-shrub-a': 'r_d9dcc110da02497283464db09816c4e1',+ 'meridian-ivy-short': 'r_17b6d0b4330a4e309761103f4c6eaefb',+ 'meridian-ivy-long': 'r_b079cae2265a44d4aafe0aa05b93c008',+ 'meridian-isle-base': 'r_44718bb1d05a4aeeab4de5649ec1873b',+ 'meridian-cube-marble': 'r_fbc6774707564a54923a9d1f9b1c8ca9',+ 'meridian-cube-mirror': 'r_8f1700e3aaf04919865f86ce1522f5b8',+ 'meridian-monolith': 'r_fbf4389a2e4d4239813cd2dbc54e094b',+ 'meridian-cube-mirror-court': 'r_36354c34ee5946cd910255a4a8b3f606',+ 'meridian-shrub-c': 'r_080cc7c6bf3a4e55b9348a9bf6136646',+ 'meridian-cypress-broad': 'r_65d968a6e4a34968bfaed1504cf759ba',+ 'meridian-cypress-slim': 'r_4cb4690620ab4a2aa57cf69cd06255e5',+ 'meridian-tower-gate': 'r_dac22ca376b745ceab2346845e4c16a6',+ 'meridian-arcade-bay': 'r_60cc31247cad446a95672bddc01ae520',+ 'meridian-pavilion': 'r_3745cc9353f44c1b8d3102d59c9f9d46',+ 'meridian-balustrade-4': 'r_eb66bdfce33449e386b9792df125142d',+ 'meridian-cube-mirror-far': 'r_1b9bef4f0c2d46ae8bdd1261f64b4c71',+ 'meridian-statue-figure': 'r_c3c6c0cd796b43c88dabbb09061e3ef3',+ 'meridian-statue-whale': 'r_94ec333e46d84cc7a9c4e79455b1c572',},};/** Whether the owner approved this exact revision of a card. */@@ -259,6 +315,11 @@ const WINTER_CABIN = 'Winter cabin architecture';const WINTER_INTERIOR = 'Winter cabin interior';const WINTER_FOREST = 'Winter mountainside forest';const WINTER_LANDSCAPE = 'Winter mountainside landscape';+const MERIDIAN_STONE = 'Meridian Sanctuary stone kit';+const MERIDIAN_ARCHITECTURE = 'Meridian Sanctuary arcades and towers';+const MERIDIAN_WATER = 'Meridian Sanctuary water';+const MERIDIAN_PLANTING = 'Meridian Sanctuary planting';+const MERIDIAN_SCULPTURE = 'Meridian Sanctuary mirrors and statues';const coveModules = {structure: ['Cove platform and seating shell', 'The circular platform and curved seating shell that hold the rest of the Cove.'],@@ -412,13 +473,59 @@ export const HOLODECK_ASSETS = {'winter-wmc-ground-clump': { name: 'Winter grass and stone clump', category: WINTER_LANDSCAPE, description: 'A small cluster of dry stalks, a low stone and a patch of settled snow for sparse winter ground cover.' },'winter-wmc-fallen-log': { name: 'Fallen log with snow', category: WINTER_LANDSCAPE, description: 'A tapered fallen trunk with exposed end grain, broken branch stubs, splintered wood and snow following its upper surface.' },'winter-wmc-trail-marker': { name: 'Timber trail marker', category: WINTER_LANDSCAPE, description: 'A short timber post with a recessed iron arrow and a small snow cap for marking the forest path.' },+ 'meridian-deck-4': { name: 'Marble deck module', category: MERIDIAN_STONE, description: 'A 4 m deck module of white veined marble over banded travertine, made to repeat into terraces and the causeway.' },+ 'meridian-deck-6': { name: 'Inlaid marble deck', category: MERIDIAN_STONE, description: 'A 6 m marble deck module with brass inlay strips set just proud of the stone.' },+ 'meridian-block-8': { name: 'Marble terrace block', category: MERIDIAN_STONE, description: 'An 8 m terrace block: white veined marble paving over coursed ivory travertine.' },+ 'meridian-foundation-4': { name: 'Deep foundation wall', category: MERIDIAN_STONE, description: 'A 4 m coursed foundation wall that runs about 110 m down into the cloud sea under the terraces.' },+ 'meridian-step-slab': { name: 'Marble stepping slab', category: MERIDIAN_STONE, description: 'A single marble stepping slab for paths across the pools.' },+ 'meridian-stair-8': { name: 'Wide marble stair', category: MERIDIAN_STONE, description: 'An 8 m wide flight of low marble risers with brass nosings, linking the terraces.' },+ 'meridian-stair-4': { name: 'Side stair between cheek walls', category: MERIDIAN_STONE, description: 'A 4 m wide marble side flight between cheek walls, with brass nosings.' },+ 'meridian-coping-4': { name: 'Pool coping with brass lip', category: MERIDIAN_STONE, description: 'A 4 m marble coping for the mirror pools, edged with a thin brass lip.' },+ 'meridian-pool-steps': { name: 'Pool steps', category: MERIDIAN_STONE, description: 'Marble steps that lead down into a pool.' },+ 'meridian-parapet-4': { name: 'Marble parapet', category: MERIDIAN_STONE, description: 'A 4 m solid marble parapet with flat butt ends and a brass top strip.' },+ 'meridian-balustrade-4': { name: 'Open balustrade', category: MERIDIAN_STONE, description: 'A 4 m open balustrade of thirteen travertine balusters between a marble plinth and a brass-strip rail.' },+ 'meridian-planter-sq': { name: 'Square marble planter', category: MERIDIAN_STONE, description: 'A square marble planter, 1.68 m across and 0.9 m tall.' },+ 'meridian-planter-long': { name: 'Long marble planter', category: MERIDIAN_STONE, description: 'A long marble planter, 4.08 m long and 0.7 m tall, for terrace edges.' },+ 'meridian-cube-marble': { name: 'Honed marble cube', category: MERIDIAN_STONE, description: 'A chamfered 1 m cube of honed white marble with long soft grey veins.' },+ 'meridian-arcade-pier': { name: 'Arcade pier', category: MERIDIAN_ARCHITECTURE, description: 'A 1.2 m square marble pier rising to its impost at 5.2 m, for the arcades.' },+ 'meridian-arcade-pier-slot': { name: 'Arcade pier with glowing niche', category: MERIDIAN_ARCHITECTURE, description: 'An arcade pier with a warm-white glowing niche, closed above and below.' },+ 'meridian-arcade-arch': { name: 'Arcade arch span', category: MERIDIAN_ARCHITECTURE, description: 'A 4.8 m round arch with a stepped order, archivolt, cornice and an ivy trough along its top.' },+ 'meridian-arcade-bay': { name: 'Arcade bay', category: MERIDIAN_ARCHITECTURE, description: 'One arcade bay in a single mesh: a plain pier carrying its arch.' },+ 'meridian-arcade-pylon': { name: 'Arcade pylon', category: MERIDIAN_ARCHITECTURE, description: 'A 1.8 m square pylon, 12.6 m tall above a shaft into the cloud, with warm-white glowing niches.' },+ 'meridian-cascade-tower': { name: 'Cascade tower', category: MERIDIAN_ARCHITECTURE, description: 'A 4 m square tower set against a terrace wall, with a spout that feeds a waterfall into the basin below.' },+ 'meridian-tower-slot': { name: 'Distant slotted tower', category: MERIDIAN_ARCHITECTURE, description: 'A slotted marble tower on a 32 m shaft, with glowing niches, for the far skyline.' },+ 'meridian-tower-gate': { name: 'Rim tower', category: MERIDIAN_ARCHITECTURE, description: 'A tall rim tower beside the gateway on a 110 m shaft, with warm-white glowing niches.' },+ 'meridian-gateway': { name: 'Colossal gateway', category: MERIDIAN_ARCHITECTURE, description: 'The gate tower: a 98.6 m marble gateway with three stacked arches, wings and front piers cut with full-height glowing slits.' },+ 'meridian-pavilion': { name: 'Belvedere pavilion', category: MERIDIAN_ARCHITECTURE, description: 'An open belvedere on a coursed shaft out of the cloud sea, with arches on four sides under a stepped roof.' },+ 'meridian-isle-base': { name: 'Floating isle', category: MERIDIAN_ARCHITECTURE, description: 'A floating isle: a 24 m square marble deck over an inverted ziggurat of coursed travertine with marble bands.' },+ 'meridian-monolith': { name: 'Travertine monolith', category: MERIDIAN_ARCHITECTURE, description: 'A distant coursed travertine shaft, 10 m square and 40 m tall, with marble bands.' },+ 'meridian-basin-water': { name: 'Basin water', category: MERIDIAN_WATER, description: 'A turquoise water surface for the basins, with a faint glow that keeps it turquoise in shade.' },+ 'meridian-falls-narrow': { name: 'Narrow waterfall', category: MERIDIAN_WATER, description: 'A narrow falling sheet from a tower spout, with a bright lip and a foam ring where it meets the basin.' },+ 'meridian-overflow-wide': { name: 'Wide weir overflow', category: MERIDIAN_WATER, description: 'A wide weir sheet that falls from a shadowed slot to the pool below, with faint mist at its foot.' },+ 'meridian-rim-spill': { name: 'Infinity rim spill', category: MERIDIAN_WATER, description: 'Water spilling over a 23.9 m infinity edge in separate ribbons that narrow as they fall about 100 m into the cloud.' },+ 'meridian-cypress-tall': { name: 'Tall cypress', category: MERIDIAN_PLANTING, description: 'A tall Italian cypress built from foliage clumps on a shared cypress atlas.' },+ 'meridian-cypress-mid': { name: 'Medium cypress', category: MERIDIAN_PLANTING, description: 'A medium Italian cypress built from foliage clumps on a shared cypress atlas.' },+ 'meridian-cypress-broad': { name: 'Broad young cypress', category: MERIDIAN_PLANTING, description: 'A young broad cypress cone, 6.2 m tall and widest low.' },+ 'meridian-cypress-slim': { name: 'Pencil cypress', category: MERIDIAN_PLANTING, description: 'A slender pencil cypress, 11.5 m tall, bowing slightly toward its top.' },+ 'meridian-shrub-a': { name: 'Flowering shrub mound', category: MERIDIAN_PLANTING, description: 'A rounded shrub mound with cream blossoms from a shared shrub atlas.' },+ 'meridian-shrub-b': { name: 'Cream-flowered shrub mound', category: MERIDIAN_PLANTING, description: 'A second shrub mound shape with cream blossoms from the shared shrub atlas.' },+ 'meridian-shrub-c': { name: 'Old-rose shrub mound', category: MERIDIAN_PLANTING, description: 'An old-rose flowering mound, 1.1 m tall and lighter in leaf.' },+ 'meridian-ivy-short': { name: 'Short trailing ivy', category: MERIDIAN_PLANTING, description: 'Nine trailing ivy strands, 1.2 to 3 m long, of individual leaf cards with a dense dark crown and light tips.' },+ 'meridian-ivy-long': { name: 'Long trailing ivy', category: MERIDIAN_PLANTING, description: 'Thirteen trailing ivy strands, 3 to 7 m long, each leaf its own five-lobed card hung from its stalk.' },+ 'meridian-orb': { name: 'Mirror orb', category: MERIDIAN_SCULPTURE, description: 'A smooth mirror sphere 4.5 m across, one mesh and one material, centred on its pivot.' },+ 'meridian-cube-mirror': { name: 'Floating mirror cube', category: MERIDIAN_SCULPTURE, description: 'A 1 m floating cube with true mirror faces and a pale-gold bevel that catches the sun.' },+ 'meridian-cube-mirror-court': { name: 'Court mirror cube', category: MERIDIAN_SCULPTURE, description: 'The 1 m mirror cube for the court, reflecting the court’s surroundings, with a pale-gold bevel.' },+ 'meridian-cube-mirror-far': { name: 'Sky mirror cube', category: MERIDIAN_SCULPTURE, description: 'The mirror cube for the far cubes and slabs over the cloud sea, which reflect the sky, with a pale-gold bevel.' },+ 'meridian-statue-figure': { name: 'Floating robed figure', category: MERIDIAN_SCULPTURE, description: 'A robed marble figure lifting a sphere on a 0.9 m plinth, floating as a sky sculpture.' },+ 'meridian-statue-whale': { name: 'Floating marble whale', category: MERIDIAN_SCULPTURE, description: 'A carved 12 m marble humpback whale, floating as a sky sculpture.' },};-/** A world placement id to its gallery slug. Every scene's Cove module shares the Cove pack's slug; Crescent Cove's own assets are prefixed. */+/** A world placement id to its gallery slug. Every scene's Cove module shares the Cove pack's slug; Crescent Cove's, the winter cabin's and Meridian Sanctuary's own assets are prefixed. */export function holodeckSlug(pack, worldAssetId) {const cove = Object.hasOwn(coveModules, worldAssetId);if (pack === 'holodeck-cove' && !cove) throw new Error(`Unknown Cove module ${worldAssetId}`);if (cove) return `cove-${worldAssetId}`;if (pack === 'holodeck-winter-mountainside-cabin') return `winter-${worldAssetId}`;+ if (pack === 'holodeck-meridian-sanctuary') return `meridian-${worldAssetId}`;return pack === 'holodeck-crescent-cove' ? `crescent-${worldAssetId}` : worldAssetId;}diff --git a/site/scripts/holodeck.test.ts b/site/scripts/holodeck.test.tsindex 6bc736e8..1b34f213 100644--- a/site/scripts/holodeck.test.ts+++ b/site/scripts/holodeck.test.ts@@ -22,29 +22,32 @@ const sha256 = (bytes: Buffer) => createHash('sha256').update(bytes).digest('hexconst pins = new Map(mirror.files.map((record) => [record.path, record]));test('each scene pack holds every placed Kiln asset once, at its final version', () => {- expect(Object.fromEntries(Object.entries(selection.packs).map(([id, pack]) => [id, pack.assets.length]))).toEqual({ 'holodeck-tidemark': 23, 'holodeck-courtyard': 32, 'holodeck-cove': 8, 'holodeck-crescent-cove': 49, 'holodeck-winter-mountainside-cabin': 56 });+ expect(Object.fromEntries(Object.entries(selection.packs).map(([id, pack]) => [id, pack.assets.length]))).toEqual({ 'holodeck-tidemark': 23, 'holodeck-courtyard': 32, 'holodeck-cove': 8, 'holodeck-crescent-cove': 49, 'holodeck-winter-mountainside-cabin': 56, 'holodeck-meridian-sanctuary': 53 });expect(catalog.packs.map((pack) => [pack.id, pack.assetCount])).toEqual(HOLODECK_PACKS.map((pack) => [pack.id, pack.expectedAssets]));expect(selection.versions).toBe('final-only');- expect(catalog.assets).toHaveLength(143);+ expect(catalog.assets).toHaveLength(188);expect(catalog.assets).toHaveLength(Object.keys(selection.assets).length);const shared = catalog.assets.filter((asset) => asset.packs.length > 1);expect(shared.map((asset) => asset.slug).sort()).toEqual(Object.keys(HOLODECK_ASSETS).filter((slug) => slug.startsWith('cove-')).sort());- // The winter cabin keeps only the Cove's mood board; its trailhead replaces the rest of the Cove.- for (const asset of shared) expect(asset.packs).toEqual(['holodeck-cove', 'holodeck-tidemark', 'holodeck-courtyard', 'holodeck-crescent-cove', ...(asset.slug === 'cove-moodboard' ? ['holodeck-winter-mountainside-cabin'] : [])]);+ // The winter cabin keeps only the Cove's mood board; its trailhead replaces the rest of the Cove. Meridian Sanctuary lists every module.+ for (const asset of shared) expect(asset.packs).toEqual(['holodeck-cove', 'holodeck-tidemark', 'holodeck-courtyard', 'holodeck-crescent-cove', ...(asset.slug === 'cove-moodboard' ? ['holodeck-winter-mountainside-cabin'] : []), 'holodeck-meridian-sanctuary']);expect(holodeckSlug('holodeck-courtyard', 'canopy')).toBe('cove-canopy');expect(holodeckSlug('holodeck-cove', 'canopy')).toBe('cove-canopy');expect(holodeckSlug('holodeck-crescent-cove', 'canopy')).toBe('cove-canopy');expect(holodeckSlug('holodeck-tidemark', 'island-palm')).toBe('island-palm');expect(holodeckSlug('holodeck-crescent-cove', 'shelter')).toBe('crescent-shelter');+ expect(holodeckSlug('holodeck-meridian-sanctuary', 'canopy')).toBe('cove-canopy');+ expect(holodeckSlug('holodeck-meridian-sanctuary', 'statue-figure')).toBe('meridian-statue-figure');});test('scenes list the Cove modules at their final revision, and say when the walkable scene places an earlier one', () => {const tidemark = selection.packs['holodeck-tidemark'].source, cove = selection.packs['holodeck-cove'].source;expect(tidemark).toMatchObject({ kind: 'holodeck-example', path: 'examples/tidemark', commit: cove.commit });expect(selection.packs['holodeck-crescent-cove'].source).toMatchObject({ kind: 'holodeck-example', path: 'examples/crescent-cove', sourceRevision: 17 });+ expect(selection.packs['holodeck-meridian-sanctuary'].source).toMatchObject({ kind: 'holodeck-example', path: 'examples/meridian-sanctuary', sourceRevision: 27 });for (const slug of selection.packs['holodeck-cove'].assets) {const record = selection.assets[slug as keyof typeof selection.assets];- expect(record.placements.map((placement) => placement.pack)).toEqual(['holodeck-cove', 'holodeck-tidemark', 'holodeck-courtyard', 'holodeck-crescent-cove', ...(slug === 'cove-moodboard' ? ['holodeck-winter-mountainside-cabin'] : [])]);+ expect(record.placements.map((placement) => placement.pack)).toEqual(['holodeck-cove', 'holodeck-tidemark', 'holodeck-courtyard', 'holodeck-crescent-cove', ...(slug === 'cove-moodboard' ? ['holodeck-winter-mountainside-cabin'] : []), 'holodeck-meridian-sanctuary']);}for (const pack of catalog.packs) {const earlier = (pack as { sceneStillPlacesEarlier?: { slug: string; placedRevisionId: string; finalRevisionId: string }[] }).sceneStillPlacesEarlier ?? [];@@ -65,7 +68,7 @@ test('assets that use saved materials carry their frozen closure into the editabtest('owner approval covers exact revisions, and a pack is available only when every asset it lists is approved', () => {const approved = catalog.assets.filter((asset) => asset.review.ownerAccepted).map((asset) => asset.slug).sort();expect(approved).toEqual(Object.keys(HOLODECK_APPROVAL.revisions).sort());- expect(approved).toHaveLength(143);+ expect(approved).toHaveLength(188);for (const asset of catalog.assets) {expect(asset.review).toEqual(holodeckApproved(asset.slug, asset.revisionId) ? { ownerAccepted: true, status: 'accepted' } : { ownerAccepted: false, status: 'awaiting-owner-review' });}@@ -114,6 +117,7 @@ test('every Holodeck card has a rig poster of its exact runtime model, planned ftest('walkable scene addresses come from one map and fall back to the Holodeck site', () => {expect(holodeckWorldUrl('holodeck-tidemark')).toBe('https://holodeck.kilnstudio.tools/worlds/tidemark/');expect(holodeckWorldUrl('holodeck-crescent-cove')).toBe('https://holodeck.kilnstudio.tools/worlds/crescent-cove/');+ expect(holodeckWorldUrl('holodeck-meridian-sanctuary')).toBe('https://holodeck.kilnstudio.tools/worlds/meridian-sanctuary/');expect(holodeckWorldUrl('not-a-pack')).toBe(worlds.site);for (const pack of catalog.packs) expect(Object.keys(worlds.worlds)).toContain(pack.id);});@@ -126,7 +130,7 @@ test('gallery cards link to their pages and to every scene that places them', ()expect(card.scenes?.map((scene) => scene.href)).toEqual(card.packs.map((pack) => holodeckWorldUrl(pack)));}const shared = cards.find((card) => card.slug === 'cove-hearth')!;- expect(holodeckScenes(shared).map((scene) => scene.label)).toEqual(['Walk Cove', 'Walk Tidemark Island', 'Walk Courtyard', 'Walk Crescent Cove']);+ expect(holodeckScenes(shared).map((scene) => scene.label)).toEqual(['Walk Cove', 'Walk Tidemark Island', 'Walk Courtyard', 'Walk Crescent Cove', 'Walk Meridian Sanctuary']);expect(buildGallery(false)).toEqual([]);});diff --git a/site/src/data/commons-build.json b/site/src/data/commons-build.jsonindex 037daee9..6da63b50 100644--- a/site/src/data/commons-build.json+++ b/site/src/data/commons-build.json@@ -144,7 +144,52 @@"packs/holodeck/objects/154a7167ca6cb45bb5bed25ad9e1e53de013adb3a7c18d84bdeddc805a6c0cad/winter-wmc-snow-bank.glb","packs/holodeck/objects/296c822fb5e14d8d31f4246549cd3db76506d39dedc7807e59bb5ba29b4be91b/winter-wmc-ground-clump.glb","packs/holodeck/objects/b77fc18b02a253645f411c7233de3b0137b32f181d4bf156769e05f68f37957e/winter-wmc-fallen-log.glb",- "packs/holodeck/objects/5f7c64a38028be0e1415f255e01ec7fde2ef8133b7b5ec1752a950fe47fad6e1/winter-wmc-trail-marker.glb"+ "packs/holodeck/objects/5f7c64a38028be0e1415f255e01ec7fde2ef8133b7b5ec1752a950fe47fad6e1/winter-wmc-trail-marker.glb",+ "packs/holodeck/objects/91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8/meridian-deck-4.glb",+ "packs/holodeck/objects/6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a/meridian-block-8.glb",+ "packs/holodeck/objects/989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688/meridian-step-slab.glb",+ "packs/holodeck/objects/6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2/meridian-deck-6.glb",+ "packs/holodeck/objects/ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de/meridian-coping-4.glb",+ "packs/holodeck/objects/40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0/meridian-pool-steps.glb",+ "packs/holodeck/objects/d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4/meridian-stair-8.glb",+ "packs/holodeck/objects/68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd/meridian-stair-4.glb",+ "packs/holodeck/objects/feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488/meridian-parapet-4.glb",+ "packs/holodeck/objects/161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481/meridian-foundation-4.glb",+ "packs/holodeck/objects/c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602/meridian-arcade-pylon.glb",+ "packs/holodeck/objects/6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f/meridian-arcade-pier.glb",+ "packs/holodeck/objects/a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c/meridian-arcade-pier-slot.glb",+ "packs/holodeck/objects/d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a/meridian-arcade-arch.glb",+ "packs/holodeck/objects/ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679/meridian-tower-slot.glb",+ "packs/holodeck/objects/304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf/meridian-cascade-tower.glb",+ "packs/holodeck/objects/2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9/meridian-gateway.glb",+ "packs/holodeck/objects/84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1/meridian-orb.glb",+ "packs/holodeck/objects/df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587/meridian-falls-narrow.glb",+ "packs/holodeck/objects/a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7/meridian-overflow-wide.glb",+ "packs/holodeck/objects/3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871/meridian-rim-spill.glb",+ "packs/holodeck/objects/19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7/meridian-basin-water.glb",+ "packs/holodeck/objects/a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37/meridian-planter-sq.glb",+ "packs/holodeck/objects/462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23/meridian-cypress-tall.glb",+ "packs/holodeck/objects/54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5/meridian-shrub-b.glb",+ "packs/holodeck/objects/8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822/meridian-cypress-mid.glb",+ "packs/holodeck/objects/a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a/meridian-planter-long.glb",+ "packs/holodeck/objects/1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278/meridian-shrub-a.glb",+ "packs/holodeck/objects/15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e/meridian-ivy-short.glb",+ "packs/holodeck/objects/b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898/meridian-ivy-long.glb",+ "packs/holodeck/objects/e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147/meridian-isle-base.glb",+ "packs/holodeck/objects/ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d/meridian-cube-marble.glb",+ "packs/holodeck/objects/8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384/meridian-cube-mirror.glb",+ "packs/holodeck/objects/32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561/meridian-monolith.glb",+ "packs/holodeck/objects/809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5/meridian-cube-mirror-court.glb",+ "packs/holodeck/objects/b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59/meridian-shrub-c.glb",+ "packs/holodeck/objects/4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4/meridian-cypress-broad.glb",+ "packs/holodeck/objects/963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8/meridian-cypress-slim.glb",+ "packs/holodeck/objects/45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1/meridian-tower-gate.glb",+ "packs/holodeck/objects/b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1/meridian-arcade-bay.glb",+ "packs/holodeck/objects/28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219/meridian-pavilion.glb",+ "packs/holodeck/objects/afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8/meridian-balustrade-4.glb",+ "packs/holodeck/objects/3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4/meridian-cube-mirror-far.glb",+ "packs/holodeck/objects/bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b/meridian-statue-figure.glb",+ "packs/holodeck/objects/fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94/meridian-statue-whale.glb"],"images": [{@@ -4296,6 +4341,564 @@"sourceRevisionId": "r_a5fcf206ebe2418a813cc2abdb19cad1","exactRevision": true,"rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m deck module of white veined marble over banded travertine, made to repeat into terraces and the causeway.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4.png",+ "sourceRevisionId": "r_5711672892fd428891bab109fb5f2c78",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An 8 m terrace block: white veined marble paving over coursed ivory travertine.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8.png",+ "sourceRevisionId": "r_90b595799305471aa23d5c522b098917",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A single marble stepping slab for paths across the pools.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab.png",+ "sourceRevisionId": "r_ed119ee06e04495787eb74e6fa1b3588",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 6 m marble deck module with brass inlay strips set just proud of the stone.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6.png",+ "sourceRevisionId": "r_cfc1654b7c0147418c5980fc0155b73f",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m marble coping for the mirror pools, edged with a thin brass lip.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4.png",+ "sourceRevisionId": "r_32c14b58648b4b66b9f916ddd8d796ba",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps.webp",+ "width": 1024,+ "height": 1024,+ "alt": "Marble steps that lead down into a pool.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps.png",+ "sourceRevisionId": "r_70d3b4de07f64f518c0a77e49779e0ef",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An 8 m wide flight of low marble risers with brass nosings, linking the terraces.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8.png",+ "sourceRevisionId": "r_e2c7668c4b704b608fa1faa7e4c9d42f",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m wide marble side flight between cheek walls, with brass nosings.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4.png",+ "sourceRevisionId": "r_6a0f08a3449a4786b7e0c8d085fa247d",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m solid marble parapet with flat butt ends and a brass top strip.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4.png",+ "sourceRevisionId": "r_e28232a177ef4fb0be41c5bbf7236674",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m coursed foundation wall that runs about 110 m down into the cloud sea under the terraces.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4.png",+ "sourceRevisionId": "r_ccec44961e6449a7ab752499408139b6",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 1.8 m square pylon, 12.6 m tall above a shaft into the cloud, with warm-white glowing niches.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon.png",+ "sourceRevisionId": "r_269d44f66ec944079983349b9dc2cb5a",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 1.2 m square marble pier rising to its impost at 5.2 m, for the arcades.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier.png",+ "sourceRevisionId": "r_e09059fd12874fbea948389061ee8736",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An arcade pier with a warm-white glowing niche, closed above and below.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot.png",+ "sourceRevisionId": "r_23415f3bcad34dbea52c9b930878be28",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4.8 m round arch with a stepped order, archivolt, cornice and an ivy trough along its top.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch.png",+ "sourceRevisionId": "r_e9e14002aa444492805007f0bf30dfee",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A slotted marble tower on a 32 m shaft, with glowing niches, for the far skyline.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot.png",+ "sourceRevisionId": "r_c4851c428d0e4931a2983eea9d6e1d8d",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m square tower set against a terrace wall, with a spout that feeds a waterfall into the basin below.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower.png",+ "sourceRevisionId": "r_90ab6b974ebb41c4a72e5062a24334fb",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway.webp",+ "width": 1024,+ "height": 1024,+ "alt": "The gate tower: a 98.6 m marble gateway with three stacked arches, wings and front piers cut with full-height glowing slits.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway.png",+ "sourceRevisionId": "r_c33d46440935478180576e38ffa20662",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A smooth mirror sphere 4.5 m across, one mesh and one material, centred on its pivot.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb.png",+ "sourceRevisionId": "r_14709d822a9a444ba5b3e6a6db89d0ca",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A narrow falling sheet from a tower spout, with a bright lip and a foam ring where it meets the basin.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow.png",+ "sourceRevisionId": "r_792166fb225343fbb5ea84c29d051c19",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A wide weir sheet that falls from a shadowed slot to the pool below, with faint mist at its foot.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide.png",+ "sourceRevisionId": "r_d9957682b89b4c0289370544667ba823",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill.webp",+ "width": 1024,+ "height": 1024,+ "alt": "Water spilling over a 23.9 m infinity edge in separate ribbons that narrow as they fall about 100 m into the cloud.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill.png",+ "sourceRevisionId": "r_f492f2ff386f42e98744b929aa38b228",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A turquoise water surface for the basins, with a faint glow that keeps it turquoise in shade.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water.png",+ "sourceRevisionId": "r_302353e26e6545dbb54266b1adcb6876",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A square marble planter, 1.68 m across and 0.9 m tall.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq.png",+ "sourceRevisionId": "r_903a72978cfe465186200a1fb3c0efad",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A tall Italian cypress built from foliage clumps on a shared cypress atlas.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall.png",+ "sourceRevisionId": "r_be51d33b5f0a4afc93ade339d923e4a2",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A second shrub mound shape with cream blossoms from the shared shrub atlas.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b.png",+ "sourceRevisionId": "r_18f9489150844e0d8d8fe5b526b5b0ad",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A medium Italian cypress built from foliage clumps on a shared cypress atlas.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid.png",+ "sourceRevisionId": "r_44c60f904a8e4598a05f248c438fca73",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A long marble planter, 4.08 m long and 0.7 m tall, for terrace edges.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long.png",+ "sourceRevisionId": "r_df7f82a951694294b7a6bf91aa6a8111",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A rounded shrub mound with cream blossoms from a shared shrub atlas.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a.png",+ "sourceRevisionId": "r_d9dcc110da02497283464db09816c4e1",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short.webp",+ "width": 1024,+ "height": 1024,+ "alt": "Nine trailing ivy strands, 1.2 to 3 m long, of individual leaf cards with a dense dark crown and light tips.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short.png",+ "sourceRevisionId": "r_17b6d0b4330a4e309761103f4c6eaefb",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long.webp",+ "width": 1024,+ "height": 1024,+ "alt": "Thirteen trailing ivy strands, 3 to 7 m long, each leaf its own five-lobed card hung from its stalk.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long.png",+ "sourceRevisionId": "r_b079cae2265a44d4aafe0aa05b93c008",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A floating isle: a 24 m square marble deck over an inverted ziggurat of coursed travertine with marble bands.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base.png",+ "sourceRevisionId": "r_44718bb1d05a4aeeab4de5649ec1873b",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A chamfered 1 m cube of honed white marble with long soft grey veins.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble.png",+ "sourceRevisionId": "r_fbc6774707564a54923a9d1f9b1c8ca9",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 1 m floating cube with true mirror faces and a pale-gold bevel that catches the sun.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror.png",+ "sourceRevisionId": "r_8f1700e3aaf04919865f86ce1522f5b8",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A distant coursed travertine shaft, 10 m square and 40 m tall, with marble bands.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith.png",+ "sourceRevisionId": "r_fbf4389a2e4d4239813cd2dbc54e094b",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court.webp",+ "width": 1024,+ "height": 1024,+ "alt": "The 1 m mirror cube for the court, reflecting the court’s surroundings, with a pale-gold bevel.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court.png",+ "sourceRevisionId": "r_36354c34ee5946cd910255a4a8b3f606",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An old-rose flowering mound, 1.1 m tall and lighter in leaf.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c.png",+ "sourceRevisionId": "r_080cc7c6bf3a4e55b9348a9bf6136646",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A young broad cypress cone, 6.2 m tall and widest low.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad.png",+ "sourceRevisionId": "r_65d968a6e4a34968bfaed1504cf759ba",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A slender pencil cypress, 11.5 m tall, bowing slightly toward its top.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim.png",+ "sourceRevisionId": "r_4cb4690620ab4a2aa57cf69cd06255e5",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A tall rim tower beside the gateway on a 110 m shaft, with warm-white glowing niches.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate.png",+ "sourceRevisionId": "r_dac22ca376b745ceab2346845e4c16a6",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay.webp",+ "width": 1024,+ "height": 1024,+ "alt": "One arcade bay in a single mesh: a plain pier carrying its arch.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay.png",+ "sourceRevisionId": "r_60cc31247cad446a95672bddc01ae520",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An open belvedere on a coursed shaft out of the cloud sea, with arches on four sides under a stepped roof.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion.png",+ "sourceRevisionId": "r_3745cc9353f44c1b8d3102d59c9f9d46",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m open balustrade of thirteen travertine balusters between a marble plinth and a brass-strip rail.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4.png",+ "sourceRevisionId": "r_eb66bdfce33449e386b9792df125142d",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far.webp",+ "width": 1024,+ "height": 1024,+ "alt": "The mirror cube for the far cubes and slabs over the cloud sea, which reflect the sky, with a pale-gold bevel.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far.png",+ "sourceRevisionId": "r_1b9bef4f0c2d46ae8bdd1261f64b4c71",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A robed marble figure lifting a sphere on a 0.9 m plinth, floating as a sky sculpture.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure.png",+ "sourceRevisionId": "r_c3c6c0cd796b43c88dabbb09061e3ef3",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A carved 12 m marble humpback whale, floating as a sky sculpture.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale.png",+ "sourceRevisionId": "r_94ec333e46d84cc7a9c4e79455b1c572",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ {+ "src": "/media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview.webp",+ "width": 1920,+ "height": 1080,+ "alt": "Meridian Sanctuary from above: a marble causeway between mirror pools and terraces climbing to the gate tower, over a sea of cloud.",+ "srcsetWebp": "/media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-320.webp 320w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-480.webp 480w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-672.webp 672w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-768.webp 768w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-1024.webp 1024w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-1440.webp 1440w",+ "srcsetAvif": "/media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-320.avif 320w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-480.avif 480w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-672.avif 672w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-768.avif 768w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-1024.avif 1024w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-1440.avif 1440w",+ "inputPath": "media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview.png"+ },+ {+ "src": "/media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival.webp",+ "width": 1920,+ "height": 1080,+ "alt": "Arriving at Meridian Sanctuary: the causeway runs between mirror pools and cypresses toward the gate tower and its mirror orb.",+ "srcsetWebp": "/media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-320.webp 320w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-480.webp 480w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-672.webp 672w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-768.webp 768w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-1024.webp 1024w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-1440.webp 1440w",+ "srcsetAvif": "/media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-320.avif 320w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-480.avif 480w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-672.avif 672w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-768.avif 768w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-1024.avif 1024w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-1440.avif 1440w",+ "inputPath": "media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival.png"}],"archives": [diff --git a/site/src/data/holodeck-shots.json b/site/src/data/holodeck-shots.jsonindex 10076338..d4cd98ef 100644--- a/site/src/data/holodeck-shots.json+++ b/site/src/data/holodeck-shots.json@@ -354,6 +354,76 @@"capturedAt": "2026-10-25T21:21:50.752Z"}}+ ],+ "holodeck-meridian-sanctuary": [+ {+ "view": "meridian-sanctuary-overview",+ "src": "/media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview.webp",+ "width": 1920,+ "height": 1080,+ "alt": "Meridian Sanctuary from above: a marble causeway between mirror pools and terraces climbing to the gate tower, over a sea of cloud.",+ "srcsetWebp": "/media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-320.webp 320w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-480.webp 480w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-672.webp 672w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-768.webp 768w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-1024.webp 1024w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-1440.webp 1440w",+ "srcsetAvif": "/media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-320.avif 320w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-480.avif 480w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-672.avif 672w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-768.avif 768w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-1024.avif 1024w, /media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview-1440.avif 1440w",+ "inputPath": "media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview.png",+ "bytes": 1784873,+ "sha256": "9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428",+ "capture": {+ "tool": "scripts/capture-holodeck-shots.mjs",+ "world": "https://holodeck.kilnstudio.tools/worlds/meridian-sanctuary/",+ "manifestSha256": "43e79b04a8017fe1a51d961ae08af8700fd050dd93632caa5df8a61214e51074",+ "camera": {+ "position": [+ 14,+ 62,+ 34+ ],+ "target": [+ 14,+ 2,+ -78+ ],+ "fov": 55,+ "cove": true+ },+ "backend": "WebGPU",+ "browser": "Chrome/150.0.7871.128",+ "capturedAt": "2026-10-26T01:25:07.397Z"+ }+ },+ {+ "view": "meridian-sanctuary-arrival",+ "src": "/media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival.webp",+ "width": 1920,+ "height": 1080,+ "alt": "Arriving at Meridian Sanctuary: the causeway runs between mirror pools and cypresses toward the gate tower and its mirror orb.",+ "srcsetWebp": "/media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-320.webp 320w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-480.webp 480w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-672.webp 672w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-768.webp 768w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-1024.webp 1024w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-1440.webp 1440w",+ "srcsetAvif": "/media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-320.avif 320w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-480.avif 480w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-672.avif 672w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-768.avif 768w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-1024.avif 1024w, /media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival-1440.avif 1440w",+ "inputPath": "media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival.png",+ "bytes": 1974817,+ "sha256": "3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0",+ "capture": {+ "tool": "scripts/capture-holodeck-shots.mjs",+ "world": "https://holodeck.kilnstudio.tools/worlds/meridian-sanctuary/",+ "manifestSha256": "43e79b04a8017fe1a51d961ae08af8700fd050dd93632caa5df8a61214e51074",+ "camera": {+ "position": [+ 14,+ 1.72,+ -9+ ],+ "target": [+ 14,+ 13,+ -124+ ],+ "fov": 63,+ "cove": true+ },+ "backend": "WebGPU",+ "browser": "Chrome/150.0.7871.128",+ "capturedAt": "2026-10-26T01:26:06.286Z"+ }+ }]}}diff --git a/site/src/data/holodeck-worlds.json b/site/src/data/holodeck-worlds.jsonindex 30278e19..52eda663 100644--- a/site/src/data/holodeck-worlds.json+++ b/site/src/data/holodeck-worlds.json@@ -6,6 +6,7 @@"holodeck-courtyard": "courtyard","holodeck-cove": "cove","holodeck-crescent-cove": "crescent-cove",- "holodeck-winter-mountainside-cabin": "winter-mountainside-cabin"+ "holodeck-winter-mountainside-cabin": "winter-mountainside-cabin",+ "holodeck-meridian-sanctuary": "meridian-sanctuary"}}diff --git a/site/src/data/holodeck.json b/site/src/data/holodeck.jsonindex 0619c95f..19943ce9 100644--- a/site/src/data/holodeck.json+++ b/site/src/data/holodeck.json@@ -356,6 +356,96 @@"sha256": "985f97466ba987fe12d2a10e241a8a139064c5c9acc44de27cf49ee48685a249"}]+ },+ {+ "id": "holodeck-meridian-sanctuary",+ "scene": "meridian-sanctuary",+ "name": "Meridian Sanctuary",+ "description": "A marble sanctuary above a sea of cloud: a causeway between mirror pools, terraces up to a colossal gate tower with a mirror orb, floating statues of a figure and a whale, arcades, cypresses and a bridge path to a pavilion, built in Holodeck around the Cove.",+ "available": true,+ "status": "Available",+ "assetCount": 53,+ "source": {+ "kind": "holodeck-example",+ "ref": "8f5d5f7f627c6e4b636877fdb6b16f71ebaf018f",+ "commit": "8f5d5f7f627c6e4b636877fdb6b16f71ebaf018f",+ "path": "examples/meridian-sanctuary",+ "sourceRevision": 27,+ "worldSha256": "4bfd354235b83f253ded88250683143814f7d9d9672a3df7e8c14e50401e5092"+ },+ "assets": [+ "cove-structure",+ "cove-canopy",+ "cove-seating",+ "cove-hearth",+ "cove-planting",+ "cove-rug",+ "cove-lamp",+ "cove-moodboard",+ "meridian-deck-4",+ "meridian-block-8",+ "meridian-step-slab",+ "meridian-deck-6",+ "meridian-coping-4",+ "meridian-pool-steps",+ "meridian-stair-8",+ "meridian-stair-4",+ "meridian-parapet-4",+ "meridian-foundation-4",+ "meridian-arcade-pylon",+ "meridian-arcade-pier",+ "meridian-arcade-pier-slot",+ "meridian-arcade-arch",+ "meridian-tower-slot",+ "meridian-cascade-tower",+ "meridian-gateway",+ "meridian-orb",+ "meridian-falls-narrow",+ "meridian-overflow-wide",+ "meridian-rim-spill",+ "meridian-basin-water",+ "meridian-planter-sq",+ "meridian-cypress-tall",+ "meridian-shrub-b",+ "meridian-cypress-mid",+ "meridian-planter-long",+ "meridian-shrub-a",+ "meridian-ivy-short",+ "meridian-ivy-long",+ "meridian-isle-base",+ "meridian-cube-marble",+ "meridian-cube-mirror",+ "meridian-monolith",+ "meridian-cube-mirror-court",+ "meridian-shrub-c",+ "meridian-cypress-broad",+ "meridian-cypress-slim",+ "meridian-tower-gate",+ "meridian-arcade-bay",+ "meridian-pavilion",+ "meridian-balustrade-4",+ "meridian-cube-mirror-far",+ "meridian-statue-figure",+ "meridian-statue-whale"+ ],+ "downloads": [+ {+ "profile": "runtime",+ "label": "Runtime assets",+ "path": "packs/holodeck/objects/908a91ab96d8f47d34e4241173203452a94b9df0057843208978096b64582d66/holodeck-meridian-sanctuary-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/908a91ab96d8f47d34e4241173203452a94b9df0057843208978096b64582d66/holodeck-meridian-sanctuary-runtime.zip",+ "bytes": 17983217,+ "sha256": "908a91ab96d8f47d34e4241173203452a94b9df0057843208978096b64582d66"+ },+ {+ "profile": "editable",+ "label": "Full Kiln assets (remixable)",+ "path": "packs/holodeck/objects/af246aa25e4b9ea9d807d5bd1f6f80858ebf303b881d3d366edb881c1ca117a7/holodeck-meridian-sanctuary-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/af246aa25e4b9ea9d807d5bd1f6f80858ebf303b881d3d366edb881c1ca117a7/holodeck-meridian-sanctuary-editable.zip",+ "bytes": 28501735,+ "sha256": "af246aa25e4b9ea9d807d5bd1f6f80858ebf303b881d3d366edb881c1ca117a7"+ }+ ]}],"planned": [],@@ -370,7 +460,8 @@"holodeck-cove","holodeck-tidemark","holodeck-courtyard",- "holodeck-crescent-cove"+ "holodeck-crescent-cove",+ "holodeck-meridian-sanctuary"],"placements": [{@@ -388,6 +479,10 @@{"pack": "holodeck-crescent-cove","id": "structure"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "structure"}],"collection": "project",@@ -464,7 +559,8 @@"holodeck-cove","holodeck-tidemark","holodeck-courtyard",- "holodeck-crescent-cove"+ "holodeck-crescent-cove",+ "holodeck-meridian-sanctuary"],"placements": [{@@ -482,6 +578,10 @@{"pack": "holodeck-crescent-cove","id": "canopy"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "canopy"}],"collection": "project",@@ -558,7 +658,8 @@"holodeck-cove","holodeck-tidemark","holodeck-courtyard",- "holodeck-crescent-cove"+ "holodeck-crescent-cove",+ "holodeck-meridian-sanctuary"],"placements": [{@@ -576,6 +677,10 @@{"pack": "holodeck-crescent-cove","id": "seating"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "seating"}],"collection": "project",@@ -652,7 +757,8 @@"holodeck-cove","holodeck-tidemark","holodeck-courtyard",- "holodeck-crescent-cove"+ "holodeck-crescent-cove",+ "holodeck-meridian-sanctuary"],"placements": [{@@ -670,6 +776,10 @@{"pack": "holodeck-crescent-cove","id": "hearth"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "hearth"}],"collection": "project",@@ -748,7 +858,8 @@"holodeck-cove","holodeck-tidemark","holodeck-courtyard",- "holodeck-crescent-cove"+ "holodeck-crescent-cove",+ "holodeck-meridian-sanctuary"],"placements": [{@@ -766,6 +877,10 @@{"pack": "holodeck-crescent-cove","id": "planting"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "planting"}],"collection": "project",@@ -842,7 +957,8 @@"holodeck-cove","holodeck-tidemark","holodeck-courtyard",- "holodeck-crescent-cove"+ "holodeck-crescent-cove",+ "holodeck-meridian-sanctuary"],"placements": [{@@ -860,6 +976,10 @@{"pack": "holodeck-crescent-cove","id": "rug"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "rug"}],"collection": "project",@@ -936,7 +1056,8 @@"holodeck-cove","holodeck-tidemark","holodeck-courtyard",- "holodeck-crescent-cove"+ "holodeck-crescent-cove",+ "holodeck-meridian-sanctuary"],"placements": [{@@ -954,6 +1075,10 @@{"pack": "holodeck-crescent-cove","id": "lamp"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "lamp"}],"collection": "project",@@ -1031,7 +1156,8 @@"holodeck-tidemark","holodeck-courtyard","holodeck-crescent-cove",- "holodeck-winter-mountainside-cabin"+ "holodeck-winter-mountainside-cabin",+ "holodeck-meridian-sanctuary"],"placements": [{@@ -1053,6 +1179,10 @@{"pack": "holodeck-winter-mountainside-cabin","id": "moodboard"+ },+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "moodboard"}],"collection": "project",@@ -11737,6 +11867,3566 @@"status": "accepted"},"historyScope": "selected-only"+ },+ {+ "slug": "meridian-deck-4",+ "name": "Marble deck module",+ "description": "A 4 m deck module of white veined marble over banded travertine, made to repeat into terraces and the causeway.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "deck-4"+ }+ ],+ "collection": "project",+ "assetId": "a_9ecaccacab1641468887b8759dd9970f",+ "revisionId": "r_5711672892fd428891bab109fb5f2c78",+ "parentRevision": "r_d6625c132b9343e39fafcb15e382e49d",+ "sourcePath": "packs/holodeck/sources/project/a_9ecaccacab1641468887b8759dd9970f/r_5711672892fd428891bab109fb5f2c78/source.kiln.js",+ "sourceSha256": "e09577d89a4388cf056b5ba9efa52bee3ef24f2936e57b9070c081355eae9fdb",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8/meridian-deck-4.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8/meridian-deck-4.glb",+ "bytes": 340740,+ "sha256": "91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/684c0a3617e06b288ec815c395e2a6227cb447a2aea3af232a050f4590e000d3/meridian-deck-4-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/684c0a3617e06b288ec815c395e2a6227cb447a2aea3af232a050f4590e000d3/meridian-deck-4-runtime.zip",+ "bytes": 254543,+ "sha256": "684c0a3617e06b288ec815c395e2a6227cb447a2aea3af232a050f4590e000d3"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/778205caa6b5e5386c358c66d5ceede7b113cc38881da385422254939726845b/meridian-deck-4-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/778205caa6b5e5386c358c66d5ceede7b113cc38881da385422254939726845b/meridian-deck-4-editable.zip",+ "bytes": 411821,+ "sha256": "778205caa6b5e5386c358c66d5ceede7b113cc38881da385422254939726845b"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m deck module of white veined marble over banded travertine, made to repeat into terraces and the causeway.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4.png",+ "sourceRevisionId": "r_5711672892fd428891bab109fb5f2c78",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 592,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4,+ 1,+ 4+ ],+ "boundsMin": [+ -2,+ -1,+ -2+ ],+ "boundsMax": [+ 2,+ 0,+ 2+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-block-8",+ "name": "Marble terrace block",+ "description": "An 8 m terrace block: white veined marble paving over coursed ivory travertine.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "block-8"+ }+ ],+ "collection": "project",+ "assetId": "a_bc0c70b042c5495c9b6d4e75138f5d79",+ "revisionId": "r_90b595799305471aa23d5c522b098917",+ "parentRevision": "r_c0f61c891fc74c23afe3e82dc8b12f78",+ "sourcePath": "packs/holodeck/sources/project/a_bc0c70b042c5495c9b6d4e75138f5d79/r_90b595799305471aa23d5c522b098917/source.kiln.js",+ "sourceSha256": "338004d210428f630defa533258f36b3450f4ae2b9df65da4c5efd2343627051",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a/meridian-block-8.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a/meridian-block-8.glb",+ "bytes": 575204,+ "sha256": "6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/a883d81b02419a94a58647ab16957a3da0fd1c52a988c671dabc29f4e8c155d7/meridian-block-8-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/a883d81b02419a94a58647ab16957a3da0fd1c52a988c671dabc29f4e8c155d7/meridian-block-8-runtime.zip",+ "bytes": 301059,+ "sha256": "a883d81b02419a94a58647ab16957a3da0fd1c52a988c671dabc29f4e8c155d7"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/77798094bfcbb15418f2f37d355832da46a66ae556a62307185b3da17bd4f2b1/meridian-block-8-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/77798094bfcbb15418f2f37d355832da46a66ae556a62307185b3da17bd4f2b1/meridian-block-8-editable.zip",+ "bytes": 604662,+ "sha256": "77798094bfcbb15418f2f37d355832da46a66ae556a62307185b3da17bd4f2b1"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An 8 m terrace block: white veined marble paving over coursed ivory travertine.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8.png",+ "sourceRevisionId": "r_90b595799305471aa23d5c522b098917",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 2864,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 8,+ 3.4000000953674316,+ 8+ ],+ "boundsMin": [+ -4,+ -3.4000000953674316,+ -4+ ],+ "boundsMax": [+ 4,+ 0,+ 4+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-step-slab",+ "name": "Marble stepping slab",+ "description": "A single marble stepping slab for paths across the pools.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "step-slab"+ }+ ],+ "collection": "project",+ "assetId": "a_6f89067c2b77485a93b7b5d039a6c22f",+ "revisionId": "r_ed119ee06e04495787eb74e6fa1b3588",+ "parentRevision": "r_b617dd42793447f9baf46295f17f7930",+ "sourcePath": "packs/holodeck/sources/project/a_6f89067c2b77485a93b7b5d039a6c22f/r_ed119ee06e04495787eb74e6fa1b3588/source.kiln.js",+ "sourceSha256": "6fe347df67d90b25a1d0ae32da8063cb8c8d9a2fd873a56f1e2a8bed2f03db05",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688/meridian-step-slab.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688/meridian-step-slab.glb",+ "bytes": 289668,+ "sha256": "989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/71b50ceaa86e60bf7f75445f8b95b89fbc8bfe4e75469050bb5e033b486b683f/meridian-step-slab-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/71b50ceaa86e60bf7f75445f8b95b89fbc8bfe4e75469050bb5e033b486b683f/meridian-step-slab-runtime.zip",+ "bytes": 244559,+ "sha256": "71b50ceaa86e60bf7f75445f8b95b89fbc8bfe4e75469050bb5e033b486b683f"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/0405a0c94c7644276a3440c7f96d3653d51c9fe657dafe500cc593d57f17a62d/meridian-step-slab-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/0405a0c94c7644276a3440c7f96d3653d51c9fe657dafe500cc593d57f17a62d/meridian-step-slab-editable.zip",+ "bytes": 329213,+ "sha256": "0405a0c94c7644276a3440c7f96d3653d51c9fe657dafe500cc593d57f17a62d"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A single marble stepping slab for paths across the pools.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab.png",+ "sourceRevisionId": "r_ed119ee06e04495787eb74e6fa1b3588",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 102,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 6,+ 1,+ 2.700000047683716+ ],+ "boundsMin": [+ -3,+ -1,+ -1.350000023841858+ ],+ "boundsMax": [+ 3,+ 0,+ 1.350000023841858+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-deck-6",+ "name": "Inlaid marble deck",+ "description": "A 6 m marble deck module with brass inlay strips set just proud of the stone.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "deck-6"+ }+ ],+ "collection": "project",+ "assetId": "a_3b195f8b7a224b12972c0b41c1fed890",+ "revisionId": "r_cfc1654b7c0147418c5980fc0155b73f",+ "parentRevision": "r_39b453f88a264259a66845214bd06c7f",+ "sourcePath": "packs/holodeck/sources/project/a_3b195f8b7a224b12972c0b41c1fed890/r_cfc1654b7c0147418c5980fc0155b73f/source.kiln.js",+ "sourceSha256": "4d8eeb29212aadfe49bf9509d4019bb93eb82fb0558c94dc03501668c66e0468",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2/meridian-deck-6.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2/meridian-deck-6.glb",+ "bytes": 336344,+ "sha256": "6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/909153bf5a5ebb5b51f55fc439fdd9f022ab1aa8d4ca7fa482e7b89889bd7b25/meridian-deck-6-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/909153bf5a5ebb5b51f55fc439fdd9f022ab1aa8d4ca7fa482e7b89889bd7b25/meridian-deck-6-runtime.zip",+ "bytes": 252487,+ "sha256": "909153bf5a5ebb5b51f55fc439fdd9f022ab1aa8d4ca7fa482e7b89889bd7b25"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/d6d6063c50d7aaac3d2469b60daa4a382eee03b0a25d29e7b447324a9984ebe4/meridian-deck-6-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/d6d6063c50d7aaac3d2469b60daa4a382eee03b0a25d29e7b447324a9984ebe4/meridian-deck-6-editable.zip",+ "bytes": 365392,+ "sha256": "d6d6063c50d7aaac3d2469b60daa4a382eee03b0a25d29e7b447324a9984ebe4"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 6 m marble deck module with brass inlay strips set just proud of the stone.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6.png",+ "sourceRevisionId": "r_cfc1654b7c0147418c5980fc0155b73f",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 560,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 6,+ 1.002000000094995,+ 4+ ],+ "boundsMin": [+ -3,+ -1,+ -2+ ],+ "boundsMax": [+ 3,+ 0.0020000000949949026,+ 2+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-coping-4",+ "name": "Pool coping with brass lip",+ "description": "A 4 m marble coping for the mirror pools, edged with a thin brass lip.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "coping-4"+ }+ ],+ "collection": "project",+ "assetId": "a_a28ecbc7dc134d758deefea5105e7845",+ "revisionId": "r_32c14b58648b4b66b9f916ddd8d796ba",+ "parentRevision": "r_b020b7d4ed704cb39ed5ca4ad55e35cc",+ "sourcePath": "packs/holodeck/sources/project/a_a28ecbc7dc134d758deefea5105e7845/r_32c14b58648b4b66b9f916ddd8d796ba/source.kiln.js",+ "sourceSha256": "84f8a8c2a6ad51d8d1547080d8c06dd261893932fbab711a5948a627e6d9fb03",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de/meridian-coping-4.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de/meridian-coping-4.glb",+ "bytes": 299268,+ "sha256": "ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/260f0918d7d947ff7ae80f354d7479ab7cc84839783465f9f89dc2f55e1b9713/meridian-coping-4-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/260f0918d7d947ff7ae80f354d7479ab7cc84839783465f9f89dc2f55e1b9713/meridian-coping-4-runtime.zip",+ "bytes": 246867,+ "sha256": "260f0918d7d947ff7ae80f354d7479ab7cc84839783465f9f89dc2f55e1b9713"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/f0704f31d6bcdeb342794284c72a7d363948f13afad7ea4c8362a18133854fa2/meridian-coping-4-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/f0704f31d6bcdeb342794284c72a7d363948f13afad7ea4c8362a18133854fa2/meridian-coping-4-editable.zip",+ "bytes": 329909,+ "sha256": "f0704f31d6bcdeb342794284c72a7d363948f13afad7ea4c8362a18133854fa2"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m marble coping for the mirror pools, edged with a thin brass lip.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4.png",+ "sourceRevisionId": "r_32c14b58648b4b66b9f916ddd8d796ba",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 196,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 0.4399999976158142,+ 1.002000000094995,+ 4+ ],+ "boundsMin": [+ -0.20000000298023224,+ -1,+ -2+ ],+ "boundsMax": [+ 0.23999999463558197,+ 0.0020000000949949026,+ 2+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-pool-steps",+ "name": "Pool steps",+ "description": "Marble steps that lead down into a pool.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "pool-steps"+ }+ ],+ "collection": "project",+ "assetId": "a_03c9987e328b4854b3f1e40c37142c8b",+ "revisionId": "r_70d3b4de07f64f518c0a77e49779e0ef",+ "parentRevision": "r_5f6369876bab4316b4f34fc33965a47f",+ "sourcePath": "packs/holodeck/sources/project/a_03c9987e328b4854b3f1e40c37142c8b/r_70d3b4de07f64f518c0a77e49779e0ef/source.kiln.js",+ "sourceSha256": "87685fd5c42d08c72ad3197a5394303b2074c16c72b5237a578b6560cf80e9d6",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0/meridian-pool-steps.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0/meridian-pool-steps.glb",+ "bytes": 304908,+ "sha256": "40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/c61e821ead767976f2306b15c60f73b5603eebe0a1d98e2d3ea63f6a5375771a/meridian-pool-steps-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/c61e821ead767976f2306b15c60f73b5603eebe0a1d98e2d3ea63f6a5375771a/meridian-pool-steps-runtime.zip",+ "bytes": 248031,+ "sha256": "c61e821ead767976f2306b15c60f73b5603eebe0a1d98e2d3ea63f6a5375771a"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/926877c7d4e8a45fc727c30af2f27eb1c17c7ac19a706368ed68e33c1d087620/meridian-pool-steps-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/926877c7d4e8a45fc727c30af2f27eb1c17c7ac19a706368ed68e33c1d087620/meridian-pool-steps-editable.zip",+ "bytes": 334115,+ "sha256": "926877c7d4e8a45fc727c30af2f27eb1c17c7ac19a706368ed68e33c1d087620"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps.webp",+ "width": 1024,+ "height": 1024,+ "alt": "Marble steps that lead down into a pool.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps.png",+ "sourceRevisionId": "r_70d3b4de07f64f518c0a77e49779e0ef",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 240,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 3,+ 0.8333333283662796,+ 1.7999999523162842+ ],+ "boundsMin": [+ -1.5,+ -1,+ 0+ ],+ "boundsMax": [+ 1.5,+ -0.1666666716337204,+ 1.7999999523162842+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-stair-8",+ "name": "Wide marble stair",+ "description": "An 8 m wide flight of low marble risers with brass nosings, linking the terraces.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "stair-8"+ }+ ],+ "collection": "project",+ "assetId": "a_86ccbcae4fcb41e9ad7aeefeea8d2a31",+ "revisionId": "r_e2c7668c4b704b608fa1faa7e4c9d42f",+ "parentRevision": "r_e1503a0e84f6499690c597b712049ff0",+ "sourcePath": "packs/holodeck/sources/project/a_86ccbcae4fcb41e9ad7aeefeea8d2a31/r_e2c7668c4b704b608fa1faa7e4c9d42f/source.kiln.js",+ "sourceSha256": "ac1732f95ba5ba163df5d1a0ac8c5b926455426f4e3d967a72280038865f1203",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4/meridian-stair-8.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4/meridian-stair-8.glb",+ "bytes": 587772,+ "sha256": "d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/c686eb345dc2dce823b2fb2dc3996b4bb69ae794518e817f5cd5fc5dd1a8d2f4/meridian-stair-8-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/c686eb345dc2dce823b2fb2dc3996b4bb69ae794518e817f5cd5fc5dd1a8d2f4/meridian-stair-8-runtime.zip",+ "bytes": 299231,+ "sha256": "c686eb345dc2dce823b2fb2dc3996b4bb69ae794518e817f5cd5fc5dd1a8d2f4"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/863a47f8b8158474ab2071672f165830220bcf22d8b9633a34a6d5199b0958ac/meridian-stair-8-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/863a47f8b8158474ab2071672f165830220bcf22d8b9633a34a6d5199b0958ac/meridian-stair-8-editable.zip",+ "bytes": 509506,+ "sha256": "863a47f8b8158474ab2071672f165830220bcf22d8b9633a34a6d5199b0958ac"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An 8 m wide flight of low marble risers with brass nosings, linking the terraces.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8.png",+ "sourceRevisionId": "r_e2c7668c4b704b608fa1faa7e4c9d42f",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 2876,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 8,+ 3.243000030517578,+ 8.006000000052154+ ],+ "boundsMin": [+ -4,+ -1,+ -8+ ],+ "boundsMax": [+ 4,+ 2.243000030517578,+ 0.006000000052154064+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-stair-4",+ "name": "Side stair between cheek walls",+ "description": "A 4 m wide marble side flight between cheek walls, with brass nosings.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "stair-4"+ }+ ],+ "collection": "project",+ "assetId": "a_3b7a0ed03c61411196d644a78696dd04",+ "revisionId": "r_6a0f08a3449a4786b7e0c8d085fa247d",+ "parentRevision": "r_7382f456a4a14bb7977d1856e7c72060",+ "sourcePath": "packs/holodeck/sources/project/a_3b7a0ed03c61411196d644a78696dd04/r_6a0f08a3449a4786b7e0c8d085fa247d/source.kiln.js",+ "sourceSha256": "543a07bfc6f1a1e6142e929131dd31f529aacf6c694dc98307de57396cb9c557",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd/meridian-stair-4.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd/meridian-stair-4.glb",+ "bytes": 414396,+ "sha256": "68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/b707a8500c88ee40569404e3971917acedec5a7dee48928eb7d4ff64c077b8ea/meridian-stair-4-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/b707a8500c88ee40569404e3971917acedec5a7dee48928eb7d4ff64c077b8ea/meridian-stair-4-runtime.zip",+ "bytes": 269990,+ "sha256": "b707a8500c88ee40569404e3971917acedec5a7dee48928eb7d4ff64c077b8ea"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/91fdfc27a134a25d602452cbbd78c58651c6dca774060927a36113600b370257/meridian-stair-4-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/91fdfc27a134a25d602452cbbd78c58651c6dca774060927a36113600b370257/meridian-stair-4-editable.zip",+ "bytes": 481350,+ "sha256": "91fdfc27a134a25d602452cbbd78c58651c6dca774060927a36113600b370257"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m wide marble side flight between cheek walls, with brass nosings.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4.png",+ "sourceRevisionId": "r_6a0f08a3449a4786b7e0c8d085fa247d",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 1244,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4,+ 3.299999952316284,+ 8.006000000052154+ ],+ "boundsMin": [+ -2,+ 0,+ -8+ ],+ "boundsMax": [+ 2,+ 3.299999952316284,+ 0.006000000052154064+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-parapet-4",+ "name": "Marble parapet",+ "description": "A 4 m solid marble parapet with flat butt ends and a brass top strip.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "parapet-4"+ }+ ],+ "collection": "project",+ "assetId": "a_68b548474473491e9a1e2dce7632b2ba",+ "revisionId": "r_e28232a177ef4fb0be41c5bbf7236674",+ "parentRevision": "r_e7d47b980f86490b8e4cc9ece4581fde",+ "sourcePath": "packs/holodeck/sources/project/a_68b548474473491e9a1e2dce7632b2ba/r_e28232a177ef4fb0be41c5bbf7236674/source.kiln.js",+ "sourceSha256": "2cdc059a32536db141ace142b7a702c0356b8d6e8d778c9d5364b00d2d824116",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488/meridian-parapet-4.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488/meridian-parapet-4.glb",+ "bytes": 294940,+ "sha256": "feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/47ab198c7494086dfa613b22ff935dd4a0625f9384b2b4c18805c6fa85a89b9c/meridian-parapet-4-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/47ab198c7494086dfa613b22ff935dd4a0625f9384b2b4c18805c6fa85a89b9c/meridian-parapet-4-runtime.zip",+ "bytes": 245459,+ "sha256": "47ab198c7494086dfa613b22ff935dd4a0625f9384b2b4c18805c6fa85a89b9c"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/65b982b5b2497ef24a608434f9d2ce67bcc6ed625e10722c2b1e93ae636b93b4/meridian-parapet-4-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/65b982b5b2497ef24a608434f9d2ce67bcc6ed625e10722c2b1e93ae636b93b4/meridian-parapet-4-editable.zip",+ "bytes": 346465,+ "sha256": "65b982b5b2497ef24a608434f9d2ce67bcc6ed625e10722c2b1e93ae636b93b4"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m solid marble parapet with flat butt ends and a brass top strip.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4.png",+ "sourceRevisionId": "r_e28232a177ef4fb0be41c5bbf7236674",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 146,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4,+ 1.0019999742507935,+ 0.4399999976158142+ ],+ "boundsMin": [+ -2,+ 0,+ -0.2199999988079071+ ],+ "boundsMax": [+ 2,+ 1.0019999742507935,+ 0.2199999988079071+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-foundation-4",+ "name": "Deep foundation wall",+ "description": "A 4 m coursed foundation wall that runs about 110 m down into the cloud sea under the terraces.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "foundation-4"+ }+ ],+ "collection": "project",+ "assetId": "a_496240d2b2f041c69b5d593df83b3bd5",+ "revisionId": "r_ccec44961e6449a7ab752499408139b6",+ "parentRevision": "r_09cf2903579842d68b32ba0ca08ac5fe",+ "sourcePath": "packs/holodeck/sources/project/a_496240d2b2f041c69b5d593df83b3bd5/r_ccec44961e6449a7ab752499408139b6/source.kiln.js",+ "sourceSha256": "a046c8944c884ddd723a964b951750a35186dd14551a8a861a696c2cc588575b",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481/meridian-foundation-4.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481/meridian-foundation-4.glb",+ "bytes": 468972,+ "sha256": "161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/6c5f0e24dac3d50ea64a4b2f0ed4519db542fcffddc4012025d231b65f72d98e/meridian-foundation-4-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/6c5f0e24dac3d50ea64a4b2f0ed4519db542fcffddc4012025d231b65f72d98e/meridian-foundation-4-runtime.zip",+ "bytes": 278331,+ "sha256": "6c5f0e24dac3d50ea64a4b2f0ed4519db542fcffddc4012025d231b65f72d98e"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/88460de5f457dfa7567c055c71a68e379520973f878d0da83c48237bd8bb8cde/meridian-foundation-4-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/88460de5f457dfa7567c055c71a68e379520973f878d0da83c48237bd8bb8cde/meridian-foundation-4-editable.zip",+ "bytes": 339080,+ "sha256": "88460de5f457dfa7567c055c71a68e379520973f878d0da83c48237bd8bb8cde"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m coursed foundation wall that runs about 110 m down into the cloud sea under the terraces.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4.png",+ "sourceRevisionId": "r_ccec44961e6449a7ab752499408139b6",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 1790,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4,+ 110,+ 1.2000000476837158+ ],+ "boundsMin": [+ -2,+ -110,+ -1.2000000476837158+ ],+ "boundsMax": [+ 2,+ 0,+ 0+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-arcade-pylon",+ "name": "Arcade pylon",+ "description": "A 1.8 m square pylon, 12.6 m tall above a shaft into the cloud, with warm-white glowing niches.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-pylon"+ }+ ],+ "collection": "project",+ "assetId": "a_5e2481268eb342aab284430556143e9a",+ "revisionId": "r_269d44f66ec944079983349b9dc2cb5a",+ "parentRevision": "r_5f793f2c52b0492b89cc362de2ce77ee",+ "sourcePath": "packs/holodeck/sources/project/a_5e2481268eb342aab284430556143e9a/r_269d44f66ec944079983349b9dc2cb5a/source.kiln.js",+ "sourceSha256": "5059600f72ac0fc6c3d4f9fb33ee5dd74c7aeb9c9f79d28451b4109d820bdadd",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602/meridian-arcade-pylon.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602/meridian-arcade-pylon.glb",+ "bytes": 796236,+ "sha256": "c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/aa73cdb4684489fd8399e84731d4e2832024c77c127a786e0756c0b2903dbdc6/meridian-arcade-pylon-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/aa73cdb4684489fd8399e84731d4e2832024c77c127a786e0756c0b2903dbdc6/meridian-arcade-pylon-runtime.zip",+ "bytes": 345381,+ "sha256": "aa73cdb4684489fd8399e84731d4e2832024c77c127a786e0756c0b2903dbdc6"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/b7a50ffb8ce5c6d912e9a09dd5605719f74a17d25b94a139e5ff045b71f8cb39/meridian-arcade-pylon-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/b7a50ffb8ce5c6d912e9a09dd5605719f74a17d25b94a139e5ff045b71f8cb39/meridian-arcade-pylon-editable.zip",+ "bytes": 437496,+ "sha256": "b7a50ffb8ce5c6d912e9a09dd5605719f74a17d25b94a139e5ff045b71f8cb39"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 1.8 m square pylon, 12.6 m tall above a shaft into the cloud, with warm-white glowing niches.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon.png",+ "sourceRevisionId": "r_269d44f66ec944079983349b9dc2cb5a",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 4722,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 2.200000047683716,+ 122.60000038146973,+ 2.200000047683716+ ],+ "boundsMin": [+ -1.100000023841858,+ -110,+ -1.100000023841858+ ],+ "boundsMax": [+ 1.100000023841858,+ 12.600000381469727,+ 1.100000023841858+ ],+ "clips": [],+ "extensions": [+ "KHR_materials_emissive_strength"+ ]+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-arcade-pier",+ "name": "Arcade pier",+ "description": "A 1.2 m square marble pier rising to its impost at 5.2 m, for the arcades.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-pier"+ }+ ],+ "collection": "project",+ "assetId": "a_1872b09689154cb2825cbe6cd3e77af4",+ "revisionId": "r_e09059fd12874fbea948389061ee8736",+ "parentRevision": "r_08a27b339c5c4c398b9bae58936b9f3a",+ "sourcePath": "packs/holodeck/sources/project/a_1872b09689154cb2825cbe6cd3e77af4/r_e09059fd12874fbea948389061ee8736/source.kiln.js",+ "sourceSha256": "ded78d069fab1971d4596ca00c6dbacc8639160ad53a18458521905e4b9e0e00",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f/meridian-arcade-pier.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f/meridian-arcade-pier.glb",+ "bytes": 393212,+ "sha256": "6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/6426bb807acdbd0da07f613ea3ae2c11e2aea30d030cc1d60f2a34138cadf834/meridian-arcade-pier-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/6426bb807acdbd0da07f613ea3ae2c11e2aea30d030cc1d60f2a34138cadf834/meridian-arcade-pier-runtime.zip",+ "bytes": 265991,+ "sha256": "6426bb807acdbd0da07f613ea3ae2c11e2aea30d030cc1d60f2a34138cadf834"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/185cde23ffe31629af524f23398176307404488c3eba2abe2cb206a9835da0a5/meridian-arcade-pier-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/185cde23ffe31629af524f23398176307404488c3eba2abe2cb206a9835da0a5/meridian-arcade-pier-editable.zip",+ "bytes": 438568,+ "sha256": "185cde23ffe31629af524f23398176307404488c3eba2abe2cb206a9835da0a5"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 1.2 m square marble pier rising to its impost at 5.2 m, for the arcades.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier.png",+ "sourceRevisionId": "r_e09059fd12874fbea948389061ee8736",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 1072,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.399999976158142,+ 5.199999809265137,+ 1.399999976158142+ ],+ "boundsMin": [+ -0.699999988079071,+ 0,+ -0.699999988079071+ ],+ "boundsMax": [+ 0.699999988079071,+ 5.199999809265137,+ 0.699999988079071+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-arcade-pier-slot",+ "name": "Arcade pier with glowing niche",+ "description": "An arcade pier with a warm-white glowing niche, closed above and below.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-pier-slot"+ }+ ],+ "collection": "project",+ "assetId": "a_5aa55f2016c84a98a47300864c642739",+ "revisionId": "r_23415f3bcad34dbea52c9b930878be28",+ "parentRevision": "r_eb2b5ad217234da3a702e7fba5635200",+ "sourcePath": "packs/holodeck/sources/project/a_5aa55f2016c84a98a47300864c642739/r_23415f3bcad34dbea52c9b930878be28/source.kiln.js",+ "sourceSha256": "a1a6bfcbf17e62cce5a39ad49ab63436d73513792235d78f104b3a4d82efd880",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c/meridian-arcade-pier-slot.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c/meridian-arcade-pier-slot.glb",+ "bytes": 409404,+ "sha256": "a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/8d7ad8f94b505eb0443b56bb0801bb31242e0d9ff99e2f5219870683ea3be64e/meridian-arcade-pier-slot-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/8d7ad8f94b505eb0443b56bb0801bb31242e0d9ff99e2f5219870683ea3be64e/meridian-arcade-pier-slot-runtime.zip",+ "bytes": 269965,+ "sha256": "8d7ad8f94b505eb0443b56bb0801bb31242e0d9ff99e2f5219870683ea3be64e"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/ccd7083da345c0ed246ac04713b4278a8ae03e2fb4ec67cae16d28a38cec353f/meridian-arcade-pier-slot-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/ccd7083da345c0ed246ac04713b4278a8ae03e2fb4ec67cae16d28a38cec353f/meridian-arcade-pier-slot-editable.zip",+ "bytes": 454621,+ "sha256": "ccd7083da345c0ed246ac04713b4278a8ae03e2fb4ec67cae16d28a38cec353f"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An arcade pier with a warm-white glowing niche, closed above and below.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot.png",+ "sourceRevisionId": "r_23415f3bcad34dbea52c9b930878be28",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 1174,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.399999976158142,+ 5.199999809265137,+ 1.399999976158142+ ],+ "boundsMin": [+ -0.699999988079071,+ 0,+ -0.699999988079071+ ],+ "boundsMax": [+ 0.699999988079071,+ 5.199999809265137,+ 0.699999988079071+ ],+ "clips": [],+ "extensions": [+ "KHR_materials_emissive_strength"+ ]+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-arcade-arch",+ "name": "Arcade arch span",+ "description": "A 4.8 m round arch with a stepped order, archivolt, cornice and an ivy trough along its top.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-arch"+ }+ ],+ "collection": "project",+ "assetId": "a_71cef64b7f8143478db7afd63d553974",+ "revisionId": "r_e9e14002aa444492805007f0bf30dfee",+ "parentRevision": "r_d412b7188d4344c78498ab6fb0be1076",+ "sourcePath": "packs/holodeck/sources/project/a_71cef64b7f8143478db7afd63d553974/r_e9e14002aa444492805007f0bf30dfee/source.kiln.js",+ "sourceSha256": "162bc29bb236379c28cf731a77fe52dcaa8905176f21a093cf25efc19f5303b1",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a/meridian-arcade-arch.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a/meridian-arcade-arch.glb",+ "bytes": 446728,+ "sha256": "d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/c5145c98f4b15255fcbd9cb959e42bd954b044d2f62770482d927b6b332b53c5/meridian-arcade-arch-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/c5145c98f4b15255fcbd9cb959e42bd954b044d2f62770482d927b6b332b53c5/meridian-arcade-arch-runtime.zip",+ "bytes": 279485,+ "sha256": "c5145c98f4b15255fcbd9cb959e42bd954b044d2f62770482d927b6b332b53c5"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/cdf75bb530a79195eb39b9b89b9b181d4351c0c45fcd1fa14a2b3d2f9bb397ab/meridian-arcade-arch-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/cdf75bb530a79195eb39b9b89b9b181d4351c0c45fcd1fa14a2b3d2f9bb397ab/meridian-arcade-arch-editable.zip",+ "bytes": 479531,+ "sha256": "cdf75bb530a79195eb39b9b89b9b181d4351c0c45fcd1fa14a2b3d2f9bb397ab"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4.8 m round arch with a stepped order, archivolt, cornice and an ivy trough along its top.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch.png",+ "sourceRevisionId": "r_e9e14002aa444492805007f0bf30dfee",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 1604,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4.800000190734863,+ 4.199999809265137,+ 1.7000000476837158+ ],+ "boundsMin": [+ -2.4000000953674316,+ 5.199999809265137,+ -0.8500000238418579+ ],+ "boundsMax": [+ 2.4000000953674316,+ 9.399999618530273,+ 0.8500000238418579+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-tower-slot",+ "name": "Distant slotted tower",+ "description": "A slotted marble tower on a 32 m shaft, with glowing niches, for the far skyline.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "tower-slot"+ }+ ],+ "collection": "project",+ "assetId": "a_3b903db052c3431a9540e5f54a9b5ee5",+ "revisionId": "r_c4851c428d0e4931a2983eea9d6e1d8d",+ "parentRevision": "r_1675e1ee267c4fbfaab03acc47c8d371",+ "sourcePath": "packs/holodeck/sources/project/a_3b903db052c3431a9540e5f54a9b5ee5/r_c4851c428d0e4931a2983eea9d6e1d8d/source.kiln.js",+ "sourceSha256": "1c129f8c397115fba53d20596cb014d990e753a42bb7147e8728eb38aa129f0c",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679/meridian-tower-slot.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679/meridian-tower-slot.glb",+ "bytes": 1107564,+ "sha256": "ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/38f53977d79ae2044f60b4de09bfccaf6df2810d5fc1beb16d5d811d13c294cd/meridian-tower-slot-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/38f53977d79ae2044f60b4de09bfccaf6df2810d5fc1beb16d5d811d13c294cd/meridian-tower-slot-runtime.zip",+ "bytes": 411931,+ "sha256": "38f53977d79ae2044f60b4de09bfccaf6df2810d5fc1beb16d5d811d13c294cd"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/3c56e73521675360344d3a6b4bf6b33003dd1aa9ebe9bd27f854a77c5dbda5f9/meridian-tower-slot-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/3c56e73521675360344d3a6b4bf6b33003dd1aa9ebe9bd27f854a77c5dbda5f9/meridian-tower-slot-editable.zip",+ "bytes": 587231,+ "sha256": "3c56e73521675360344d3a6b4bf6b33003dd1aa9ebe9bd27f854a77c5dbda5f9"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A slotted marble tower on a 32 m shaft, with glowing niches, for the far skyline.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot.png",+ "sourceRevisionId": "r_c4851c428d0e4931a2983eea9d6e1d8d",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 7752,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4.599999904632568,+ 56,+ 4.599999904632568+ ],+ "boundsMin": [+ -2.299999952316284,+ -32,+ -2.299999952316284+ ],+ "boundsMax": [+ 2.299999952316284,+ 24,+ 2.299999952316284+ ],+ "clips": [],+ "extensions": [+ "KHR_materials_emissive_strength"+ ]+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cascade-tower",+ "name": "Cascade tower",+ "description": "A 4 m square tower set against a terrace wall, with a spout that feeds a waterfall into the basin below.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cascade-tower"+ }+ ],+ "collection": "project",+ "assetId": "a_e6f9b6d59c9e48e88b6c266fe8df0f01",+ "revisionId": "r_90ab6b974ebb41c4a72e5062a24334fb",+ "parentRevision": "r_c669751d68b54093b8174490a253eb1b",+ "sourcePath": "packs/holodeck/sources/project/a_e6f9b6d59c9e48e88b6c266fe8df0f01/r_90ab6b974ebb41c4a72e5062a24334fb/source.kiln.js",+ "sourceSha256": "a4f9821254f3140ce70f263a232bcf30a7570dbe36c85856f9cb985a020130d2",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf/meridian-cascade-tower.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf/meridian-cascade-tower.glb",+ "bytes": 478968,+ "sha256": "304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/393aa0f88e31c9c5af7ba2171143e920838028366ce1f3ee65ea53a9746471ae/meridian-cascade-tower-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/393aa0f88e31c9c5af7ba2171143e920838028366ce1f3ee65ea53a9746471ae/meridian-cascade-tower-runtime.zip",+ "bytes": 283494,+ "sha256": "393aa0f88e31c9c5af7ba2171143e920838028366ce1f3ee65ea53a9746471ae"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/f7c414b45fe10f3ad4d7444c7a2638c34ae6a5cf60e9b025d572f082d219795f/meridian-cascade-tower-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/f7c414b45fe10f3ad4d7444c7a2638c34ae6a5cf60e9b025d572f082d219795f/meridian-cascade-tower-editable.zip",+ "bytes": 588394,+ "sha256": "f7c414b45fe10f3ad4d7444c7a2638c34ae6a5cf60e9b025d572f082d219795f"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m square tower set against a terrace wall, with a spout that feeds a waterfall into the basin below.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower.png",+ "sourceRevisionId": "r_90ab6b974ebb41c4a72e5062a24334fb",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 1830,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4.199999809265137,+ 6.400000095367432,+ 4.099999904632568+ ],+ "boundsMin": [+ -2.0999999046325684,+ 0,+ -2+ ],+ "boundsMax": [+ 2.0999999046325684,+ 6.400000095367432,+ 2.0999999046325684+ ],+ "clips": [],+ "extensions": [+ "KHR_materials_emissive_strength"+ ]+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-gateway",+ "name": "Colossal gateway",+ "description": "The gate tower: a 98.6 m marble gateway with three stacked arches, wings and front piers cut with full-height glowing slits.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "gateway"+ }+ ],+ "collection": "project",+ "assetId": "a_3d189b692e934646bccc63f3088eafd1",+ "revisionId": "r_c33d46440935478180576e38ffa20662",+ "parentRevision": "r_4c9605d2325647c2b532ee257ce601cc",+ "sourcePath": "packs/holodeck/sources/project/a_3d189b692e934646bccc63f3088eafd1/r_c33d46440935478180576e38ffa20662/source.kiln.js",+ "sourceSha256": "427516719e17375dcc09ddae5471f7e8e361a5e93008c0311c164a1cd8f602b2",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9/meridian-gateway.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9/meridian-gateway.glb",+ "bytes": 14793000,+ "sha256": "2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/4737b6a71faa12837d1ae8d2d1d4423795e6e01262777f4eb0c433a0caf425e9/meridian-gateway-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/4737b6a71faa12837d1ae8d2d1d4423795e6e01262777f4eb0c433a0caf425e9/meridian-gateway-runtime.zip",+ "bytes": 2887819,+ "sha256": "4737b6a71faa12837d1ae8d2d1d4423795e6e01262777f4eb0c433a0caf425e9"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/0b13ca0741cf855c497ad7f97f84deb31a0d1c2a5e57ef790f613a7e9e945562/meridian-gateway-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/0b13ca0741cf855c497ad7f97f84deb31a0d1c2a5e57ef790f613a7e9e945562/meridian-gateway-editable.zip",+ "bytes": 3153139,+ "sha256": "0b13ca0741cf855c497ad7f97f84deb31a0d1c2a5e57ef790f613a7e9e945562"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway.webp",+ "width": 1024,+ "height": 1024,+ "alt": "The gate tower: a 98.6 m marble gateway with three stacked arches, wings and front piers cut with full-height glowing slits.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway.png",+ "sourceRevisionId": "r_c33d46440935478180576e38ffa20662",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 132164,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 39,+ 98.5999984741211,+ 15.800000190734863+ ],+ "boundsMin": [+ -19.5,+ 0,+ -6.300000190734863+ ],+ "boundsMax": [+ 19.5,+ 98.5999984741211,+ 9.5+ ],+ "clips": [],+ "extensions": [+ "KHR_materials_emissive_strength"+ ]+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-orb",+ "name": "Mirror orb",+ "description": "A smooth mirror sphere 4.5 m across, one mesh and one material, centred on its pivot.",+ "category": "Meridian Sanctuary mirrors and statues",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "orb"+ }+ ],+ "collection": "project",+ "assetId": "a_6eb69a9b81ea429880d3f1e5b308955a",+ "revisionId": "r_14709d822a9a444ba5b3e6a6db89d0ca",+ "sourcePath": "packs/holodeck/sources/project/a_6eb69a9b81ea429880d3f1e5b308955a/r_14709d822a9a444ba5b3e6a6db89d0ca/source.kiln.js",+ "sourceSha256": "42667a192fd895d7a8b6ba47fcc82f3ab5bb65711281b853d4e9a32a5b38df68",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1/meridian-orb.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1/meridian-orb.glb",+ "bytes": 275996,+ "sha256": "84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/d8fae47079e34ecd76e0582422b13f55859e40f6cd3323ebc179db4f2f24037f/meridian-orb-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/d8fae47079e34ecd76e0582422b13f55859e40f6cd3323ebc179db4f2f24037f/meridian-orb-runtime.zip",+ "bytes": 114293,+ "sha256": "d8fae47079e34ecd76e0582422b13f55859e40f6cd3323ebc179db4f2f24037f"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/c9158008a5e3d92b60a8b33feb1912d6521bab5914d9c93258c64db21e2667b7/meridian-orb-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/c9158008a5e3d92b60a8b33feb1912d6521bab5914d9c93258c64db21e2667b7/meridian-orb-editable.zip",+ "bytes": 635877,+ "sha256": "c9158008a5e3d92b60a8b33feb1912d6521bab5914d9c93258c64db21e2667b7"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A smooth mirror sphere 4.5 m across, one mesh and one material, centred on its pivot.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb.png",+ "sourceRevisionId": "r_14709d822a9a444ba5b3e6a6db89d0ca",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 12096,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4.5,+ 4.5,+ 4.5+ ],+ "boundsMin": [+ -2.25,+ -2.25,+ -2.25+ ],+ "boundsMax": [+ 2.25,+ 2.25,+ 2.25+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-falls-narrow",+ "name": "Narrow waterfall",+ "description": "A narrow falling sheet from a tower spout, with a bright lip and a foam ring where it meets the basin.",+ "category": "Meridian Sanctuary water",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "falls-narrow"+ }+ ],+ "collection": "project",+ "assetId": "a_8a9a9d21b715495e8da9ea86f9926b3f",+ "revisionId": "r_792166fb225343fbb5ea84c29d051c19",+ "parentRevision": "r_5eab76a0d3b0419a944caaa326874794",+ "sourcePath": "packs/holodeck/sources/project/a_8a9a9d21b715495e8da9ea86f9926b3f/r_792166fb225343fbb5ea84c29d051c19/source.kiln.js",+ "sourceSha256": "d3ab9a2823ff6378fa94f4546592c7db4353531f8c15c988dd5b6fa882d3aecc",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587/meridian-falls-narrow.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587/meridian-falls-narrow.glb",+ "bytes": 90012,+ "sha256": "df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/666db175c82a5f53e53eac02bad4176a4dc017e2ed85300637eb22615acfe7d2/meridian-falls-narrow-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/666db175c82a5f53e53eac02bad4176a4dc017e2ed85300637eb22615acfe7d2/meridian-falls-narrow-runtime.zip",+ "bytes": 73584,+ "sha256": "666db175c82a5f53e53eac02bad4176a4dc017e2ed85300637eb22615acfe7d2"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/acbb39ae7601d4468566a664c44393e5f00522e735ec8bc3029109237cc0c4b0/meridian-falls-narrow-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/acbb39ae7601d4468566a664c44393e5f00522e735ec8bc3029109237cc0c4b0/meridian-falls-narrow-editable.zip",+ "bytes": 365361,+ "sha256": "acbb39ae7601d4468566a664c44393e5f00522e735ec8bc3029109237cc0c4b0"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A narrow falling sheet from a tower spout, with a bright lip and a foam ring where it meets the basin.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow.png",+ "sourceRevisionId": "r_792166fb225343fbb5ea84c29d051c19",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 230,+ "meshes": 4,+ "materials": 4,+ "bounds": [+ 3.4024165868759155,+ 3.359119415283203,+ 1.9813576936721802+ ],+ "boundsMin": [+ -1.9100053310394287,+ 0.8718805313110352,+ 1.6799999475479126+ ],+ "boundsMax": [+ 1.4924112558364868,+ 4.230999946594238,+ 3.6613576412200928+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-overflow-wide",+ "name": "Wide weir overflow",+ "description": "A wide weir sheet that falls from a shadowed slot to the pool below, with faint mist at its foot.",+ "category": "Meridian Sanctuary water",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "overflow-wide"+ }+ ],+ "collection": "project",+ "assetId": "a_9f4e630b3c014b5a85b80b271b6a533c",+ "revisionId": "r_d9957682b89b4c0289370544667ba823",+ "parentRevision": "r_4a97697cd3c24886b3937882f593efe1",+ "sourcePath": "packs/holodeck/sources/project/a_9f4e630b3c014b5a85b80b271b6a533c/r_d9957682b89b4c0289370544667ba823/source.kiln.js",+ "sourceSha256": "e912cfe6d9e23619a03f3e04a015a437b0f5a497b0f63cd26aa97a895178a003",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7/meridian-overflow-wide.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7/meridian-overflow-wide.glb",+ "bytes": 74784,+ "sha256": "a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/02b8f0829db865c30e05017259702979f5ce9d91ff82904047593c994d821d66/meridian-overflow-wide-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/02b8f0829db865c30e05017259702979f5ce9d91ff82904047593c994d821d66/meridian-overflow-wide-runtime.zip",+ "bytes": 68373,+ "sha256": "02b8f0829db865c30e05017259702979f5ce9d91ff82904047593c994d821d66"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/9d678b21a7c175f7e85c5dbb5f186cec0fb66b71c9bedb6ff8eef0bb205c132d/meridian-overflow-wide-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/9d678b21a7c175f7e85c5dbb5f186cec0fb66b71c9bedb6ff8eef0bb205c132d/meridian-overflow-wide-editable.zip",+ "bytes": 321327,+ "sha256": "9d678b21a7c175f7e85c5dbb5f186cec0fb66b71c9bedb6ff8eef0bb205c132d"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A wide weir sheet that falls from a shadowed slot to the pool below, with faint mist at its foot.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide.png",+ "sourceRevisionId": "r_d9957682b89b4c0289370544667ba823",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 80,+ "meshes": 4,+ "materials": 4,+ "bounds": [+ 4.6672093868255615,+ 2.3746653348207474,+ 2.059291183948517+ ],+ "boundsMin": [+ -2.567209482192993,+ -2.5446653366088867,+ -0.4348621964454651+ ],+ "boundsMax": [+ 2.0999999046325684,+ -0.17000000178813934,+ 1.6244289875030518+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-rim-spill",+ "name": "Infinity rim spill",+ "description": "Water spilling over a 23.9 m infinity edge in separate ribbons that narrow as they fall about 100 m into the cloud.",+ "category": "Meridian Sanctuary water",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "rim-spill"+ }+ ],+ "collection": "project",+ "assetId": "a_aeeaca8105cf481c95589666b06d2828",+ "revisionId": "r_f492f2ff386f42e98744b929aa38b228",+ "parentRevision": "r_3a91e637f8ad457487faefa9fbe828a3",+ "sourcePath": "packs/holodeck/sources/project/a_aeeaca8105cf481c95589666b06d2828/r_f492f2ff386f42e98744b929aa38b228/source.kiln.js",+ "sourceSha256": "3a52621b6938554b20934a05e0684dce56ce0755786c8375571a2fb8ed86e7fd",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871/meridian-rim-spill.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871/meridian-rim-spill.glb",+ "bytes": 67584,+ "sha256": "3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/f5d89740bc44fd16d91f0608efa7f412f1a9fd15cd0b855f88609adb9514b63b/meridian-rim-spill-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/f5d89740bc44fd16d91f0608efa7f412f1a9fd15cd0b855f88609adb9514b63b/meridian-rim-spill-runtime.zip",+ "bytes": 55120,+ "sha256": "f5d89740bc44fd16d91f0608efa7f412f1a9fd15cd0b855f88609adb9514b63b"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/cbd2f2206b03c89f9d9025fc9afe7b652421c83d9de85b7c2df070c1da397f88/meridian-rim-spill-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/cbd2f2206b03c89f9d9025fc9afe7b652421c83d9de85b7c2df070c1da397f88/meridian-rim-spill-editable.zip",+ "bytes": 115876,+ "sha256": "cbd2f2206b03c89f9d9025fc9afe7b652421c83d9de85b7c2df070c1da397f88"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill.webp",+ "width": 1024,+ "height": 1024,+ "alt": "Water spilling over a 23.9 m infinity edge in separate ribbons that narrow as they fall about 100 m into the cloud.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill.png",+ "sourceRevisionId": "r_f492f2ff386f42e98744b929aa38b228",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 280,+ "meshes": 3,+ "materials": 3,+ "bounds": [+ 6.80739963054657,+ 103.19359365431592,+ 23.96875762939453+ ],+ "boundsMin": [+ -1.7510017156600952,+ -103.19159698486328,+ -12.018757820129395+ ],+ "boundsMax": [+ 5.056397914886475,+ 0.001996669452637434,+ 11.949999809265137+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-basin-water",+ "name": "Basin water",+ "description": "A turquoise water surface for the basins, with a faint glow that keeps it turquoise in shade.",+ "category": "Meridian Sanctuary water",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "basin-water"+ }+ ],+ "collection": "project",+ "assetId": "a_5ac2d19a9ec245d6a1932992548c3c22",+ "revisionId": "r_302353e26e6545dbb54266b1adcb6876",+ "parentRevision": "r_df12c53e05274f25a318823cfb6080c1",+ "sourcePath": "packs/holodeck/sources/project/a_5ac2d19a9ec245d6a1932992548c3c22/r_302353e26e6545dbb54266b1adcb6876/source.kiln.js",+ "sourceSha256": "18b78f8ced12aae8dda638c58243fd9a49e66ac39b58f058eb0cb6b9af9c1058",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7/meridian-basin-water.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7/meridian-basin-water.glb",+ "bytes": 36812,+ "sha256": "19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/e9061eb2b0f56befd8e5d74fac1a9192b7ed1c3e525f583ab24d1ff25200a623/meridian-basin-water-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/e9061eb2b0f56befd8e5d74fac1a9192b7ed1c3e525f583ab24d1ff25200a623/meridian-basin-water-runtime.zip",+ "bytes": 39954,+ "sha256": "e9061eb2b0f56befd8e5d74fac1a9192b7ed1c3e525f583ab24d1ff25200a623"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/6c34d77b7ded9f0f82abd43a3c7ffda7d71ab5232840865e4768396fd9a63faf/meridian-basin-water-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/6c34d77b7ded9f0f82abd43a3c7ffda7d71ab5232840865e4768396fd9a63faf/meridian-basin-water-editable.zip",+ "bytes": 113157,+ "sha256": "6c34d77b7ded9f0f82abd43a3c7ffda7d71ab5232840865e4768396fd9a63faf"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A turquoise water surface for the basins, with a faint glow that keeps it turquoise in shade.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water.png",+ "sourceRevisionId": "r_302353e26e6545dbb54266b1adcb6876",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 2,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 7.995999813079834,+ 0,+ 15.996000289916992+ ],+ "boundsMin": [+ -3.997999906539917,+ 0,+ -7.998000144958496+ ],+ "boundsMax": [+ 3.997999906539917,+ 0,+ 7.998000144958496+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-planter-sq",+ "name": "Square marble planter",+ "description": "A square marble planter, 1.68 m across and 0.9 m tall.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "planter-sq"+ }+ ],+ "collection": "project",+ "assetId": "a_6278a9dc61e648129614e44414e57717",+ "revisionId": "r_903a72978cfe465186200a1fb3c0efad",+ "parentRevision": "r_2722a2d0f95d48be9296c0be62d19e5c",+ "sourcePath": "packs/holodeck/sources/project/a_6278a9dc61e648129614e44414e57717/r_903a72978cfe465186200a1fb3c0efad/source.kiln.js",+ "sourceSha256": "2a66363c7e190468e5398d5df17bb78ab21ead677f013262faf5c5b3149059c1",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37/meridian-planter-sq.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37/meridian-planter-sq.glb",+ "bytes": 441592,+ "sha256": "a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/e9a9e4a12c7f7afaf263d003d42fc5cf0c530be578c1340a761faa1c5609746c/meridian-planter-sq-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/e9a9e4a12c7f7afaf263d003d42fc5cf0c530be578c1340a761faa1c5609746c/meridian-planter-sq-runtime.zip",+ "bytes": 274275,+ "sha256": "e9a9e4a12c7f7afaf263d003d42fc5cf0c530be578c1340a761faa1c5609746c"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/b5348927738e2466d0a1876fd05f5639b458611691d8f4a1620fe9d3da45eba3/meridian-planter-sq-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/b5348927738e2466d0a1876fd05f5639b458611691d8f4a1620fe9d3da45eba3/meridian-planter-sq-editable.zip",+ "bytes": 428342,+ "sha256": "b5348927738e2466d0a1876fd05f5639b458611691d8f4a1620fe9d3da45eba3"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A square marble planter, 1.68 m across and 0.9 m tall.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq.png",+ "sourceRevisionId": "r_903a72978cfe465186200a1fb3c0efad",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 1520,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.6799999475479126,+ 0.8999999761581421,+ 1.6799999475479126+ ],+ "boundsMin": [+ -0.8399999737739563,+ 0,+ -0.8399999737739563+ ],+ "boundsMax": [+ 0.8399999737739563,+ 0.8999999761581421,+ 0.8399999737739563+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cypress-tall",+ "name": "Tall cypress",+ "description": "A tall Italian cypress built from foliage clumps on a shared cypress atlas.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cypress-tall"+ }+ ],+ "collection": "project",+ "assetId": "a_dfd044d6b13642c5bf52251a76e7c865",+ "revisionId": "r_be51d33b5f0a4afc93ade339d923e4a2",+ "parentRevision": "r_d0b3cc0be0f84670ade5eb7165f35050",+ "sourcePath": "packs/holodeck/sources/project/a_dfd044d6b13642c5bf52251a76e7c865/r_be51d33b5f0a4afc93ade339d923e4a2/source.kiln.js",+ "sourceSha256": "83d1da82bbf8cb71158400be5be5cb8549e647b10387af7eb8fc163091ead19f",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23/meridian-cypress-tall.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23/meridian-cypress-tall.glb",+ "bytes": 550952,+ "sha256": "462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/7bca4f9faa770b03d3eceb73320c3373f972ce630294cb130e219843cd321b91/meridian-cypress-tall-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/7bca4f9faa770b03d3eceb73320c3373f972ce630294cb130e219843cd321b91/meridian-cypress-tall-runtime.zip",+ "bytes": 184068,+ "sha256": "7bca4f9faa770b03d3eceb73320c3373f972ce630294cb130e219843cd321b91"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/2c5540b437f5ba01dde466c4b0d13f613bbfc7a878527ba97eea1c4bb0119a66/meridian-cypress-tall-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/2c5540b437f5ba01dde466c4b0d13f613bbfc7a878527ba97eea1c4bb0119a66/meridian-cypress-tall-editable.zip",+ "bytes": 476085,+ "sha256": "2c5540b437f5ba01dde466c4b0d13f613bbfc7a878527ba97eea1c4bb0119a66"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A tall Italian cypress built from foliage clumps on a shared cypress atlas.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall.png",+ "sourceRevisionId": "r_be51d33b5f0a4afc93ade339d923e4a2",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 7968,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.7215451002120972,+ 10,+ 1.700414001941681+ ],+ "boundsMin": [+ -0.8264937996864319,+ 0,+ -0.8286526799201965+ ],+ "boundsMax": [+ 0.8950513005256653,+ 10,+ 0.8717613220214844+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-shrub-b",+ "name": "Cream-flowered shrub mound",+ "description": "A second shrub mound shape with cream blossoms from the shared shrub atlas.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "shrub-b"+ }+ ],+ "collection": "project",+ "assetId": "a_8e3dc511b0a74bee83928f75486d67b0",+ "revisionId": "r_18f9489150844e0d8d8fe5b526b5b0ad",+ "parentRevision": "r_adc684b454bc45978d01698652c954a5",+ "sourcePath": "packs/holodeck/sources/project/a_8e3dc511b0a74bee83928f75486d67b0/r_18f9489150844e0d8d8fe5b526b5b0ad/source.kiln.js",+ "sourceSha256": "c495fcd1fe3a468725c2a3eee3c8c288a92689b8a12907d085c59620515ec218",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5/meridian-shrub-b.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5/meridian-shrub-b.glb",+ "bytes": 229888,+ "sha256": "54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/88df49c5729bf25a02ee716082213808c62780205d6895cc92e3fb1bcd612c58/meridian-shrub-b-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/88df49c5729bf25a02ee716082213808c62780205d6895cc92e3fb1bcd612c58/meridian-shrub-b-runtime.zip",+ "bytes": 88277,+ "sha256": "88df49c5729bf25a02ee716082213808c62780205d6895cc92e3fb1bcd612c58"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/6cf6a3023f53e5369cb1941e1a99cf9d83e22a1f3b86340dcb5fc7d5e2018c5f/meridian-shrub-b-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/6cf6a3023f53e5369cb1941e1a99cf9d83e22a1f3b86340dcb5fc7d5e2018c5f/meridian-shrub-b-editable.zip",+ "bytes": 637770,+ "sha256": "6cf6a3023f53e5369cb1941e1a99cf9d83e22a1f3b86340dcb5fc7d5e2018c5f"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A second shrub mound shape with cream blossoms from the shared shrub atlas.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b.png",+ "sourceRevisionId": "r_18f9489150844e0d8d8fe5b526b5b0ad",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 2712,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.8403951525688171,+ 0.8457180857658386,+ 1.8373607397079468+ ],+ "boundsMin": [+ -0.8891697525978088,+ -0.06315445899963379,+ -0.8844153881072998+ ],+ "boundsMax": [+ 0.9512253999710083,+ 0.7825636267662048,+ 0.952945351600647+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cypress-mid",+ "name": "Medium cypress",+ "description": "A medium Italian cypress built from foliage clumps on a shared cypress atlas.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cypress-mid"+ }+ ],+ "collection": "project",+ "assetId": "a_39ffb9f601cf46259c43be9a68ce9083",+ "revisionId": "r_44c60f904a8e4598a05f248c438fca73",+ "parentRevision": "r_5a8e63eb212845c89a97c8e9413ac53e",+ "sourcePath": "packs/holodeck/sources/project/a_39ffb9f601cf46259c43be9a68ce9083/r_44c60f904a8e4598a05f248c438fca73/source.kiln.js",+ "sourceSha256": "91e5a975fea6d36a080a451eb3f6d14d69c681c936539c8b39a85e64539cdfb5",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822/meridian-cypress-mid.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822/meridian-cypress-mid.glb",+ "bytes": 403548,+ "sha256": "8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/a857ecd13c7746c482bf8359413bae7f6be7501079ed9308c74f514289d0dd31/meridian-cypress-mid-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/a857ecd13c7746c482bf8359413bae7f6be7501079ed9308c74f514289d0dd31/meridian-cypress-mid-runtime.zip",+ "bytes": 139959,+ "sha256": "a857ecd13c7746c482bf8359413bae7f6be7501079ed9308c74f514289d0dd31"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/3d37d9c5d13c947cfb68a8adc227ad963335e0b30dddb57d30d1a9b6bd6ea1d1/meridian-cypress-mid-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/3d37d9c5d13c947cfb68a8adc227ad963335e0b30dddb57d30d1a9b6bd6ea1d1/meridian-cypress-mid-editable.zip",+ "bytes": 422750,+ "sha256": "3d37d9c5d13c947cfb68a8adc227ad963335e0b30dddb57d30d1a9b6bd6ea1d1"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A medium Italian cypress built from foliage clumps on a shared cypress atlas.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid.png",+ "sourceRevisionId": "r_44c60f904a8e4598a05f248c438fca73",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 5644,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.302977979183197,+ 7.199999809265137,+ 1.3898446559906006+ ],+ "boundsMin": [+ -0.6450049877166748,+ 0,+ -0.675903856754303+ ],+ "boundsMax": [+ 0.6579729914665222,+ 7.199999809265137,+ 0.7139407992362976+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-planter-long",+ "name": "Long marble planter",+ "description": "A long marble planter, 4.08 m long and 0.7 m tall, for terrace edges.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "planter-long"+ }+ ],+ "collection": "project",+ "assetId": "a_0dc7ceda00b941029cf89bef1ea4b433",+ "revisionId": "r_df7f82a951694294b7a6bf91aa6a8111",+ "parentRevision": "r_7dfa935f293c4f1593ef4189f61eaf83",+ "sourcePath": "packs/holodeck/sources/project/a_0dc7ceda00b941029cf89bef1ea4b433/r_df7f82a951694294b7a6bf91aa6a8111/source.kiln.js",+ "sourceSha256": "8ca19b63c277aba7e8f01d3469703700f6bdd18bdd9c3a00ba75865aefde28c6",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a/meridian-planter-long.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a/meridian-planter-long.glb",+ "bytes": 504108,+ "sha256": "a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/131412664460c10541dd0116675917f25ba29a39cb3511d52c44758a371fe471/meridian-planter-long-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/131412664460c10541dd0116675917f25ba29a39cb3511d52c44758a371fe471/meridian-planter-long-runtime.zip",+ "bytes": 288688,+ "sha256": "131412664460c10541dd0116675917f25ba29a39cb3511d52c44758a371fe471"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/dea710cdad8f8418f78a0a2cc47bb8bd1a2249b53597b1245065cbb0da63e4dd/meridian-planter-long-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/dea710cdad8f8418f78a0a2cc47bb8bd1a2249b53597b1245065cbb0da63e4dd/meridian-planter-long-editable.zip",+ "bytes": 412645,+ "sha256": "dea710cdad8f8418f78a0a2cc47bb8bd1a2249b53597b1245065cbb0da63e4dd"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A long marble planter, 4.08 m long and 0.7 m tall, for terrace edges.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long.png",+ "sourceRevisionId": "r_df7f82a951694294b7a6bf91aa6a8111",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 2112,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4.079999923706055,+ 0.699999988079071,+ 1.2799999713897705+ ],+ "boundsMin": [+ -2.0399999618530273,+ 0,+ -0.6399999856948853+ ],+ "boundsMax": [+ 2.0399999618530273,+ 0.699999988079071,+ 0.6399999856948853+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-shrub-a",+ "name": "Flowering shrub mound",+ "description": "A rounded shrub mound with cream blossoms from a shared shrub atlas.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "shrub-a"+ }+ ],+ "collection": "project",+ "assetId": "a_2b0bd24c5c4c475398236722326ade8b",+ "revisionId": "r_d9dcc110da02497283464db09816c4e1",+ "parentRevision": "r_e7b5755b515e461fbe97cd484e02e049",+ "sourcePath": "packs/holodeck/sources/project/a_2b0bd24c5c4c475398236722326ade8b/r_d9dcc110da02497283464db09816c4e1/source.kiln.js",+ "sourceSha256": "8ee787dd1ad0979be1f4788af1f7a3207c3168f3d058efa509dbb693d2025f41",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278/meridian-shrub-a.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278/meridian-shrub-a.glb",+ "bytes": 282532,+ "sha256": "1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/036f7a9c37630a2f1f1f7d11a60229b1a77638dc5926d7a7ee351bdd0582ef34/meridian-shrub-a-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/036f7a9c37630a2f1f1f7d11a60229b1a77638dc5926d7a7ee351bdd0582ef34/meridian-shrub-a-runtime.zip",+ "bytes": 102188,+ "sha256": "036f7a9c37630a2f1f1f7d11a60229b1a77638dc5926d7a7ee351bdd0582ef34"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/fe5bfb1cbe23b5addcc08ffd5c459be9853fcf274d90909f4d923dfacbed6089/meridian-shrub-a-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/fe5bfb1cbe23b5addcc08ffd5c459be9853fcf274d90909f4d923dfacbed6089/meridian-shrub-a-editable.zip",+ "bytes": 819684,+ "sha256": "fe5bfb1cbe23b5addcc08ffd5c459be9853fcf274d90909f4d923dfacbed6089"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A rounded shrub mound with cream blossoms from a shared shrub atlas.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a.png",+ "sourceRevisionId": "r_d9dcc110da02497283464db09816c4e1",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 3464,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 2.195432662963867,+ 1.4630330055952072,+ 2.2874845266342163+ ],+ "boundsMin": [+ -1.089307188987732,+ -0.08443574607372284,+ -1.1396980285644531+ ],+ "boundsMax": [+ 1.1061254739761353,+ 1.3785972595214844,+ 1.1477864980697632+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-ivy-short",+ "name": "Short trailing ivy",+ "description": "Nine trailing ivy strands, 1.2 to 3 m long, of individual leaf cards with a dense dark crown and light tips.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "ivy-short"+ }+ ],+ "collection": "project",+ "assetId": "a_6f29f3fb60e94af3a4f9d1a5c95a9348",+ "revisionId": "r_17b6d0b4330a4e309761103f4c6eaefb",+ "parentRevision": "r_d4ecb2c623624ed3914be69a6415b8fd",+ "sourcePath": "packs/holodeck/sources/project/a_6f29f3fb60e94af3a4f9d1a5c95a9348/r_17b6d0b4330a4e309761103f4c6eaefb/source.kiln.js",+ "sourceSha256": "374a7695cf009874bcd58def766eed35990fd7e6d87287702f686cb6525402f1",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e/meridian-ivy-short.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e/meridian-ivy-short.glb",+ "bytes": 87108,+ "sha256": "15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/f69f3650e3cf26c1e855509778eddbf3d50add0c2d9869e9afb22f3d916ea91f/meridian-ivy-short-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/f69f3650e3cf26c1e855509778eddbf3d50add0c2d9869e9afb22f3d916ea91f/meridian-ivy-short-runtime.zip",+ "bytes": 39607,+ "sha256": "f69f3650e3cf26c1e855509778eddbf3d50add0c2d9869e9afb22f3d916ea91f"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/a7e6ff57347240fdd9bb3c9bb3b6f6afb1538e14ab4be6d544fd23b0eaf9b664/meridian-ivy-short-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/a7e6ff57347240fdd9bb3c9bb3b6f6afb1538e14ab4be6d544fd23b0eaf9b664/meridian-ivy-short-editable.zip",+ "bytes": 254131,+ "sha256": "a7e6ff57347240fdd9bb3c9bb3b6f6afb1538e14ab4be6d544fd23b0eaf9b664"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short.webp",+ "width": 1024,+ "height": 1024,+ "alt": "Nine trailing ivy strands, 1.2 to 3 m long, of individual leaf cards with a dense dark crown and light tips.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short.png",+ "sourceRevisionId": "r_17b6d0b4330a4e309761103f4c6eaefb",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 1040,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 2.4207677841186523,+ 2.871939703822136,+ 0.6687340140342712+ ],+ "boundsMin": [+ -1.2318166494369507,+ -2.643374443054199,+ -0.2735144793987274+ ],+ "boundsMax": [+ 1.1889511346817017,+ 0.2285652607679367,+ 0.3952195346355438+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-ivy-long",+ "name": "Long trailing ivy",+ "description": "Thirteen trailing ivy strands, 3 to 7 m long, each leaf its own five-lobed card hung from its stalk.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "ivy-long"+ }+ ],+ "collection": "project",+ "assetId": "a_6a335a4ab0ed4fa68ca882df46f9bb44",+ "revisionId": "r_b079cae2265a44d4aafe0aa05b93c008",+ "parentRevision": "r_48e3148c11ef48a8a2f0e3568a143ea4",+ "sourcePath": "packs/holodeck/sources/project/a_6a335a4ab0ed4fa68ca882df46f9bb44/r_b079cae2265a44d4aafe0aa05b93c008/source.kiln.js",+ "sourceSha256": "e5aea30b8b65cc51263e81abcb6413d45523721e33e47ce899aa12c4f0ba3134",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898/meridian-ivy-long.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898/meridian-ivy-long.glb",+ "bytes": 213952,+ "sha256": "b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/ea67496d7ab90b34507b6a38290ccd80b8acb04a2558cf1fe5b6259909540dad/meridian-ivy-long-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/ea67496d7ab90b34507b6a38290ccd80b8acb04a2558cf1fe5b6259909540dad/meridian-ivy-long-runtime.zip",+ "bytes": 78758,+ "sha256": "ea67496d7ab90b34507b6a38290ccd80b8acb04a2558cf1fe5b6259909540dad"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/4b91a04736d0f169094809185a61fc431e8e1a628e223c121e17c9a8384869cc/meridian-ivy-long-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/4b91a04736d0f169094809185a61fc431e8e1a628e223c121e17c9a8384869cc/meridian-ivy-long-editable.zip",+ "bytes": 239276,+ "sha256": "4b91a04736d0f169094809185a61fc431e8e1a628e223c121e17c9a8384869cc"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long.webp",+ "width": 1024,+ "height": 1024,+ "alt": "Thirteen trailing ivy strands, 3 to 7 m long, each leaf its own five-lobed card hung from its stalk.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long.png",+ "sourceRevisionId": "r_b079cae2265a44d4aafe0aa05b93c008",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 2852,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 3.7950210571289062,+ 6.8848830461502075,+ 0.7795370817184448+ ],+ "boundsMin": [+ -1.9652339220046997,+ -6.611721038818359,+ -0.27606290578842163+ ],+ "boundsMax": [+ 1.8297871351242065,+ 0.27316200733184814,+ 0.5034741759300232+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-isle-base",+ "name": "Floating isle",+ "description": "A floating isle: a 24 m square marble deck over an inverted ziggurat of coursed travertine with marble bands.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "isle-base"+ }+ ],+ "collection": "project",+ "assetId": "a_35a7b96496dc4c3b8dbb90837234933b",+ "revisionId": "r_44718bb1d05a4aeeab4de5649ec1873b",+ "parentRevision": "r_4d8883c5e9354a42bdf253456cc948dd",+ "sourcePath": "packs/holodeck/sources/project/a_35a7b96496dc4c3b8dbb90837234933b/r_44718bb1d05a4aeeab4de5649ec1873b/source.kiln.js",+ "sourceSha256": "2d1c36bd1732fbdf67d26c43bfe8347f125a5feea7d29d7d891cda0e32c15ea5",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147/meridian-isle-base.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147/meridian-isle-base.glb",+ "bytes": 1159416,+ "sha256": "e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/481ec77e502ec919a592170442eb2d744f37b11d92883909510f4767c785764f/meridian-isle-base-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/481ec77e502ec919a592170442eb2d744f37b11d92883909510f4767c785764f/meridian-isle-base-runtime.zip",+ "bytes": 419067,+ "sha256": "481ec77e502ec919a592170442eb2d744f37b11d92883909510f4767c785764f"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/0cb1dfcfb87e18ca4a68bd54d739ddca9c397229910d1207d9cd34a9dbde81b5/meridian-isle-base-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/0cb1dfcfb87e18ca4a68bd54d739ddca9c397229910d1207d9cd34a9dbde81b5/meridian-isle-base-editable.zip",+ "bytes": 777692,+ "sha256": "0cb1dfcfb87e18ca4a68bd54d739ddca9c397229910d1207d9cd34a9dbde81b5"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A floating isle: a 24 m square marble deck over an inverted ziggurat of coursed travertine with marble bands.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base.png",+ "sourceRevisionId": "r_44718bb1d05a4aeeab4de5649ec1873b",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 8272,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 24,+ 18.399999618530273,+ 24+ ],+ "boundsMin": [+ -12,+ -18.399999618530273,+ -12+ ],+ "boundsMax": [+ 12,+ 0,+ 12+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cube-marble",+ "name": "Honed marble cube",+ "description": "A chamfered 1 m cube of honed white marble with long soft grey veins.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cube-marble"+ }+ ],+ "collection": "project",+ "assetId": "a_faa275ba070e49f388ba9dcec5841ac4",+ "revisionId": "r_fbc6774707564a54923a9d1f9b1c8ca9",+ "parentRevision": "r_1ad0568e8cd24de68d28e8c4a9452eb4",+ "sourcePath": "packs/holodeck/sources/project/a_faa275ba070e49f388ba9dcec5841ac4/r_fbc6774707564a54923a9d1f9b1c8ca9/source.kiln.js",+ "sourceSha256": "7c5a1112490c0ac6a031239f9cfd61869c6f51d8d899941bc8961a28d0b0c81f",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d/meridian-cube-marble.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d/meridian-cube-marble.glb",+ "bytes": 282516,+ "sha256": "ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/8f3ebe52edbae826b00878b2b925dc9359cb344a46a51c931672c6020626a1ea/meridian-cube-marble-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/8f3ebe52edbae826b00878b2b925dc9359cb344a46a51c931672c6020626a1ea/meridian-cube-marble-runtime.zip",+ "bytes": 242854,+ "sha256": "8f3ebe52edbae826b00878b2b925dc9359cb344a46a51c931672c6020626a1ea"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/38780c7d390a915d1224c2666defa48e0c7018dad31c52ea581ff28c105d018b/meridian-cube-marble-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/38780c7d390a915d1224c2666defa48e0c7018dad31c52ea581ff28c105d018b/meridian-cube-marble-editable.zip",+ "bytes": 416162,+ "sha256": "38780c7d390a915d1224c2666defa48e0c7018dad31c52ea581ff28c105d018b"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A chamfered 1 m cube of honed white marble with long soft grey veins.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble.png",+ "sourceRevisionId": "r_fbc6774707564a54923a9d1f9b1c8ca9",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 44,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1,+ 1,+ 1+ ],+ "boundsMin": [+ -0.5,+ -0.5,+ -0.5+ ],+ "boundsMax": [+ 0.5,+ 0.5,+ 0.5+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cube-mirror",+ "name": "Floating mirror cube",+ "description": "A 1 m floating cube with true mirror faces and a pale-gold bevel that catches the sun.",+ "category": "Meridian Sanctuary mirrors and statues",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cube-mirror"+ }+ ],+ "collection": "project",+ "assetId": "a_b2ed39a4ce1a4fd99dd876cc5c703165",+ "revisionId": "r_8f1700e3aaf04919865f86ce1522f5b8",+ "parentRevision": "r_9999e0d94987445181dcf656f540e669",+ "sourcePath": "packs/holodeck/sources/project/a_b2ed39a4ce1a4fd99dd876cc5c703165/r_8f1700e3aaf04919865f86ce1522f5b8/source.kiln.js",+ "sourceSha256": "6dc71b75323e034faa934c6f8a22c50bf3e1fd01c45a118ee43322cac322d6cf",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384/meridian-cube-mirror.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384/meridian-cube-mirror.glb",+ "bytes": 5464,+ "sha256": "8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/f62d1c4c959eeaa274e487987cb2bef44a361ea597ae44c79d4195dc3a2fd86a/meridian-cube-mirror-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/f62d1c4c959eeaa274e487987cb2bef44a361ea597ae44c79d4195dc3a2fd86a/meridian-cube-mirror-runtime.zip",+ "bytes": 6463,+ "sha256": "f62d1c4c959eeaa274e487987cb2bef44a361ea597ae44c79d4195dc3a2fd86a"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/23c73a5720384bb72100e5d64962437410e6a6a457f5bd30d8cc8aca70e66ac5/meridian-cube-mirror-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/23c73a5720384bb72100e5d64962437410e6a6a457f5bd30d8cc8aca70e66ac5/meridian-cube-mirror-editable.zip",+ "bytes": 39910,+ "sha256": "23c73a5720384bb72100e5d64962437410e6a6a457f5bd30d8cc8aca70e66ac5"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 1 m floating cube with true mirror faces and a pale-gold bevel that catches the sun.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror.png",+ "sourceRevisionId": "r_8f1700e3aaf04919865f86ce1522f5b8",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 44,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1,+ 1,+ 1+ ],+ "boundsMin": [+ -0.5,+ -0.5,+ -0.5+ ],+ "boundsMax": [+ 0.5,+ 0.5,+ 0.5+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-monolith",+ "name": "Travertine monolith",+ "description": "A distant coursed travertine shaft, 10 m square and 40 m tall, with marble bands.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "monolith"+ }+ ],+ "collection": "project",+ "assetId": "a_463eeb97e1be466dac2f2a444ba879fb",+ "revisionId": "r_fbf4389a2e4d4239813cd2dbc54e094b",+ "parentRevision": "r_58f039e2370b4066bfc9b2c820ed2e2d",+ "sourcePath": "packs/holodeck/sources/project/a_463eeb97e1be466dac2f2a444ba879fb/r_fbf4389a2e4d4239813cd2dbc54e094b/source.kiln.js",+ "sourceSha256": "c8c8612ec12ad5b6d1176f9899bad774b2a61b48830e7ca48aa8da6ba8b7319e",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561/meridian-monolith.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561/meridian-monolith.glb",+ "bytes": 1313500,+ "sha256": "32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/2ab66baeb1d21fb3741d2ea021c6d5ac21ad0c790ed7d3335674c7faabfd2754/meridian-monolith-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/2ab66baeb1d21fb3741d2ea021c6d5ac21ad0c790ed7d3335674c7faabfd2754/meridian-monolith-runtime.zip",+ "bytes": 446081,+ "sha256": "2ab66baeb1d21fb3741d2ea021c6d5ac21ad0c790ed7d3335674c7faabfd2754"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/af5184957e3758577ff8b977146442de95093c13d41d1842563b0aa5498f822f/meridian-monolith-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/af5184957e3758577ff8b977146442de95093c13d41d1842563b0aa5498f822f/meridian-monolith-editable.zip",+ "bytes": 765992,+ "sha256": "af5184957e3758577ff8b977146442de95093c13d41d1842563b0aa5498f822f"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A distant coursed travertine shaft, 10 m square and 40 m tall, with marble bands.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith.png",+ "sourceRevisionId": "r_fbf4389a2e4d4239813cd2dbc54e094b",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 9914,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 11.199999809265137,+ 40,+ 11.199999809265137+ ],+ "boundsMin": [+ -5.599999904632568,+ 0,+ -5.599999904632568+ ],+ "boundsMax": [+ 5.599999904632568,+ 40,+ 5.599999904632568+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cube-mirror-court",+ "name": "Court mirror cube",+ "description": "The 1 m mirror cube for the court, reflecting the court’s surroundings, with a pale-gold bevel.",+ "category": "Meridian Sanctuary mirrors and statues",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cube-mirror-court"+ }+ ],+ "collection": "project",+ "assetId": "a_a107bf0519104ce9849cc823fca52a20",+ "revisionId": "r_36354c34ee5946cd910255a4a8b3f606",+ "parentRevision": "r_ce273f6eb5e6434ab91aba8a4f8c48a3",+ "sourcePath": "packs/holodeck/sources/project/a_a107bf0519104ce9849cc823fca52a20/r_36354c34ee5946cd910255a4a8b3f606/source.kiln.js",+ "sourceSha256": "a0e97376a24e2c50762181c1a042945706d003b99979f8e841132943b8231cbb",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5/meridian-cube-mirror-court.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5/meridian-cube-mirror-court.glb",+ "bytes": 5476,+ "sha256": "809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/f55f1f6daa5e65d2addfdc62161bfe11af4343b94c2edfe9627508ddec6d83a2/meridian-cube-mirror-court-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/f55f1f6daa5e65d2addfdc62161bfe11af4343b94c2edfe9627508ddec6d83a2/meridian-cube-mirror-court-runtime.zip",+ "bytes": 6493,+ "sha256": "f55f1f6daa5e65d2addfdc62161bfe11af4343b94c2edfe9627508ddec6d83a2"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/e3a76a324d2cd9769040401f6f0dc34a97f61c7e4a04bd22214e5dd08e9b3ade/meridian-cube-mirror-court-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/e3a76a324d2cd9769040401f6f0dc34a97f61c7e4a04bd22214e5dd08e9b3ade/meridian-cube-mirror-court-editable.zip",+ "bytes": 39922,+ "sha256": "e3a76a324d2cd9769040401f6f0dc34a97f61c7e4a04bd22214e5dd08e9b3ade"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court.webp",+ "width": 1024,+ "height": 1024,+ "alt": "The 1 m mirror cube for the court, reflecting the court’s surroundings, with a pale-gold bevel.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court.png",+ "sourceRevisionId": "r_36354c34ee5946cd910255a4a8b3f606",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 44,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1,+ 1,+ 1+ ],+ "boundsMin": [+ -0.5,+ -0.5,+ -0.5+ ],+ "boundsMax": [+ 0.5,+ 0.5,+ 0.5+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-shrub-c",+ "name": "Old-rose shrub mound",+ "description": "An old-rose flowering mound, 1.1 m tall and lighter in leaf.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "shrub-c"+ }+ ],+ "collection": "project",+ "assetId": "a_bdac34882fa14b84be3d33ea14adb9c9",+ "revisionId": "r_080cc7c6bf3a4e55b9348a9bf6136646",+ "sourcePath": "packs/holodeck/sources/project/a_bdac34882fa14b84be3d33ea14adb9c9/r_080cc7c6bf3a4e55b9348a9bf6136646/source.kiln.js",+ "sourceSha256": "d9a73fedacc110f5f929454ca0a12276ee7b206e906f37339065fe3e1bff1406",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59/meridian-shrub-c.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59/meridian-shrub-c.glb",+ "bytes": 252288,+ "sha256": "b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/2dae3f5797b53c04d4b38abfacb90be5c6dc15396febd659683b7acabab9da0f/meridian-shrub-c-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/2dae3f5797b53c04d4b38abfacb90be5c6dc15396febd659683b7acabab9da0f/meridian-shrub-c-runtime.zip",+ "bytes": 94019,+ "sha256": "2dae3f5797b53c04d4b38abfacb90be5c6dc15396febd659683b7acabab9da0f"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/8c10a27ded13238ee913b4378d2a2f53e9e662c99f6fd82ce093238824f2e9f2/meridian-shrub-c-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/8c10a27ded13238ee913b4378d2a2f53e9e662c99f6fd82ce093238824f2e9f2/meridian-shrub-c-editable.zip",+ "bytes": 789804,+ "sha256": "8c10a27ded13238ee913b4378d2a2f53e9e662c99f6fd82ce093238824f2e9f2"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An old-rose flowering mound, 1.1 m tall and lighter in leaf.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c.png",+ "sourceRevisionId": "r_080cc7c6bf3a4e55b9348a9bf6136646",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 3032,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.9601185321807861,+ 1.2100115567445755,+ 1.9750875234603882+ ],+ "boundsMin": [+ -0.9382637739181519,+ -0.08528347313404083,+ -0.9410887956619263+ ],+ "boundsMax": [+ 1.0218547582626343,+ 1.1247280836105347,+ 1.033998727798462+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cypress-broad",+ "name": "Broad young cypress",+ "description": "A young broad cypress cone, 6.2 m tall and widest low.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cypress-broad"+ }+ ],+ "collection": "project",+ "assetId": "a_e7849305e90b44eeab88fb69bc7c5c1e",+ "revisionId": "r_65d968a6e4a34968bfaed1504cf759ba",+ "sourcePath": "packs/holodeck/sources/project/a_e7849305e90b44eeab88fb69bc7c5c1e/r_65d968a6e4a34968bfaed1504cf759ba/source.kiln.js",+ "sourceSha256": "dab8bd8cc17939f56be234363d07c9e79fec544a89d0a1de70386d2f528183bb",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4/meridian-cypress-broad.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4/meridian-cypress-broad.glb",+ "bytes": 378680,+ "sha256": "4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/a66231c81a480f4838d5ca1d6bfde5d7486525a68e2e8d66854c6354d8a694bf/meridian-cypress-broad-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/a66231c81a480f4838d5ca1d6bfde5d7486525a68e2e8d66854c6354d8a694bf/meridian-cypress-broad-runtime.zip",+ "bytes": 131885,+ "sha256": "a66231c81a480f4838d5ca1d6bfde5d7486525a68e2e8d66854c6354d8a694bf"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/e27795cb1d08fc7d7c86bc66f2ed17846268ea9c0ce4b8df842bb8671d932345/meridian-cypress-broad-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/e27795cb1d08fc7d7c86bc66f2ed17846268ea9c0ce4b8df842bb8671d932345/meridian-cypress-broad-editable.zip",+ "bytes": 471034,+ "sha256": "e27795cb1d08fc7d7c86bc66f2ed17846268ea9c0ce4b8df842bb8671d932345"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A young broad cypress cone, 6.2 m tall and widest low.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad.png",+ "sourceRevisionId": "r_65d968a6e4a34968bfaed1504cf759ba",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 5216,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.8793880939483643,+ 6.203531265258789,+ 1.910767376422882+ ],+ "boundsMin": [+ -0.9349740743637085,+ 0,+ -0.9607555270195007+ ],+ "boundsMax": [+ 0.9444140195846558,+ 6.203531265258789,+ 0.9500118494033813+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cypress-slim",+ "name": "Pencil cypress",+ "description": "A slender pencil cypress, 11.5 m tall, bowing slightly toward its top.",+ "category": "Meridian Sanctuary planting",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cypress-slim"+ }+ ],+ "collection": "project",+ "assetId": "a_f2de801b1cbb472b99638a036c22221a",+ "revisionId": "r_4cb4690620ab4a2aa57cf69cd06255e5",+ "sourcePath": "packs/holodeck/sources/project/a_f2de801b1cbb472b99638a036c22221a/r_4cb4690620ab4a2aa57cf69cd06255e5/source.kiln.js",+ "sourceSha256": "df66b9dabaecd49dd2f9e096c63e875c74c187a208ba674d2e641def1483c18c",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8/meridian-cypress-slim.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8/meridian-cypress-slim.glb",+ "bytes": 481452,+ "sha256": "963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/697e6a3736962181a2d9da82f92ca9a357222f8ff4bd580aeef102bcecfc3849/meridian-cypress-slim-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/697e6a3736962181a2d9da82f92ca9a357222f8ff4bd580aeef102bcecfc3849/meridian-cypress-slim-runtime.zip",+ "bytes": 164264,+ "sha256": "697e6a3736962181a2d9da82f92ca9a357222f8ff4bd580aeef102bcecfc3849"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/cea1a78410d2fa28966df227ba729905ad467329f263aa08ed6dc4faf368a29c/meridian-cypress-slim-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/cea1a78410d2fa28966df227ba729905ad467329f263aa08ed6dc4faf368a29c/meridian-cypress-slim-editable.zip",+ "bytes": 415215,+ "sha256": "cea1a78410d2fa28966df227ba729905ad467329f263aa08ed6dc4faf368a29c"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A slender pencil cypress, 11.5 m tall, bowing slightly toward its top.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim.png",+ "sourceRevisionId": "r_4cb4690620ab4a2aa57cf69cd06255e5",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 7072,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1.418668508529663,+ 11.5,+ 1.4016832113265991+ ],+ "boundsMin": [+ -0.6411319375038147,+ 0,+ -0.7029708623886108+ ],+ "boundsMax": [+ 0.7775365710258484,+ 11.5,+ 0.6987123489379883+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-tower-gate",+ "name": "Rim tower",+ "description": "A tall rim tower beside the gateway on a 110 m shaft, with warm-white glowing niches.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "tower-gate"+ }+ ],+ "collection": "project",+ "assetId": "a_4836065137894bf49499b78028fcfdb9",+ "revisionId": "r_dac22ca376b745ceab2346845e4c16a6",+ "parentRevision": "r_aac85f7dcf2943489b9ba1a3dd41dc02",+ "sourcePath": "packs/holodeck/sources/project/a_4836065137894bf49499b78028fcfdb9/r_dac22ca376b745ceab2346845e4c16a6/source.kiln.js",+ "sourceSha256": "e340edc609f33ad912139049fa6f4993de73384feda11ad98d8cd01a08aa2f66",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1/meridian-tower-gate.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1/meridian-tower-gate.glb",+ "bytes": 1618784,+ "sha256": "45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/b0f7d57d488a1dd6c382c9f67a7be2ffaa4de90c3a76c13db92e356cb01dfddf/meridian-tower-gate-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/b0f7d57d488a1dd6c382c9f67a7be2ffaa4de90c3a76c13db92e356cb01dfddf/meridian-tower-gate-runtime.zip",+ "bytes": 515757,+ "sha256": "b0f7d57d488a1dd6c382c9f67a7be2ffaa4de90c3a76c13db92e356cb01dfddf"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/49f8a0d34ea8d7359f7762ef134b837fcc3b246f6e5e1d7168cab97a5e39f8ca/meridian-tower-gate-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/49f8a0d34ea8d7359f7762ef134b837fcc3b246f6e5e1d7168cab97a5e39f8ca/meridian-tower-gate-editable.zip",+ "bytes": 644670,+ "sha256": "49f8a0d34ea8d7359f7762ef134b837fcc3b246f6e5e1d7168cab97a5e39f8ca"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A tall rim tower beside the gateway on a 110 m shaft, with warm-white glowing niches.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate.png",+ "sourceRevisionId": "r_dac22ca376b745ceab2346845e4c16a6",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 12568,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4.599999904632568,+ 148.9000015258789,+ 4.599999904632568+ ],+ "boundsMin": [+ -2.299999952316284,+ -110,+ -2.299999952316284+ ],+ "boundsMax": [+ 2.299999952316284,+ 38.900001525878906,+ 2.299999952316284+ ],+ "clips": [],+ "extensions": [+ "KHR_materials_emissive_strength"+ ]+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-arcade-bay",+ "name": "Arcade bay",+ "description": "One arcade bay in a single mesh: a plain pier carrying its arch.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "arcade-bay"+ }+ ],+ "collection": "project",+ "assetId": "a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6",+ "revisionId": "r_60cc31247cad446a95672bddc01ae520",+ "parentRevision": "r_205d267f0d22467ba12953656d47e268",+ "sourcePath": "packs/holodeck/sources/project/a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6/r_60cc31247cad446a95672bddc01ae520/source.kiln.js",+ "sourceSha256": "19ea35e682ab0761fc4e479b9e0dc85a75a947fe6b97020d8d9e0a59c1ba000f",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1/meridian-arcade-bay.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1/meridian-arcade-bay.glb",+ "bytes": 562192,+ "sha256": "b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/2b769a5d2619a7b636f34d7977f17ccb9c0fce43c1894775324d5310099d066b/meridian-arcade-bay-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/2b769a5d2619a7b636f34d7977f17ccb9c0fce43c1894775324d5310099d066b/meridian-arcade-bay-runtime.zip",+ "bytes": 303187,+ "sha256": "2b769a5d2619a7b636f34d7977f17ccb9c0fce43c1894775324d5310099d066b"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/d0c950ac0fdf58f6f3a898a85a2e819c222494ae133fe8ee26bb1085a44e8a83/meridian-arcade-bay-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/d0c950ac0fdf58f6f3a898a85a2e819c222494ae133fe8ee26bb1085a44e8a83/meridian-arcade-bay-editable.zip",+ "bytes": 468011,+ "sha256": "d0c950ac0fdf58f6f3a898a85a2e819c222494ae133fe8ee26bb1085a44e8a83"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay.webp",+ "width": 1024,+ "height": 1024,+ "alt": "One arcade bay in a single mesh: a plain pier carrying its arch.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay.png",+ "sourceRevisionId": "r_60cc31247cad446a95672bddc01ae520",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 2676,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 5.500000178813934,+ 9.399999618530273,+ 1.7000000476837158+ ],+ "boundsMin": [+ -0.699999988079071,+ 0,+ -0.8500000238418579+ ],+ "boundsMax": [+ 4.800000190734863,+ 9.399999618530273,+ 0.8500000238418579+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-pavilion",+ "name": "Belvedere pavilion",+ "description": "An open belvedere on a coursed shaft out of the cloud sea, with arches on four sides under a stepped roof.",+ "category": "Meridian Sanctuary arcades and towers",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "pavilion"+ }+ ],+ "collection": "project",+ "assetId": "a_fcde0b57fef04d3698a139126d44f416",+ "revisionId": "r_3745cc9353f44c1b8d3102d59c9f9d46",+ "parentRevision": "r_ce8753d65b814006a5104477fc9a6885",+ "sourcePath": "packs/holodeck/sources/project/a_fcde0b57fef04d3698a139126d44f416/r_3745cc9353f44c1b8d3102d59c9f9d46/source.kiln.js",+ "sourceSha256": "d32376c8fca4872936cbbaf631a9e618326aedda77aefbbb44ac9148274cbdbf",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219/meridian-pavilion.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219/meridian-pavilion.glb",+ "bytes": 596736,+ "sha256": "28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/8a1ba6a728774cad0d4487cacfdde2fd0370d01e28bd8aa4cdff3afff7762427/meridian-pavilion-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/8a1ba6a728774cad0d4487cacfdde2fd0370d01e28bd8aa4cdff3afff7762427/meridian-pavilion-runtime.zip",+ "bytes": 311985,+ "sha256": "8a1ba6a728774cad0d4487cacfdde2fd0370d01e28bd8aa4cdff3afff7762427"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/18bf72d8f11b9400bb61e560ac119fd9e9f547583ebdfa52a862132d5b33cca9/meridian-pavilion-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/18bf72d8f11b9400bb61e560ac119fd9e9f547583ebdfa52a862132d5b33cca9/meridian-pavilion-editable.zip",+ "bytes": 473880,+ "sha256": "18bf72d8f11b9400bb61e560ac119fd9e9f547583ebdfa52a862132d5b33cca9"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion.webp",+ "width": 1024,+ "height": 1024,+ "alt": "An open belvedere on a coursed shaft out of the cloud sea, with arches on four sides under a stepped roof.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion.png",+ "sourceRevisionId": "r_3745cc9353f44c1b8d3102d59c9f9d46",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 2996,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 5.199999809265137,+ 67.59999990463257,+ 5.199999809265137+ ],+ "boundsMin": [+ -2.5999999046325684,+ -60,+ -2.5999999046325684+ ],+ "boundsMax": [+ 2.5999999046325684,+ 7.599999904632568,+ 2.5999999046325684+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-balustrade-4",+ "name": "Open balustrade",+ "description": "A 4 m open balustrade of thirteen travertine balusters between a marble plinth and a brass-strip rail.",+ "category": "Meridian Sanctuary stone kit",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "balustrade-4"+ }+ ],+ "collection": "project",+ "assetId": "a_7d9d5e100703402aa907c7e9fe1ccef1",+ "revisionId": "r_eb66bdfce33449e386b9792df125142d",+ "parentRevision": "r_5ab927afed204bfaad958924943d4e4a",+ "sourcePath": "packs/holodeck/sources/project/a_7d9d5e100703402aa907c7e9fe1ccef1/r_eb66bdfce33449e386b9792df125142d/source.kiln.js",+ "sourceSha256": "3fb79179c857f1a7ccf839edd450a0eab922fc094077cc4595f62bcbb3a83221",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8/meridian-balustrade-4.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8/meridian-balustrade-4.glb",+ "bytes": 332796,+ "sha256": "afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/acee99855eb29316963c0214a50caf46a2d1ba08d23cabb42216a5b3a29a67bf/meridian-balustrade-4-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/acee99855eb29316963c0214a50caf46a2d1ba08d23cabb42216a5b3a29a67bf/meridian-balustrade-4-runtime.zip",+ "bytes": 252026,+ "sha256": "acee99855eb29316963c0214a50caf46a2d1ba08d23cabb42216a5b3a29a67bf"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/43f4712ba12c33f8877a961ef0cb323504c438ed07bb07c3818712000dec6109/meridian-balustrade-4-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/43f4712ba12c33f8877a961ef0cb323504c438ed07bb07c3818712000dec6109/meridian-balustrade-4-editable.zip",+ "bytes": 340698,+ "sha256": "43f4712ba12c33f8877a961ef0cb323504c438ed07bb07c3818712000dec6109"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A 4 m open balustrade of thirteen travertine balusters between a marble plinth and a brass-strip rail.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4.png",+ "sourceRevisionId": "r_eb66bdfce33449e386b9792df125142d",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 466,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 4,+ 0.9020000100135803,+ 0.3799999952316284+ ],+ "boundsMin": [+ -2,+ 0,+ -0.1899999976158142+ ],+ "boundsMax": [+ 2,+ 0.9020000100135803,+ 0.1899999976158142+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-cube-mirror-far",+ "name": "Sky mirror cube",+ "description": "The mirror cube for the far cubes and slabs over the cloud sea, which reflect the sky, with a pale-gold bevel.",+ "category": "Meridian Sanctuary mirrors and statues",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "cube-mirror-far"+ }+ ],+ "collection": "project",+ "assetId": "a_b0480b746fa5406c82626f5037e30f5c",+ "revisionId": "r_1b9bef4f0c2d46ae8bdd1261f64b4c71",+ "sourcePath": "packs/holodeck/sources/project/a_b0480b746fa5406c82626f5037e30f5c/r_1b9bef4f0c2d46ae8bdd1261f64b4c71/source.kiln.js",+ "sourceSha256": "e17b2e8d8591d78aa62bad7f690e33878fff5bdb34668bce9747592275ac90b8",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4/meridian-cube-mirror-far.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4/meridian-cube-mirror-far.glb",+ "bytes": 5472,+ "sha256": "3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/c294854b34277073dfe7e6ec2bd20e6cfb88a7301d57d6873f82de60d1ae79cf/meridian-cube-mirror-far-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/c294854b34277073dfe7e6ec2bd20e6cfb88a7301d57d6873f82de60d1ae79cf/meridian-cube-mirror-far-runtime.zip",+ "bytes": 6364,+ "sha256": "c294854b34277073dfe7e6ec2bd20e6cfb88a7301d57d6873f82de60d1ae79cf"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/ce7fe2432d561c8f215b0d1f4ee60c42bdb3f2792da1676e68f98ebca45894b4/meridian-cube-mirror-far-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/ce7fe2432d561c8f215b0d1f4ee60c42bdb3f2792da1676e68f98ebca45894b4/meridian-cube-mirror-far-editable.zip",+ "bytes": 39921,+ "sha256": "ce7fe2432d561c8f215b0d1f4ee60c42bdb3f2792da1676e68f98ebca45894b4"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far.webp",+ "width": 1024,+ "height": 1024,+ "alt": "The mirror cube for the far cubes and slabs over the cloud sea, which reflect the sky, with a pale-gold bevel.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far.png",+ "sourceRevisionId": "r_1b9bef4f0c2d46ae8bdd1261f64b4c71",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 44,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 1,+ 1,+ 1+ ],+ "boundsMin": [+ -0.5,+ -0.5,+ -0.5+ ],+ "boundsMax": [+ 0.5,+ 0.5,+ 0.5+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-statue-figure",+ "name": "Floating robed figure",+ "description": "A robed marble figure lifting a sphere on a 0.9 m plinth, floating as a sky sculpture.",+ "category": "Meridian Sanctuary mirrors and statues",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "statue-figure"+ }+ ],+ "collection": "project",+ "assetId": "a_2fdcbd42ab4740469b82e2c357f96413",+ "revisionId": "r_c3c6c0cd796b43c88dabbb09061e3ef3",+ "sourcePath": "packs/holodeck/sources/project/a_2fdcbd42ab4740469b82e2c357f96413/r_c3c6c0cd796b43c88dabbb09061e3ef3/source.kiln.js",+ "sourceSha256": "ea8d4538720b66e5fc6ce07312bcb53d4dd4c8af8bc2dd9eb96156e89a593a00",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b/meridian-statue-figure.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b/meridian-statue-figure.glb",+ "bytes": 897192,+ "sha256": "bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/20c91925bf1643d40dbb9e0ab9b4f104e7dd1c9b9db19b601edd2f12188d305c/meridian-statue-figure-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/20c91925bf1643d40dbb9e0ab9b4f104e7dd1c9b9db19b601edd2f12188d305c/meridian-statue-figure-runtime.zip",+ "bytes": 595090,+ "sha256": "20c91925bf1643d40dbb9e0ab9b4f104e7dd1c9b9db19b601edd2f12188d305c"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/deea2976438bb8f59b77400c206af5367c9b39d3b67ebab9dd0c40b4e36c22db/meridian-statue-figure-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/deea2976438bb8f59b77400c206af5367c9b39d3b67ebab9dd0c40b4e36c22db/meridian-statue-figure-editable.zip",+ "bytes": 780352,+ "sha256": "deea2976438bb8f59b77400c206af5367c9b39d3b67ebab9dd0c40b4e36c22db"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A robed marble figure lifting a sphere on a 0.9 m plinth, floating as a sky sculpture.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure.png",+ "sourceRevisionId": "r_c3c6c0cd796b43c88dabbb09061e3ef3",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 34224,+ "meshes": 3,+ "materials": 1,+ "bounds": [+ 0.9000000357627869,+ 2.9000000029802324,+ 0.9000000357627869+ ],+ "boundsMin": [+ -0.45000001788139343,+ -3.8968022053675004e-17,+ -0.45000001788139343+ ],+ "boundsMax": [+ 0.45000001788139343,+ 2.9000000029802324,+ 0.45000001788139343+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"+ },+ {+ "slug": "meridian-statue-whale",+ "name": "Floating marble whale",+ "description": "A carved 12 m marble humpback whale, floating as a sky sculpture.",+ "category": "Meridian Sanctuary mirrors and statues",+ "pack": "holodeck-meridian-sanctuary",+ "packs": [+ "holodeck-meridian-sanctuary"+ ],+ "placements": [+ {+ "pack": "holodeck-meridian-sanctuary",+ "id": "statue-whale"+ }+ ],+ "collection": "project",+ "assetId": "a_705819f9bd52422b947684965b45795c",+ "revisionId": "r_94ec333e46d84cc7a9c4e79455b1c572",+ "sourcePath": "packs/holodeck/sources/project/a_705819f9bd52422b947684965b45795c/r_94ec333e46d84cc7a9c4e79455b1c572/source.kiln.js",+ "sourceSha256": "dfa7608671b5069940ab27ddbddc58ca8fdeb49908146e95f3bf818c4d654cf6",+ "runtimeModelDownload": {+ "path": "packs/holodeck/objects/fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94/meridian-statue-whale.glb",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94/meridian-statue-whale.glb",+ "bytes": 794988,+ "sha256": "fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94"+ },+ "runtimeDownload": {+ "path": "packs/holodeck/objects/60d7c3c99bc154876873f5777ae8a07b2185fdc064c39c01b6fe2f1495dc9d8a/meridian-statue-whale-runtime.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/60d7c3c99bc154876873f5777ae8a07b2185fdc064c39c01b6fe2f1495dc9d8a/meridian-statue-whale-runtime.zip",+ "bytes": 527838,+ "sha256": "60d7c3c99bc154876873f5777ae8a07b2185fdc064c39c01b6fe2f1495dc9d8a"+ },+ "editableDownload": {+ "path": "packs/holodeck/objects/e52f2f85b62232a642bdb4b4cbbf823251695e3d3084834a129c15da6497b814/meridian-statue-whale-editable.zip",+ "url": "https://assets.kilnstudio.tools/packs/holodeck/objects/e52f2f85b62232a642bdb4b4cbbf823251695e3d3084834a129c15da6497b814/meridian-statue-whale-editable.zip",+ "bytes": 665496,+ "sha256": "e52f2f85b62232a642bdb4b4cbbf823251695e3d3084834a129c15da6497b814"+ },+ "poster": {+ "src": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale.webp",+ "width": 1024,+ "height": 1024,+ "alt": "A carved 12 m marble humpback whale, floating as a sky sculpture.",+ "srcsetWebp": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-320.webp 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-480.webp 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-672.webp 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-768.webp 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-1024.webp 1024w",+ "srcsetAvif": "/media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-320.avif 320w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-480.avif 480w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-672.avif 672w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-768.avif 768w, /media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale-1024.avif 1024w",+ "inputPath": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale.png",+ "sourceRevisionId": "r_94ec333e46d84cc7a9c4e79455b1c572",+ "exactRevision": true,+ "rig": "review-neutral-v1"+ },+ "metrics": {+ "triangles": 34416,+ "meshes": 1,+ "materials": 1,+ "bounds": [+ 8.534871101379395,+ 3.8152995109558105,+ 12+ ],+ "boundsMin": [+ -4.267435550689697,+ -1.9076497554779053,+ -6+ ],+ "boundsMax": [+ 4.267435550689697,+ 1.9076497554779053,+ 6+ ],+ "clips": [],+ "extensions": []+ },+ "review": {+ "ownerAccepted": true,+ "status": "accepted"+ },+ "historyScope": "selected-only"}]}diff --git a/site/src/data/mirror-manifest.json b/site/src/data/mirror-manifest.jsonindex 88702691..70e13481 100644--- a/site/src/data/mirror-manifest.json+++ b/site/src/data/mirror-manifest.json@@ -5595,6 +5595,926 @@"path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/winter-wmc-fir-sapling-a.png","bytes": 1481338,"sha256": "38aa6add589e62f73e5bbdbb2dbcba8578596b48386cb0c2ee882ef48920de71"+ },+ {+ "path": "packs/holodeck/objects/91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8/meridian-deck-4.glb",+ "bytes": 340740,+ "sha256": "91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8"+ },+ {+ "path": "packs/holodeck/objects/684c0a3617e06b288ec815c395e2a6227cb447a2aea3af232a050f4590e000d3/meridian-deck-4-runtime.zip",+ "bytes": 254543,+ "sha256": "684c0a3617e06b288ec815c395e2a6227cb447a2aea3af232a050f4590e000d3"+ },+ {+ "path": "packs/holodeck/objects/778205caa6b5e5386c358c66d5ceede7b113cc38881da385422254939726845b/meridian-deck-4-editable.zip",+ "bytes": 411821,+ "sha256": "778205caa6b5e5386c358c66d5ceede7b113cc38881da385422254939726845b"+ },+ {+ "path": "packs/holodeck/objects/6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a/meridian-block-8.glb",+ "bytes": 575204,+ "sha256": "6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a"+ },+ {+ "path": "packs/holodeck/objects/a883d81b02419a94a58647ab16957a3da0fd1c52a988c671dabc29f4e8c155d7/meridian-block-8-runtime.zip",+ "bytes": 301059,+ "sha256": "a883d81b02419a94a58647ab16957a3da0fd1c52a988c671dabc29f4e8c155d7"+ },+ {+ "path": "packs/holodeck/objects/77798094bfcbb15418f2f37d355832da46a66ae556a62307185b3da17bd4f2b1/meridian-block-8-editable.zip",+ "bytes": 604662,+ "sha256": "77798094bfcbb15418f2f37d355832da46a66ae556a62307185b3da17bd4f2b1"+ },+ {+ "path": "packs/holodeck/objects/989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688/meridian-step-slab.glb",+ "bytes": 289668,+ "sha256": "989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688"+ },+ {+ "path": "packs/holodeck/objects/71b50ceaa86e60bf7f75445f8b95b89fbc8bfe4e75469050bb5e033b486b683f/meridian-step-slab-runtime.zip",+ "bytes": 244559,+ "sha256": "71b50ceaa86e60bf7f75445f8b95b89fbc8bfe4e75469050bb5e033b486b683f"+ },+ {+ "path": "packs/holodeck/objects/0405a0c94c7644276a3440c7f96d3653d51c9fe657dafe500cc593d57f17a62d/meridian-step-slab-editable.zip",+ "bytes": 329213,+ "sha256": "0405a0c94c7644276a3440c7f96d3653d51c9fe657dafe500cc593d57f17a62d"+ },+ {+ "path": "packs/holodeck/objects/6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2/meridian-deck-6.glb",+ "bytes": 336344,+ "sha256": "6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2"+ },+ {+ "path": "packs/holodeck/objects/909153bf5a5ebb5b51f55fc439fdd9f022ab1aa8d4ca7fa482e7b89889bd7b25/meridian-deck-6-runtime.zip",+ "bytes": 252487,+ "sha256": "909153bf5a5ebb5b51f55fc439fdd9f022ab1aa8d4ca7fa482e7b89889bd7b25"+ },+ {+ "path": "packs/holodeck/objects/d6d6063c50d7aaac3d2469b60daa4a382eee03b0a25d29e7b447324a9984ebe4/meridian-deck-6-editable.zip",+ "bytes": 365392,+ "sha256": "d6d6063c50d7aaac3d2469b60daa4a382eee03b0a25d29e7b447324a9984ebe4"+ },+ {+ "path": "packs/holodeck/objects/ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de/meridian-coping-4.glb",+ "bytes": 299268,+ "sha256": "ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de"+ },+ {+ "path": "packs/holodeck/objects/260f0918d7d947ff7ae80f354d7479ab7cc84839783465f9f89dc2f55e1b9713/meridian-coping-4-runtime.zip",+ "bytes": 246867,+ "sha256": "260f0918d7d947ff7ae80f354d7479ab7cc84839783465f9f89dc2f55e1b9713"+ },+ {+ "path": "packs/holodeck/objects/f0704f31d6bcdeb342794284c72a7d363948f13afad7ea4c8362a18133854fa2/meridian-coping-4-editable.zip",+ "bytes": 329909,+ "sha256": "f0704f31d6bcdeb342794284c72a7d363948f13afad7ea4c8362a18133854fa2"+ },+ {+ "path": "packs/holodeck/objects/40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0/meridian-pool-steps.glb",+ "bytes": 304908,+ "sha256": "40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0"+ },+ {+ "path": "packs/holodeck/objects/c61e821ead767976f2306b15c60f73b5603eebe0a1d98e2d3ea63f6a5375771a/meridian-pool-steps-runtime.zip",+ "bytes": 248031,+ "sha256": "c61e821ead767976f2306b15c60f73b5603eebe0a1d98e2d3ea63f6a5375771a"+ },+ {+ "path": "packs/holodeck/objects/926877c7d4e8a45fc727c30af2f27eb1c17c7ac19a706368ed68e33c1d087620/meridian-pool-steps-editable.zip",+ "bytes": 334115,+ "sha256": "926877c7d4e8a45fc727c30af2f27eb1c17c7ac19a706368ed68e33c1d087620"+ },+ {+ "path": "packs/holodeck/objects/d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4/meridian-stair-8.glb",+ "bytes": 587772,+ "sha256": "d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4"+ },+ {+ "path": "packs/holodeck/objects/c686eb345dc2dce823b2fb2dc3996b4bb69ae794518e817f5cd5fc5dd1a8d2f4/meridian-stair-8-runtime.zip",+ "bytes": 299231,+ "sha256": "c686eb345dc2dce823b2fb2dc3996b4bb69ae794518e817f5cd5fc5dd1a8d2f4"+ },+ {+ "path": "packs/holodeck/objects/863a47f8b8158474ab2071672f165830220bcf22d8b9633a34a6d5199b0958ac/meridian-stair-8-editable.zip",+ "bytes": 509506,+ "sha256": "863a47f8b8158474ab2071672f165830220bcf22d8b9633a34a6d5199b0958ac"+ },+ {+ "path": "packs/holodeck/objects/68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd/meridian-stair-4.glb",+ "bytes": 414396,+ "sha256": "68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd"+ },+ {+ "path": "packs/holodeck/objects/b707a8500c88ee40569404e3971917acedec5a7dee48928eb7d4ff64c077b8ea/meridian-stair-4-runtime.zip",+ "bytes": 269990,+ "sha256": "b707a8500c88ee40569404e3971917acedec5a7dee48928eb7d4ff64c077b8ea"+ },+ {+ "path": "packs/holodeck/objects/91fdfc27a134a25d602452cbbd78c58651c6dca774060927a36113600b370257/meridian-stair-4-editable.zip",+ "bytes": 481350,+ "sha256": "91fdfc27a134a25d602452cbbd78c58651c6dca774060927a36113600b370257"+ },+ {+ "path": "packs/holodeck/objects/feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488/meridian-parapet-4.glb",+ "bytes": 294940,+ "sha256": "feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488"+ },+ {+ "path": "packs/holodeck/objects/47ab198c7494086dfa613b22ff935dd4a0625f9384b2b4c18805c6fa85a89b9c/meridian-parapet-4-runtime.zip",+ "bytes": 245459,+ "sha256": "47ab198c7494086dfa613b22ff935dd4a0625f9384b2b4c18805c6fa85a89b9c"+ },+ {+ "path": "packs/holodeck/objects/65b982b5b2497ef24a608434f9d2ce67bcc6ed625e10722c2b1e93ae636b93b4/meridian-parapet-4-editable.zip",+ "bytes": 346465,+ "sha256": "65b982b5b2497ef24a608434f9d2ce67bcc6ed625e10722c2b1e93ae636b93b4"+ },+ {+ "path": "packs/holodeck/objects/161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481/meridian-foundation-4.glb",+ "bytes": 468972,+ "sha256": "161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481"+ },+ {+ "path": "packs/holodeck/objects/6c5f0e24dac3d50ea64a4b2f0ed4519db542fcffddc4012025d231b65f72d98e/meridian-foundation-4-runtime.zip",+ "bytes": 278331,+ "sha256": "6c5f0e24dac3d50ea64a4b2f0ed4519db542fcffddc4012025d231b65f72d98e"+ },+ {+ "path": "packs/holodeck/objects/88460de5f457dfa7567c055c71a68e379520973f878d0da83c48237bd8bb8cde/meridian-foundation-4-editable.zip",+ "bytes": 339080,+ "sha256": "88460de5f457dfa7567c055c71a68e379520973f878d0da83c48237bd8bb8cde"+ },+ {+ "path": "packs/holodeck/objects/c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602/meridian-arcade-pylon.glb",+ "bytes": 796236,+ "sha256": "c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602"+ },+ {+ "path": "packs/holodeck/objects/aa73cdb4684489fd8399e84731d4e2832024c77c127a786e0756c0b2903dbdc6/meridian-arcade-pylon-runtime.zip",+ "bytes": 345381,+ "sha256": "aa73cdb4684489fd8399e84731d4e2832024c77c127a786e0756c0b2903dbdc6"+ },+ {+ "path": "packs/holodeck/objects/b7a50ffb8ce5c6d912e9a09dd5605719f74a17d25b94a139e5ff045b71f8cb39/meridian-arcade-pylon-editable.zip",+ "bytes": 437496,+ "sha256": "b7a50ffb8ce5c6d912e9a09dd5605719f74a17d25b94a139e5ff045b71f8cb39"+ },+ {+ "path": "packs/holodeck/objects/6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f/meridian-arcade-pier.glb",+ "bytes": 393212,+ "sha256": "6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f"+ },+ {+ "path": "packs/holodeck/objects/6426bb807acdbd0da07f613ea3ae2c11e2aea30d030cc1d60f2a34138cadf834/meridian-arcade-pier-runtime.zip",+ "bytes": 265991,+ "sha256": "6426bb807acdbd0da07f613ea3ae2c11e2aea30d030cc1d60f2a34138cadf834"+ },+ {+ "path": "packs/holodeck/objects/185cde23ffe31629af524f23398176307404488c3eba2abe2cb206a9835da0a5/meridian-arcade-pier-editable.zip",+ "bytes": 438568,+ "sha256": "185cde23ffe31629af524f23398176307404488c3eba2abe2cb206a9835da0a5"+ },+ {+ "path": "packs/holodeck/objects/a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c/meridian-arcade-pier-slot.glb",+ "bytes": 409404,+ "sha256": "a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c"+ },+ {+ "path": "packs/holodeck/objects/8d7ad8f94b505eb0443b56bb0801bb31242e0d9ff99e2f5219870683ea3be64e/meridian-arcade-pier-slot-runtime.zip",+ "bytes": 269965,+ "sha256": "8d7ad8f94b505eb0443b56bb0801bb31242e0d9ff99e2f5219870683ea3be64e"+ },+ {+ "path": "packs/holodeck/objects/ccd7083da345c0ed246ac04713b4278a8ae03e2fb4ec67cae16d28a38cec353f/meridian-arcade-pier-slot-editable.zip",+ "bytes": 454621,+ "sha256": "ccd7083da345c0ed246ac04713b4278a8ae03e2fb4ec67cae16d28a38cec353f"+ },+ {+ "path": "packs/holodeck/objects/d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a/meridian-arcade-arch.glb",+ "bytes": 446728,+ "sha256": "d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a"+ },+ {+ "path": "packs/holodeck/objects/c5145c98f4b15255fcbd9cb959e42bd954b044d2f62770482d927b6b332b53c5/meridian-arcade-arch-runtime.zip",+ "bytes": 279485,+ "sha256": "c5145c98f4b15255fcbd9cb959e42bd954b044d2f62770482d927b6b332b53c5"+ },+ {+ "path": "packs/holodeck/objects/cdf75bb530a79195eb39b9b89b9b181d4351c0c45fcd1fa14a2b3d2f9bb397ab/meridian-arcade-arch-editable.zip",+ "bytes": 479531,+ "sha256": "cdf75bb530a79195eb39b9b89b9b181d4351c0c45fcd1fa14a2b3d2f9bb397ab"+ },+ {+ "path": "packs/holodeck/objects/ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679/meridian-tower-slot.glb",+ "bytes": 1107564,+ "sha256": "ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679"+ },+ {+ "path": "packs/holodeck/objects/38f53977d79ae2044f60b4de09bfccaf6df2810d5fc1beb16d5d811d13c294cd/meridian-tower-slot-runtime.zip",+ "bytes": 411931,+ "sha256": "38f53977d79ae2044f60b4de09bfccaf6df2810d5fc1beb16d5d811d13c294cd"+ },+ {+ "path": "packs/holodeck/objects/3c56e73521675360344d3a6b4bf6b33003dd1aa9ebe9bd27f854a77c5dbda5f9/meridian-tower-slot-editable.zip",+ "bytes": 587231,+ "sha256": "3c56e73521675360344d3a6b4bf6b33003dd1aa9ebe9bd27f854a77c5dbda5f9"+ },+ {+ "path": "packs/holodeck/objects/304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf/meridian-cascade-tower.glb",+ "bytes": 478968,+ "sha256": "304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf"+ },+ {+ "path": "packs/holodeck/objects/393aa0f88e31c9c5af7ba2171143e920838028366ce1f3ee65ea53a9746471ae/meridian-cascade-tower-runtime.zip",+ "bytes": 283494,+ "sha256": "393aa0f88e31c9c5af7ba2171143e920838028366ce1f3ee65ea53a9746471ae"+ },+ {+ "path": "packs/holodeck/objects/f7c414b45fe10f3ad4d7444c7a2638c34ae6a5cf60e9b025d572f082d219795f/meridian-cascade-tower-editable.zip",+ "bytes": 588394,+ "sha256": "f7c414b45fe10f3ad4d7444c7a2638c34ae6a5cf60e9b025d572f082d219795f"+ },+ {+ "path": "packs/holodeck/objects/2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9/meridian-gateway.glb",+ "bytes": 14793000,+ "sha256": "2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9"+ },+ {+ "path": "packs/holodeck/objects/4737b6a71faa12837d1ae8d2d1d4423795e6e01262777f4eb0c433a0caf425e9/meridian-gateway-runtime.zip",+ "bytes": 2887819,+ "sha256": "4737b6a71faa12837d1ae8d2d1d4423795e6e01262777f4eb0c433a0caf425e9"+ },+ {+ "path": "packs/holodeck/objects/0b13ca0741cf855c497ad7f97f84deb31a0d1c2a5e57ef790f613a7e9e945562/meridian-gateway-editable.zip",+ "bytes": 3153139,+ "sha256": "0b13ca0741cf855c497ad7f97f84deb31a0d1c2a5e57ef790f613a7e9e945562"+ },+ {+ "path": "packs/holodeck/objects/84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1/meridian-orb.glb",+ "bytes": 275996,+ "sha256": "84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1"+ },+ {+ "path": "packs/holodeck/objects/d8fae47079e34ecd76e0582422b13f55859e40f6cd3323ebc179db4f2f24037f/meridian-orb-runtime.zip",+ "bytes": 114293,+ "sha256": "d8fae47079e34ecd76e0582422b13f55859e40f6cd3323ebc179db4f2f24037f"+ },+ {+ "path": "packs/holodeck/objects/c9158008a5e3d92b60a8b33feb1912d6521bab5914d9c93258c64db21e2667b7/meridian-orb-editable.zip",+ "bytes": 635877,+ "sha256": "c9158008a5e3d92b60a8b33feb1912d6521bab5914d9c93258c64db21e2667b7"+ },+ {+ "path": "packs/holodeck/objects/df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587/meridian-falls-narrow.glb",+ "bytes": 90012,+ "sha256": "df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587"+ },+ {+ "path": "packs/holodeck/objects/666db175c82a5f53e53eac02bad4176a4dc017e2ed85300637eb22615acfe7d2/meridian-falls-narrow-runtime.zip",+ "bytes": 73584,+ "sha256": "666db175c82a5f53e53eac02bad4176a4dc017e2ed85300637eb22615acfe7d2"+ },+ {+ "path": "packs/holodeck/objects/acbb39ae7601d4468566a664c44393e5f00522e735ec8bc3029109237cc0c4b0/meridian-falls-narrow-editable.zip",+ "bytes": 365361,+ "sha256": "acbb39ae7601d4468566a664c44393e5f00522e735ec8bc3029109237cc0c4b0"+ },+ {+ "path": "packs/holodeck/objects/a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7/meridian-overflow-wide.glb",+ "bytes": 74784,+ "sha256": "a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7"+ },+ {+ "path": "packs/holodeck/objects/02b8f0829db865c30e05017259702979f5ce9d91ff82904047593c994d821d66/meridian-overflow-wide-runtime.zip",+ "bytes": 68373,+ "sha256": "02b8f0829db865c30e05017259702979f5ce9d91ff82904047593c994d821d66"+ },+ {+ "path": "packs/holodeck/objects/9d678b21a7c175f7e85c5dbb5f186cec0fb66b71c9bedb6ff8eef0bb205c132d/meridian-overflow-wide-editable.zip",+ "bytes": 321327,+ "sha256": "9d678b21a7c175f7e85c5dbb5f186cec0fb66b71c9bedb6ff8eef0bb205c132d"+ },+ {+ "path": "packs/holodeck/objects/3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871/meridian-rim-spill.glb",+ "bytes": 67584,+ "sha256": "3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871"+ },+ {+ "path": "packs/holodeck/objects/f5d89740bc44fd16d91f0608efa7f412f1a9fd15cd0b855f88609adb9514b63b/meridian-rim-spill-runtime.zip",+ "bytes": 55120,+ "sha256": "f5d89740bc44fd16d91f0608efa7f412f1a9fd15cd0b855f88609adb9514b63b"+ },+ {+ "path": "packs/holodeck/objects/cbd2f2206b03c89f9d9025fc9afe7b652421c83d9de85b7c2df070c1da397f88/meridian-rim-spill-editable.zip",+ "bytes": 115876,+ "sha256": "cbd2f2206b03c89f9d9025fc9afe7b652421c83d9de85b7c2df070c1da397f88"+ },+ {+ "path": "packs/holodeck/objects/19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7/meridian-basin-water.glb",+ "bytes": 36812,+ "sha256": "19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7"+ },+ {+ "path": "packs/holodeck/objects/e9061eb2b0f56befd8e5d74fac1a9192b7ed1c3e525f583ab24d1ff25200a623/meridian-basin-water-runtime.zip",+ "bytes": 39954,+ "sha256": "e9061eb2b0f56befd8e5d74fac1a9192b7ed1c3e525f583ab24d1ff25200a623"+ },+ {+ "path": "packs/holodeck/objects/6c34d77b7ded9f0f82abd43a3c7ffda7d71ab5232840865e4768396fd9a63faf/meridian-basin-water-editable.zip",+ "bytes": 113157,+ "sha256": "6c34d77b7ded9f0f82abd43a3c7ffda7d71ab5232840865e4768396fd9a63faf"+ },+ {+ "path": "packs/holodeck/objects/a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37/meridian-planter-sq.glb",+ "bytes": 441592,+ "sha256": "a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37"+ },+ {+ "path": "packs/holodeck/objects/e9a9e4a12c7f7afaf263d003d42fc5cf0c530be578c1340a761faa1c5609746c/meridian-planter-sq-runtime.zip",+ "bytes": 274275,+ "sha256": "e9a9e4a12c7f7afaf263d003d42fc5cf0c530be578c1340a761faa1c5609746c"+ },+ {+ "path": "packs/holodeck/objects/b5348927738e2466d0a1876fd05f5639b458611691d8f4a1620fe9d3da45eba3/meridian-planter-sq-editable.zip",+ "bytes": 428342,+ "sha256": "b5348927738e2466d0a1876fd05f5639b458611691d8f4a1620fe9d3da45eba3"+ },+ {+ "path": "packs/holodeck/objects/462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23/meridian-cypress-tall.glb",+ "bytes": 550952,+ "sha256": "462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23"+ },+ {+ "path": "packs/holodeck/objects/7bca4f9faa770b03d3eceb73320c3373f972ce630294cb130e219843cd321b91/meridian-cypress-tall-runtime.zip",+ "bytes": 184068,+ "sha256": "7bca4f9faa770b03d3eceb73320c3373f972ce630294cb130e219843cd321b91"+ },+ {+ "path": "packs/holodeck/objects/2c5540b437f5ba01dde466c4b0d13f613bbfc7a878527ba97eea1c4bb0119a66/meridian-cypress-tall-editable.zip",+ "bytes": 476085,+ "sha256": "2c5540b437f5ba01dde466c4b0d13f613bbfc7a878527ba97eea1c4bb0119a66"+ },+ {+ "path": "packs/holodeck/objects/54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5/meridian-shrub-b.glb",+ "bytes": 229888,+ "sha256": "54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5"+ },+ {+ "path": "packs/holodeck/objects/88df49c5729bf25a02ee716082213808c62780205d6895cc92e3fb1bcd612c58/meridian-shrub-b-runtime.zip",+ "bytes": 88277,+ "sha256": "88df49c5729bf25a02ee716082213808c62780205d6895cc92e3fb1bcd612c58"+ },+ {+ "path": "packs/holodeck/objects/6cf6a3023f53e5369cb1941e1a99cf9d83e22a1f3b86340dcb5fc7d5e2018c5f/meridian-shrub-b-editable.zip",+ "bytes": 637770,+ "sha256": "6cf6a3023f53e5369cb1941e1a99cf9d83e22a1f3b86340dcb5fc7d5e2018c5f"+ },+ {+ "path": "packs/holodeck/objects/8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822/meridian-cypress-mid.glb",+ "bytes": 403548,+ "sha256": "8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822"+ },+ {+ "path": "packs/holodeck/objects/a857ecd13c7746c482bf8359413bae7f6be7501079ed9308c74f514289d0dd31/meridian-cypress-mid-runtime.zip",+ "bytes": 139959,+ "sha256": "a857ecd13c7746c482bf8359413bae7f6be7501079ed9308c74f514289d0dd31"+ },+ {+ "path": "packs/holodeck/objects/3d37d9c5d13c947cfb68a8adc227ad963335e0b30dddb57d30d1a9b6bd6ea1d1/meridian-cypress-mid-editable.zip",+ "bytes": 422750,+ "sha256": "3d37d9c5d13c947cfb68a8adc227ad963335e0b30dddb57d30d1a9b6bd6ea1d1"+ },+ {+ "path": "packs/holodeck/objects/a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a/meridian-planter-long.glb",+ "bytes": 504108,+ "sha256": "a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a"+ },+ {+ "path": "packs/holodeck/objects/131412664460c10541dd0116675917f25ba29a39cb3511d52c44758a371fe471/meridian-planter-long-runtime.zip",+ "bytes": 288688,+ "sha256": "131412664460c10541dd0116675917f25ba29a39cb3511d52c44758a371fe471"+ },+ {+ "path": "packs/holodeck/objects/dea710cdad8f8418f78a0a2cc47bb8bd1a2249b53597b1245065cbb0da63e4dd/meridian-planter-long-editable.zip",+ "bytes": 412645,+ "sha256": "dea710cdad8f8418f78a0a2cc47bb8bd1a2249b53597b1245065cbb0da63e4dd"+ },+ {+ "path": "packs/holodeck/objects/1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278/meridian-shrub-a.glb",+ "bytes": 282532,+ "sha256": "1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278"+ },+ {+ "path": "packs/holodeck/objects/036f7a9c37630a2f1f1f7d11a60229b1a77638dc5926d7a7ee351bdd0582ef34/meridian-shrub-a-runtime.zip",+ "bytes": 102188,+ "sha256": "036f7a9c37630a2f1f1f7d11a60229b1a77638dc5926d7a7ee351bdd0582ef34"+ },+ {+ "path": "packs/holodeck/objects/fe5bfb1cbe23b5addcc08ffd5c459be9853fcf274d90909f4d923dfacbed6089/meridian-shrub-a-editable.zip",+ "bytes": 819684,+ "sha256": "fe5bfb1cbe23b5addcc08ffd5c459be9853fcf274d90909f4d923dfacbed6089"+ },+ {+ "path": "packs/holodeck/objects/15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e/meridian-ivy-short.glb",+ "bytes": 87108,+ "sha256": "15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e"+ },+ {+ "path": "packs/holodeck/objects/f69f3650e3cf26c1e855509778eddbf3d50add0c2d9869e9afb22f3d916ea91f/meridian-ivy-short-runtime.zip",+ "bytes": 39607,+ "sha256": "f69f3650e3cf26c1e855509778eddbf3d50add0c2d9869e9afb22f3d916ea91f"+ },+ {+ "path": "packs/holodeck/objects/a7e6ff57347240fdd9bb3c9bb3b6f6afb1538e14ab4be6d544fd23b0eaf9b664/meridian-ivy-short-editable.zip",+ "bytes": 254131,+ "sha256": "a7e6ff57347240fdd9bb3c9bb3b6f6afb1538e14ab4be6d544fd23b0eaf9b664"+ },+ {+ "path": "packs/holodeck/objects/b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898/meridian-ivy-long.glb",+ "bytes": 213952,+ "sha256": "b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898"+ },+ {+ "path": "packs/holodeck/objects/ea67496d7ab90b34507b6a38290ccd80b8acb04a2558cf1fe5b6259909540dad/meridian-ivy-long-runtime.zip",+ "bytes": 78758,+ "sha256": "ea67496d7ab90b34507b6a38290ccd80b8acb04a2558cf1fe5b6259909540dad"+ },+ {+ "path": "packs/holodeck/objects/4b91a04736d0f169094809185a61fc431e8e1a628e223c121e17c9a8384869cc/meridian-ivy-long-editable.zip",+ "bytes": 239276,+ "sha256": "4b91a04736d0f169094809185a61fc431e8e1a628e223c121e17c9a8384869cc"+ },+ {+ "path": "packs/holodeck/objects/e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147/meridian-isle-base.glb",+ "bytes": 1159416,+ "sha256": "e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147"+ },+ {+ "path": "packs/holodeck/objects/481ec77e502ec919a592170442eb2d744f37b11d92883909510f4767c785764f/meridian-isle-base-runtime.zip",+ "bytes": 419067,+ "sha256": "481ec77e502ec919a592170442eb2d744f37b11d92883909510f4767c785764f"+ },+ {+ "path": "packs/holodeck/objects/0cb1dfcfb87e18ca4a68bd54d739ddca9c397229910d1207d9cd34a9dbde81b5/meridian-isle-base-editable.zip",+ "bytes": 777692,+ "sha256": "0cb1dfcfb87e18ca4a68bd54d739ddca9c397229910d1207d9cd34a9dbde81b5"+ },+ {+ "path": "packs/holodeck/objects/ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d/meridian-cube-marble.glb",+ "bytes": 282516,+ "sha256": "ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d"+ },+ {+ "path": "packs/holodeck/objects/8f3ebe52edbae826b00878b2b925dc9359cb344a46a51c931672c6020626a1ea/meridian-cube-marble-runtime.zip",+ "bytes": 242854,+ "sha256": "8f3ebe52edbae826b00878b2b925dc9359cb344a46a51c931672c6020626a1ea"+ },+ {+ "path": "packs/holodeck/objects/38780c7d390a915d1224c2666defa48e0c7018dad31c52ea581ff28c105d018b/meridian-cube-marble-editable.zip",+ "bytes": 416162,+ "sha256": "38780c7d390a915d1224c2666defa48e0c7018dad31c52ea581ff28c105d018b"+ },+ {+ "path": "packs/holodeck/objects/8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384/meridian-cube-mirror.glb",+ "bytes": 5464,+ "sha256": "8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384"+ },+ {+ "path": "packs/holodeck/objects/f62d1c4c959eeaa274e487987cb2bef44a361ea597ae44c79d4195dc3a2fd86a/meridian-cube-mirror-runtime.zip",+ "bytes": 6463,+ "sha256": "f62d1c4c959eeaa274e487987cb2bef44a361ea597ae44c79d4195dc3a2fd86a"+ },+ {+ "path": "packs/holodeck/objects/23c73a5720384bb72100e5d64962437410e6a6a457f5bd30d8cc8aca70e66ac5/meridian-cube-mirror-editable.zip",+ "bytes": 39910,+ "sha256": "23c73a5720384bb72100e5d64962437410e6a6a457f5bd30d8cc8aca70e66ac5"+ },+ {+ "path": "packs/holodeck/objects/32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561/meridian-monolith.glb",+ "bytes": 1313500,+ "sha256": "32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561"+ },+ {+ "path": "packs/holodeck/objects/2ab66baeb1d21fb3741d2ea021c6d5ac21ad0c790ed7d3335674c7faabfd2754/meridian-monolith-runtime.zip",+ "bytes": 446081,+ "sha256": "2ab66baeb1d21fb3741d2ea021c6d5ac21ad0c790ed7d3335674c7faabfd2754"+ },+ {+ "path": "packs/holodeck/objects/af5184957e3758577ff8b977146442de95093c13d41d1842563b0aa5498f822f/meridian-monolith-editable.zip",+ "bytes": 765992,+ "sha256": "af5184957e3758577ff8b977146442de95093c13d41d1842563b0aa5498f822f"+ },+ {+ "path": "packs/holodeck/objects/809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5/meridian-cube-mirror-court.glb",+ "bytes": 5476,+ "sha256": "809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5"+ },+ {+ "path": "packs/holodeck/objects/f55f1f6daa5e65d2addfdc62161bfe11af4343b94c2edfe9627508ddec6d83a2/meridian-cube-mirror-court-runtime.zip",+ "bytes": 6493,+ "sha256": "f55f1f6daa5e65d2addfdc62161bfe11af4343b94c2edfe9627508ddec6d83a2"+ },+ {+ "path": "packs/holodeck/objects/e3a76a324d2cd9769040401f6f0dc34a97f61c7e4a04bd22214e5dd08e9b3ade/meridian-cube-mirror-court-editable.zip",+ "bytes": 39922,+ "sha256": "e3a76a324d2cd9769040401f6f0dc34a97f61c7e4a04bd22214e5dd08e9b3ade"+ },+ {+ "path": "packs/holodeck/objects/b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59/meridian-shrub-c.glb",+ "bytes": 252288,+ "sha256": "b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59"+ },+ {+ "path": "packs/holodeck/objects/2dae3f5797b53c04d4b38abfacb90be5c6dc15396febd659683b7acabab9da0f/meridian-shrub-c-runtime.zip",+ "bytes": 94019,+ "sha256": "2dae3f5797b53c04d4b38abfacb90be5c6dc15396febd659683b7acabab9da0f"+ },+ {+ "path": "packs/holodeck/objects/8c10a27ded13238ee913b4378d2a2f53e9e662c99f6fd82ce093238824f2e9f2/meridian-shrub-c-editable.zip",+ "bytes": 789804,+ "sha256": "8c10a27ded13238ee913b4378d2a2f53e9e662c99f6fd82ce093238824f2e9f2"+ },+ {+ "path": "packs/holodeck/objects/4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4/meridian-cypress-broad.glb",+ "bytes": 378680,+ "sha256": "4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4"+ },+ {+ "path": "packs/holodeck/objects/a66231c81a480f4838d5ca1d6bfde5d7486525a68e2e8d66854c6354d8a694bf/meridian-cypress-broad-runtime.zip",+ "bytes": 131885,+ "sha256": "a66231c81a480f4838d5ca1d6bfde5d7486525a68e2e8d66854c6354d8a694bf"+ },+ {+ "path": "packs/holodeck/objects/e27795cb1d08fc7d7c86bc66f2ed17846268ea9c0ce4b8df842bb8671d932345/meridian-cypress-broad-editable.zip",+ "bytes": 471034,+ "sha256": "e27795cb1d08fc7d7c86bc66f2ed17846268ea9c0ce4b8df842bb8671d932345"+ },+ {+ "path": "packs/holodeck/objects/963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8/meridian-cypress-slim.glb",+ "bytes": 481452,+ "sha256": "963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8"+ },+ {+ "path": "packs/holodeck/objects/697e6a3736962181a2d9da82f92ca9a357222f8ff4bd580aeef102bcecfc3849/meridian-cypress-slim-runtime.zip",+ "bytes": 164264,+ "sha256": "697e6a3736962181a2d9da82f92ca9a357222f8ff4bd580aeef102bcecfc3849"+ },+ {+ "path": "packs/holodeck/objects/cea1a78410d2fa28966df227ba729905ad467329f263aa08ed6dc4faf368a29c/meridian-cypress-slim-editable.zip",+ "bytes": 415215,+ "sha256": "cea1a78410d2fa28966df227ba729905ad467329f263aa08ed6dc4faf368a29c"+ },+ {+ "path": "packs/holodeck/objects/45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1/meridian-tower-gate.glb",+ "bytes": 1618784,+ "sha256": "45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1"+ },+ {+ "path": "packs/holodeck/objects/b0f7d57d488a1dd6c382c9f67a7be2ffaa4de90c3a76c13db92e356cb01dfddf/meridian-tower-gate-runtime.zip",+ "bytes": 515757,+ "sha256": "b0f7d57d488a1dd6c382c9f67a7be2ffaa4de90c3a76c13db92e356cb01dfddf"+ },+ {+ "path": "packs/holodeck/objects/49f8a0d34ea8d7359f7762ef134b837fcc3b246f6e5e1d7168cab97a5e39f8ca/meridian-tower-gate-editable.zip",+ "bytes": 644670,+ "sha256": "49f8a0d34ea8d7359f7762ef134b837fcc3b246f6e5e1d7168cab97a5e39f8ca"+ },+ {+ "path": "packs/holodeck/objects/b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1/meridian-arcade-bay.glb",+ "bytes": 562192,+ "sha256": "b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1"+ },+ {+ "path": "packs/holodeck/objects/2b769a5d2619a7b636f34d7977f17ccb9c0fce43c1894775324d5310099d066b/meridian-arcade-bay-runtime.zip",+ "bytes": 303187,+ "sha256": "2b769a5d2619a7b636f34d7977f17ccb9c0fce43c1894775324d5310099d066b"+ },+ {+ "path": "packs/holodeck/objects/d0c950ac0fdf58f6f3a898a85a2e819c222494ae133fe8ee26bb1085a44e8a83/meridian-arcade-bay-editable.zip",+ "bytes": 468011,+ "sha256": "d0c950ac0fdf58f6f3a898a85a2e819c222494ae133fe8ee26bb1085a44e8a83"+ },+ {+ "path": "packs/holodeck/objects/28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219/meridian-pavilion.glb",+ "bytes": 596736,+ "sha256": "28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219"+ },+ {+ "path": "packs/holodeck/objects/8a1ba6a728774cad0d4487cacfdde2fd0370d01e28bd8aa4cdff3afff7762427/meridian-pavilion-runtime.zip",+ "bytes": 311985,+ "sha256": "8a1ba6a728774cad0d4487cacfdde2fd0370d01e28bd8aa4cdff3afff7762427"+ },+ {+ "path": "packs/holodeck/objects/18bf72d8f11b9400bb61e560ac119fd9e9f547583ebdfa52a862132d5b33cca9/meridian-pavilion-editable.zip",+ "bytes": 473880,+ "sha256": "18bf72d8f11b9400bb61e560ac119fd9e9f547583ebdfa52a862132d5b33cca9"+ },+ {+ "path": "packs/holodeck/objects/afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8/meridian-balustrade-4.glb",+ "bytes": 332796,+ "sha256": "afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8"+ },+ {+ "path": "packs/holodeck/objects/acee99855eb29316963c0214a50caf46a2d1ba08d23cabb42216a5b3a29a67bf/meridian-balustrade-4-runtime.zip",+ "bytes": 252026,+ "sha256": "acee99855eb29316963c0214a50caf46a2d1ba08d23cabb42216a5b3a29a67bf"+ },+ {+ "path": "packs/holodeck/objects/43f4712ba12c33f8877a961ef0cb323504c438ed07bb07c3818712000dec6109/meridian-balustrade-4-editable.zip",+ "bytes": 340698,+ "sha256": "43f4712ba12c33f8877a961ef0cb323504c438ed07bb07c3818712000dec6109"+ },+ {+ "path": "packs/holodeck/objects/3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4/meridian-cube-mirror-far.glb",+ "bytes": 5472,+ "sha256": "3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4"+ },+ {+ "path": "packs/holodeck/objects/c294854b34277073dfe7e6ec2bd20e6cfb88a7301d57d6873f82de60d1ae79cf/meridian-cube-mirror-far-runtime.zip",+ "bytes": 6364,+ "sha256": "c294854b34277073dfe7e6ec2bd20e6cfb88a7301d57d6873f82de60d1ae79cf"+ },+ {+ "path": "packs/holodeck/objects/ce7fe2432d561c8f215b0d1f4ee60c42bdb3f2792da1676e68f98ebca45894b4/meridian-cube-mirror-far-editable.zip",+ "bytes": 39921,+ "sha256": "ce7fe2432d561c8f215b0d1f4ee60c42bdb3f2792da1676e68f98ebca45894b4"+ },+ {+ "path": "packs/holodeck/objects/bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b/meridian-statue-figure.glb",+ "bytes": 897192,+ "sha256": "bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b"+ },+ {+ "path": "packs/holodeck/objects/20c91925bf1643d40dbb9e0ab9b4f104e7dd1c9b9db19b601edd2f12188d305c/meridian-statue-figure-runtime.zip",+ "bytes": 595090,+ "sha256": "20c91925bf1643d40dbb9e0ab9b4f104e7dd1c9b9db19b601edd2f12188d305c"+ },+ {+ "path": "packs/holodeck/objects/deea2976438bb8f59b77400c206af5367c9b39d3b67ebab9dd0c40b4e36c22db/meridian-statue-figure-editable.zip",+ "bytes": 780352,+ "sha256": "deea2976438bb8f59b77400c206af5367c9b39d3b67ebab9dd0c40b4e36c22db"+ },+ {+ "path": "packs/holodeck/objects/fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94/meridian-statue-whale.glb",+ "bytes": 794988,+ "sha256": "fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94"+ },+ {+ "path": "packs/holodeck/objects/60d7c3c99bc154876873f5777ae8a07b2185fdc064c39c01b6fe2f1495dc9d8a/meridian-statue-whale-runtime.zip",+ "bytes": 527838,+ "sha256": "60d7c3c99bc154876873f5777ae8a07b2185fdc064c39c01b6fe2f1495dc9d8a"+ },+ {+ "path": "packs/holodeck/objects/e52f2f85b62232a642bdb4b4cbbf823251695e3d3084834a129c15da6497b814/meridian-statue-whale-editable.zip",+ "bytes": 665496,+ "sha256": "e52f2f85b62232a642bdb4b4cbbf823251695e3d3084834a129c15da6497b814"+ },+ {+ "path": "packs/holodeck/objects/908a91ab96d8f47d34e4241173203452a94b9df0057843208978096b64582d66/holodeck-meridian-sanctuary-runtime.zip",+ "bytes": 17983217,+ "sha256": "908a91ab96d8f47d34e4241173203452a94b9df0057843208978096b64582d66"+ },+ {+ "path": "packs/holodeck/objects/af246aa25e4b9ea9d807d5bd1f6f80858ebf303b881d3d366edb881c1ca117a7/holodeck-meridian-sanctuary-editable.zip",+ "bytes": 28501735,+ "sha256": "af246aa25e4b9ea9d807d5bd1f6f80858ebf303b881d3d366edb881c1ca117a7"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4.png",+ "bytes": 1598217,+ "sha256": "e47945e41e86da73cf6be3c05366764cd5fb97e4c6560333e2e4de5676a97f4b"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8.png",+ "bytes": 1750303,+ "sha256": "d06e66e58079359376bcba70929f9dd8b9c82779371e600c25858c4adae16b26"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab.png",+ "bytes": 1512271,+ "sha256": "59072cdd7832eafbb596ea813bd0012197269b62979f954ff02aa93413989b0c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6.png",+ "bytes": 1472606,+ "sha256": "1be82f4ac86c2c94e3a7d32f404507c210219193cf68ab650c4e610b8d9c9932"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4.png",+ "bytes": 1645727,+ "sha256": "8a1e2f9692cdad19451b6fb21d30513522d6eba2bf509ac8d9d9d35e96d28ba9"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps.png",+ "bytes": 1591158,+ "sha256": "3706a43a08bd185ccb7f4c76d25d37a5bcbcde6403f0443e2f776630425bfc12"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8.png",+ "bytes": 1723595,+ "sha256": "62d1b84d2a921c074c0ad83423bb8a32273d82dd554c31222ea1df8904651080"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4.png",+ "bytes": 1838168,+ "sha256": "3158507e8765c9143b4faa92b85591d5a66f4caa114c780561c8b76fbc1f690c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4.png",+ "bytes": 1658670,+ "sha256": "2878b5cca17d547da78d3faeed23a4c7729099eac98872b8d33d4f8b3670c89f"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4.png",+ "bytes": 1251748,+ "sha256": "7825ea7fb7ce4e317df8c0a239893a8e1d215b6b85417c6b397f486c7361f5f7"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon.png",+ "bytes": 1226961,+ "sha256": "aa705b724e8186232768348952101b5087b39795e10591afe34609628373946c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier.png",+ "bytes": 1658377,+ "sha256": "aaa77cb4682456de18fda16ef2c3f6f42b4b0686d88a993719447f1d2164b9f3"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot.png",+ "bytes": 1668723,+ "sha256": "1567a4b99d9ace9b0bf207e1b4a90c42f07877598fbb856559b19f19333bbd3b"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch.png",+ "bytes": 1688867,+ "sha256": "3273933075459ea063a67d863a5993b17ea6ba009c91208f9488201475d46b53"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot.png",+ "bytes": 1368978,+ "sha256": "acbec4468a474c70cf06a8df286fca3bdc5d272052f0e18ead769f24eb8e4ee0"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower.png",+ "bytes": 1980557,+ "sha256": "f93fd5fad9fd29b72b8ac73ee0c5d50f66f59688e519df4fed37193883f62fd8"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway.png",+ "bytes": 1634730,+ "sha256": "7ff94334ba98224e3ff44f1f9ea713301a1de8cbbf2a54ccfbc01a059816fa4c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb.png",+ "bytes": 1774073,+ "sha256": "f530e07668d2f2994cd2df69c9df8fe8c937a154630c0e5c03c7fafe215a31d8"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow.png",+ "bytes": 1582271,+ "sha256": "f2462636511ce9093c06e96083f9c507f7215689d8f1e4ded7b4e2261c0e42d9"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide.png",+ "bytes": 1773028,+ "sha256": "44572bb9cd4e2722165e5947cae9cc847856a402f8fe78450a02ac49f184206f"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill.png",+ "bytes": 1267064,+ "sha256": "e2b86393572fa88c6fffd3ac3d448c2cb6d5f219b55948a0fe22c4ddacd0471a"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water.png",+ "bytes": 1388641,+ "sha256": "aca73d57de6186e2a1a5c696a96788d27846c604b9268d7b7b03129dd115e2e3"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq.png",+ "bytes": 1818174,+ "sha256": "5392b4ba4e6bbd13e28e506b6bcdd1c357b145301a833b051a3769f054ac2f1b"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall.png",+ "bytes": 1358640,+ "sha256": "d90c243e809f3a89602256716839711296c401e0e77916b8ab792061b4cdc68d"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b.png",+ "bytes": 1604582,+ "sha256": "57528d511344630924994746f84818da4e988b598b466e64ab780b23f051d616"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid.png",+ "bytes": 1369592,+ "sha256": "d22888b2f677cc9d598253be33e1c359821182c4df3849a32b6e2a52e4746fc1"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long.png",+ "bytes": 1605575,+ "sha256": "c2b9a47a948c267425ef94cb7b672e9f7c9dd86b7f343e6ff7d0bdeb5c3d1bfd"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a.png",+ "bytes": 1684162,+ "sha256": "56d4b37295caced319780aa3d58ab7ea7846340cc526adaea18b60cb227decd4"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short.png",+ "bytes": 1430249,+ "sha256": "aaa6b884b5f213310c10b67bbce79ca07ffe2214a91bd1932bf56f456b53d277"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long.png",+ "bytes": 1370660,+ "sha256": "9dc7343a55676f6adff5cb024df0c9edbf932c3bd856cd562fadb9b30919b129"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base.png",+ "bytes": 1648741,+ "sha256": "25e56f5032cb331401c52cb376493476896b00d0e42c022a39cb413bffeb197f"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble.png",+ "bytes": 1768547,+ "sha256": "ccbef51aa5a9a4466020ecfa916ea08d9dcd231d7421a15a4196664253b56520"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror.png",+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith.png",+ "bytes": 1704818,+ "sha256": "240729454c01dcb44da0425a0db0affb4eaf5d26e747230e0c4d261a0a5e9d7a"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court.png",+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c.png",+ "bytes": 1688993,+ "sha256": "88267c2cc131ff6a77cc0d43651a9545f2383b8ccb1bdbe8e46bd5310193e0b7"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad.png",+ "bytes": 1422256,+ "sha256": "17d890a27eb125894bb50c833604a8dca8ed484adb4bbe3b1d219b4584be5414"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim.png",+ "bytes": 1318524,+ "sha256": "14609b8cb27ce4a9a8cf4b621e785df71bad40ac8631ccd5e2ad756d44d596e9"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate.png",+ "bytes": 1261411,+ "sha256": "834e745251ae70d23d6a511effe7f4ddd6cc9a007567c54d3c1db0002a08a917"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay.png",+ "bytes": 1485623,+ "sha256": "bb9f88bd0ef7694487438d7b5251a40aa5ee1c1aaaafb824e3a90651b44e00ec"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion.png",+ "bytes": 1318394,+ "sha256": "c7112f1568778ca02a49d9a81934ffe7419af5d4086507d02aacee6726096b35"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4.png",+ "bytes": 1598113,+ "sha256": "4042c973618ffb037f78ea294cd37ff09daf75330b8984e2a1369023ebe455ad"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far.png",+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure.png",+ "bytes": 1430682,+ "sha256": "6785f36b7dd1149c1aa37e23242f4b2e28e60ba52068720b745c70adcd8e3fc0"+ },+ {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale.png",+ "bytes": 1355291,+ "sha256": "51dcc2b18fabdca9e4e1ae56b0ff57220dbef8fef8980683b60d5ed716c133b2"+ },+ {+ "path": "media/holodeck/scenes/9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428/meridian-sanctuary-overview.png",+ "bytes": 1784873,+ "sha256": "9e90aab4202763d940e434353ae46c52c2b047bed5e5cbff45807a5b8a2f5428"+ },+ {+ "path": "media/holodeck/scenes/3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0/meridian-sanctuary-arrival.png",+ "bytes": 1974817,+ "sha256": "3e8fe557bd28f440fab434f2fbd8f6800a8e6f35a608805069641a9fe3cc2de0"}]}diff --git a/site/src/data/rig-posters.json b/site/src/data/rig-posters.jsonindex 1652839b..a47de940 100644--- a/site/src/data/rig-posters.json+++ b/site/src/data/rig-posters.json@@ -209,14 +209,14 @@}},"holodeck": {- "renderedOn": "2026-10-25",+ "renderedOn": "2026-10-26","engine": {"commit": "d5e5a4a1217ba9450b01fafe3e5e81747775afe5","subject": "feat(site): show two real scene shots on each Holodeck pack (#271)","dirty": true},"service": {- "url": "http://127.0.0.1:8000",+ "url": "http://127.0.0.1:8417","protocol": "kiln.render-service.v2","rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0","backend": "vulkan",@@ -236,7 +236,7 @@"captureIdentity": ["kiln.capture-producer.v1","sha256:f664529ba31d5c026cc6e629a3d355468dd4cb8e1f7fee0f3e4dd1cced67fc70",- "9abcad4a-0773-4849-b845-be63d5361528",+ "ce63f79d-bf05-4d1f-9566-4e7e6d58c16f","dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0","sha256:b37a3a228e102d2a8165cabc0b0ac8056080355b108e4d8614bd49b9dcd35ee3"]@@ -7956,6 +7956,1176 @@"halfHeight": 3.50573056279838},"rendererId": "dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1742"+ },+ "holodeck:meridian-deck-4": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-4.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1598217,+ "sha256": "e47945e41e86da73cf6be3c05366764cd5fb97e4c6560333e2e4de5676a97f4b",+ "assetId": "a_9ecaccacab1641468887b8759dd9970f",+ "revisionId": "r_5711672892fd428891bab109fb5f2c78",+ "glb": {+ "member": "packs/holodeck/objects/91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8/meridian-deck-4.glb",+ "bytes": 340740,+ "sha256": "91c44e88bc69e020b0e074f37ca61880ed918bebc9c618823dbb2d4d6f3567d8",+ "triangles": 592+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 3.2998316455372216+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-block-8": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-block-8.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1750303,+ "sha256": "d06e66e58079359376bcba70929f9dd8b9c82779371e600c25858c4adae16b26",+ "assetId": "a_bc0c70b042c5495c9b6d4e75138f5d79",+ "revisionId": "r_90b595799305471aa23d5c522b098917",+ "glb": {+ "member": "packs/holodeck/objects/6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a/meridian-block-8.glb",+ "bytes": 575204,+ "sha256": "6e342b020a14da8007e26d1ef713563b43917c98ea7ae3a880810e486119fe6a",+ "triangles": 2864+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 6.599663291074443+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-step-slab": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-step-slab.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1512271,+ "sha256": "59072cdd7832eafbb596ea813bd0012197269b62979f954ff02aa93413989b0c",+ "assetId": "a_6f89067c2b77485a93b7b5d039a6c22f",+ "revisionId": "r_ed119ee06e04495787eb74e6fa1b3588",+ "glb": {+ "member": "packs/holodeck/objects/989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688/meridian-step-slab.glb",+ "bytes": 289668,+ "sha256": "989db8693856772a4e86b729ef558ac59181dbf471cd9071221424af919e6688",+ "triangles": 102+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 3.5885669341902573+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-deck-6": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-deck-6.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1472606,+ "sha256": "1be82f4ac86c2c94e3a7d32f404507c210219193cf68ab650c4e610b8d9c9932",+ "assetId": "a_3b195f8b7a224b12972c0b41c1fed890",+ "revisionId": "r_cfc1654b7c0147418c5980fc0155b73f",+ "glb": {+ "member": "packs/holodeck/objects/6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2/meridian-deck-6.glb",+ "bytes": 336344,+ "sha256": "6f349ec4578bf4a1ca5149b8c7c9f3168fe81d0f8dbe529f1240b690e8c042b2",+ "triangles": 560+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 4.1247895569215265+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-coping-4": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-coping-4.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1645727,+ "sha256": "8a1e2f9692cdad19451b6fb21d30513522d6eba2bf509ac8d9d9d35e96d28ba9",+ "assetId": "a_a28ecbc7dc134d758deefea5105e7845",+ "revisionId": "r_32c14b58648b4b66b9f916ddd8d796ba",+ "glb": {+ "member": "packs/holodeck/objects/ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de/meridian-coping-4.glb",+ "bytes": 299268,+ "sha256": "ec420968f118cb6edb9c789498f543af4339c3227d39aec4f944ffb8699c55de",+ "triangles": 196+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.8314065622897313+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-pool-steps": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pool-steps.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1591158,+ "sha256": "3706a43a08bd185ccb7f4c76d25d37a5bcbcde6403f0443e2f776630425bfc12",+ "assetId": "a_03c9987e328b4854b3f1e40c37142c8b",+ "revisionId": "r_70d3b4de07f64f518c0a77e49779e0ef",+ "glb": {+ "member": "packs/holodeck/objects/40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0/meridian-pool-steps.glb",+ "bytes": 304908,+ "sha256": "40e185c15c710c89291cc465ec15ba8b3bb92a5996d69fb22f4fce71295cfae0",+ "triangles": 240+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.9798989676538037+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-stair-8": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-8.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1723595,+ "sha256": "62d1b84d2a921c074c0ad83423bb8a32273d82dd554c31222ea1df8904651080",+ "assetId": "a_86ccbcae4fcb41e9ad7aeefeea8d2a31",+ "revisionId": "r_e2c7668c4b704b608fa1faa7e4c9d42f",+ "glb": {+ "member": "packs/holodeck/objects/d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4/meridian-stair-8.glb",+ "bytes": 587772,+ "sha256": "d193e679bd1e0faf884ef79848745b3a8ef8d48871a7daf4397f59e70641c5c4",+ "triangles": 2876+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 6.602138164830109+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-stair-4": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-stair-4.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1838168,+ "sha256": "3158507e8765c9143b4faa92b85591d5a66f4caa114c780561c8b76fbc1f690c",+ "assetId": "a_3b7a0ed03c61411196d644a78696dd04",+ "revisionId": "r_6a0f08a3449a4786b7e0c8d085fa247d",+ "glb": {+ "member": "packs/holodeck/objects/68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd/meridian-stair-4.glb",+ "bytes": 414396,+ "sha256": "68b4df50f5631f98f2ea18eddf240fe1766ba2fe4d81291f273944a26a7511fd",+ "triangles": 1244+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 4.952222342061498+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-parapet-4": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-parapet-4.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1658670,+ "sha256": "2878b5cca17d547da78d3faeed23a4c7729099eac98872b8d33d4f8b3670c89f",+ "assetId": "a_68b548474473491e9a1e2dce7632b2ba",+ "revisionId": "r_e28232a177ef4fb0be41c5bbf7236674",+ "glb": {+ "member": "packs/holodeck/objects/feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488/meridian-parapet-4.glb",+ "bytes": 294940,+ "sha256": "feccda5aac067c1bd3aae7fb80d9413b3904ef3266cd8729adfe88db01b03488",+ "triangles": 146+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.8314065622897313+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-foundation-4": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-foundation-4.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1251748,+ "sha256": "7825ea7fb7ce4e317df8c0a239893a8e1d215b6b85417c6b397f486c7361f5f7",+ "assetId": "a_496240d2b2f041c69b5d593df83b3bd5",+ "revisionId": "r_ccec44961e6449a7ab752499408139b6",+ "glb": {+ "member": "packs/holodeck/objects/161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481/meridian-foundation-4.glb",+ "bytes": 468972,+ "sha256": "161d25087ac428e0e8fb1918dd580ceae70944fc6b8e5ac6bb8f1c0527c71481",+ "triangles": 1790+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 58.2426327472032+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-arcade-pylon": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pylon.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1226961,+ "sha256": "aa705b724e8186232768348952101b5087b39795e10591afe34609628373946c",+ "assetId": "a_5e2481268eb342aab284430556143e9a",+ "revisionId": "r_269d44f66ec944079983349b9dc2cb5a",+ "glb": {+ "member": "packs/holodeck/objects/c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602/meridian-arcade-pylon.glb",+ "bytes": 796236,+ "sha256": "c481459806153efda700bc57d9cbf659dc638fd92547f334f300f0c0b6d97602",+ "triangles": 4722+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 64.654529432404+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-arcade-pier": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1658377,+ "sha256": "aaa77cb4682456de18fda16ef2c3f6f42b4b0686d88a993719447f1d2164b9f3",+ "assetId": "a_1872b09689154cb2825cbe6cd3e77af4",+ "revisionId": "r_e09059fd12874fbea948389061ee8736",+ "glb": {+ "member": "packs/holodeck/objects/6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f/meridian-arcade-pier.glb",+ "bytes": 393212,+ "sha256": "6de9585966f35013cee56b3de9c936322892a0d95f07f17fc2dce92b6680b88f",+ "triangles": 1072+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 3.2282633156301577+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-arcade-pier-slot": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-pier-slot.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1668723,+ "sha256": "1567a4b99d9ace9b0bf207e1b4a90c42f07877598fbb856559b19f19333bbd3b",+ "assetId": "a_5aa55f2016c84a98a47300864c642739",+ "revisionId": "r_23415f3bcad34dbea52c9b930878be28",+ "glb": {+ "member": "packs/holodeck/objects/a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c/meridian-arcade-pier-slot.glb",+ "bytes": 409404,+ "sha256": "a38f32e2e67c8cc0abf88939f236da370d5c7181634075713afa6165cfbaa36c",+ "triangles": 1174+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 3.2282633156301577+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-arcade-arch": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-arch.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1688867,+ "sha256": "3273933075459ea063a67d863a5993b17ea6ba009c91208f9488201475d46b53",+ "assetId": "a_71cef64b7f8143478db7afd63d553974",+ "revisionId": "r_e9e14002aa444492805007f0bf30dfee",+ "glb": {+ "member": "packs/holodeck/objects/d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a/meridian-arcade-arch.glb",+ "bytes": 446728,+ "sha256": "d547e61ae92a3e8d57be1e1465ab3290750c5804594592345775740b9b49f57a",+ "triangles": 1604+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 3.395627256012831+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-tower-slot": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-slot.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1368978,+ "sha256": "acbec4468a474c70cf06a8df286fca3bdc5d272052f0e18ead769f24eb8e4ee0",+ "assetId": "a_3b903db052c3431a9540e5f54a9b5ee5",+ "revisionId": "r_c4851c428d0e4931a2983eea9d6e1d8d",+ "glb": {+ "member": "packs/holodeck/objects/ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679/meridian-tower-slot.glb",+ "bytes": 1107564,+ "sha256": "ba43779293fcc631283fb1bce03a5061fee4249dd682d222d826b0bcfd548679",+ "triangles": 7752+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 30.869339155347596+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cascade-tower": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cascade-tower.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1980557,+ "sha256": "f93fd5fad9fd29b72b8ac73ee0c5d50f66f59688e519df4fed37193883f62fd8",+ "assetId": "a_e6f9b6d59c9e48e88b6c266fe8df0f01",+ "revisionId": "r_90ab6b974ebb41c4a72e5062a24334fb",+ "glb": {+ "member": "packs/holodeck/objects/304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf/meridian-cascade-tower.glb",+ "bytes": 478968,+ "sha256": "304b3731cdeab654c3f5827a36406ffdfacb966331336842b8365b8a73faafaf",+ "triangles": 1830+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 4.875867909604976+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-gateway": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-gateway.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1634730,+ "sha256": "7ff94334ba98224e3ff44f1f9ea713301a1de8cbbf2a54ccfbc01a059816fa4c",+ "assetId": "a_3d189b692e934646bccc63f3088eafd1",+ "revisionId": "r_c33d46440935478180576e38ffa20662",+ "glb": {+ "member": "packs/holodeck/objects/2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9/meridian-gateway.glb",+ "bytes": 14793000,+ "sha256": "2d309596a95f989bcf575058e227f6e2ca916df77a0f3996fd78a326f5e76af9",+ "triangles": 132164+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 61.53040256299529+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-orb": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-orb.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1774073,+ "sha256": "f530e07668d2f2994cd2df69c9df8fe8c937a154630c0e5c03c7fafe215a31d8",+ "assetId": "a_6eb69a9b81ea429880d3f1e5b308955a",+ "revisionId": "r_14709d822a9a444ba5b3e6a6db89d0ca",+ "glb": {+ "member": "packs/holodeck/objects/84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1/meridian-orb.glb",+ "bytes": 275996,+ "sha256": "84b5d03c3fff19ceb2dbf98761d86d34d47cba855c95b1f092ebf8102499c1c1",+ "triangles": 12096+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 4.016733292299031+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-falls-narrow": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-falls-narrow.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1582271,+ "sha256": "f2462636511ce9093c06e96083f9c507f7215689d8f1e4ded7b4e2261c0e42d9",+ "assetId": "a_8a9a9d21b715495e8da9ea86f9926b3f",+ "revisionId": "r_792166fb225343fbb5ea84c29d051c19",+ "glb": {+ "member": "packs/holodeck/objects/df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587/meridian-falls-narrow.glb",+ "bytes": 90012,+ "sha256": "df51f8102d52234564054cb0b85d135f093ed1c3dff017ccd535003790d76587",+ "triangles": 230+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 2.750217981379346+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-overflow-wide": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-overflow-wide.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1773028,+ "sha256": "44572bb9cd4e2722165e5947cae9cc847856a402f8fe78450a02ac49f184206f",+ "assetId": "a_9f4e630b3c014b5a85b80b271b6a533c",+ "revisionId": "r_d9957682b89b4c0289370544667ba823",+ "glb": {+ "member": "packs/holodeck/objects/a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7/meridian-overflow-wide.glb",+ "bytes": 74784,+ "sha256": "a406e838bf92d63623e06802dbf1ac1c6ad4bf29026fc5e028f2e187d51175b7",+ "triangles": 80+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 2.7745399308955605+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-rim-spill": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-rim-spill.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1267064,+ "sha256": "e2b86393572fa88c6fffd3ac3d448c2cb6d5f219b55948a0fe22c4ddacd0471a",+ "assetId": "a_aeeaca8105cf481c95589666b06d2828",+ "revisionId": "r_f492f2ff386f42e98744b929aa38b228",+ "glb": {+ "member": "packs/holodeck/objects/3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871/meridian-rim-spill.glb",+ "bytes": 67584,+ "sha256": "3943c9a8ced022e318cac1b9275fd1c623ba5d49fba62585b7f6de18ebd00871",+ "triangles": 280+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 59.454760017971694+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-basin-water": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-basin-water.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1388641,+ "sha256": "aca73d57de6186e2a1a5c696a96788d27846c604b9268d7b7b03129dd115e2e3",+ "assetId": "a_5ac2d19a9ec245d6a1932992548c3c22",+ "revisionId": "r_302353e26e6545dbb54266b1adcb6876",+ "glb": {+ "member": "packs/holodeck/objects/19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7/meridian-basin-water.glb",+ "bytes": 36812,+ "sha256": "19a83224366aad1bb97363120e4de7ed0f0e079938d4e157d8fef24c926265e7",+ "triangles": 2+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 9.896195147450152+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-planter-sq": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-sq.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1818174,+ "sha256": "5392b4ba4e6bbd13e28e506b6bcdd1c357b145301a833b051a3769f054ac2f1b",+ "assetId": "a_6278a9dc61e648129614e44414e57717",+ "revisionId": "r_903a72978cfe465186200a1fb3c0efad",+ "glb": {+ "member": "packs/holodeck/objects/a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37/meridian-planter-sq.glb",+ "bytes": 441592,+ "sha256": "a01d1fc8922afe03c71bb575dc6301e44b231dda8d8eac7a21b7c75c1e404e37",+ "triangles": 1520+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.3859292478548686+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cypress-tall": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-tall.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1358640,+ "sha256": "d90c243e809f3a89602256716839711296c401e0e77916b8ab792061b4cdc68d",+ "assetId": "a_dfd044d6b13642c5bf52251a76e7c865",+ "revisionId": "r_be51d33b5f0a4afc93ade339d923e4a2",+ "glb": {+ "member": "packs/holodeck/objects/462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23/meridian-cypress-tall.glb",+ "bytes": 550952,+ "sha256": "462a4ea82ac934eb7bbcf33c1cc31e9a1717de833144c6d8cd06a4ee9b57ad23",+ "triangles": 7968+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 5.843223575688872+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-shrub-b": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-b.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1604582,+ "sha256": "57528d511344630924994746f84818da4e988b598b466e64ab780b23f051d616",+ "assetId": "a_8e3dc511b0a74bee83928f75486d67b0",+ "revisionId": "r_18f9489150844e0d8d8fe5b526b5b0ad",+ "glb": {+ "member": "packs/holodeck/objects/54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5/meridian-shrub-b.glb",+ "bytes": 229888,+ "sha256": "54e96787c3d1133433e7ae5cc9a12cdcd4ad34d84bb53c0449c871ec1a380da5",+ "triangles": 2712+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.5169969097369809+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cypress-mid": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-mid.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1369592,+ "sha256": "d22888b2f677cc9d598253be33e1c359821182c4df3849a32b6e2a52e4746fc1",+ "assetId": "a_39ffb9f601cf46259c43be9a68ce9083",+ "revisionId": "r_44c60f904a8e4598a05f248c438fca73",+ "glb": {+ "member": "packs/holodeck/objects/8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822/meridian-cypress-mid.glb",+ "bytes": 403548,+ "sha256": "8153b67b9965734f25667c2df9cdead19c7390bf04e3088f2c91600ed78e8822",+ "triangles": 5644+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 4.249707933173169+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-planter-long": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-planter-long.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1605575,+ "sha256": "c2b9a47a948c267425ef94cb7b672e9f7c9dd86b7f343e6ff7d0bdeb5c3d1bfd",+ "assetId": "a_0dc7ceda00b941029cf89bef1ea4b433",+ "revisionId": "r_df7f82a951694294b7a6bf91aa6a8111",+ "glb": {+ "member": "packs/holodeck/objects/a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a/meridian-planter-long.glb",+ "bytes": 504108,+ "sha256": "a86101646241c0b008222f2395f38769e9b31f12bab7c6dcc18ddfa1b82b625a",+ "triangles": 2112+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 2.210887159239174+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-shrub-a": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-a.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1684162,+ "sha256": "56d4b37295caced319780aa3d58ab7ea7846340cc526adaea18b60cb227decd4",+ "assetId": "a_2b0bd24c5c4c475398236722326ade8b",+ "revisionId": "r_d9dcc110da02497283464db09816c4e1",+ "glb": {+ "member": "packs/holodeck/objects/1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278/meridian-shrub-a.glb",+ "bytes": 282532,+ "sha256": "1a77863ae87f935397455a9074b1ca4df3936f5480a9bdfb7625914c29392278",+ "triangles": 3464+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.8491090008198177+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-ivy-short": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-short.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1430249,+ "sha256": "aaa6b884b5f213310c10b67bbce79ca07ffe2214a91bd1932bf56f456b53d277",+ "assetId": "a_6f29f3fb60e94af3a4f9d1a5c95a9348",+ "revisionId": "r_17b6d0b4330a4e309761103f4c6eaefb",+ "glb": {+ "member": "packs/holodeck/objects/15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e/meridian-ivy-short.glb",+ "bytes": 87108,+ "sha256": "15a61ad6dc5148374985817d78e9bfca0485fad35b53c997d46b18abd286f30e",+ "triangles": 1040+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 2.069906899553166+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-ivy-long": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-ivy-long.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1370660,+ "sha256": "9dc7343a55676f6adff5cb024df0c9edbf932c3bd856cd562fadb9b30919b129",+ "assetId": "a_6a335a4ab0ed4fa68ca882df46f9bb44",+ "revisionId": "r_b079cae2265a44d4aafe0aa05b93c008",+ "glb": {+ "member": "packs/holodeck/objects/b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898/meridian-ivy-long.glb",+ "bytes": 213952,+ "sha256": "b59dab8dd2ca27951d36c80ab02ebced0a14a4ee5938650450647c18350ac898",+ "triangles": 2852+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 4.435557825001131+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-isle-base": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-isle-base.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1648741,+ "sha256": "25e56f5032cb331401c52cb376493476896b00d0e42c022a39cb413bffeb197f",+ "assetId": "a_35a7b96496dc4c3b8dbb90837234933b",+ "revisionId": "r_44718bb1d05a4aeeab4de5649ec1873b",+ "glb": {+ "member": "packs/holodeck/objects/e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147/meridian-isle-base.glb",+ "bytes": 1159416,+ "sha256": "e5fbd111337502119e5a94795eea1e3cb9196432b6327122507489fdbb690147",+ "triangles": 8272+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 19.79898987322333+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cube-marble": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-marble.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1768547,+ "sha256": "ccbef51aa5a9a4466020ecfa916ea08d9dcd231d7421a15a4196664253b56520",+ "assetId": "a_faa275ba070e49f388ba9dcec5841ac4",+ "revisionId": "r_fbc6774707564a54923a9d1f9b1c8ca9",+ "glb": {+ "member": "packs/holodeck/objects/ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d/meridian-cube-marble.glb",+ "bytes": 282516,+ "sha256": "ab6703d83c9414bd408781c00271dc2bfb6b497c2d21d693f80389417005c96d",+ "triangles": 44+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 0.8926073982886735+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cube-mirror": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c",+ "assetId": "a_b2ed39a4ce1a4fd99dd876cc5c703165",+ "revisionId": "r_8f1700e3aaf04919865f86ce1522f5b8",+ "glb": {+ "member": "packs/holodeck/objects/8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384/meridian-cube-mirror.glb",+ "bytes": 5464,+ "sha256": "8f3701dba30ae503f5a097c7debfceafcef5e11871b9feb7fd14a1ee34016384",+ "triangles": 44+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 0.8926073982886735+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-monolith": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-monolith.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1704818,+ "sha256": "240729454c01dcb44da0425a0db0affb4eaf5d26e747230e0c4d261a0a5e9d7a",+ "assetId": "a_463eeb97e1be466dac2f2a444ba879fb",+ "revisionId": "r_fbf4389a2e4d4239813cd2dbc54e094b",+ "glb": {+ "member": "packs/holodeck/objects/32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561/meridian-monolith.glb",+ "bytes": 1313500,+ "sha256": "32b343ff96ed753c27c58f3d4608f4ac4005cde498f376bb4cc708fec35d9561",+ "triangles": 9914+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 24.9930070811448+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cube-mirror-court": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-court.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c",+ "assetId": "a_a107bf0519104ce9849cc823fca52a20",+ "revisionId": "r_36354c34ee5946cd910255a4a8b3f606",+ "glb": {+ "member": "packs/holodeck/objects/809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5/meridian-cube-mirror-court.glb",+ "bytes": 5476,+ "sha256": "809a80f6d81c41134924bfdb8669b8269c61ee9dedc0e8aa478a74401b70fbf5",+ "triangles": 44+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 0.8926073982886735+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-shrub-c": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-shrub-c.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1688993,+ "sha256": "88267c2cc131ff6a77cc0d43651a9545f2383b8ccb1bdbe8e46bd5310193e0b7",+ "assetId": "a_bdac34882fa14b84be3d33ea14adb9c9",+ "revisionId": "r_080cc7c6bf3a4e55b9348a9bf6136646",+ "glb": {+ "member": "packs/holodeck/objects/b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59/meridian-shrub-c.glb",+ "bytes": 252288,+ "sha256": "b3dd6ef416ad23d51a7c3d9ffa1545915eee7496c2420f695807d87db285df59",+ "triangles": 3032+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.6231896842643068+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cypress-broad": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-broad.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1422256,+ "sha256": "17d890a27eb125894bb50c833604a8dca8ed484adb4bbe3b1d219b4584be5414",+ "assetId": "a_e7849305e90b44eeab88fb69bc7c5c1e",+ "revisionId": "r_65d968a6e4a34968bfaed1504cf759ba",+ "glb": {+ "member": "packs/holodeck/objects/4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4/meridian-cypress-broad.glb",+ "bytes": 378680,+ "sha256": "4e1701b85a88489db574391fabc25ac9d1860639ce9a73cb421946fd8dc2c0b4",+ "triangles": 5216+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 3.9349189461658165+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cypress-slim": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cypress-slim.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1318524,+ "sha256": "14609b8cb27ce4a9a8cf4b621e785df71bad40ac8631ccd5e2ad756d44d596e9",+ "assetId": "a_f2de801b1cbb472b99638a036c22221a",+ "revisionId": "r_4cb4690620ab4a2aa57cf69cd06255e5",+ "glb": {+ "member": "packs/holodeck/objects/963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8/meridian-cypress-slim.glb",+ "bytes": 481452,+ "sha256": "963b91704cecf26f6041fa9fbbfd324d14f847a6a7b6dd18b8e9fe50742a4ca8",+ "triangles": 7072+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 6.512380215794827+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-tower-gate": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-tower-gate.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1261411,+ "sha256": "834e745251ae70d23d6a511effe7f4ddd6cc9a007567c54d3c1db0002a08a917",+ "assetId": "a_4836065137894bf49499b78028fcfdb9",+ "revisionId": "r_dac22ca376b745ceab2346845e4c16a6",+ "glb": {+ "member": "packs/holodeck/objects/45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1/meridian-tower-gate.glb",+ "bytes": 1618784,+ "sha256": "45895a8c9bd14763281d25a95b9a84353e191996b5cf7e43ce82638380fa1ed1",+ "triangles": 12568+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 79.24122254211427+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-arcade-bay": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-arcade-bay.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1485623,+ "sha256": "bb9f88bd0ef7694487438d7b5251a40aa5ee1c1aaaafb824e3a90651b44e00ec",+ "assetId": "a_ebda3dd3bf5f41d6ad0dea5b6a9c3ef6",+ "revisionId": "r_60cc31247cad446a95672bddc01ae520",+ "glb": {+ "member": "packs/holodeck/objects/b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1/meridian-arcade-bay.glb",+ "bytes": 562192,+ "sha256": "b4dbb30eaa108e6846cdd3d16afa94bed46ff8443c2362757161fab926fb78a1",+ "triangles": 2676+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 6.233374841542135+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-pavilion": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-pavilion.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1318394,+ "sha256": "c7112f1568778ca02a49d9a81934ffe7419af5d4086507d02aacee6726096b35",+ "assetId": "a_fcde0b57fef04d3698a139126d44f416",+ "revisionId": "r_3745cc9353f44c1b8d3102d59c9f9d46",+ "glb": {+ "member": "packs/holodeck/objects/28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219/meridian-pavilion.glb",+ "bytes": 596736,+ "sha256": "28ad88347a9eb2d5c943d9c397d4a4f3af8125432a0eeda77f4da597a7067219",+ "triangles": 2996+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 37.13246764821412+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-balustrade-4": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-balustrade-4.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1598113,+ "sha256": "4042c973618ffb037f78ea294cd37ff09daf75330b8984e2a1369023ebe455ad",+ "assetId": "a_7d9d5e100703402aa907c7e9fe1ccef1",+ "revisionId": "r_eb66bdfce33449e386b9792df125142d",+ "glb": {+ "member": "packs/holodeck/objects/afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8/meridian-balustrade-4.glb",+ "bytes": 332796,+ "sha256": "afca29899c682afbcdc08e6a00ab9cff72e67a9d39ec0034c6d5e2f4e7b940b8",+ "triangles": 466+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.8066578239647757+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-cube-mirror-far": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-cube-mirror-far.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1612991,+ "sha256": "0adf59f4f22c717bc760aa6df39c61600f5074d663c72bac4934631f0f00140c",+ "assetId": "a_b0480b746fa5406c82626f5037e30f5c",+ "revisionId": "r_1b9bef4f0c2d46ae8bdd1261f64b4c71",+ "glb": {+ "member": "packs/holodeck/objects/3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4/meridian-cube-mirror-far.glb",+ "bytes": 5472,+ "sha256": "3f2c302d07380e20fafe794a56f7f3b7ca0ecc886529accb6fee7eed0bece6f4",+ "triangles": 44+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 0.8926073982886735+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-statue-figure": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-figure.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1430682,+ "sha256": "6785f36b7dd1149c1aa37e23242f4b2e28e60ba52068720b745c70adcd8e3fc0",+ "assetId": "a_2fdcbd42ab4740469b82e2c357f96413",+ "revisionId": "r_c3c6c0cd796b43c88dabbb09061e3ef3",+ "glb": {+ "member": "packs/holodeck/objects/bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b/meridian-statue-figure.glb",+ "bytes": 897192,+ "sha256": "bc5ba472b23aa8aa40b3bcf84d4f83284617f6480858b7955d9bcb47fad9684b",+ "triangles": 34224+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 1.8447219713159155+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"+ },+ "holodeck:meridian-statue-whale": {+ "path": "media/rig/review-neutral-v1/holodeck/holodeck-20261025-02/meridian-statue-whale.png",+ "width": 1024,+ "height": 1024,+ "bytes": 1355291,+ "sha256": "51dcc2b18fabdca9e4e1ae56b0ff57220dbef8fef8980683b60d5ed716c133b2",+ "assetId": "a_705819f9bd52422b947684965b45795c",+ "revisionId": "r_94ec333e46d84cc7a9c4e79455b1c572",+ "glb": {+ "member": "packs/holodeck/objects/fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94/meridian-statue-whale.glb",+ "bytes": 794988,+ "sha256": "fc54ddf1a7d1f0d70b8c6b414758ed7ddd690c6650d7053e1506ab95c94ccd94",+ "triangles": 34416+ },+ "view": {+ "direction": [+ 0.7,+ 0.5,+ 0.7+ ],+ "padding": 1.05,+ "projection": "orthographic",+ "halfHeight": 8.470202187169939+ },+ "rendererId": "dawn-vulkan:nvidia-geforce-gtx-1660-ti-with-max-q-design:NVIDIA: 615.71.09 615.71.9.0"}}}