@hypersoniclabs/helix-cli 0.1.7 → 0.1.24-helix3.438
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +631 -8
- package/assets/bridge/metahuman-eye-baked.png +0 -0
- package/assets/item-def-sounds/Common/A_DryShot.ogg +0 -0
- package/assets/item-def-sounds/Common/A_LMG_CloseCoverA.ogg +0 -0
- package/assets/item-def-sounds/Common/A_LMG_CloseCoverB.ogg +0 -0
- package/assets/item-def-sounds/Common/A_LMG_InsertMag.ogg +0 -0
- package/assets/item-def-sounds/Common/A_LMG_RemoveMag.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_InsertMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_InsertMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_InsertMag_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_RemoveMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_RemoveMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Pistol_RemoveMag_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_ChargingHandle_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_ChargingHandle_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_ChargingHandle_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_InsertMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_InsertMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_InsertMag_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_RemoveMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_RemoveMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Rifle_RemoveMag_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_SMG_ChargingHandle_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_SMG_ChargingHandle_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_SMG_ChargingHandle_003.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Sniper_ChargingHandle.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Sniper_RemoveMag_001.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Sniper_RemoveMag_002.ogg +0 -0
- package/assets/item-def-sounds/Common/A_Sniper_RemoveMag_003.ogg +0 -0
- package/assets/item-def-sounds/Explosions/Explosions_Grenade_Punch-Close_01.ogg +0 -0
- package/assets/item-def-sounds/Explosions/Explosions_Grenade_Punch-Close_02.ogg +0 -0
- package/assets/item-def-sounds/Explosions/Explosions_Grenade_Punch-Close_03.ogg +0 -0
- package/assets/item-def-sounds/LMG/A_LWS-32_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/LMG/A_LWS-32_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/LMG/A_LWS-32_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/Pistol/A_Gaston_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/Pistol/A_Gaston_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/Pistol/A_Gaston_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/Rifle/A_KAL_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/Rifle/A_KAL_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/Rifle/A_KAL_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_InsertMag.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_RemoveMag.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/SMG/A_Bison_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/Shotgun/A_DB-12_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/Shotgun/A_DB-12_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/Shotgun/A_DB-12_Shot_003.ogg +0 -0
- package/assets/item-def-sounds/Sniper/A_CS-446_Shot_001.ogg +0 -0
- package/assets/item-def-sounds/Sniper/A_CS-446_Shot_002.ogg +0 -0
- package/assets/item-def-sounds/Sniper/A_CS-446_Shot_003.ogg +0 -0
- package/bridge-plugins/helix.bridge.unreal/bin/unreal-skeletal-mesh-extract.js +812 -0
- package/bridge-plugins/helix.bridge.unreal/bridge-plugin.json +40 -0
- package/bridge-plugins/helix.bridge.unreal/test/exporter.test.js +418 -0
- package/bridge-plugins/helix.bridge.unreal/test/handler.test.js +417 -0
- package/bridge-plugins/helix.bridge.unreal/unreal/export_skeletal_mesh.py +384 -0
- package/bridge-recipes/cyberpunk/cyberpunk-female-bone-map.json +476 -0
- package/bridge-recipes/sims4/README.md +43 -0
- package/bridge-recipes/sims4/sims4-female-bone-map.json +65 -0
- package/bridge-recipes/unreal/character-customizer/README.md +58 -0
- package/bridge-recipes/unreal/character-customizer/all.json +13 -0
- package/bridge-recipes/unreal/character-customizer/base-male-body.json +6 -0
- package/bridge-recipes/unreal/character-customizer/base-male-head.json +6 -0
- package/bridge-recipes/unreal/character-customizer/beard.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/beard.json +6 -0
- package/bridge-recipes/unreal/character-customizer/bottom.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/bottom.json +6 -0
- package/bridge-recipes/unreal/character-customizer/eyewear.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/eyewear.json +6 -0
- package/bridge-recipes/unreal/character-customizer/footwear.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/footwear.json +6 -0
- package/bridge-recipes/unreal/character-customizer/hair.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/hair.json +6 -0
- package/bridge-recipes/unreal/character-customizer/test/recipes.test.js +74 -0
- package/bridge-recipes/unreal/character-customizer/top.addon.json +1 -0
- package/bridge-recipes/unreal/character-customizer/top.json +6 -0
- package/bridge-recipes/unreal/helix-character-creator-female/README.md +57 -0
- package/bridge-recipes/unreal/helix-character-creator-female/all.json +18 -0
- package/bridge-recipes/unreal/helix-character-creator-female/back.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/back.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/base-female-face.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/base-female.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/bottom.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/bottom.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/eyewear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/eyewear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-basic-t-shirt.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-basic-t-shirt.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch-hair.json +23 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch-nebula-urbanghost.json +7 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch-singles.json +19 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch5.json +19 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch6.json +19 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-batch7.json +11 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cap-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cap-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cap.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cap.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cargo-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-cargo-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-carnival-mask-3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-carnival-mask-3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-chain.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-chain.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-shoes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-shoes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-clare-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-compression-bodysuit-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-compression-bodysuit-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-compression-bodysuit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-compression-bodysuit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-eye-hole-mask-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-eye-hole-mask-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-eye-patch.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-eye-patch.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-firefight-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-firefight-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-sneakers.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-sneakers.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-fruity-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-gamer-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-gamer-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-guy-fawkes-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-guy-fawkes-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a1.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a1.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a10.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a10.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a11.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a11.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a12.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a12.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a13.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a13.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a14.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a14.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a15.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a15.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a16.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a16.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a17.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a17.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a18.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a18.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a19.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a19.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a20.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a20.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a21.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a21.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a4.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a4.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a5.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a5.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a6.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a6.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a7.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a7.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a8.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a8.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a9.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hair-a9.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-high-waist-tailored-trousers.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-high-waist-tailored-trousers.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hogwarts-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hogwarts-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hoody.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-hoody.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-jacket-6.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-jacket-6.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-joker-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-joker-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-kombes-brown.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-kombes-brown.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-kombes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-kombes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-marshmallow-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-marshmallow-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-maska.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-maska.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-nebula-executive-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-nebula-executive-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-nebula-executive-shoes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-nebula-executive-shoes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-ninza-costume.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-ninza-costume.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-orange-kombes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-orange-kombes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-panama.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-panama.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-panda-bag-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-panda-bag-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-pantslow.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-pantslow.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-paper-bag-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-paper-bag-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-pig-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-pig-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-police-uniform.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-police-uniform.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-prison-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-prison-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-short-b4low.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-short-b4low.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-short-swimming.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-short-swimming.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-shortlow.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-shortlow.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-shorts-b3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-shorts-b3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-sterile-gloves.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-sterile-gloves.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-surgeon-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-surgeon-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-swat.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-swat.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-topx1.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-topx1.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-hoodie.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-hoodie.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-urban-ghost-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-warehouse-uniform.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-warehouse-uniform.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-wide-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-wide-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-wolf-set.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-wolf-set.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-woman-mask-3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-woman-mask-3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-women-out-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/female-women-out-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/footwear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/footwear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/gloves.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/gloves.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/hair.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/hair.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/headwear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/headwear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/neck.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/neck.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-female/top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/README.md +15 -0
- package/bridge-recipes/unreal/helix-character-creator-male/all.json +18 -0
- package/bridge-recipes/unreal/helix-character-creator-male/back.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/back.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/base-male-face.json +6 -0
- package/bridge-recipes/unreal/helix-character-creator-male/base-male.json +6 -0
- package/bridge-recipes/unreal/helix-character-creator-male/bottom.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/bottom.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/eyewear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/eyewear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/footwear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/footwear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/gloves.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/gloves.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/hair.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/hair.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/headwear.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/headwear.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch-hair.json +23 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch-nebula-urbanghost.json +7 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch-uniforms.json +10 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch6-slot2.json +7 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch7-slot3.json +6 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-batch8-combined.json +11 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-boots-25.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-cargo-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-cargo-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-carnival-mask-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-carnival-mask-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-carnival-mask-3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-carnival-mask-3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-shoes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-shoes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-clare-top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-diamond-hands.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-diamond-hands.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-doctor-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-doctor-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-hole-mask-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-hole-mask-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-hole-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-hole-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-patch.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-eye-patch.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-cargo-pants-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-cargo-pants-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-cargo-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-puffy.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-fb-puffy.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-firefight-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-firefight-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-gamer-mask-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-gamer-mask-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a1.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a1.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a10.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a10.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a11.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a11.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a12.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a12.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a13.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a13.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a14.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a14.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a15.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a15.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a16.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a16.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a17.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a17.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a18.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a18.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a19.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a19.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a20.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a20.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a21.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a21.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a3.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a4.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a4.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a5.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a5.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a6.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a6.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a7.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a7.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a8.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a8.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a9.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-hair-a9.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-kombes-brown-v2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-kombes-brown-v2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-kombes-brown.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-man-mask-3.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-marshmallow-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-marshmallow-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-mikejack-jacket.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-coat.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-coat.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-shoes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-nebula-executive-shoes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-gloves.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-gloves.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-mantle.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-mantle.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-tunic.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-neo-arcane-heir-tunic.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-orangekombes.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-orangekombes.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-out2-boots.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-out2-boots.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-panda-bag-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-panda-bag-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pants-2.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pants-2.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-paper-bag-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-paper-bag-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pig-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pig-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-police-uniform.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-police-uniform.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-prison-outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-prison-outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-puffer-jacket.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-puffer-jacket.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pullover-hoodie.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-pullover-hoodie.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-robber-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-robber-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-short-swimming.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-short-swimming.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-sinth-ascetic-jacket.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-sinth-ascetic-jacket.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-sip-cap.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-sip-cap.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-socks.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-socks.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-surgeon-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-surgeon-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-tech-hoodie.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-tech-hoodie.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-hoodie.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-hoodie.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-pants.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-urban-ghost-pants.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-warehouse-uniform.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/male-warehouse-uniform.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/mask.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/mask.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/neck.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/neck.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/outfit.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/outfit.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/palette-pilot.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/test/recipes.test.js +122 -0
- package/bridge-recipes/unreal/helix-character-creator-male/top.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/top.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/variants/bottom-nopalette.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/variants/headwear-nopalette.addon.json +1 -0
- package/bridge-recipes/unreal/helix-character-creator-male/variants/neck-nopalette.addon.json +1 -0
- package/dist/ability.d.ts +2 -2
- package/dist/ability.js +6 -5
- package/dist/ability.js.map +1 -1
- package/dist/achievement.d.ts +123 -0
- package/dist/achievement.js +400 -0
- package/dist/achievement.js.map +1 -0
- package/dist/api.d.ts +19 -1
- package/dist/api.js +80 -6
- package/dist/api.js.map +1 -1
- package/dist/assets.d.ts +595 -0
- package/dist/assets.js +1121 -0
- package/dist/assets.js.map +1 -0
- package/dist/audioCommand.d.ts +65 -0
- package/dist/audioCommand.js +181 -0
- package/dist/audioCommand.js.map +1 -0
- package/dist/bakeBodyRegionsCli.d.ts +19 -0
- package/dist/bakeBodyRegionsCli.js +25 -0
- package/dist/bakeBodyRegionsCli.js.map +1 -0
- package/dist/bakeLighting.d.ts +173 -0
- package/dist/bakeLighting.js +452 -0
- package/dist/bakeLighting.js.map +1 -0
- package/dist/bridge/bridge.testutil.d.ts +105 -0
- package/dist/bridge/bridge.testutil.js +259 -0
- package/dist/bridge/bridge.testutil.js.map +1 -0
- package/dist/bridge/characterAddon.d.ts +47 -0
- package/dist/bridge/characterAddon.js +146 -0
- package/dist/bridge/characterAddon.js.map +1 -0
- package/dist/bridge/detect.d.ts +4 -0
- package/dist/bridge/detect.js +154 -0
- package/dist/bridge/detect.js.map +1 -0
- package/dist/bridge/execute.d.ts +3 -0
- package/dist/bridge/execute.js +206 -0
- package/dist/bridge/execute.js.map +1 -0
- package/dist/bridge/glb.d.ts +60 -0
- package/dist/bridge/glb.js +81 -0
- package/dist/bridge/glb.js.map +1 -0
- package/dist/bridge/hash.d.ts +6 -0
- package/dist/bridge/hash.js +40 -0
- package/dist/bridge/hash.js.map +1 -0
- package/dist/bridge/index.d.ts +11 -0
- package/dist/bridge/index.js +28 -0
- package/dist/bridge/index.js.map +1 -0
- package/dist/bridge/internal/artifacts.d.ts +5 -0
- package/dist/bridge/internal/artifacts.js +31 -0
- package/dist/bridge/internal/artifacts.js.map +1 -0
- package/dist/bridge/internal/builtInExecution.d.ts +4 -0
- package/dist/bridge/internal/builtInExecution.js +514 -0
- package/dist/bridge/internal/builtInExecution.js.map +1 -0
- package/dist/bridge/internal/externalExecution.d.ts +12 -0
- package/dist/bridge/internal/externalExecution.js +261 -0
- package/dist/bridge/internal/externalExecution.js.map +1 -0
- package/dist/bridge/internal/outputReservation.d.ts +13 -0
- package/dist/bridge/internal/outputReservation.js +151 -0
- package/dist/bridge/internal/outputReservation.js.map +1 -0
- package/dist/bridge/internal/snapshots.d.ts +32 -0
- package/dist/bridge/internal/snapshots.js +562 -0
- package/dist/bridge/internal/snapshots.js.map +1 -0
- package/dist/bridge/management.d.ts +40 -0
- package/dist/bridge/management.js +333 -0
- package/dist/bridge/management.js.map +1 -0
- package/dist/bridge/manifest.d.ts +8 -0
- package/dist/bridge/manifest.js +192 -0
- package/dist/bridge/manifest.js.map +1 -0
- package/dist/bridge/metahuman.d.ts +26 -0
- package/dist/bridge/metahuman.js +332 -0
- package/dist/bridge/metahuman.js.map +1 -0
- package/dist/bridge/planner.d.ts +9 -0
- package/dist/bridge/planner.js +246 -0
- package/dist/bridge/planner.js.map +1 -0
- package/dist/bridge/plugins.d.ts +17 -0
- package/dist/bridge/plugins.js +307 -0
- package/dist/bridge/plugins.js.map +1 -0
- package/dist/bridge/resolution.d.ts +8 -0
- package/dist/bridge/resolution.js +55 -0
- package/dist/bridge/resolution.js.map +1 -0
- package/dist/bridge/types.d.ts +247 -0
- package/dist/bridge/types.js +60 -0
- package/dist/bridge/types.js.map +1 -0
- package/dist/bridge/validate.d.ts +12 -0
- package/dist/bridge/validate.js +370 -0
- package/dist/bridge/validate.js.map +1 -0
- package/dist/bridge/zipSource.d.ts +27 -0
- package/dist/bridge/zipSource.js +90 -0
- package/dist/bridge/zipSource.js.map +1 -0
- package/dist/browser/hostSlots.d.ts +57 -0
- package/dist/browser/hostSlots.js +371 -0
- package/dist/browser/hostSlots.js.map +1 -0
- package/dist/browser/launch.d.ts +25 -0
- package/dist/browser/launch.js +74 -0
- package/dist/browser/launch.js.map +1 -0
- package/dist/browser/nonSystemChrome.d.ts +15 -0
- package/dist/browser/nonSystemChrome.js +91 -0
- package/dist/browser/nonSystemChrome.js.map +1 -0
- package/dist/builds/index.d.ts +54 -0
- package/dist/builds/index.js +215 -0
- package/dist/builds/index.js.map +1 -0
- package/dist/bundle.d.ts +35 -2
- package/dist/bundle.js +437 -20
- package/dist/bundle.js.map +1 -1
- package/dist/canary/cli.d.ts +17 -0
- package/dist/canary/cli.js +95 -0
- package/dist/canary/cli.js.map +1 -0
- package/dist/canary/index.d.ts +4 -0
- package/dist/canary/index.js +21 -0
- package/dist/canary/index.js.map +1 -0
- package/dist/canary/inventory.d.ts +46 -0
- package/dist/canary/inventory.js +499 -0
- package/dist/canary/inventory.js.map +1 -0
- package/dist/canary/pacifica.d.ts +51 -0
- package/dist/canary/pacifica.js +247 -0
- package/dist/canary/pacifica.js.map +1 -0
- package/dist/canary/plan.d.ts +115 -0
- package/dist/canary/plan.js +479 -0
- package/dist/canary/plan.js.map +1 -0
- package/dist/character/addonPushOut.d.ts +66 -0
- package/dist/character/addonPushOut.js +211 -0
- package/dist/character/addonPushOut.js.map +1 -0
- package/dist/character/avatarPreflight.d.ts +92 -0
- package/dist/character/avatarPreflight.js +261 -0
- package/dist/character/avatarPreflight.js.map +1 -0
- package/dist/character/bakeBodyRegions.d.ts +80 -0
- package/dist/character/bakeBodyRegions.js +190 -0
- package/dist/character/bakeBodyRegions.js.map +1 -0
- package/dist/character/baseColorGuard.d.ts +62 -0
- package/dist/character/baseColorGuard.js +141 -0
- package/dist/character/baseColorGuard.js.map +1 -0
- package/dist/character/bodyGeometryGuard.d.ts +243 -0
- package/dist/character/bodyGeometryGuard.js +417 -0
- package/dist/character/bodyGeometryGuard.js.map +1 -0
- package/dist/character/bodyRegionHide.d.ts +57 -0
- package/dist/character/bodyRegionHide.js +97 -0
- package/dist/character/bodyRegionHide.js.map +1 -0
- package/dist/character/composeBaseMale.d.ts +25 -0
- package/dist/character/composeBaseMale.js +712 -0
- package/dist/character/composeBaseMale.js.map +1 -0
- package/dist/character/esm.js +3 -1
- package/dist/character/esm.js.map +1 -1
- package/dist/character/faceManifest.d.ts +53 -0
- package/dist/character/faceManifest.js +256 -0
- package/dist/character/faceManifest.js.map +1 -0
- package/dist/character/fbx.d.ts +70 -0
- package/dist/character/fbx.js +396 -0
- package/dist/character/fbx.js.map +1 -0
- package/dist/character/fitGarmentFile.d.ts +39 -0
- package/dist/character/fitGarmentFile.js +53 -0
- package/dist/character/fitGarmentFile.js.map +1 -0
- package/dist/character/helixPalette.d.ts +68 -0
- package/dist/character/helixPalette.js +183 -0
- package/dist/character/helixPalette.js.map +1 -0
- package/dist/character/hideCoverage.d.ts +135 -0
- package/dist/character/hideCoverage.js +450 -0
- package/dist/character/hideCoverage.js.map +1 -0
- package/dist/character/imageLimits.d.ts +3 -0
- package/dist/character/imageLimits.js +7 -0
- package/dist/character/imageLimits.js.map +1 -0
- package/dist/character/importCharacter.d.ts +188 -10
- package/dist/character/importCharacter.js +854 -76
- package/dist/character/importCharacter.js.map +1 -1
- package/dist/character/importTrust.d.ts +11 -0
- package/dist/character/importTrust.js +56 -0
- package/dist/character/importTrust.js.map +1 -0
- package/dist/character/ktx2Decode.d.ts +11 -0
- package/dist/character/ktx2Decode.js +87 -0
- package/dist/character/ktx2Decode.js.map +1 -0
- package/dist/character/mat4.d.ts +7 -0
- package/dist/character/mat4.js +25 -2
- package/dist/character/mat4.js.map +1 -1
- package/dist/character/meshyToHelixMap.d.ts +14 -0
- package/dist/character/meshyToHelixMap.js +155 -3
- package/dist/character/meshyToHelixMap.js.map +1 -1
- package/dist/character/metahumanToHelixMap.d.ts +2 -0
- package/dist/character/metahumanToHelixMap.js +34 -0
- package/dist/character/metahumanToHelixMap.js.map +1 -0
- package/dist/character/normalMapGuard.d.ts +59 -0
- package/dist/character/normalMapGuard.js +139 -0
- package/dist/character/normalMapGuard.js.map +1 -0
- package/dist/character/quat.js +2 -2
- package/dist/character/quat.js.map +1 -1
- package/dist/character/reframeSkeletonFile.d.ts +19 -0
- package/dist/character/reframeSkeletonFile.js +45 -0
- package/dist/character/reframeSkeletonFile.js.map +1 -0
- package/dist/character/repairLodSkeletonsFile.d.ts +25 -0
- package/dist/character/repairLodSkeletonsFile.js +49 -0
- package/dist/character/repairLodSkeletonsFile.js.map +1 -0
- package/dist/character/restFrameGuard.d.ts +52 -0
- package/dist/character/restFrameGuard.js +90 -0
- package/dist/character/restFrameGuard.js.map +1 -0
- package/dist/character/slotBudgets.d.ts +37 -0
- package/dist/character/slotBudgets.generated.d.ts +15 -0
- package/dist/character/slotBudgets.generated.js +110 -0
- package/dist/character/slotBudgets.generated.js.map +1 -0
- package/dist/character/slotBudgets.js +45 -0
- package/dist/character/slotBudgets.js.map +1 -0
- package/dist/character/stages/atlasMaterials.d.ts +53 -0
- package/dist/character/stages/atlasMaterials.js +246 -0
- package/dist/character/stages/atlasMaterials.js.map +1 -0
- package/dist/character/stages/bakeTexture.d.ts +28 -7
- package/dist/character/stages/bakeTexture.js +586 -108
- package/dist/character/stages/bakeTexture.js.map +1 -1
- package/dist/character/stages/conform.d.ts +54 -9
- package/dist/character/stages/conform.js +686 -113
- package/dist/character/stages/conform.js.map +1 -1
- package/dist/character/stages/earClearance.d.ts +105 -0
- package/dist/character/stages/earClearance.js +480 -0
- package/dist/character/stages/earClearance.js.map +1 -0
- package/dist/character/stages/faceRegion.d.ts +55 -0
- package/dist/character/stages/faceRegion.js +183 -0
- package/dist/character/stages/faceRegion.js.map +1 -0
- package/dist/character/stages/firstPersonHide.d.ts +42 -0
- package/dist/character/stages/firstPersonHide.js +140 -0
- package/dist/character/stages/firstPersonHide.js.map +1 -0
- package/dist/character/stages/joinPerMesh.d.ts +18 -0
- package/dist/character/stages/joinPerMesh.js +46 -0
- package/dist/character/stages/joinPerMesh.js.map +1 -0
- package/dist/character/stages/ktx2.d.ts +6 -4
- package/dist/character/stages/ktx2.js +81 -29
- package/dist/character/stages/ktx2.js.map +1 -1
- package/dist/character/stages/limbBridge.d.ts +114 -0
- package/dist/character/stages/limbBridge.js +1286 -0
- package/dist/character/stages/limbBridge.js.map +1 -0
- package/dist/character/stages/mergeLods.d.ts +19 -0
- package/dist/character/stages/mergeLods.js +58 -2
- package/dist/character/stages/mergeLods.js.map +1 -1
- package/dist/character/stages/poseAwareFit.d.ts +192 -0
- package/dist/character/stages/poseAwareFit.js +417 -0
- package/dist/character/stages/poseAwareFit.js.map +1 -0
- package/dist/character/stages/poseFit/math.d.ts +141 -0
- package/dist/character/stages/poseFit/math.js +514 -0
- package/dist/character/stages/poseFit/math.js.map +1 -0
- package/dist/character/stages/poseFit/measure.d.ts +88 -0
- package/dist/character/stages/poseFit/measure.js +148 -0
- package/dist/character/stages/poseFit/measure.js.map +1 -0
- package/dist/character/stages/poseFit/model.d.ts +46 -0
- package/dist/character/stages/poseFit/model.js +147 -0
- package/dist/character/stages/poseFit/model.js.map +1 -0
- package/dist/character/stages/poseFit/offsetField.d.ts +76 -0
- package/dist/character/stages/poseFit/offsetField.js +249 -0
- package/dist/character/stages/poseFit/offsetField.js.map +1 -0
- package/dist/character/stages/poseFit/posing.d.ts +52 -0
- package/dist/character/stages/poseFit/posing.js +330 -0
- package/dist/character/stages/poseFit/posing.js.map +1 -0
- package/dist/character/stages/poseFit/testRig.d.ts +31 -0
- package/dist/character/stages/poseFit/testRig.js +85 -0
- package/dist/character/stages/poseFit/testRig.js.map +1 -0
- package/dist/character/stages/reframeSkeletonToHost.d.ts +35 -0
- package/dist/character/stages/reframeSkeletonToHost.js +111 -0
- package/dist/character/stages/reframeSkeletonToHost.js.map +1 -0
- package/dist/character/stages/report.js +0 -2
- package/dist/character/stages/report.js.map +1 -1
- package/dist/character/stages/resizeTextures.js +4 -4
- package/dist/character/stages/resizeTextures.js.map +1 -1
- package/dist/character/stages/retarget.d.ts +26 -2
- package/dist/character/stages/retarget.js +52 -4
- package/dist/character/stages/retarget.js.map +1 -1
- package/dist/character/stages/retargetClip.d.ts +6 -2
- package/dist/character/stages/retargetClip.js +109 -17
- package/dist/character/stages/retargetClip.js.map +1 -1
- package/dist/character/stages/sanitizeMaterials.d.ts +39 -0
- package/dist/character/stages/sanitizeMaterials.js +136 -0
- package/dist/character/stages/sanitizeMaterials.js.map +1 -0
- package/dist/character/stages/simplifyMesh.js +6 -3
- package/dist/character/stages/simplifyMesh.js.map +1 -1
- package/dist/character/stages/splitFacePrimitive.js +0 -2
- package/dist/character/stages/splitFacePrimitive.js.map +1 -1
- package/dist/character/stages/splitSharedLodSkeletons.d.ts +31 -0
- package/dist/character/stages/splitSharedLodSkeletons.js +104 -0
- package/dist/character/stages/splitSharedLodSkeletons.js.map +1 -0
- package/dist/character/stages/unifyMaterial.d.ts +66 -0
- package/dist/character/stages/unifyMaterial.js +136 -0
- package/dist/character/stages/unifyMaterial.js.map +1 -0
- package/dist/character/stages/vrmDynamics.d.ts +144 -0
- package/dist/character/stages/vrmDynamics.js +421 -0
- package/dist/character/stages/vrmDynamics.js.map +1 -0
- package/dist/character/stages/vrmFace.d.ts +82 -0
- package/dist/character/stages/vrmFace.js +280 -0
- package/dist/character/stages/vrmFace.js.map +1 -0
- package/dist/character/stages/weldedSimplify.d.ts +15 -1
- package/dist/character/stages/weldedSimplify.js +90 -9
- package/dist/character/stages/weldedSimplify.js.map +1 -1
- package/dist/character/testutil/meshyBridgeFixture.d.ts +33 -0
- package/dist/character/testutil/meshyBridgeFixture.js +219 -0
- package/dist/character/testutil/meshyBridgeFixture.js.map +1 -0
- package/dist/character/testutil/meshyHead.d.ts +19 -0
- package/dist/character/testutil/meshyHead.js +99 -0
- package/dist/character/testutil/meshyHead.js.map +1 -0
- package/dist/character/testutil/meshyRig.d.ts +17 -0
- package/dist/character/testutil/meshyRig.js +117 -0
- package/dist/character/testutil/meshyRig.js.map +1 -0
- package/dist/character/testutil/slotBudgetExpectations.d.ts +11 -0
- package/dist/character/testutil/slotBudgetExpectations.js +21 -0
- package/dist/character/testutil/slotBudgetExpectations.js.map +1 -0
- package/dist/character/testutil/syntheticRig.d.ts +12 -1
- package/dist/character/testutil/syntheticRig.js +88 -3
- package/dist/character/testutil/syntheticRig.js.map +1 -1
- package/dist/character/unrealMaterialSidecar.d.ts +94 -0
- package/dist/character/unrealMaterialSidecar.js +879 -0
- package/dist/character/unrealMaterialSidecar.js.map +1 -0
- package/dist/character/untrustedSource.d.ts +54 -0
- package/dist/character/untrustedSource.js +181 -0
- package/dist/character/untrustedSource.js.map +1 -0
- package/dist/character/vrmCharacter.d.ts +156 -0
- package/dist/character/vrmCharacter.js +678 -0
- package/dist/character/vrmCharacter.js.map +1 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +72 -24
- package/dist/config.js.map +1 -1
- package/dist/continuum/adminPackagePinCommand.d.ts +14 -0
- package/dist/continuum/adminPackagePinCommand.js +46 -0
- package/dist/continuum/adminPackagePinCommand.js.map +1 -0
- package/dist/continuum/adminPackagePublishCommand.d.ts +13 -0
- package/dist/continuum/adminPackagePublishCommand.js +22 -0
- package/dist/continuum/adminPackagePublishCommand.js.map +1 -0
- package/dist/continuum/authoring.d.ts +52 -0
- package/dist/continuum/authoring.js +143 -0
- package/dist/continuum/authoring.js.map +1 -0
- package/dist/continuum/characterMigrationGenerator.d.ts +17 -0
- package/dist/continuum/characterMigrationGenerator.js +242 -0
- package/dist/continuum/characterMigrationGenerator.js.map +1 -0
- package/dist/continuum/cli.d.ts +69 -0
- package/dist/continuum/cli.js +145 -0
- package/dist/continuum/cli.js.map +1 -0
- package/dist/continuum/cliAuthority.d.ts +17 -0
- package/dist/continuum/cliAuthority.js +28 -0
- package/dist/continuum/cliAuthority.js.map +1 -0
- package/dist/continuum/client.d.ts +103 -0
- package/dist/continuum/client.js +190 -0
- package/dist/continuum/client.js.map +1 -0
- package/dist/continuum/homeScenePackage.d.ts +159 -0
- package/dist/continuum/homeScenePackage.js +267 -0
- package/dist/continuum/homeScenePackage.js.map +1 -0
- package/dist/continuum/homeScenePackageCommand.d.ts +44 -0
- package/dist/continuum/homeScenePackageCommand.js +107 -0
- package/dist/continuum/homeScenePackageCommand.js.map +1 -0
- package/dist/continuum/identity.d.ts +4 -0
- package/dist/continuum/identity.js +20 -0
- package/dist/continuum/identity.js.map +1 -0
- package/dist/continuum/index.d.ts +11 -0
- package/dist/continuum/index.js +28 -0
- package/dist/continuum/index.js.map +1 -0
- package/dist/continuum/missingNormals.d.ts +48 -0
- package/dist/continuum/missingNormals.js +99 -0
- package/dist/continuum/missingNormals.js.map +1 -0
- package/dist/continuum/objectUpload.d.ts +64 -0
- package/dist/continuum/objectUpload.js +375 -0
- package/dist/continuum/objectUpload.js.map +1 -0
- package/dist/continuum/pull.d.ts +22 -0
- package/dist/continuum/pull.js +47 -0
- package/dist/continuum/pull.js.map +1 -0
- package/dist/continuum/sourceBundle.d.ts +18 -0
- package/dist/continuum/sourceBundle.js +160 -0
- package/dist/continuum/sourceBundle.js.map +1 -0
- package/dist/continuum/state.d.ts +41 -0
- package/dist/continuum/state.js +198 -0
- package/dist/continuum/state.js.map +1 -0
- package/dist/continuum/types.d.ts +156 -0
- package/dist/continuum/types.js +6 -0
- package/dist/continuum/types.js.map +1 -0
- package/dist/continuum/workflow.d.ts +62 -0
- package/dist/continuum/workflow.js +592 -0
- package/dist/continuum/workflow.js.map +1 -0
- package/dist/cs2/areas.d.ts +41 -0
- package/dist/cs2/areas.js +82 -0
- package/dist/cs2/areas.js.map +1 -0
- package/dist/cs2/binary.d.ts +10 -0
- package/dist/cs2/binary.js +59 -0
- package/dist/cs2/binary.js.map +1 -0
- package/dist/cs2/cityLegacy.d.ts +29 -0
- package/dist/cs2/cityLegacy.js +48 -0
- package/dist/cs2/cityLegacy.js.map +1 -0
- package/dist/cs2/convert/areas.d.ts +32 -0
- package/dist/cs2/convert/areas.js +96 -0
- package/dist/cs2/convert/areas.js.map +1 -0
- package/dist/cs2/convert/glb.d.ts +48 -0
- package/dist/cs2/convert/glb.js +178 -0
- package/dist/cs2/convert/glb.js.map +1 -0
- package/dist/cs2/convert/markings.d.ts +96 -0
- package/dist/cs2/convert/markings.js +329 -0
- package/dist/cs2/convert/markings.js.map +1 -0
- package/dist/cs2/convert/nodeSeams.d.ts +20 -0
- package/dist/cs2/convert/nodeSeams.js +164 -0
- package/dist/cs2/convert/nodeSeams.js.map +1 -0
- package/dist/cs2/convert/roadBake.d.ts +112 -0
- package/dist/cs2/convert/roadBake.js +290 -0
- package/dist/cs2/convert/roadBake.js.map +1 -0
- package/dist/cs2/convert/roads.d.ts +110 -0
- package/dist/cs2/convert/roads.js +419 -0
- package/dist/cs2/convert/roads.js.map +1 -0
- package/dist/cs2/convert/terrain.d.ts +67 -0
- package/dist/cs2/convert/terrain.js +141 -0
- package/dist/cs2/convert/terrain.js.map +1 -0
- package/dist/cs2/convert/terrainConform.d.ts +58 -0
- package/dist/cs2/convert/terrainConform.js +284 -0
- package/dist/cs2/convert/terrainConform.js.map +1 -0
- package/dist/cs2/convert/treeRoadClearance.d.ts +17 -0
- package/dist/cs2/convert/treeRoadClearance.js +78 -0
- package/dist/cs2/convert/treeRoadClearance.js.map +1 -0
- package/dist/cs2/convert/trees.d.ts +33 -0
- package/dist/cs2/convert/trees.js +68 -0
- package/dist/cs2/convert/trees.js.map +1 -0
- package/dist/cs2/csm2.d.ts +58 -0
- package/dist/cs2/csm2.js +188 -0
- package/dist/cs2/csm2.js.map +1 -0
- package/dist/cs2/fixtures.d.ts +5 -0
- package/dist/cs2/fixtures.js +15 -0
- package/dist/cs2/fixtures.js.map +1 -0
- package/dist/cs2/impostors.d.ts +31 -0
- package/dist/cs2/impostors.js +42 -0
- package/dist/cs2/impostors.js.map +1 -0
- package/dist/cs2/index.d.ts +22 -0
- package/dist/cs2/index.js +191 -0
- package/dist/cs2/index.js.map +1 -0
- package/dist/cs2/inspect.d.ts +81 -0
- package/dist/cs2/inspect.js +181 -0
- package/dist/cs2/inspect.js.map +1 -0
- package/dist/cs2/lods.d.ts +22 -0
- package/dist/cs2/lods.js +136 -0
- package/dist/cs2/lods.js.map +1 -0
- package/dist/cs2/materials.d.ts +43 -0
- package/dist/cs2/materials.js +137 -0
- package/dist/cs2/materials.js.map +1 -0
- package/dist/cs2/placements.d.ts +57 -0
- package/dist/cs2/placements.js +116 -0
- package/dist/cs2/placements.js.map +1 -0
- package/dist/cs2/roadPieces.d.ts +79 -0
- package/dist/cs2/roadPieces.js +263 -0
- package/dist/cs2/roadPieces.js.map +1 -0
- package/dist/cs2/roads.d.ts +92 -0
- package/dist/cs2/roads.js +329 -0
- package/dist/cs2/roads.js.map +1 -0
- package/dist/cs2/terrain.d.ts +37 -0
- package/dist/cs2/terrain.js +91 -0
- package/dist/cs2/terrain.js.map +1 -0
- package/dist/cs2/types.d.ts +444 -0
- package/dist/cs2/types.js +22 -0
- package/dist/cs2/types.js.map +1 -0
- package/dist/cs2/water.d.ts +26 -0
- package/dist/cs2/water.js +58 -0
- package/dist/cs2/water.js.map +1 -0
- package/dist/currency.d.ts +94 -0
- package/dist/currency.js +425 -0
- package/dist/currency.js.map +1 -0
- package/dist/dev/devServer.d.ts +53 -0
- package/dist/dev/devServer.js +228 -0
- package/dist/dev/devServer.js.map +1 -0
- package/dist/dev/shellPage.d.ts +3 -0
- package/dist/dev/shellPage.js +297 -0
- package/dist/dev/shellPage.js.map +1 -0
- package/dist/dev/state.d.ts +84 -0
- package/dist/dev/state.js +265 -0
- package/dist/dev/state.js.map +1 -0
- package/dist/device.d.ts +104 -0
- package/dist/device.js +2744 -0
- package/dist/device.js.map +1 -0
- package/dist/deviceActionValidation.d.ts +21 -0
- package/dist/deviceActionValidation.js +460 -0
- package/dist/deviceActionValidation.js.map +1 -0
- package/dist/distribution.d.ts +69 -0
- package/dist/distribution.js +138 -0
- package/dist/distribution.js.map +1 -0
- package/dist/enginePins.d.ts +45 -0
- package/dist/enginePins.js +134 -0
- package/dist/enginePins.js.map +1 -0
- package/dist/gesture/axisReference.d.ts +22 -0
- package/dist/gesture/axisReference.js +32 -0
- package/dist/gesture/axisReference.js.map +1 -0
- package/dist/gesture/capture.d.ts +84 -0
- package/dist/gesture/capture.js +303 -0
- package/dist/gesture/capture.js.map +1 -0
- package/dist/gesture/harnessPage.d.ts +23 -0
- package/dist/gesture/harnessPage.js +153 -0
- package/dist/gesture/harnessPage.js.map +1 -0
- package/dist/gesture/inspect.d.ts +189 -0
- package/dist/gesture/inspect.js +678 -0
- package/dist/gesture/inspect.js.map +1 -0
- package/dist/gesture/rig.d.ts +12 -0
- package/dist/gesture/rig.js +111 -0
- package/dist/gesture/rig.js.map +1 -0
- package/dist/gesture/worldRuntime.d.ts +65 -0
- package/dist/gesture/worldRuntime.js +110 -0
- package/dist/gesture/worldRuntime.js.map +1 -0
- package/dist/glb/draw-calls.d.ts +60 -0
- package/dist/glb/draw-calls.js +160 -0
- package/dist/glb/draw-calls.js.map +1 -0
- package/dist/glb/glb-summary.d.ts +68 -0
- package/dist/glb/glb-summary.js +450 -0
- package/dist/glb/glb-summary.js.map +1 -0
- package/dist/glb/index.d.ts +12 -0
- package/dist/glb/index.js +24 -0
- package/dist/glb/index.js.map +1 -0
- package/dist/glb/smooth-normals.d.ts +98 -0
- package/dist/glb/smooth-normals.js +395 -0
- package/dist/glb/smooth-normals.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6786 -128
- package/dist/index.js.map +1 -1
- package/dist/init.d.ts +35 -1
- package/dist/init.js +1115 -47
- package/dist/init.js.map +1 -1
- package/dist/install.d.ts +16 -5
- package/dist/install.js +123 -23
- package/dist/install.js.map +1 -1
- package/dist/interactable.d.ts +154 -0
- package/dist/interactable.js +1219 -0
- package/dist/interactable.js.map +1 -0
- package/dist/item.d.ts +217 -0
- package/dist/item.js +892 -0
- package/dist/item.js.map +1 -0
- package/dist/itemDef/distribute.d.ts +17 -0
- package/dist/itemDef/distribute.js +29 -0
- package/dist/itemDef/distribute.js.map +1 -0
- package/dist/itemDef/emoteRules.d.ts +85 -0
- package/dist/itemDef/emoteRules.js +368 -0
- package/dist/itemDef/emoteRules.js.map +1 -0
- package/dist/itemDef/gunConfigRules.d.ts +24 -0
- package/dist/itemDef/gunConfigRules.js +300 -0
- package/dist/itemDef/gunConfigRules.js.map +1 -0
- package/dist/itemDef/inspect.d.ts +19 -0
- package/dist/itemDef/inspect.js +144 -0
- package/dist/itemDef/inspect.js.map +1 -0
- package/dist/itemDef/scaffold.d.ts +41 -0
- package/dist/itemDef/scaffold.js +303 -0
- package/dist/itemDef/scaffold.js.map +1 -0
- package/dist/itemDef/tables.d.ts +81 -0
- package/dist/itemDef/tables.js +226 -0
- package/dist/itemDef/tables.js.map +1 -0
- package/dist/itemDef/validate.d.ts +30 -0
- package/dist/itemDef/validate.js +175 -0
- package/dist/itemDef/validate.js.map +1 -0
- package/dist/itemPublishVersion.d.ts +46 -0
- package/dist/itemPublishVersion.js +242 -0
- package/dist/itemPublishVersion.js.map +1 -0
- package/dist/itemSearch.d.ts +128 -0
- package/dist/itemSearch.js +140 -0
- package/dist/itemSearch.js.map +1 -0
- package/dist/itemSetVersion.d.ts +77 -0
- package/dist/itemSetVersion.js +170 -0
- package/dist/itemSetVersion.js.map +1 -0
- package/dist/itemThumbnail.d.ts +40 -0
- package/dist/itemThumbnail.js +116 -0
- package/dist/itemThumbnail.js.map +1 -0
- package/dist/lib.d.ts +571 -7
- package/dist/lib.js +1178 -15
- package/dist/lib.js.map +1 -1
- package/dist/looks.d.ts +103 -0
- package/dist/looks.js +102 -0
- package/dist/looks.js.map +1 -0
- package/dist/materials/availability.d.ts +8 -0
- package/dist/materials/availability.js +22 -0
- package/dist/materials/availability.js.map +1 -0
- package/dist/materials/identity.d.ts +30 -0
- package/dist/materials/identity.js +68 -0
- package/dist/materials/identity.js.map +1 -0
- package/dist/materials/pins.d.ts +23 -0
- package/dist/materials/pins.js +93 -0
- package/dist/materials/pins.js.map +1 -0
- package/dist/mesh/surfaceBvh.d.ts +13 -0
- package/dist/mesh/surfaceBvh.js +197 -0
- package/dist/mesh/surfaceBvh.js.map +1 -0
- package/dist/module-validation.d.ts +2 -0
- package/dist/module-validation.js +24 -0
- package/dist/module-validation.js.map +1 -0
- package/dist/money.d.ts +183 -0
- package/dist/money.js +299 -0
- package/dist/money.js.map +1 -0
- package/dist/npc/capture.d.ts +41 -0
- package/dist/npc/capture.js +99 -0
- package/dist/npc/capture.js.map +1 -0
- package/dist/npc/format.d.ts +2 -0
- package/dist/npc/format.js +102 -0
- package/dist/npc/format.js.map +1 -0
- package/dist/npc/inspect.d.ts +23 -0
- package/dist/npc/inspect.js +54 -0
- package/dist/npc/inspect.js.map +1 -0
- package/dist/npc/metrics.d.ts +132 -0
- package/dist/npc/metrics.js +214 -0
- package/dist/npc/metrics.js.map +1 -0
- package/dist/npc/session.d.ts +35 -0
- package/dist/npc/session.js +172 -0
- package/dist/npc/session.js.map +1 -0
- package/dist/pack/locomotionReference.d.ts +40 -0
- package/dist/pack/locomotionReference.js +132 -0
- package/dist/pack/locomotionReference.js.map +1 -0
- package/dist/pack/scaffold.d.ts +15 -0
- package/dist/pack/scaffold.js +144 -0
- package/dist/pack/scaffold.js.map +1 -0
- package/dist/pack/validate.d.ts +67 -0
- package/dist/pack/validate.js +317 -0
- package/dist/pack/validate.js.map +1 -0
- package/dist/package.d.ts +14 -1
- package/dist/package.js +106 -7
- package/dist/package.js.map +1 -1
- package/dist/paletteShowcase.d.ts +183 -0
- package/dist/paletteShowcase.js +454 -0
- package/dist/paletteShowcase.js.map +1 -0
- package/dist/paletteShowcaseProfiles.d.ts +112 -0
- package/dist/paletteShowcaseProfiles.js +121 -0
- package/dist/paletteShowcaseProfiles.js.map +1 -0
- package/dist/paths.d.ts +4 -0
- package/dist/paths.js +11 -0
- package/dist/paths.js.map +1 -0
- package/dist/placementRequest.d.ts +37 -0
- package/dist/placementRequest.js +220 -0
- package/dist/placementRequest.js.map +1 -0
- package/dist/placements/assets.d.ts +7 -0
- package/dist/placements/assets.js +114 -0
- package/dist/placements/assets.js.map +1 -0
- package/dist/placements/attachFoliageLods.d.ts +4 -0
- package/dist/placements/attachFoliageLods.js +70 -0
- package/dist/placements/attachFoliageLods.js.map +1 -0
- package/dist/placements/attachImpostors.d.ts +3 -0
- package/dist/placements/attachImpostors.js +51 -0
- package/dist/placements/attachImpostors.js.map +1 -0
- package/dist/placements/authored.d.ts +11 -0
- package/dist/placements/authored.js +65 -0
- package/dist/placements/authored.js.map +1 -0
- package/dist/placements/bake.d.ts +2 -0
- package/dist/placements/bake.js +235 -0
- package/dist/placements/bake.js.map +1 -0
- package/dist/placements/captureHost.d.ts +4 -0
- package/dist/placements/captureHost.js +125 -0
- package/dist/placements/captureHost.js.map +1 -0
- package/dist/placements/foliageCapture.d.ts +2 -0
- package/dist/placements/foliageCapture.js +98 -0
- package/dist/placements/foliageCapture.js.map +1 -0
- package/dist/placements/foliageCards.d.ts +17 -0
- package/dist/placements/foliageCards.js +120 -0
- package/dist/placements/foliageCards.js.map +1 -0
- package/dist/placements/foliageLods.d.ts +8 -0
- package/dist/placements/foliageLods.js +240 -0
- package/dist/placements/foliageLods.js.map +1 -0
- package/dist/placements/foliageTexture.d.ts +4 -0
- package/dist/placements/foliageTexture.js +91 -0
- package/dist/placements/foliageTexture.js.map +1 -0
- package/dist/placements/impostorCapture.d.ts +2 -0
- package/dist/placements/impostorCapture.js +111 -0
- package/dist/placements/impostorCapture.js.map +1 -0
- package/dist/placements/impostors.d.ts +18 -0
- package/dist/placements/impostors.js +279 -0
- package/dist/placements/impostors.js.map +1 -0
- package/dist/placements/source.d.ts +53 -0
- package/dist/placements/source.js +111 -0
- package/dist/placements/source.js.map +1 -0
- package/dist/product.d.ts +84 -0
- package/dist/product.js +285 -0
- package/dist/product.js.map +1 -0
- package/dist/publications.d.ts +116 -0
- package/dist/publications.js +180 -0
- package/dist/publications.js.map +1 -0
- package/dist/publishDuplicateGuard.d.ts +92 -0
- package/dist/publishDuplicateGuard.js +128 -0
- package/dist/publishDuplicateGuard.js.map +1 -0
- package/dist/realizability.d.ts +36 -0
- package/dist/realizability.js +269 -0
- package/dist/realizability.js.map +1 -0
- package/dist/resolve.d.ts +7 -1
- package/dist/resolve.js +77 -11
- package/dist/resolve.js.map +1 -1
- package/dist/sceneElements/compiler.d.ts +21 -0
- package/dist/sceneElements/compiler.js +976 -0
- package/dist/sceneElements/compiler.js.map +1 -0
- package/dist/sceneElements/continuum.d.ts +54 -0
- package/dist/sceneElements/continuum.js +451 -0
- package/dist/sceneElements/continuum.js.map +1 -0
- package/dist/sceneElements/devices.d.ts +12 -0
- package/dist/sceneElements/devices.js +212 -0
- package/dist/sceneElements/devices.js.map +1 -0
- package/dist/sceneElements/meshCells.d.ts +49 -0
- package/dist/sceneElements/meshCells.js +174 -0
- package/dist/sceneElements/meshCells.js.map +1 -0
- package/dist/sceneElements/types.d.ts +261 -0
- package/dist/sceneElements/types.js +3 -0
- package/dist/sceneElements/types.js.map +1 -0
- package/dist/sceneHlod/approximate.d.ts +23 -0
- package/dist/sceneHlod/approximate.js +171 -0
- package/dist/sceneHlod/approximate.js.map +1 -0
- package/dist/sceneHlod/artifact.d.ts +3 -0
- package/dist/sceneHlod/artifact.js +29 -0
- package/dist/sceneHlod/artifact.js.map +1 -0
- package/dist/sceneHlod/bakeSurface.d.ts +2 -0
- package/dist/sceneHlod/bakeSurface.js +59 -0
- package/dist/sceneHlod/bakeSurface.js.map +1 -0
- package/dist/sceneHlod/basisEncoder.d.ts +3 -0
- package/dist/sceneHlod/basisEncoder.js +68 -0
- package/dist/sceneHlod/basisEncoder.js.map +1 -0
- package/dist/sceneHlod/cellArtifact.d.ts +17 -0
- package/dist/sceneHlod/cellArtifact.js +78 -0
- package/dist/sceneHlod/cellArtifact.js.map +1 -0
- package/dist/sceneHlod/commands.d.ts +2 -0
- package/dist/sceneHlod/commands.js +114 -0
- package/dist/sceneHlod/commands.js.map +1 -0
- package/dist/sceneHlod/complete.d.ts +78 -0
- package/dist/sceneHlod/complete.js +261 -0
- package/dist/sceneHlod/complete.js.map +1 -0
- package/dist/sceneHlod/completePrototype.d.ts +39 -0
- package/dist/sceneHlod/completePrototype.js +121 -0
- package/dist/sceneHlod/completePrototype.js.map +1 -0
- package/dist/sceneHlod/geometry.d.ts +6 -0
- package/dist/sceneHlod/geometry.js +101 -0
- package/dist/sceneHlod/geometry.js.map +1 -0
- package/dist/sceneHlod/imageSampling.d.ts +11 -0
- package/dist/sceneHlod/imageSampling.js +100 -0
- package/dist/sceneHlod/imageSampling.js.map +1 -0
- package/dist/sceneHlod/refinement.d.ts +46 -0
- package/dist/sceneHlod/refinement.js +204 -0
- package/dist/sceneHlod/refinement.js.map +1 -0
- package/dist/sceneHlod/scene.d.ts +80 -0
- package/dist/sceneHlod/scene.js +264 -0
- package/dist/sceneHlod/scene.js.map +1 -0
- package/dist/sceneHlod/sharedAtlas.d.ts +37 -0
- package/dist/sceneHlod/sharedAtlas.js +84 -0
- package/dist/sceneHlod/sharedAtlas.js.map +1 -0
- package/dist/sceneHlod/source.d.ts +17 -0
- package/dist/sceneHlod/source.js +241 -0
- package/dist/sceneHlod/source.js.map +1 -0
- package/dist/sceneHlod/textureCodec.d.ts +4 -0
- package/dist/sceneHlod/textureCodec.js +66 -0
- package/dist/sceneHlod/textureCodec.js.map +1 -0
- package/dist/sceneHlod/transfer.d.ts +8 -0
- package/dist/sceneHlod/transfer.js +147 -0
- package/dist/sceneHlod/transfer.js.map +1 -0
- package/dist/sceneHlod/types.d.ts +69 -0
- package/dist/sceneHlod/types.js +3 -0
- package/dist/sceneHlod/types.js.map +1 -0
- package/dist/sceneImport/archive.d.ts +30 -0
- package/dist/sceneImport/archive.js +336 -0
- package/dist/sceneImport/archive.js.map +1 -0
- package/dist/sceneImport/bistroMaterialBake.d.ts +20 -0
- package/dist/sceneImport/bistroMaterialBake.js +169 -0
- package/dist/sceneImport/bistroMaterialBake.js.map +1 -0
- package/dist/sceneImport/bistroTexturePlan.d.ts +6 -0
- package/dist/sceneImport/bistroTexturePlan.js +23 -0
- package/dist/sceneImport/bistroTexturePlan.js.map +1 -0
- package/dist/sceneImport/compiler.d.ts +36 -0
- package/dist/sceneImport/compiler.js +251 -0
- package/dist/sceneImport/compiler.js.map +1 -0
- package/dist/sceneImport/composeMounts.d.ts +159 -0
- package/dist/sceneImport/composeMounts.js +687 -0
- package/dist/sceneImport/composeMounts.js.map +1 -0
- package/dist/sceneImport/defaultMaterials.d.ts +45 -0
- package/dist/sceneImport/defaultMaterials.js +121 -0
- package/dist/sceneImport/defaultMaterials.js.map +1 -0
- package/dist/sceneImport/externalTextures.d.ts +44 -0
- package/dist/sceneImport/externalTextures.js +146 -0
- package/dist/sceneImport/externalTextures.js.map +1 -0
- package/dist/sceneImport/fbx.d.ts +101 -0
- package/dist/sceneImport/fbx.js +307 -0
- package/dist/sceneImport/fbx.js.map +1 -0
- package/dist/sceneImport/glbSplit.d.ts +24 -0
- package/dist/sceneImport/glbSplit.js +95 -0
- package/dist/sceneImport/glbSplit.js.map +1 -0
- package/dist/sceneImport/gltfIo.d.ts +32 -0
- package/dist/sceneImport/gltfIo.js +39 -0
- package/dist/sceneImport/gltfIo.js.map +1 -0
- package/dist/sceneImport/helsinkiTiles.d.ts +31 -0
- package/dist/sceneImport/helsinkiTiles.js +52 -0
- package/dist/sceneImport/helsinkiTiles.js.map +1 -0
- package/dist/sceneImport/materials/binding.d.ts +16 -0
- package/dist/sceneImport/materials/binding.js +42 -0
- package/dist/sceneImport/materials/binding.js.map +1 -0
- package/dist/sceneImport/materials/catalog.d.ts +36 -0
- package/dist/sceneImport/materials/catalog.js +233 -0
- package/dist/sceneImport/materials/catalog.js.map +1 -0
- package/dist/sceneImport/materials/index.d.ts +4 -0
- package/dist/sceneImport/materials/index.js +21 -0
- package/dist/sceneImport/materials/index.js.map +1 -0
- package/dist/sceneImport/materials/matcher.d.ts +33 -0
- package/dist/sceneImport/materials/matcher.js +127 -0
- package/dist/sceneImport/materials/matcher.js.map +1 -0
- package/dist/sceneImport/materials/recipe.d.ts +30 -0
- package/dist/sceneImport/materials/recipe.js +134 -0
- package/dist/sceneImport/materials/recipe.js.map +1 -0
- package/dist/sceneImport/multiAsset.d.ts +79 -0
- package/dist/sceneImport/multiAsset.js +535 -0
- package/dist/sceneImport/multiAsset.js.map +1 -0
- package/dist/sceneImport/multiAssetSpawn.d.ts +40 -0
- package/dist/sceneImport/multiAssetSpawn.js +98 -0
- package/dist/sceneImport/multiAssetSpawn.js.map +1 -0
- package/dist/sceneImport/obj.d.ts +41 -0
- package/dist/sceneImport/obj.js +276 -0
- package/dist/sceneImport/obj.js.map +1 -0
- package/dist/sceneImport/package.d.ts +104 -0
- package/dist/sceneImport/package.js +1004 -0
- package/dist/sceneImport/package.js.map +1 -0
- package/dist/sceneImport/packageReader.d.ts +10 -0
- package/dist/sceneImport/packageReader.js +250 -0
- package/dist/sceneImport/packageReader.js.map +1 -0
- package/dist/sceneImport/proxy.d.ts +100 -0
- package/dist/sceneImport/proxy.js +334 -0
- package/dist/sceneImport/proxy.js.map +1 -0
- package/dist/sceneImport/publish.d.ts +47 -0
- package/dist/sceneImport/publish.js +98 -0
- package/dist/sceneImport/publish.js.map +1 -0
- package/dist/sceneImport/semantic.d.ts +75 -0
- package/dist/sceneImport/semantic.js +296 -0
- package/dist/sceneImport/semantic.js.map +1 -0
- package/dist/sceneImport/spawnProbe.d.ts +55 -0
- package/dist/sceneImport/spawnProbe.js +159 -0
- package/dist/sceneImport/spawnProbe.js.map +1 -0
- package/dist/sceneImport/streamLayout.d.ts +96 -0
- package/dist/sceneImport/streamLayout.js +203 -0
- package/dist/sceneImport/streamLayout.js.map +1 -0
- package/dist/sceneImport/textureDecode.d.ts +21 -0
- package/dist/sceneImport/textureDecode.js +292 -0
- package/dist/sceneImport/textureDecode.js.map +1 -0
- package/dist/sceneImport/types.d.ts +84 -0
- package/dist/sceneImport/types.js +58 -0
- package/dist/sceneImport/types.js.map +1 -0
- package/dist/scenePerformance.d.ts +162 -0
- package/dist/scenePerformance.js +905 -0
- package/dist/scenePerformance.js.map +1 -0
- package/dist/screenshot/captureScreenshots.d.ts +36 -0
- package/dist/screenshot/captureScreenshots.js +229 -0
- package/dist/screenshot/captureScreenshots.js.map +1 -0
- package/dist/screenshot/encodeImagePreview.d.ts +5 -0
- package/dist/screenshot/encodeImagePreview.js +42 -0
- package/dist/screenshot/encodeImagePreview.js.map +1 -0
- package/dist/screenshot/publishThumbnail.d.ts +4 -0
- package/dist/screenshot/publishThumbnail.js +56 -0
- package/dist/screenshot/publishThumbnail.js.map +1 -0
- package/dist/screenshot/staticServe.d.ts +14 -0
- package/dist/screenshot/staticServe.js +120 -0
- package/dist/screenshot/staticServe.js.map +1 -0
- package/dist/source-archive.d.ts +101 -0
- package/dist/source-archive.js +309 -0
- package/dist/source-archive.js.map +1 -0
- package/dist/stdioBlocking.d.ts +1 -0
- package/dist/stdioBlocking.js +9 -0
- package/dist/stdioBlocking.js.map +1 -0
- package/dist/terrain/bake.d.ts +40 -0
- package/dist/terrain/bake.js +318 -0
- package/dist/terrain/bake.js.map +1 -0
- package/dist/terrain/generate.d.ts +21 -0
- package/dist/terrain/generate.js +239 -0
- package/dist/terrain/generate.js.map +1 -0
- package/dist/terrain/grid.d.ts +48 -0
- package/dist/terrain/grid.js +133 -0
- package/dist/terrain/grid.js.map +1 -0
- package/dist/terrain/import.d.ts +40 -0
- package/dist/terrain/import.js +252 -0
- package/dist/terrain/import.js.map +1 -0
- package/dist/terrain/index.d.ts +11 -0
- package/dist/terrain/index.js +88 -0
- package/dist/terrain/index.js.map +1 -0
- package/dist/terrain/inspect.d.ts +35 -0
- package/dist/terrain/inspect.js +115 -0
- package/dist/terrain/inspect.js.map +1 -0
- package/dist/terrain/island.d.ts +31 -0
- package/dist/terrain/island.js +128 -0
- package/dist/terrain/island.js.map +1 -0
- package/dist/terrain/noise.d.ts +79 -0
- package/dist/terrain/noise.js +162 -0
- package/dist/terrain/noise.js.map +1 -0
- package/dist/terrain/normals.d.ts +21 -0
- package/dist/terrain/normals.js +55 -0
- package/dist/terrain/normals.js.map +1 -0
- package/dist/terrain/presets/alpine.json +20 -0
- package/dist/terrain/presets/coast.json +20 -0
- package/dist/terrain/presets/desert.json +22 -0
- package/dist/terrain/presets/forest.json +20 -0
- package/dist/terrain/presets/meadow.json +20 -0
- package/dist/terrain/presets/volcanic.json +22 -0
- package/dist/terrain/presets.d.ts +29 -0
- package/dist/terrain/presets.js +128 -0
- package/dist/terrain/presets.js.map +1 -0
- package/dist/terrain/source.d.ts +42 -0
- package/dist/terrain/source.js +241 -0
- package/dist/terrain/source.js.map +1 -0
- package/dist/terrain/tile.d.ts +92 -0
- package/dist/terrain/tile.js +268 -0
- package/dist/terrain/tile.js.map +1 -0
- package/dist/textureAudit.d.ts +23 -0
- package/dist/textureAudit.js +192 -0
- package/dist/textureAudit.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/unreal/avatarMode.d.ts +21 -0
- package/dist/unreal/avatarMode.js +33 -0
- package/dist/unreal/avatarMode.js.map +1 -0
- package/dist/unreal/delivery.d.ts +46 -0
- package/dist/unreal/delivery.js +89 -0
- package/dist/unreal/delivery.js.map +1 -0
- package/dist/unreal/doctor.d.ts +50 -0
- package/dist/unreal/doctor.js +102 -0
- package/dist/unreal/doctor.js.map +1 -0
- package/dist/unreal/package.d.ts +80 -0
- package/dist/unreal/package.js +273 -0
- package/dist/unreal/package.js.map +1 -0
- package/dist/unreal/release.d.ts +41 -0
- package/dist/unreal/release.js +122 -0
- package/dist/unreal/release.js.map +1 -0
- package/dist/unreal.d.ts +30 -0
- package/dist/unreal.js +362 -0
- package/dist/unreal.js.map +1 -0
- package/dist/unrealCandidate.d.ts +213 -0
- package/dist/unrealCandidate.js +765 -0
- package/dist/unrealCandidate.js.map +1 -0
- package/dist/unrealManifest.d.ts +74 -0
- package/dist/unrealManifest.js +354 -0
- package/dist/unrealManifest.js.map +1 -0
- package/dist/unrealPublish.d.ts +111 -0
- package/dist/unrealPublish.js +331 -0
- package/dist/unrealPublish.js.map +1 -0
- package/dist/vault.d.ts +121 -0
- package/dist/vault.js +136 -0
- package/dist/vault.js.map +1 -0
- package/dist/vehicle/addOnDefinition.d.ts +19 -0
- package/dist/vehicle/addOnDefinition.js +21 -0
- package/dist/vehicle/addOnDefinition.js.map +1 -0
- package/dist/vehicle/addon.d.ts +158 -0
- package/dist/vehicle/addon.js +441 -0
- package/dist/vehicle/addon.js.map +1 -0
- package/dist/vehicle/addonDefinitionGuard.d.ts +53 -0
- package/dist/vehicle/addonDefinitionGuard.js +206 -0
- package/dist/vehicle/addonDefinitionGuard.js.map +1 -0
- package/dist/vehicle/addonPublished.d.ts +80 -0
- package/dist/vehicle/addonPublished.js +221 -0
- package/dist/vehicle/addonPublished.js.map +1 -0
- package/dist/vehicle/audio.d.ts +259 -0
- package/dist/vehicle/audio.js +1069 -0
- package/dist/vehicle/audio.js.map +1 -0
- package/dist/vehicle/audioDefects.d.ts +125 -0
- package/dist/vehicle/audioDefects.js +591 -0
- package/dist/vehicle/audioDefects.js.map +1 -0
- package/dist/vehicle/audioDistinct.d.ts +62 -0
- package/dist/vehicle/audioDistinct.js +479 -0
- package/dist/vehicle/audioDistinct.js.map +1 -0
- package/dist/vehicle/audioImport.d.ts +217 -0
- package/dist/vehicle/audioImport.js +610 -0
- package/dist/vehicle/audioImport.js.map +1 -0
- package/dist/vehicle/audioProvenance.d.ts +47 -0
- package/dist/vehicle/audioProvenance.js +364 -0
- package/dist/vehicle/audioProvenance.js.map +1 -0
- package/dist/vehicle/audioReference.d.ts +36 -0
- package/dist/vehicle/audioReference.js +176 -0
- package/dist/vehicle/audioReference.js.map +1 -0
- package/dist/vehicle/audioSlots.d.ts +27 -0
- package/dist/vehicle/audioSlots.js +43 -0
- package/dist/vehicle/audioSlots.js.map +1 -0
- package/dist/vehicle/audioSpectral.d.ts +71 -0
- package/dist/vehicle/audioSpectral.js +534 -0
- package/dist/vehicle/audioSpectral.js.map +1 -0
- package/dist/vehicle/cabinCheck.d.ts +209 -0
- package/dist/vehicle/cabinCheck.js +799 -0
- package/dist/vehicle/cabinCheck.js.map +1 -0
- package/dist/vehicle/drive.d.ts +66 -0
- package/dist/vehicle/drive.js +228 -0
- package/dist/vehicle/drive.js.map +1 -0
- package/dist/vehicle/enginePolicy.d.ts +68 -0
- package/dist/vehicle/enginePolicy.js +209 -0
- package/dist/vehicle/enginePolicy.js.map +1 -0
- package/dist/vehicle/hostFrame.d.ts +78 -0
- package/dist/vehicle/hostFrame.js +136 -0
- package/dist/vehicle/hostFrame.js.map +1 -0
- package/dist/vehicle/inspectionSheets.d.ts +42 -0
- package/dist/vehicle/inspectionSheets.js +173 -0
- package/dist/vehicle/inspectionSheets.js.map +1 -0
- package/dist/vehicle/keyboardLaunch.d.ts +189 -0
- package/dist/vehicle/keyboardLaunch.js +340 -0
- package/dist/vehicle/keyboardLaunch.js.map +1 -0
- package/dist/vehicle/lampCoverage.d.ts +49 -0
- package/dist/vehicle/lampCoverage.js +252 -0
- package/dist/vehicle/lampCoverage.js.map +1 -0
- package/dist/vehicle/mintAddOn.d.ts +110 -0
- package/dist/vehicle/mintAddOn.js +321 -0
- package/dist/vehicle/mintAddOn.js.map +1 -0
- package/dist/vehicle/mintVehicle.d.ts +189 -0
- package/dist/vehicle/mintVehicle.js +417 -0
- package/dist/vehicle/mintVehicle.js.map +1 -0
- package/dist/vehicle/paintHue.d.ts +89 -0
- package/dist/vehicle/paintHue.js +248 -0
- package/dist/vehicle/paintHue.js.map +1 -0
- package/dist/vehicle/panelCoverage.d.ts +37 -0
- package/dist/vehicle/panelCoverage.js +93 -0
- package/dist/vehicle/panelCoverage.js.map +1 -0
- package/dist/vehicle/platform.d.ts +71 -0
- package/dist/vehicle/platform.js +144 -0
- package/dist/vehicle/platform.js.map +1 -0
- package/dist/vehicle/preview.d.ts +339 -0
- package/dist/vehicle/preview.js +854 -0
- package/dist/vehicle/preview.js.map +1 -0
- package/dist/vehicle/previewAddon.d.ts +197 -0
- package/dist/vehicle/previewAddon.js +520 -0
- package/dist/vehicle/previewAddon.js.map +1 -0
- package/dist/vehicle/previewSeats.d.ts +102 -0
- package/dist/vehicle/previewSeats.js +190 -0
- package/dist/vehicle/previewSeats.js.map +1 -0
- package/dist/vehicle/publish.d.ts +78 -0
- package/dist/vehicle/publish.js +111 -0
- package/dist/vehicle/publish.js.map +1 -0
- package/dist/vehicle/recheckListed.d.ts +87 -0
- package/dist/vehicle/recheckListed.js +200 -0
- package/dist/vehicle/recheckListed.js.map +1 -0
- package/dist/vehicle/renditionManifest.d.ts +10 -0
- package/dist/vehicle/renditionManifest.js +56 -0
- package/dist/vehicle/renditionManifest.js.map +1 -0
- package/dist/vehicle/sealCheck.d.ts +30 -0
- package/dist/vehicle/sealCheck.js +59 -0
- package/dist/vehicle/sealCheck.js.map +1 -0
- package/dist/vehicle/simulate.d.ts +219 -0
- package/dist/vehicle/simulate.js +536 -0
- package/dist/vehicle/simulate.js.map +1 -0
- package/dist/vehicle/simulateRuntime.d.ts +76 -0
- package/dist/vehicle/simulateRuntime.js +252 -0
- package/dist/vehicle/simulateRuntime.js.map +1 -0
- package/dist/vehicle/testutil/sourcedAudio.d.ts +13 -0
- package/dist/vehicle/testutil/sourcedAudio.js +96 -0
- package/dist/vehicle/testutil/sourcedAudio.js.map +1 -0
- package/dist/vehicle/validate.d.ts +225 -0
- package/dist/vehicle/validate.js +956 -0
- package/dist/vehicle/validate.js.map +1 -0
- package/dist/vehicle/wheelDesign.d.ts +98 -0
- package/dist/vehicle/wheelDesign.js +276 -0
- package/dist/vehicle/wheelDesign.js.map +1 -0
- package/dist/verifySubPath.d.ts +69 -0
- package/dist/verifySubPath.js +458 -0
- package/dist/verifySubPath.js.map +1 -0
- package/dist/visualQa/animation.d.ts +57 -0
- package/dist/visualQa/animation.js +503 -0
- package/dist/visualQa/animation.js.map +1 -0
- package/dist/visualQa/avatar.d.ts +3 -0
- package/dist/visualQa/avatar.js +443 -0
- package/dist/visualQa/avatar.js.map +1 -0
- package/dist/visualQa/avatarMath.d.ts +180 -0
- package/dist/visualQa/avatarMath.js +318 -0
- package/dist/visualQa/avatarMath.js.map +1 -0
- package/dist/visualQa/avatarPreview.d.ts +26 -0
- package/dist/visualQa/avatarPreview.js +167 -0
- package/dist/visualQa/avatarPreview.js.map +1 -0
- package/dist/visualQa/avatarPreviewMath.d.ts +189 -0
- package/dist/visualQa/avatarPreviewMath.js +696 -0
- package/dist/visualQa/avatarPreviewMath.js.map +1 -0
- package/dist/visualQa/avatarPreviewProbe.d.ts +7 -0
- package/dist/visualQa/avatarPreviewProbe.js +181 -0
- package/dist/visualQa/avatarPreviewProbe.js.map +1 -0
- package/dist/visualQa/avatarProbe.d.ts +1 -0
- package/dist/visualQa/avatarProbe.js +264 -0
- package/dist/visualQa/avatarProbe.js.map +1 -0
- package/dist/visualQa/browser.d.ts +116 -0
- package/dist/visualQa/browser.js +817 -0
- package/dist/visualQa/browser.js.map +1 -0
- package/dist/visualQa/candidate.d.ts +116 -0
- package/dist/visualQa/candidate.js +265 -0
- package/dist/visualQa/candidate.js.map +1 -0
- package/dist/visualQa/checklists.d.ts +31 -0
- package/dist/visualQa/checklists.js +160 -0
- package/dist/visualQa/checklists.js.map +1 -0
- package/dist/visualQa/command.d.ts +110 -0
- package/dist/visualQa/command.js +521 -0
- package/dist/visualQa/command.js.map +1 -0
- package/dist/visualQa/commonAsserts.d.ts +68 -0
- package/dist/visualQa/commonAsserts.js +239 -0
- package/dist/visualQa/commonAsserts.js.map +1 -0
- package/dist/visualQa/contactSheet.d.ts +32 -0
- package/dist/visualQa/contactSheet.js +153 -0
- package/dist/visualQa/contactSheet.js.map +1 -0
- package/dist/visualQa/critic.d.ts +18 -0
- package/dist/visualQa/critic.js +179 -0
- package/dist/visualQa/critic.js.map +1 -0
- package/dist/visualQa/emotePage.d.ts +10 -0
- package/dist/visualQa/emotePage.js +249 -0
- package/dist/visualQa/emotePage.js.map +1 -0
- package/dist/visualQa/evidenceOverlay.d.ts +74 -0
- package/dist/visualQa/evidenceOverlay.js +268 -0
- package/dist/visualQa/evidenceOverlay.js.map +1 -0
- package/dist/visualQa/harness.d.ts +57 -0
- package/dist/visualQa/harness.js +3 -0
- package/dist/visualQa/harness.js.map +1 -0
- package/dist/visualQa/hosted.d.ts +152 -0
- package/dist/visualQa/hosted.js +367 -0
- package/dist/visualQa/hosted.js.map +1 -0
- package/dist/visualQa/labelLimit.d.ts +12 -0
- package/dist/visualQa/labelLimit.js +31 -0
- package/dist/visualQa/labelLimit.js.map +1 -0
- package/dist/visualQa/mirror.d.ts +36 -0
- package/dist/visualQa/mirror.js +98 -0
- package/dist/visualQa/mirror.js.map +1 -0
- package/dist/visualQa/moveUx.d.ts +44 -0
- package/dist/visualQa/moveUx.js +103 -0
- package/dist/visualQa/moveUx.js.map +1 -0
- package/dist/visualQa/pinnedChrome.d.ts +63 -0
- package/dist/visualQa/pinnedChrome.js +214 -0
- package/dist/visualQa/pinnedChrome.js.map +1 -0
- package/dist/visualQa/resolve.d.ts +88 -0
- package/dist/visualQa/resolve.js +248 -0
- package/dist/visualQa/resolve.js.map +1 -0
- package/dist/visualQa/scene.d.ts +14 -0
- package/dist/visualQa/scene.js +688 -0
- package/dist/visualQa/scene.js.map +1 -0
- package/dist/visualQa/shot.d.ts +2 -0
- package/dist/visualQa/shot.js +27 -0
- package/dist/visualQa/shot.js.map +1 -0
- package/dist/visualQa/signIn.d.ts +35 -0
- package/dist/visualQa/signIn.js +144 -0
- package/dist/visualQa/signIn.js.map +1 -0
- package/dist/visualQa/submitBudget.d.ts +25 -0
- package/dist/visualQa/submitBudget.js +82 -0
- package/dist/visualQa/submitBudget.js.map +1 -0
- package/dist/visualQa/types.d.ts +195 -0
- package/dist/visualQa/types.js +12 -0
- package/dist/visualQa/types.js.map +1 -0
- package/dist/visualQa/vehicle.d.ts +130 -0
- package/dist/visualQa/vehicle.js +2002 -0
- package/dist/visualQa/vehicle.js.map +1 -0
- package/dist/visualQa/vehicleAddonProbe.d.ts +1 -0
- package/dist/visualQa/vehicleAddonProbe.js +115 -0
- package/dist/visualQa/vehicleAddonProbe.js.map +1 -0
- package/dist/visualQa/vehicleCabinFit.d.ts +78 -0
- package/dist/visualQa/vehicleCabinFit.js +55 -0
- package/dist/visualQa/vehicleCabinFit.js.map +1 -0
- package/dist/visualQa/vehicleClearance.d.ts +135 -0
- package/dist/visualQa/vehicleClearance.js +299 -0
- package/dist/visualQa/vehicleClearance.js.map +1 -0
- package/dist/visualQa/vehicleDriveAlive.d.ts +55 -0
- package/dist/visualQa/vehicleDriveAlive.js +103 -0
- package/dist/visualQa/vehicleDriveAlive.js.map +1 -0
- package/dist/visualQa/vehicleGrip.d.ts +156 -0
- package/dist/visualQa/vehicleGrip.js +439 -0
- package/dist/visualQa/vehicleGrip.js.map +1 -0
- package/dist/visualQa/vehicleInspection.d.ts +70 -0
- package/dist/visualQa/vehicleInspection.js +318 -0
- package/dist/visualQa/vehicleInspection.js.map +1 -0
- package/dist/visualQa/vehicleLamps.d.ts +120 -0
- package/dist/visualQa/vehicleLamps.js +377 -0
- package/dist/visualQa/vehicleLamps.js.map +1 -0
- package/dist/visualQa/vehicleMath.d.ts +440 -0
- package/dist/visualQa/vehicleMath.js +967 -0
- package/dist/visualQa/vehicleMath.js.map +1 -0
- package/dist/visualQa/vehicleOccupants.d.ts +66 -0
- package/dist/visualQa/vehicleOccupants.js +448 -0
- package/dist/visualQa/vehicleOccupants.js.map +1 -0
- package/dist/visualQa/vehiclePenetration.d.ts +172 -0
- package/dist/visualQa/vehiclePenetration.js +1157 -0
- package/dist/visualQa/vehiclePenetration.js.map +1 -0
- package/dist/visualQa/vehiclePoses.d.ts +25 -0
- package/dist/visualQa/vehiclePoses.js +56 -0
- package/dist/visualQa/vehiclePoses.js.map +1 -0
- package/dist/visualQa/vehiclePosture.d.ts +78 -0
- package/dist/visualQa/vehiclePosture.js +263 -0
- package/dist/visualQa/vehiclePosture.js.map +1 -0
- package/dist/visualQa/vehiclePreview.d.ts +103 -0
- package/dist/visualQa/vehiclePreview.js +312 -0
- package/dist/visualQa/vehiclePreview.js.map +1 -0
- package/dist/visualQa/vehicleProbe.d.ts +3 -0
- package/dist/visualQa/vehicleProbe.js +670 -0
- package/dist/visualQa/vehicleProbe.js.map +1 -0
- package/dist/visualQa/vehicleStance.d.ts +108 -0
- package/dist/visualQa/vehicleStance.js +200 -0
- package/dist/visualQa/vehicleStance.js.map +1 -0
- package/dist/visualQa/viewer.d.ts +6 -0
- package/dist/visualQa/viewer.js +750 -0
- package/dist/visualQa/viewer.js.map +1 -0
- package/dist/visualQa/viewerGeometry.d.ts +116 -0
- package/dist/visualQa/viewerGeometry.js +476 -0
- package/dist/visualQa/viewerGeometry.js.map +1 -0
- package/dist/visualQa/viewerPage.d.ts +11 -0
- package/dist/visualQa/viewerPage.js +414 -0
- package/dist/visualQa/viewerPage.js.map +1 -0
- package/dist/visualQa/webgpuSelfTest.d.ts +52 -0
- package/dist/visualQa/webgpuSelfTest.js +113 -0
- package/dist/visualQa/webgpuSelfTest.js.map +1 -0
- package/dist/visualQa/winChrome.d.ts +92 -0
- package/dist/visualQa/winChrome.js +445 -0
- package/dist/visualQa/winChrome.js.map +1 -0
- package/dist/visualQa/worldWalk.d.ts +59 -0
- package/dist/visualQa/worldWalk.js +523 -0
- package/dist/visualQa/worldWalk.js.map +1 -0
- package/dist/visualQa/worldWalkMath.d.ts +263 -0
- package/dist/visualQa/worldWalkMath.js +873 -0
- package/dist/visualQa/worldWalkMath.js.map +1 -0
- package/dist/visualQa/worldWalkProbe.d.ts +1 -0
- package/dist/visualQa/worldWalkProbe.js +206 -0
- package/dist/visualQa/worldWalkProbe.js.map +1 -0
- package/dist/visualsConfig.d.ts +65 -0
- package/dist/visualsConfig.js +1333 -0
- package/dist/visualsConfig.js.map +1 -0
- package/dist/voiceCommand.d.ts +11 -0
- package/dist/voiceCommand.js +101 -0
- package/dist/voiceCommand.js.map +1 -0
- package/dist/world/analyze.d.ts +51 -0
- package/dist/world/analyze.js +767 -0
- package/dist/world/analyze.js.map +1 -0
- package/dist/world/baseline.d.ts +33 -0
- package/dist/world/baseline.js +111 -0
- package/dist/world/baseline.js.map +1 -0
- package/dist/world/canonicalize.d.ts +7 -0
- package/dist/world/canonicalize.js +110 -0
- package/dist/world/canonicalize.js.map +1 -0
- package/dist/world/diff.d.ts +18 -0
- package/dist/world/diff.js +58 -0
- package/dist/world/diff.js.map +1 -0
- package/dist/world/focus.d.ts +11 -0
- package/dist/world/focus.js +161 -0
- package/dist/world/focus.js.map +1 -0
- package/dist/world/format.d.ts +6 -0
- package/dist/world/format.js +125 -0
- package/dist/world/format.js.map +1 -0
- package/dist/world/readWorldMetrics.d.ts +10 -0
- package/dist/world/readWorldMetrics.js +31 -0
- package/dist/world/readWorldMetrics.js.map +1 -0
- package/dist/world/snapshotTypes.d.ts +59 -0
- package/dist/world/snapshotTypes.js +8 -0
- package/dist/world/snapshotTypes.js.map +1 -0
- package/dist/world/snapshotWorld.d.ts +16 -0
- package/dist/world/snapshotWorld.js +142 -0
- package/dist/world/snapshotWorld.js.map +1 -0
- package/dist/world/wiring.d.ts +21 -0
- package/dist/world/wiring.js +73 -0
- package/dist/world/wiring.js.map +1 -0
- package/dist/world/zones.d.ts +23 -0
- package/dist/world/zones.js +134 -0
- package/dist/world/zones.js.map +1 -0
- package/docs/bridge.md +304 -0
- package/docs/device-hand-reach.md +44 -0
- package/docs/scene-hlod.md +139 -0
- package/docs/vehicle-audio-import.md +299 -0
- package/docs/vehicle-simulate.md +165 -0
- package/docs/visual-qa-candidate-versions.md +71 -0
- package/docs/visual-qa.md +462 -0
- package/package.json +69 -4
- package/plugins/beamng-vehicle/README.md +129 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_abs.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_engine.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_expression.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_jbeam.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_materials.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/beamng_stock_events.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/fmod_studio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/fsb5.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_ac.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_beamng.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/sim_audio_fixtures.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/test_beamng_engine.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/__pycache__/test_sim_audio.cpython-312.pyc +0 -0
- package/plugins/beamng-vehicle/bin/beamng-vehicle.mjs +1295 -0
- package/plugins/beamng-vehicle/bin/beamng_abs.py +408 -0
- package/plugins/beamng-vehicle/bin/beamng_audio.py +394 -0
- package/plugins/beamng-vehicle/bin/beamng_engine.py +184 -0
- package/plugins/beamng-vehicle/bin/beamng_expression.py +373 -0
- package/plugins/beamng-vehicle/bin/beamng_jbeam.py +858 -0
- package/plugins/beamng-vehicle/bin/beamng_materials.py +261 -0
- package/plugins/beamng-vehicle/bin/beamng_stock_events.py +171 -0
- package/plugins/beamng-vehicle/bin/convert-beamng.py +1563 -0
- package/plugins/beamng-vehicle/bin/fmod_studio.py +524 -0
- package/plugins/beamng-vehicle/bin/fsb5.py +304 -0
- package/plugins/beamng-vehicle/bin/index-beamng-common.mjs +16 -0
- package/plugins/beamng-vehicle/bin/index-beamng.py +69 -0
- package/plugins/beamng-vehicle/bin/lower-beamng.py +2399 -0
- package/plugins/beamng-vehicle/bin/sim_audio.py +250 -0
- package/plugins/beamng-vehicle/bin/sim_audio_ac.py +378 -0
- package/plugins/beamng-vehicle/bin/sim_audio_beamng.py +878 -0
- package/plugins/beamng-vehicle/bin/sim_audio_fixtures.py +287 -0
- package/plugins/beamng-vehicle/bin/sim_audio_import.py +135 -0
- package/plugins/beamng-vehicle/bin/test_beamng_engine.py +124 -0
- package/plugins/beamng-vehicle/bin/test_beamng_jbeam.py +383 -0
- package/plugins/beamng-vehicle/bin/test_beamng_precedence.py +134 -0
- package/plugins/beamng-vehicle/bin/test_sim_audio.py +249 -0
- package/plugins/beamng-vehicle/bridge-plugin.json +55 -0
- package/plugins/beamng-vehicle/controller-adapters/beamng-0.39.4-abs.json +52 -0
- package/plugins/beamng-vehicle/lib/common-dependency.mjs +357 -0
- package/plugins/beamng-vehicle/lib/dae-scan.mjs +40 -0
- package/plugins/beamng-vehicle/lib/file-identity.mjs +46 -0
- package/plugins/beamng-vehicle/lib/material-semantics.mjs +312 -0
- package/plugins/beamng-vehicle/lib/palette-contract.mjs +6 -0
- package/plugins/beamng-vehicle/lib/vehicle-qa.mjs +567 -0
- package/plugins/beamng-vehicle/lib/vehicle-source.mjs +247 -0
- package/plugins/beamng-vehicle/profiles/source-compatibility.json +14 -0
- package/plugins/beamng-vehicle/vendor/vehicle-package-v2.mjs +6451 -0
- package/vendor/README.md +63 -0
- package/vendor/ability-manifest.mjs +527 -6
- package/vendor/audits/asset-credits.mjs +96 -0
- package/vendor/audits/check-loaders.mjs +80 -0
- package/vendor/audits/perf-gate.mjs +759 -0
- package/vendor/audits/prove-live.mjs +307 -0
- package/vendor/audits/source-audit.mjs +530 -0
- package/vendor/audits/world-audit.mjs +439 -0
- package/vendor/capture-body.glb +0 -0
- package/vendor/capture-face.glb +0 -0
- package/vendor/installed-index.mjs +1 -1
- package/vendor/vehicle-package-v2.mjs +6451 -0
|
@@ -0,0 +1,976 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compileSceneElementsBundle = compileSceneElementsBundle;
|
|
4
|
+
exports.compileSceneElements = compileSceneElements;
|
|
5
|
+
const node_path_1 = require("node:path");
|
|
6
|
+
const helix_manifest_1 = require("@hypersoniclabs/helix-manifest");
|
|
7
|
+
const source_1 = require("../terrain/source");
|
|
8
|
+
const source_2 = require("../placements/source");
|
|
9
|
+
const meshCells_1 = require("./meshCells");
|
|
10
|
+
const devices_1 = require("./devices");
|
|
11
|
+
const DEFAULT_MATERIAL = {
|
|
12
|
+
color: '#d8d2c8',
|
|
13
|
+
roughness: 0.82,
|
|
14
|
+
metalness: 0,
|
|
15
|
+
};
|
|
16
|
+
function finite(value, label) {
|
|
17
|
+
if (!Number.isFinite(value))
|
|
18
|
+
throw new Error(`${label} must be finite`);
|
|
19
|
+
return value;
|
|
20
|
+
}
|
|
21
|
+
function positive(value, label) {
|
|
22
|
+
finite(value, label);
|
|
23
|
+
if (value <= 0)
|
|
24
|
+
throw new Error(`${label} must be greater than zero`);
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
function id(value, label) {
|
|
28
|
+
if (!/^[A-Za-z0-9][A-Za-z0-9._:-]*$/.test(value)) {
|
|
29
|
+
throw new Error(`${label} must be a stable Scene id`);
|
|
30
|
+
}
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
function vec3(value, label) {
|
|
34
|
+
if (!Array.isArray(value) || value.length !== 3)
|
|
35
|
+
throw new Error(`${label} must contain three numbers`);
|
|
36
|
+
return value.map((part, index) => finite(part, `${label}[${index}]`));
|
|
37
|
+
}
|
|
38
|
+
function inlineMaterial(input) {
|
|
39
|
+
const resolved = { ...DEFAULT_MATERIAL, ...input };
|
|
40
|
+
if (!/^#[0-9a-fA-F]{6}$/.test(resolved.color))
|
|
41
|
+
throw new Error(`material color must be #RRGGBB`);
|
|
42
|
+
if (resolved.roughness < 0 || resolved.roughness > 1)
|
|
43
|
+
throw new Error('material roughness must be between 0 and 1');
|
|
44
|
+
if (resolved.metalness < 0 || resolved.metalness > 1)
|
|
45
|
+
throw new Error('material metalness must be between 0 and 1');
|
|
46
|
+
return resolved;
|
|
47
|
+
}
|
|
48
|
+
function materialIdPart(value) {
|
|
49
|
+
id(value, 'material id');
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* A named `materials` entry is a compile-time-only alias for one inline
|
|
54
|
+
* color (ADR-0004 P6: the Vault material pin this used to validate —
|
|
55
|
+
* assetId/revision/integritySha256/bytes/defaults — is gone; every surface
|
|
56
|
+
* is its exact inline color now, never a Vault-backed Scene resource).
|
|
57
|
+
*/
|
|
58
|
+
function compileMaterials(input) {
|
|
59
|
+
const compiled = new Map();
|
|
60
|
+
for (const [key, material] of Object.entries(input ?? {}).sort(([a], [b]) => a.localeCompare(b))) {
|
|
61
|
+
materialIdPart(key);
|
|
62
|
+
compiled.set(key, { fallback: inlineMaterial(material) });
|
|
63
|
+
}
|
|
64
|
+
return compiled;
|
|
65
|
+
}
|
|
66
|
+
function resolveMaterial(input, catalog) {
|
|
67
|
+
if (input && 'ref' in input) {
|
|
68
|
+
const compiled = catalog.get(input.ref);
|
|
69
|
+
if (!compiled)
|
|
70
|
+
throw new Error(`unknown material ref "${input.ref}"`);
|
|
71
|
+
return { fallback: compiled.fallback, sceneMaterialId: null };
|
|
72
|
+
}
|
|
73
|
+
return { fallback: inlineMaterial(input), sceneMaterialId: null };
|
|
74
|
+
}
|
|
75
|
+
function yawQuaternion(degrees) {
|
|
76
|
+
finite(degrees, 'rotationYDeg');
|
|
77
|
+
const radians = degrees * Math.PI / 180;
|
|
78
|
+
return [0, Math.sin(radians / 2), 0, Math.cos(radians / 2)];
|
|
79
|
+
}
|
|
80
|
+
function quaternion(value, label) {
|
|
81
|
+
if (!Array.isArray(value) || value.length !== 4)
|
|
82
|
+
throw new Error(`${label} must contain four numbers`);
|
|
83
|
+
const parts = value.map((part, index) => finite(part, `${label}[${index}]`));
|
|
84
|
+
const length = Math.hypot(...parts);
|
|
85
|
+
if (length < 1e-8)
|
|
86
|
+
throw new Error(`${label} must not be zero length`);
|
|
87
|
+
return parts.map((part) => part / length);
|
|
88
|
+
}
|
|
89
|
+
function rotatedBoxBounds(position, size, rotation) {
|
|
90
|
+
const [x, y, z, w] = rotation;
|
|
91
|
+
const matrix = [
|
|
92
|
+
[1 - 2 * (y * y + z * z), 2 * (x * y - z * w), 2 * (x * z + y * w)],
|
|
93
|
+
[2 * (x * y + z * w), 1 - 2 * (x * x + z * z), 2 * (y * z - x * w)],
|
|
94
|
+
[2 * (x * z - y * w), 2 * (y * z + x * w), 1 - 2 * (x * x + y * y)],
|
|
95
|
+
];
|
|
96
|
+
const half = size.map((part) => part / 2);
|
|
97
|
+
const extent = matrix.map((row) => row.reduce((sum, part, axis) => sum + Math.abs(part) * half[axis], 0));
|
|
98
|
+
return {
|
|
99
|
+
min: position.map((part, axis) => part - extent[axis]),
|
|
100
|
+
max: position.map((part, axis) => part + extent[axis]),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function expandBounds(a, b) {
|
|
104
|
+
if (!a)
|
|
105
|
+
return { min: [...b.min], max: [...b.max] };
|
|
106
|
+
return {
|
|
107
|
+
min: a.min.map((value, axis) => Math.min(value, b.min[axis])),
|
|
108
|
+
max: a.max.map((value, axis) => Math.max(value, b.max[axis])),
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
function translateBounds(bounds, position) {
|
|
112
|
+
return {
|
|
113
|
+
min: bounds.min.map((value, axis) => value + position[axis]),
|
|
114
|
+
max: bounds.max.map((value, axis) => value + position[axis]),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
function addVec3(a, b) {
|
|
118
|
+
return a.map((value, axis) => value + b[axis]);
|
|
119
|
+
}
|
|
120
|
+
function elementId(value, seen) {
|
|
121
|
+
id(value, 'element id');
|
|
122
|
+
if (seen.has(value))
|
|
123
|
+
throw new Error(`duplicate semantic element id "${value}"`);
|
|
124
|
+
seen.add(value);
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
function streamPolicy(input, inherited) {
|
|
128
|
+
const priority = input?.priority ?? inherited.priority;
|
|
129
|
+
if (!Number.isInteger(priority) || priority < 0 || priority > 1000) {
|
|
130
|
+
throw new Error('stream priority must be an integer between 0 and 1000');
|
|
131
|
+
}
|
|
132
|
+
return { mode: input?.mode ?? inherited.mode, priority };
|
|
133
|
+
}
|
|
134
|
+
function inheritProperties(input, inherited, defaults) {
|
|
135
|
+
const role = input.role ?? defaults?.role ?? inherited.role;
|
|
136
|
+
const defaultedStream = defaults?.streamMode && input.stream?.mode === undefined
|
|
137
|
+
? { ...inherited.stream, mode: defaults.streamMode }
|
|
138
|
+
: inherited.stream;
|
|
139
|
+
return {
|
|
140
|
+
material: input.material ?? inherited.material,
|
|
141
|
+
collision: input.collision ?? inherited.collision,
|
|
142
|
+
role,
|
|
143
|
+
stream: streamPolicy(input.stream, defaultedStream),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
function leafGeometry(element) {
|
|
147
|
+
if (element.type === 'wall') {
|
|
148
|
+
const startX = finite(element.start[0], `${element.id}.start[0]`);
|
|
149
|
+
const startZ = finite(element.start[1], `${element.id}.start[1]`);
|
|
150
|
+
const endX = finite(element.end[0], `${element.id}.end[0]`);
|
|
151
|
+
const endZ = finite(element.end[1], `${element.id}.end[1]`);
|
|
152
|
+
const height = positive(element.height, `${element.id}.height`);
|
|
153
|
+
const thickness = positive(element.thickness, `${element.id}.thickness`);
|
|
154
|
+
const length = Math.hypot(endX - startX, endZ - startZ);
|
|
155
|
+
positive(length, `${element.id} wall length`);
|
|
156
|
+
const baseY = finite(element.baseY ?? 0, `${element.id}.baseY`);
|
|
157
|
+
const halfThickness = thickness / 2;
|
|
158
|
+
return {
|
|
159
|
+
position: [(startX + endX) / 2, baseY + height / 2, (startZ + endZ) / 2],
|
|
160
|
+
size: [length, height, thickness],
|
|
161
|
+
rotation: yawQuaternion(-Math.atan2(endZ - startZ, endX - startX) * 180 / Math.PI),
|
|
162
|
+
bounds: {
|
|
163
|
+
min: [Math.min(startX, endX) - halfThickness, baseY, Math.min(startZ, endZ) - halfThickness],
|
|
164
|
+
max: [Math.max(startX, endX) + halfThickness, baseY + height, Math.max(startZ, endZ) + halfThickness],
|
|
165
|
+
},
|
|
166
|
+
slot: 'wall',
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
if (element.type !== 'primitive') {
|
|
170
|
+
const width = positive(element.size[0], `${element.id}.size[0]`);
|
|
171
|
+
const depth = positive(element.size[1], `${element.id}.size[1]`);
|
|
172
|
+
const thickness = positive(element.thickness, `${element.id}.thickness`);
|
|
173
|
+
const x = finite(element.center[0], `${element.id}.center[0]`);
|
|
174
|
+
const z = finite(element.center[1], `${element.id}.center[1]`);
|
|
175
|
+
const y = finite(element.elevation, `${element.id}.elevation`);
|
|
176
|
+
return {
|
|
177
|
+
position: [x, y, z],
|
|
178
|
+
size: [width, thickness, depth],
|
|
179
|
+
rotation: [0, 0, 0, 1],
|
|
180
|
+
bounds: {
|
|
181
|
+
min: [x - width / 2, y - thickness / 2, z - depth / 2],
|
|
182
|
+
max: [x + width / 2, y + thickness / 2, z + depth / 2],
|
|
183
|
+
},
|
|
184
|
+
slot: element.type,
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
const position = vec3(element.position, `${element.id}.position`);
|
|
188
|
+
const size = vec3(element.size, `${element.id}.size`).map((part, axis) => positive(part, `${element.id}.size[${axis}]`));
|
|
189
|
+
if (element.rotation !== undefined && element.rotationYDeg !== undefined) {
|
|
190
|
+
throw new Error(`${element.id} must use rotation or rotationYDeg, not both`);
|
|
191
|
+
}
|
|
192
|
+
const rotation = element.rotation !== undefined
|
|
193
|
+
? quaternion(element.rotation, `${element.id}.rotation`)
|
|
194
|
+
: yawQuaternion(element.rotationYDeg ?? 0);
|
|
195
|
+
return {
|
|
196
|
+
position,
|
|
197
|
+
size,
|
|
198
|
+
rotation,
|
|
199
|
+
bounds: rotatedBoxBounds(position, size, rotation),
|
|
200
|
+
slot: element.slot ?? 'structure',
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
function compileLeaf(element, parent, streamGroup, materials, inherited, worldOffset) {
|
|
204
|
+
const geometry = leafGeometry(element);
|
|
205
|
+
const nodeId = `node.${element.id}`;
|
|
206
|
+
const primitiveId = `primitive.${element.id}`;
|
|
207
|
+
const surfaceId = `surface.${element.id}`;
|
|
208
|
+
const collisionSetId = `collision.${element.id}`;
|
|
209
|
+
const properties = inheritProperties(element, inherited);
|
|
210
|
+
const collisionEnabled = properties.collision;
|
|
211
|
+
const resolvedMaterial = resolveMaterial(properties.material, materials);
|
|
212
|
+
const node = {
|
|
213
|
+
id: nodeId,
|
|
214
|
+
parent,
|
|
215
|
+
transform: {
|
|
216
|
+
position: geometry.position,
|
|
217
|
+
rotation: geometry.rotation,
|
|
218
|
+
scale: [1, 1, 1],
|
|
219
|
+
},
|
|
220
|
+
streamGroup,
|
|
221
|
+
components: [
|
|
222
|
+
{
|
|
223
|
+
type: 'render.primitive',
|
|
224
|
+
primitive: {
|
|
225
|
+
id: primitiveId,
|
|
226
|
+
shape: 'box',
|
|
227
|
+
size: geometry.size,
|
|
228
|
+
material: resolvedMaterial.fallback,
|
|
229
|
+
},
|
|
230
|
+
castShadow: element.type !== 'floor',
|
|
231
|
+
receiveShadow: true,
|
|
232
|
+
},
|
|
233
|
+
{ type: 'surface.bindings', surfaces: [surfaceId] },
|
|
234
|
+
...(collisionEnabled ? [{ type: 'collision.proxy-set', set: collisionSetId }] : []),
|
|
235
|
+
],
|
|
236
|
+
};
|
|
237
|
+
return {
|
|
238
|
+
node,
|
|
239
|
+
bounds: translateBounds(geometry.bounds, worldOffset),
|
|
240
|
+
surface: {
|
|
241
|
+
id: surfaceId,
|
|
242
|
+
slot: geometry.slot,
|
|
243
|
+
node: nodeId,
|
|
244
|
+
selector: { primitiveIds: [primitiveId] },
|
|
245
|
+
default: resolvedMaterial.sceneMaterialId === null
|
|
246
|
+
? { kind: 'source' }
|
|
247
|
+
: { kind: 'material', material: resolvedMaterial.sceneMaterialId },
|
|
248
|
+
overridePolicy: { allowed: false, roles: [], parameters: [] },
|
|
249
|
+
},
|
|
250
|
+
collisionSet: collisionEnabled ? {
|
|
251
|
+
id: collisionSetId,
|
|
252
|
+
node: nodeId,
|
|
253
|
+
static: [{
|
|
254
|
+
id: `collider.${element.id}`,
|
|
255
|
+
shape: 'box',
|
|
256
|
+
center: [0, 0, 0],
|
|
257
|
+
halfExtents: geometry.size.map((part) => part / 2),
|
|
258
|
+
surface: surfaceId,
|
|
259
|
+
}],
|
|
260
|
+
} : null,
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
function compileLight(element, parent, streamGroup, worldOffset) {
|
|
264
|
+
const position = vec3(element.position, `${element.id}.position`);
|
|
265
|
+
if (!/^#[0-9a-fA-F]{6}$/.test(element.color)) {
|
|
266
|
+
throw new Error(`${element.id}.color must be #RRGGBB`);
|
|
267
|
+
}
|
|
268
|
+
const luminousIntensityCandela = positive(element.luminousIntensityCandela, `${element.id}.luminousIntensityCandela`);
|
|
269
|
+
const rangeM = positive(element.rangeM, `${element.id}.rangeM`);
|
|
270
|
+
if (element.rotation !== undefined && element.rotationYDeg !== undefined) {
|
|
271
|
+
throw new Error(`${element.id} must use rotation or rotationYDeg, not both`);
|
|
272
|
+
}
|
|
273
|
+
const rotation = element.rotation !== undefined
|
|
274
|
+
? quaternion(element.rotation, `${element.id}.rotation`)
|
|
275
|
+
: yawQuaternion(element.rotationYDeg ?? 0);
|
|
276
|
+
if (element.shadowMapSize !== undefined &&
|
|
277
|
+
![256, 512, 1024, 2048].includes(element.shadowMapSize)) {
|
|
278
|
+
throw new Error(`${element.id}.shadowMapSize must be 256, 512, 1024, or 2048`);
|
|
279
|
+
}
|
|
280
|
+
if (element.kind === 'spot') {
|
|
281
|
+
finite(element.innerConeDeg, `${element.id}.innerConeDeg`);
|
|
282
|
+
finite(element.outerConeDeg, `${element.id}.outerConeDeg`);
|
|
283
|
+
if (element.innerConeDeg < 0 ||
|
|
284
|
+
element.outerConeDeg > 90 ||
|
|
285
|
+
element.innerConeDeg >= element.outerConeDeg) {
|
|
286
|
+
throw new Error(`${element.id} spot cones must satisfy 0 <= innerConeDeg < outerConeDeg <= 90`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
const nodeId = `node.${element.id}`;
|
|
290
|
+
const lightId = `light.${element.id}`;
|
|
291
|
+
const shadow = {
|
|
292
|
+
enabled: element.castShadow ?? false,
|
|
293
|
+
mapSize: element.shadowMapSize ?? 512,
|
|
294
|
+
};
|
|
295
|
+
const light = element.kind === 'point'
|
|
296
|
+
? {
|
|
297
|
+
id: lightId,
|
|
298
|
+
node: nodeId,
|
|
299
|
+
type: 'point',
|
|
300
|
+
color: element.color,
|
|
301
|
+
luminousIntensityCandela,
|
|
302
|
+
rangeM,
|
|
303
|
+
shadow,
|
|
304
|
+
required: false,
|
|
305
|
+
fallback: { unsupported: 'unshadowed' },
|
|
306
|
+
}
|
|
307
|
+
: {
|
|
308
|
+
id: lightId,
|
|
309
|
+
node: nodeId,
|
|
310
|
+
type: 'spot',
|
|
311
|
+
color: element.color,
|
|
312
|
+
luminousIntensityCandela,
|
|
313
|
+
rangeM,
|
|
314
|
+
innerConeDeg: element.innerConeDeg,
|
|
315
|
+
outerConeDeg: element.outerConeDeg,
|
|
316
|
+
shadow,
|
|
317
|
+
required: false,
|
|
318
|
+
fallback: { unsupported: 'unshadowed' },
|
|
319
|
+
};
|
|
320
|
+
const worldPosition = addVec3(worldOffset, position);
|
|
321
|
+
return {
|
|
322
|
+
node: {
|
|
323
|
+
id: nodeId,
|
|
324
|
+
parent,
|
|
325
|
+
transform: { position, rotation, scale: [1, 1, 1] },
|
|
326
|
+
streamGroup,
|
|
327
|
+
components: [{ type: 'light.attachments', lights: [lightId] }],
|
|
328
|
+
},
|
|
329
|
+
light,
|
|
330
|
+
// A practical light must not enlarge a Space's portal activation volume by
|
|
331
|
+
// its illumination range. The containing architecture owns residency.
|
|
332
|
+
bounds: { min: worldPosition, max: [...worldPosition] },
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
function optionalRange(value, label, min, max) {
|
|
336
|
+
if (value === undefined)
|
|
337
|
+
return undefined;
|
|
338
|
+
finite(value, label);
|
|
339
|
+
if (value < min || value > max)
|
|
340
|
+
throw new Error(`${label} must be between ${min} and ${max}`);
|
|
341
|
+
return value;
|
|
342
|
+
}
|
|
343
|
+
function compileWater(element, parent, streamGroup, worldOffset) {
|
|
344
|
+
const position = vec3(element.position, `${element.id}.position`);
|
|
345
|
+
const size = vec3(element.size, `${element.id}.size`).map((part, axis) => positive(part, `${element.id}.size[${axis}]`));
|
|
346
|
+
const localBounds = {
|
|
347
|
+
min: size.map((part) => -part / 2),
|
|
348
|
+
max: size.map((part) => part / 2),
|
|
349
|
+
};
|
|
350
|
+
const surfaceHeight = finite(element.surfaceHeight ?? size[1] / 2, `${element.id}.surfaceHeight`);
|
|
351
|
+
if (surfaceHeight < localBounds.min[1] || surfaceHeight > localBounds.max[1]) {
|
|
352
|
+
throw new Error(`${element.id}.surfaceHeight must lie inside the volume's local Y bounds`);
|
|
353
|
+
}
|
|
354
|
+
const appearance = element.appearance;
|
|
355
|
+
if (appearance?.color !== undefined && !/^#[0-9a-fA-F]{6}$/.test(appearance.color)) {
|
|
356
|
+
throw new Error(`${element.id}.appearance.color must be #RRGGBB`);
|
|
357
|
+
}
|
|
358
|
+
optionalRange(appearance?.opacity, `${element.id}.appearance.opacity`, 0.05, 1);
|
|
359
|
+
optionalRange(appearance?.roughness, `${element.id}.appearance.roughness`, 0, 1);
|
|
360
|
+
optionalRange(appearance?.rippleScaleM, `${element.id}.appearance.rippleScaleM`, 0.05, 1000);
|
|
361
|
+
optionalRange(appearance?.rippleSpeedMps, `${element.id}.appearance.rippleSpeedMps`, 0, 20);
|
|
362
|
+
const swimming = element.swimming;
|
|
363
|
+
optionalRange(swimming?.entryDepthM, `${element.id}.swimming.entryDepthM`, 0.1, 5);
|
|
364
|
+
optionalRange(swimming?.exitDepthM, `${element.id}.swimming.exitDepthM`, 0, 5);
|
|
365
|
+
optionalRange(swimming?.floatDepthM, `${element.id}.swimming.floatDepthM`, 0.1, 5);
|
|
366
|
+
const rotation = yawQuaternion(element.rotationYDeg ?? 0);
|
|
367
|
+
return {
|
|
368
|
+
node: {
|
|
369
|
+
id: `node.${element.id}`,
|
|
370
|
+
parent,
|
|
371
|
+
transform: { position, rotation, scale: [1, 1, 1] },
|
|
372
|
+
streamGroup,
|
|
373
|
+
components: [{
|
|
374
|
+
type: 'water.volume',
|
|
375
|
+
shape: 'box',
|
|
376
|
+
bounds: localBounds,
|
|
377
|
+
surfaceHeight,
|
|
378
|
+
...(appearance ? { appearance } : {}),
|
|
379
|
+
...(swimming ? { swimming } : {}),
|
|
380
|
+
}],
|
|
381
|
+
},
|
|
382
|
+
bounds: translateBounds(rotatedBoxBounds(position, size, rotation), worldOffset),
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
function compileBuilding(building, rootNodeId, materials, version, ids) {
|
|
386
|
+
elementId(building.id, ids);
|
|
387
|
+
const children = version === 1 ? building.elements : building.children;
|
|
388
|
+
if (!children?.length) {
|
|
389
|
+
throw new Error(`building ${building.id} must contain at least one ${version === 1 ? 'element' : 'child'}`);
|
|
390
|
+
}
|
|
391
|
+
if (version === 1 && building.children !== undefined) {
|
|
392
|
+
throw new Error(`version 1 building ${building.id} must use elements, not children`);
|
|
393
|
+
}
|
|
394
|
+
if (version === 2 && building.elements !== undefined) {
|
|
395
|
+
throw new Error(`version 2 building ${building.id} must use children, not elements`);
|
|
396
|
+
}
|
|
397
|
+
const position = vec3(building.position ?? [0, 0, 0], `${building.id}.position`);
|
|
398
|
+
const groupId = `stream.${building.id}`;
|
|
399
|
+
const buildingNodeId = `node.${building.id}`;
|
|
400
|
+
const inherited = {
|
|
401
|
+
material: undefined,
|
|
402
|
+
collision: true,
|
|
403
|
+
role: 'exterior',
|
|
404
|
+
stream: { mode: 'distance', priority: 50 },
|
|
405
|
+
};
|
|
406
|
+
const properties = inheritProperties(building, inherited, { role: 'exterior' });
|
|
407
|
+
const buildingGroup = {
|
|
408
|
+
id: groupId,
|
|
409
|
+
mode: properties.stream.mode,
|
|
410
|
+
priority: properties.stream.priority,
|
|
411
|
+
dependency: 'stream.root',
|
|
412
|
+
nodes: [buildingNodeId],
|
|
413
|
+
bounds: null,
|
|
414
|
+
leafCount: 0,
|
|
415
|
+
};
|
|
416
|
+
const context = {
|
|
417
|
+
materials,
|
|
418
|
+
nodes: [],
|
|
419
|
+
leaves: [],
|
|
420
|
+
lights: [],
|
|
421
|
+
waterCount: 0,
|
|
422
|
+
groups: [buildingGroup],
|
|
423
|
+
ids,
|
|
424
|
+
};
|
|
425
|
+
context.nodes.push({
|
|
426
|
+
id: buildingNodeId,
|
|
427
|
+
parent: rootNodeId,
|
|
428
|
+
transform: { position, rotation: [0, 0, 0, 1], scale: [1, 1, 1] },
|
|
429
|
+
streamGroup: groupId,
|
|
430
|
+
});
|
|
431
|
+
const compileElement = (element, parentNodeId, activeGroup, inheritedProperties, worldOffset) => {
|
|
432
|
+
elementId(element.id, context.ids);
|
|
433
|
+
if (element.type === 'light') {
|
|
434
|
+
const compiledLight = compileLight(element, parentNodeId, activeGroup.id, worldOffset);
|
|
435
|
+
context.nodes.push(compiledLight.node);
|
|
436
|
+
context.lights.push(compiledLight.light);
|
|
437
|
+
activeGroup.nodes.push(compiledLight.node.id);
|
|
438
|
+
activeGroup.bounds = expandBounds(activeGroup.bounds, compiledLight.bounds);
|
|
439
|
+
activeGroup.leafCount += 1;
|
|
440
|
+
return compiledLight.bounds;
|
|
441
|
+
}
|
|
442
|
+
if (element.type === 'water') {
|
|
443
|
+
const compiledWater = compileWater(element, parentNodeId, activeGroup.id, worldOffset);
|
|
444
|
+
context.nodes.push(compiledWater.node);
|
|
445
|
+
activeGroup.nodes.push(compiledWater.node.id);
|
|
446
|
+
activeGroup.bounds = expandBounds(activeGroup.bounds, compiledWater.bounds);
|
|
447
|
+
activeGroup.leafCount += 1;
|
|
448
|
+
context.waterCount += 1;
|
|
449
|
+
return compiledWater.bounds;
|
|
450
|
+
}
|
|
451
|
+
if (element.type === 'wall' || element.type === 'floor' || element.type === 'ceiling' || element.type === 'primitive') {
|
|
452
|
+
const leaf = compileLeaf(element, parentNodeId, activeGroup.id, context.materials, inheritedProperties, worldOffset);
|
|
453
|
+
context.nodes.push(leaf.node);
|
|
454
|
+
context.leaves.push(leaf);
|
|
455
|
+
activeGroup.nodes.push(leaf.node.id);
|
|
456
|
+
activeGroup.bounds = expandBounds(activeGroup.bounds, leaf.bounds);
|
|
457
|
+
activeGroup.leafCount += 1;
|
|
458
|
+
return leaf.bounds;
|
|
459
|
+
}
|
|
460
|
+
const container = element;
|
|
461
|
+
if (container.children.length === 0) {
|
|
462
|
+
throw new Error(`${container.type} ${container.id} must contain at least one child`);
|
|
463
|
+
}
|
|
464
|
+
const defaultRole = container.type === 'space' ? 'interior' : undefined;
|
|
465
|
+
const resolvedRole = container.role ?? defaultRole ?? inheritedProperties.role;
|
|
466
|
+
const defaults = {
|
|
467
|
+
...(defaultRole ? { role: defaultRole } : {}),
|
|
468
|
+
...(resolvedRole === 'interior' ? { streamMode: 'portal' } : {}),
|
|
469
|
+
};
|
|
470
|
+
const containerProperties = inheritProperties(container, inheritedProperties, defaults);
|
|
471
|
+
const createsStreamBoundary = container.type === 'space' ||
|
|
472
|
+
container.role !== undefined ||
|
|
473
|
+
container.stream !== undefined ||
|
|
474
|
+
containerProperties.role !== inheritedProperties.role;
|
|
475
|
+
const localPosition = vec3(container.position ?? [0, 0, 0], `${container.id}.position`);
|
|
476
|
+
if (container.type === 'level') {
|
|
477
|
+
localPosition[1] += finite(container.elevation ?? 0, `${container.id}.elevation`);
|
|
478
|
+
}
|
|
479
|
+
const containerWorldOffset = addVec3(worldOffset, localPosition);
|
|
480
|
+
const containerNodeId = `node.${container.id}`;
|
|
481
|
+
let containerGroup = activeGroup;
|
|
482
|
+
if (createsStreamBoundary) {
|
|
483
|
+
containerGroup = {
|
|
484
|
+
id: `stream.${container.id}`,
|
|
485
|
+
mode: containerProperties.stream.mode,
|
|
486
|
+
priority: containerProperties.stream.priority,
|
|
487
|
+
dependency: activeGroup.id,
|
|
488
|
+
nodes: [],
|
|
489
|
+
bounds: null,
|
|
490
|
+
leafCount: 0,
|
|
491
|
+
};
|
|
492
|
+
context.groups.push(containerGroup);
|
|
493
|
+
}
|
|
494
|
+
containerGroup.nodes.push(containerNodeId);
|
|
495
|
+
context.nodes.push({
|
|
496
|
+
id: containerNodeId,
|
|
497
|
+
parent: parentNodeId,
|
|
498
|
+
transform: { position: localPosition, rotation: [0, 0, 0, 1], scale: [1, 1, 1] },
|
|
499
|
+
streamGroup: containerGroup.id,
|
|
500
|
+
});
|
|
501
|
+
const subtreeBounds = container.children.reduce((bounds, child) => expandBounds(bounds, compileElement(child, containerNodeId, containerGroup, containerProperties, containerWorldOffset)), null);
|
|
502
|
+
containerGroup.bounds = expandBounds(containerGroup.bounds, subtreeBounds);
|
|
503
|
+
activeGroup.bounds = expandBounds(activeGroup.bounds, subtreeBounds);
|
|
504
|
+
return subtreeBounds;
|
|
505
|
+
};
|
|
506
|
+
for (const child of children) {
|
|
507
|
+
buildingGroup.bounds = expandBounds(buildingGroup.bounds, compileElement(child, buildingNodeId, buildingGroup, properties, position));
|
|
508
|
+
}
|
|
509
|
+
const bounds = buildingGroup.bounds;
|
|
510
|
+
const groups = context.groups.map((group) => ({
|
|
511
|
+
id: group.id,
|
|
512
|
+
mode: group.mode,
|
|
513
|
+
priority: group.priority,
|
|
514
|
+
cells: [{
|
|
515
|
+
id: `cell.${group.id.slice('stream.'.length)}`,
|
|
516
|
+
bounds: group.bounds ?? bounds,
|
|
517
|
+
nodes: group.nodes,
|
|
518
|
+
}],
|
|
519
|
+
dependencies: [group.dependency],
|
|
520
|
+
estimatedMemoryMiB: Math.max(1, Math.ceil(group.leafCount / 256)),
|
|
521
|
+
}));
|
|
522
|
+
return { nodes: context.nodes, groups, bounds, leaves: context.leaves, lights: context.lights, waterCount: context.waterCount };
|
|
523
|
+
}
|
|
524
|
+
const MIB = 1024 * 1024;
|
|
525
|
+
const SPLAT_MIME_TYPE = 'image/png';
|
|
526
|
+
function terrainStrides(element) {
|
|
527
|
+
const strides = element.lod?.strideDistancesM;
|
|
528
|
+
if (strides === undefined)
|
|
529
|
+
return undefined;
|
|
530
|
+
if (!Array.isArray(strides) || strides.length !== 3) {
|
|
531
|
+
throw new Error(`terrain ${element.id}.lod.strideDistancesM must contain three distances`);
|
|
532
|
+
}
|
|
533
|
+
return strides.map((value, index) => positive(value, `terrain ${element.id}.lod.strideDistancesM[${index}]`));
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Compiles a terrain source folder into nodes, per-tile streaming groups, bundle resources and the `scene.terrain`
|
|
537
|
+
* block. Node ids match the Continuum adapter's, so one authored terrain is named alike on both publish lanes.
|
|
538
|
+
*/
|
|
539
|
+
function compileTerrain(element, baseDir) {
|
|
540
|
+
if (element.type !== 'terrain')
|
|
541
|
+
throw new Error('terrain element must declare type "terrain"');
|
|
542
|
+
if (typeof element.source !== 'string' || !element.source.trim()) {
|
|
543
|
+
throw new Error(`terrain ${element.id}.source must name the folder holding terrain.json`);
|
|
544
|
+
}
|
|
545
|
+
const dir = (0, node_path_1.resolve)(baseDir ?? process.cwd(), element.source);
|
|
546
|
+
const index = (0, source_1.readTerrainSourceIndex)(dir);
|
|
547
|
+
if (!index.material) {
|
|
548
|
+
throw new Error(`terrain ${element.id}: "${dir}" carries no baked material — run \`helix terrain bake\` on it first`);
|
|
549
|
+
}
|
|
550
|
+
const tileMetres = (index.grid.tileSamples - 1) * index.grid.metresPerSample;
|
|
551
|
+
const bundleFiles = [];
|
|
552
|
+
const resources = [];
|
|
553
|
+
const nodes = [];
|
|
554
|
+
const groups = [];
|
|
555
|
+
const tiles = [];
|
|
556
|
+
// One digest is one bundle resource: flat ground bakes the SAME splat for many tiles, and a second
|
|
557
|
+
// resource over those bytes would declare one bundle assetId under two URIs, which the document rejects.
|
|
558
|
+
const resourceByDigest = new Map();
|
|
559
|
+
const bundleResource = (resourceId, file, heights) => {
|
|
560
|
+
const shared = resourceByDigest.get(file.sha256);
|
|
561
|
+
if (shared)
|
|
562
|
+
return shared;
|
|
563
|
+
resourceByDigest.set(file.sha256, resourceId);
|
|
564
|
+
bundleFiles.push({ uri: `terrain/${file.path}`, path: (0, node_path_1.join)(dir, file.path), bytes: file.bytes, sha256: file.sha256 });
|
|
565
|
+
resources.push({
|
|
566
|
+
id: resourceId,
|
|
567
|
+
kind: heights ? 'terrain' : 'texture',
|
|
568
|
+
source: { kind: 'bundle', assetId: `terrain:${file.sha256}`, uri: `terrain/${file.path}` },
|
|
569
|
+
integrity: { sha256: file.sha256 },
|
|
570
|
+
bytes: file.bytes,
|
|
571
|
+
mimeType: heights ? helix_manifest_1.HEIGHTFIELD_MIME_TYPE : SPLAT_MIME_TYPE,
|
|
572
|
+
required: true,
|
|
573
|
+
});
|
|
574
|
+
return resourceId;
|
|
575
|
+
};
|
|
576
|
+
const layerMiB = (layer) => Math.max(1, Math.ceil((layer.heights.bytes + (layer.splat?.bytes ?? 0) + (layer.normals?.bytes ?? 0)) / MIB));
|
|
577
|
+
const coarseNodeId = `terrain.${element.id}.coarse`;
|
|
578
|
+
const coarseHeights = bundleResource(`resource.${coarseNodeId}.heights`, index.coarse.heights, true);
|
|
579
|
+
const coarseSplat = index.coarse.splat ? bundleResource(`resource.${coarseNodeId}.splat`, index.coarse.splat, false) : null;
|
|
580
|
+
const coarseNormals = index.coarse.normals ? bundleResource(`resource.${coarseNodeId}.normals`, index.coarse.normals, false) : null;
|
|
581
|
+
nodes.push({
|
|
582
|
+
id: coarseNodeId,
|
|
583
|
+
resource: coarseHeights,
|
|
584
|
+
transform: { position: [0, 0, 0], rotation: [0, 0, 0, 1], scale: [1, 1, 1] },
|
|
585
|
+
streamGroup: 'stream.root',
|
|
586
|
+
});
|
|
587
|
+
let heightMin = Infinity;
|
|
588
|
+
let heightMax = -Infinity;
|
|
589
|
+
for (const tile of index.tiles) {
|
|
590
|
+
const nodeId = `terrain.${element.id}.tile.${tile.tx}.${tile.tz}`;
|
|
591
|
+
const heights = bundleResource(`resource.${nodeId}.heights`, tile.heights, true);
|
|
592
|
+
const splat = tile.splat ? bundleResource(`resource.${nodeId}.splat`, tile.splat, false) : null;
|
|
593
|
+
const normals = tile.normals ? bundleResource(`resource.${nodeId}.normals`, tile.normals, false) : null;
|
|
594
|
+
const minX = index.grid.originX + tile.tx * tileMetres;
|
|
595
|
+
const minZ = index.grid.originZ + tile.tz * tileMetres;
|
|
596
|
+
heightMin = Math.min(heightMin, tile.heightMin);
|
|
597
|
+
heightMax = Math.max(heightMax, tile.heightMax);
|
|
598
|
+
nodes.push({
|
|
599
|
+
id: nodeId,
|
|
600
|
+
resource: heights,
|
|
601
|
+
transform: { position: [0, 0, 0], rotation: [0, 0, 0, 1], scale: [1, 1, 1] },
|
|
602
|
+
streamGroup: `stream.${nodeId}`,
|
|
603
|
+
});
|
|
604
|
+
groups.push({
|
|
605
|
+
id: `stream.${nodeId}`,
|
|
606
|
+
mode: 'distance',
|
|
607
|
+
priority: 60,
|
|
608
|
+
cells: [{
|
|
609
|
+
id: `cell.${nodeId}`,
|
|
610
|
+
// Flat terrain still needs a non-degenerate streaming volume; height samples and colliders stay unchanged.
|
|
611
|
+
bounds: { min: [minX, tile.heightMin, minZ], max: [minX + tileMetres, Math.max(tile.heightMax, tile.heightMin + 0.01), minZ + tileMetres] },
|
|
612
|
+
nodes: [nodeId],
|
|
613
|
+
}],
|
|
614
|
+
dependencies: ['stream.root'],
|
|
615
|
+
estimatedMemoryMiB: layerMiB(tile),
|
|
616
|
+
});
|
|
617
|
+
tiles.push({
|
|
618
|
+
tx: tile.tx,
|
|
619
|
+
tz: tile.tz,
|
|
620
|
+
node: nodeId,
|
|
621
|
+
heights,
|
|
622
|
+
...(splat ? { splat } : {}),
|
|
623
|
+
...(normals ? { normals } : {}),
|
|
624
|
+
...(tile.layers ? { layers: [...tile.layers] } : {}),
|
|
625
|
+
heightMin: tile.heightMin,
|
|
626
|
+
heightMax: tile.heightMax,
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
const strides = terrainStrides(element);
|
|
630
|
+
return {
|
|
631
|
+
nodes,
|
|
632
|
+
groups,
|
|
633
|
+
resources,
|
|
634
|
+
bundleFiles,
|
|
635
|
+
coarseNodeId,
|
|
636
|
+
coarseMemoryMiB: layerMiB(index.coarse),
|
|
637
|
+
bounds: {
|
|
638
|
+
min: [index.grid.originX, heightMin, index.grid.originZ],
|
|
639
|
+
max: [
|
|
640
|
+
index.grid.originX + index.grid.tilesX * tileMetres,
|
|
641
|
+
heightMax,
|
|
642
|
+
index.grid.originZ + index.grid.tilesZ * tileMetres,
|
|
643
|
+
],
|
|
644
|
+
},
|
|
645
|
+
terrain: {
|
|
646
|
+
kind: 'heightfield',
|
|
647
|
+
node: coarseNodeId,
|
|
648
|
+
resource: coarseHeights,
|
|
649
|
+
grid: { ...index.grid },
|
|
650
|
+
tiles,
|
|
651
|
+
coarse: {
|
|
652
|
+
metresPerSample: index.coarse.metresPerSample,
|
|
653
|
+
...(coarseSplat ? { splat: coarseSplat } : {}),
|
|
654
|
+
...(coarseNormals ? { normals: coarseNormals } : {}),
|
|
655
|
+
...(index.coarse.layers ? { layers: [...index.coarse.layers] } : {}),
|
|
656
|
+
heightMin: index.coarse.heightMin,
|
|
657
|
+
heightMax: index.coarse.heightMax,
|
|
658
|
+
},
|
|
659
|
+
material: index.material,
|
|
660
|
+
...(strides ? { lod: { strideDistancesM: strides } } : {}),
|
|
661
|
+
...(element.colliderRadiusM !== undefined
|
|
662
|
+
? { colliderRadiusM: positive(element.colliderRadiusM, `terrain ${element.id}.colliderRadiusM`) }
|
|
663
|
+
: {}),
|
|
664
|
+
},
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
const GLB_MIME_TYPE = 'model/gltf-binary';
|
|
668
|
+
const KTX2_MIME_TYPE = 'image/ktx2';
|
|
669
|
+
/** Flat road cells bake zero-height bounds, and a streaming volume must be a real box on every axis. */
|
|
670
|
+
const MIN_CELL_EXTENT_M = 0.01;
|
|
671
|
+
/** The collider answers for whatever stands on the cell, so its activation volume is taller than the baked triangles. */
|
|
672
|
+
const COLLIDER_CELL_PAD_M = 2;
|
|
673
|
+
const SCENE_ID = /^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/;
|
|
674
|
+
const BUNDLE_URI = /^[A-Za-z0-9][A-Za-z0-9._-]*(?:\/[A-Za-z0-9][A-Za-z0-9._-]*)*$/;
|
|
675
|
+
/** `meshcells:<element>:<kind>:<64 hex>` must stay inside the 128-character bundle assetId cap. */
|
|
676
|
+
const MESH_CELLS_ID_LENGTH = 32;
|
|
677
|
+
function meshCellBounds(bounds, padY = 0) {
|
|
678
|
+
const min = [bounds.min[0], bounds.min[1] - padY, bounds.min[2]];
|
|
679
|
+
const max = [bounds.max[0], bounds.max[1] + padY, bounds.max[2]];
|
|
680
|
+
return { min, max: max.map((value, axis) => Math.max(value, min[axis] + MIN_CELL_EXTENT_M)) };
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* Compiles a baked mesh-cell folder into one eager render group of per-cell model nodes plus, per collision cell, a
|
|
684
|
+
* distance group whose render-less carrier node owns that cell's triangle-mesh collision set.
|
|
685
|
+
*/
|
|
686
|
+
function compileMeshCells(element, baseDir) {
|
|
687
|
+
if (element.type !== 'meshCells')
|
|
688
|
+
throw new Error('mesh cells element must declare type "meshCells"');
|
|
689
|
+
if (typeof element.id !== 'string' || !SCENE_ID.test(element.id) || element.id.length > MESH_CELLS_ID_LENGTH) {
|
|
690
|
+
throw new Error(`meshCells "${element.id}": id must be a lowercase Scene id of at most ${MESH_CELLS_ID_LENGTH} characters`);
|
|
691
|
+
}
|
|
692
|
+
if (typeof element.source !== 'string' || !BUNDLE_URI.test(element.source)) {
|
|
693
|
+
throw new Error(`meshCells ${element.id}.source must name a folder beside the document, without "." or ".." segments`);
|
|
694
|
+
}
|
|
695
|
+
const priority = element.priority ?? 60;
|
|
696
|
+
if (!Number.isInteger(priority) || priority < 0 || priority > 1000) {
|
|
697
|
+
throw new Error(`meshCells ${element.id}.priority must be an integer between 0 and 1000`);
|
|
698
|
+
}
|
|
699
|
+
for (const flag of ['collision', 'giContribute']) {
|
|
700
|
+
if (element[flag] !== undefined && typeof element[flag] !== 'boolean')
|
|
701
|
+
throw new Error(`meshCells ${element.id}.${flag} must be a boolean`);
|
|
702
|
+
}
|
|
703
|
+
const index = (0, meshCells_1.readMeshCellsIndex)((0, node_path_1.resolve)(baseDir ?? process.cwd(), element.source), element.variants);
|
|
704
|
+
// The element's override wins over the folder's baked intent; only a refusal is written, so `true` stays the default.
|
|
705
|
+
const giContribute = element.giContribute ?? index.giContribute;
|
|
706
|
+
const renderMesh = () => [
|
|
707
|
+
{ type: 'render.mesh', castShadow: true, receiveShadow: true, ...(giContribute === false ? { giContribute: false } : {}) },
|
|
708
|
+
];
|
|
709
|
+
const resources = [];
|
|
710
|
+
const bundleFiles = [];
|
|
711
|
+
const nodes = [];
|
|
712
|
+
const groups = [];
|
|
713
|
+
const collisionSets = [];
|
|
714
|
+
const identity = () => ({ position: [0, 0, 0], rotation: [0, 0, 0, 1], scale: [1, 1, 1] });
|
|
715
|
+
// One digest is one bundle resource per kind: repeated cells (empty tiles, a shared collider) ship their bytes once,
|
|
716
|
+
// and the kind keeps a render GLB and a byte-identical collider GLB from claiming one assetId under two URIs.
|
|
717
|
+
const resourceByDigest = new Map();
|
|
718
|
+
const bundleResource = (resourceId, kind, file) => {
|
|
719
|
+
const key = `${kind}\0${file.sha256}`;
|
|
720
|
+
const shared = resourceByDigest.get(key);
|
|
721
|
+
if (shared)
|
|
722
|
+
return shared;
|
|
723
|
+
const uri = `${element.source}/${file.file.split('\\').join('/')}`;
|
|
724
|
+
if (!BUNDLE_URI.test(uri))
|
|
725
|
+
throw new Error(`meshCells ${element.id}: "${file.file}" is not a canonical bundle path`);
|
|
726
|
+
resourceByDigest.set(key, resourceId);
|
|
727
|
+
bundleFiles.push({ uri, path: (0, node_path_1.join)(index.dir, file.file), bytes: file.bytes, sha256: file.sha256 });
|
|
728
|
+
resources.push({
|
|
729
|
+
id: resourceId,
|
|
730
|
+
kind,
|
|
731
|
+
source: { kind: 'bundle', assetId: `meshcells:${element.id}:${kind}:${file.sha256}`, uri },
|
|
732
|
+
integrity: { sha256: file.sha256 },
|
|
733
|
+
bytes: file.bytes,
|
|
734
|
+
mimeType: kind === 'texture' ? KTX2_MIME_TYPE : GLB_MIME_TYPE,
|
|
735
|
+
required: true,
|
|
736
|
+
});
|
|
737
|
+
return resourceId;
|
|
738
|
+
};
|
|
739
|
+
index.textures.forEach((texture, position) => bundleResource(`${element.id}.t.${position}`, 'texture', texture));
|
|
740
|
+
const cellById = new Map();
|
|
741
|
+
let bounds = null;
|
|
742
|
+
for (const cell of index.render) {
|
|
743
|
+
const nodeId = `${element.id}.r.${cell.cx}.${cell.cz}`;
|
|
744
|
+
const cellBounds = meshCellBounds(cell.bounds);
|
|
745
|
+
nodes.push({
|
|
746
|
+
id: nodeId,
|
|
747
|
+
resource: bundleResource(`${element.id}.rm.${cell.cx}.${cell.cz}`, 'model', cell),
|
|
748
|
+
transform: identity(),
|
|
749
|
+
streamGroup: `${element.id}.far`,
|
|
750
|
+
components: renderMesh(),
|
|
751
|
+
});
|
|
752
|
+
cellById.set(`${cell.cx}.${cell.cz}`, { id: `${element.id}.rc.${cell.cx}.${cell.cz}`, bounds: cellBounds, nodes: [nodeId] });
|
|
753
|
+
bounds = expandBounds(bounds, cellBounds);
|
|
754
|
+
}
|
|
755
|
+
for (const variant of index.selectedVariants) {
|
|
756
|
+
if (!SCENE_ID.test(variant.key))
|
|
757
|
+
throw new Error(`meshCells ${element.id}: variant family "${variant.key}" is not a Scene id`);
|
|
758
|
+
for (const cell of variant.cells) {
|
|
759
|
+
const streamCell = cellById.get(`${cell.cx}.${cell.cz}`);
|
|
760
|
+
if (!streamCell)
|
|
761
|
+
throw new Error(`meshCells ${element.id}: variant "${variant.key}" cell ${cell.cx}.${cell.cz} has no render cell to join`);
|
|
762
|
+
const nodeId = `${element.id}.v.${variant.key}.${cell.cx}.${cell.cz}`;
|
|
763
|
+
nodes.push({
|
|
764
|
+
id: nodeId,
|
|
765
|
+
resource: bundleResource(`${element.id}.vm.${variant.key}.${cell.cx}.${cell.cz}`, 'model', cell),
|
|
766
|
+
transform: identity(),
|
|
767
|
+
streamGroup: `${element.id}.far`,
|
|
768
|
+
components: renderMesh(),
|
|
769
|
+
});
|
|
770
|
+
streamCell.nodes.push(nodeId);
|
|
771
|
+
streamCell.bounds = expandBounds(streamCell.bounds, meshCellBounds(cell.bounds));
|
|
772
|
+
bounds = expandBounds(bounds, streamCell.bounds);
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
const eagerBytes = [...index.render, ...index.selectedVariants.flatMap((variant) => variant.cells), ...index.textures]
|
|
776
|
+
.reduce((total, file) => total + file.bytes, 0);
|
|
777
|
+
groups.push({
|
|
778
|
+
id: `${element.id}.far`,
|
|
779
|
+
mode: 'eager',
|
|
780
|
+
priority: 100,
|
|
781
|
+
cells: [...cellById.values()],
|
|
782
|
+
dependencies: ['stream.root'],
|
|
783
|
+
estimatedMemoryMiB: Math.max(1, Math.ceil(eagerBytes / MIB)),
|
|
784
|
+
});
|
|
785
|
+
if (element.collision !== false) {
|
|
786
|
+
for (const cell of index.collision) {
|
|
787
|
+
const suffix = `${cell.cx}.${cell.cz}`;
|
|
788
|
+
const nodeId = `${element.id}.cn.${suffix}`;
|
|
789
|
+
const setId = `${element.id}.cs.${suffix}`;
|
|
790
|
+
// The carrier renders nothing: it exists to own the set, and a node without a resource is the smallest legal shape.
|
|
791
|
+
nodes.push({
|
|
792
|
+
id: nodeId,
|
|
793
|
+
transform: identity(),
|
|
794
|
+
streamGroup: `${element.id}.c.${suffix}`,
|
|
795
|
+
components: [{ type: 'collision.proxy-set', set: setId }],
|
|
796
|
+
});
|
|
797
|
+
groups.push({
|
|
798
|
+
id: `${element.id}.c.${suffix}`,
|
|
799
|
+
mode: 'distance',
|
|
800
|
+
priority,
|
|
801
|
+
cells: [{ id: `${element.id}.cc.${suffix}`, bounds: meshCellBounds(cell.bounds, COLLIDER_CELL_PAD_M), nodes: [nodeId] }],
|
|
802
|
+
dependencies: ['stream.root'],
|
|
803
|
+
estimatedMemoryMiB: Math.max(1, Math.ceil(cell.bytes / MIB)),
|
|
804
|
+
});
|
|
805
|
+
collisionSets.push({
|
|
806
|
+
id: setId,
|
|
807
|
+
node: nodeId,
|
|
808
|
+
static: [{
|
|
809
|
+
id: `${element.id}.co.${suffix}`,
|
|
810
|
+
shape: 'triangle-mesh',
|
|
811
|
+
resource: bundleResource(`${element.id}.cr.${suffix}`, 'collider', cell),
|
|
812
|
+
transform: identity(),
|
|
813
|
+
}],
|
|
814
|
+
});
|
|
815
|
+
bounds = expandBounds(bounds, meshCellBounds(cell.bounds));
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
return { nodes, groups, resources, collisionSets, bundleFiles, bounds: bounds };
|
|
819
|
+
}
|
|
820
|
+
function compileSceneElementsBundle(input, options = {}) {
|
|
821
|
+
if (input.format !== 'helix.scene-elements' || (input.version !== 1 && input.version !== 2)) {
|
|
822
|
+
throw new Error('semantic input must be helix.scene-elements version 1 or 2');
|
|
823
|
+
}
|
|
824
|
+
id(input.id, 'scene id');
|
|
825
|
+
if (!input.title.trim())
|
|
826
|
+
throw new Error('scene title is required');
|
|
827
|
+
if (input.buildings.length === 0 && !input.terrain && !input.placements && !input.meshCells?.length) {
|
|
828
|
+
throw new Error('at least one building, terrain, placements region or mesh-cell folder is required');
|
|
829
|
+
}
|
|
830
|
+
const rootNodeId = 'node.root';
|
|
831
|
+
const sunNodeId = 'node.sun';
|
|
832
|
+
const compiledMaterials = compileMaterials(input.materials);
|
|
833
|
+
const semanticIds = new Set();
|
|
834
|
+
if (input.terrain)
|
|
835
|
+
elementId(input.terrain.id, semanticIds);
|
|
836
|
+
const terrain = input.terrain ? compileTerrain(input.terrain, options.baseDir) : null;
|
|
837
|
+
if (input.meshCells !== undefined && !Array.isArray(input.meshCells))
|
|
838
|
+
throw new Error('meshCells must be an array of baked cell folders');
|
|
839
|
+
const meshCells = (input.meshCells ?? []).map((element) => {
|
|
840
|
+
elementId(element.id, semanticIds);
|
|
841
|
+
return compileMeshCells(element, options.baseDir);
|
|
842
|
+
});
|
|
843
|
+
const placements = input.placements ? (0, source_2.placementsBundle)((0, node_path_1.resolve)(options.baseDir ?? process.cwd(), input.placements.source)) : null;
|
|
844
|
+
const compiled = input.buildings.map((building) => compileBuilding(building, rootNodeId, compiledMaterials, input.version, semanticIds));
|
|
845
|
+
const builtBounds = compiled.reduce((bounds, building) => expandBounds(bounds, building.bounds), null);
|
|
846
|
+
let placementBounds = terrain ? expandBounds(builtBounds, terrain.bounds) : builtBounds;
|
|
847
|
+
for (const element of meshCells)
|
|
848
|
+
placementBounds = expandBounds(placementBounds, element.bounds);
|
|
849
|
+
for (const region of placements?.placements.regions ?? [])
|
|
850
|
+
placementBounds = expandBounds(placementBounds, region.bounds);
|
|
851
|
+
if (!placementBounds)
|
|
852
|
+
throw new Error('scene has no bounds; add terrain, a building or a populated placements region');
|
|
853
|
+
const nodes = [
|
|
854
|
+
{
|
|
855
|
+
id: rootNodeId,
|
|
856
|
+
transform: { position: [0, 0, 0], rotation: [0, 0, 0, 1], scale: [1, 1, 1] },
|
|
857
|
+
streamGroup: 'stream.root',
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
id: sunNodeId,
|
|
861
|
+
parent: rootNodeId,
|
|
862
|
+
transform: { position: [0, 0, 0], rotation: [-0.4030582, 0.272532008, 0.127083762, 0.864361099], scale: [1, 1, 1] },
|
|
863
|
+
streamGroup: 'stream.root',
|
|
864
|
+
components: [{ type: 'light.attachments', lights: ['light.sun'] }],
|
|
865
|
+
},
|
|
866
|
+
...(terrain ? terrain.nodes : []),
|
|
867
|
+
...meshCells.flatMap((element) => element.nodes),
|
|
868
|
+
...compiled.flatMap((building) => building.nodes),
|
|
869
|
+
];
|
|
870
|
+
const devices = (0, devices_1.compileSceneDevices)(input.version === 2 ? input.devices : undefined, nodes, options.baseDir ?? process.cwd());
|
|
871
|
+
const spawnPosition = vec3(input.spawn.position, 'spawn.position');
|
|
872
|
+
const scene = {
|
|
873
|
+
format: 'helix.scene',
|
|
874
|
+
version: 2,
|
|
875
|
+
id: input.id,
|
|
876
|
+
revision: '0'.repeat(16),
|
|
877
|
+
integrity: { sha256: '0'.repeat(64) },
|
|
878
|
+
title: input.title,
|
|
879
|
+
units: 'meters',
|
|
880
|
+
coordinateSystem: { handedness: 'right', up: '+Y', forward: '-Z' },
|
|
881
|
+
profiles: {
|
|
882
|
+
world: {
|
|
883
|
+
scene: 'scene.root',
|
|
884
|
+
kind: 'world',
|
|
885
|
+
persistence: 'session',
|
|
886
|
+
maxPlayers: 32,
|
|
887
|
+
overrideAuthority: 'none',
|
|
888
|
+
runtimePolicy: {
|
|
889
|
+
memoryBudgetMiB: input.runtimePolicy?.memoryBudgetMiB ?? 64,
|
|
890
|
+
streamRadiusM: input.runtimePolicy?.streamRadiusM ?? 160,
|
|
891
|
+
allowSurfaceOverrides: false,
|
|
892
|
+
allowItemPlacement: false,
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
},
|
|
896
|
+
scenes: [{
|
|
897
|
+
id: 'scene.root',
|
|
898
|
+
nodes: nodes.map((node) => node.id),
|
|
899
|
+
streamGroups: [
|
|
900
|
+
'stream.root',
|
|
901
|
+
...(terrain ? terrain.groups.map((group) => group.id) : []),
|
|
902
|
+
...meshCells.flatMap((element) => element.groups.map((group) => group.id)),
|
|
903
|
+
...compiled.flatMap((building) => building.groups.map((group) => group.id)),
|
|
904
|
+
],
|
|
905
|
+
}],
|
|
906
|
+
resources: [...(terrain ? terrain.resources : []), ...meshCells.flatMap((element) => element.resources),
|
|
907
|
+
...(placements ? placements.resources : [])],
|
|
908
|
+
nodes,
|
|
909
|
+
itemDefinitions: devices.definitions,
|
|
910
|
+
itemInstances: devices.instances,
|
|
911
|
+
...(devices.deviceLinks.length ? { deviceLinks: devices.deviceLinks } : {}),
|
|
912
|
+
terrain: terrain ? terrain.terrain : { kind: 'none' },
|
|
913
|
+
...(placements ? { placements: placements.placements } : {}),
|
|
914
|
+
environment: { background: true, intensityScale: 1, rotationYDeg: 0, exposureEV100: 0, fallbackColor: '#9db4c8', required: false },
|
|
915
|
+
lights: [{
|
|
916
|
+
id: 'light.sun',
|
|
917
|
+
node: sunNodeId,
|
|
918
|
+
type: 'directional',
|
|
919
|
+
color: '#fff4e0',
|
|
920
|
+
illuminanceLux: 2.4,
|
|
921
|
+
shadow: { enabled: true, mapSize: 1024 },
|
|
922
|
+
required: false,
|
|
923
|
+
fallback: { unsupported: 'unshadowed' },
|
|
924
|
+
}, ...compiled.flatMap((building) => building.lights)],
|
|
925
|
+
spawns: [{ id: 'spawn.main', position: spawnPosition, rotation: yawQuaternion(input.spawn.rotationYDeg ?? 0), profileAccess: ['world'], clearanceRadiusM: 0.45, clearanceHeightM: 1.9 }],
|
|
926
|
+
collision: { sets: [...meshCells.flatMap((element) => element.collisionSets),
|
|
927
|
+
...compiled.flatMap((building) => building.leaves.map((leaf) => leaf.collisionSet).filter((set) => set !== null))] },
|
|
928
|
+
navigation: { walkableSurfaces: compiled.flatMap((building) => building.leaves.filter((leaf) => leaf.surface.slot === 'floor').map((leaf) => leaf.surface.id)), agent: { radiusM: 0.35, heightM: 1.8, stepHeightM: 0.32, maxSlopeDeg: 48 }, navmesh: null, fallback: 'physics-walkability' },
|
|
929
|
+
placement: { bounds: placementBounds, maxItemInstances: devices.instances.length, snapGridM: 0.05, allowedProfiles: [] },
|
|
930
|
+
surfaces: compiled.flatMap((building) => building.leaves.map((leaf) => leaf.surface)),
|
|
931
|
+
// ADR-0004 P6: no Scene-level materials[] any more — every named `ref`
|
|
932
|
+
// resolves to its inline fallback color at compile time (see
|
|
933
|
+
// compileMaterials/resolveMaterial above).
|
|
934
|
+
materials: [],
|
|
935
|
+
behaviors: [],
|
|
936
|
+
streamGroups: [
|
|
937
|
+
{
|
|
938
|
+
id: 'stream.root',
|
|
939
|
+
mode: 'eager',
|
|
940
|
+
priority: 100,
|
|
941
|
+
cells: [{ id: 'cell.root', bounds: placementBounds, nodes: [rootNodeId, sunNodeId, ...(terrain ? [terrain.coarseNodeId] : [])] }],
|
|
942
|
+
dependencies: [],
|
|
943
|
+
// The coarse layer is decoded at boot, so the eager group commits its bytes.
|
|
944
|
+
estimatedMemoryMiB: 1 + (terrain ? terrain.coarseMemoryMiB : 0),
|
|
945
|
+
},
|
|
946
|
+
...(terrain ? terrain.groups : []),
|
|
947
|
+
...meshCells.flatMap((element) => element.groups),
|
|
948
|
+
...compiled.flatMap((building) => building.groups),
|
|
949
|
+
],
|
|
950
|
+
capabilities: {
|
|
951
|
+
required: ['render.primitive/1', 'lighting.punctual/1', ...(terrain ? [helix_manifest_1.HELIX_SCENE_TERRAIN_CAPABILITY] : []),
|
|
952
|
+
...(compiled.some((building) => building.waterCount > 0) ? [helix_manifest_1.HELIX_SCENE_WATER_CAPABILITY] : []),
|
|
953
|
+
...(meshCells.length ? ['render.mesh/1'] : []), ...(placements ? [helix_manifest_1.PLACEMENTS_CAPABILITY] : []),
|
|
954
|
+
...(placements?.placements.distant ? [helix_manifest_1.PLACEMENTS_DISTANT_CAPABILITY] : []),
|
|
955
|
+
...(devices.definitions.length || devices.deviceLinks.length ? [helix_manifest_1.HELIX_SCENE_DEVICE_CAPABILITY] : [])],
|
|
956
|
+
optional: [],
|
|
957
|
+
},
|
|
958
|
+
runtimeExtensions: [],
|
|
959
|
+
adapters: { unreal: helix_manifest_1.HELIX_TO_UNREAL_ADAPTER },
|
|
960
|
+
};
|
|
961
|
+
scene.revision = (0, helix_manifest_1.computeSceneDocumentIntegrity)(scene).slice(0, 16);
|
|
962
|
+
scene.integrity.sha256 = (0, helix_manifest_1.computeSceneDocumentIntegrity)(scene);
|
|
963
|
+
const validation = (0, helix_manifest_1.validateSceneDocument)(scene);
|
|
964
|
+
if (!validation.valid)
|
|
965
|
+
throw new Error(`compiled Scene v2 is invalid: ${validation.errors.join('; ')}`);
|
|
966
|
+
return {
|
|
967
|
+
scene: validation.scene,
|
|
968
|
+
bundleFiles: [...(terrain ? terrain.bundleFiles : []), ...meshCells.flatMap((element) => element.bundleFiles),
|
|
969
|
+
...(placements ? placements.bundleFiles : [])],
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
/** The sealed document alone, for callers that ship no bundle bytes beside it. */
|
|
973
|
+
function compileSceneElements(input, options = {}) {
|
|
974
|
+
return compileSceneElementsBundle(input, options).scene;
|
|
975
|
+
}
|
|
976
|
+
//# sourceMappingURL=compiler.js.map
|