agentscape3d-engine 0.0.0-stage → 1.0.0-beta.2
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/LICENSE +21 -0
- package/README.md +19 -2
- package/cli.mjs +53 -0
- package/dist/AssetCompiler-A99wKf7H.js +2424 -0
- package/dist/AssetCompiler-A99wKf7H.js.map +1 -0
- package/dist/AssetInputContracts-uKYeQu-X.js +245 -0
- package/dist/AssetInputContracts-uKYeQu-X.js.map +1 -0
- package/dist/AssetRecipe-DCaLLXvG.js +67 -0
- package/dist/AssetRecipe-DCaLLXvG.js.map +1 -0
- package/dist/BrowserCodeWorker.js +53850 -0
- package/dist/BrowserCodeWorker.js.map +1 -0
- package/dist/KinematicHypothesisScreen-4v7GBwdv.js +241 -0
- package/dist/KinematicHypothesisScreen-4v7GBwdv.js.map +1 -0
- package/dist/SceneSerializer-CLCzQjL_.js +350 -0
- package/dist/SceneSerializer-CLCzQjL_.js.map +1 -0
- package/dist/StylePack-CD_BC-Mv.js +6317 -0
- package/dist/StylePack-CD_BC-Mv.js.map +1 -0
- package/dist/WorldArchive-dYf1OpSe.js +417 -0
- package/dist/WorldArchive-dYf1OpSe.js.map +1 -0
- package/dist/WorldIO-Dqz4MqTQ.js +149 -0
- package/dist/WorldIO-Dqz4MqTQ.js.map +1 -0
- package/dist/blankWorld-OoOvN_IK.js +75 -0
- package/dist/blankWorld-OoOvN_IK.js.map +1 -0
- package/dist/core.d.ts +68 -0
- package/dist/core.js +209 -0
- package/dist/core.js.map +1 -0
- package/dist/disposeObject3D-B3HCflvO.js +128 -0
- package/dist/disposeObject3D-B3HCflvO.js.map +1 -0
- package/dist/environments-B1WaICAN.js +4197 -0
- package/dist/environments-B1WaICAN.js.map +1 -0
- package/dist/gltfIO-BMK1hc2D.js +9 -0
- package/dist/gltfIO-BMK1hc2D.js.map +1 -0
- package/dist/grandUrbanBlock-Bdjgc6ZT.js +515 -0
- package/dist/grandUrbanBlock-Bdjgc6ZT.js.map +1 -0
- package/dist/index.d.ts +275 -0
- package/dist/index.js +16239 -0
- package/dist/index.js.map +1 -0
- package/dist/magicCabin-DPQi_jh-.js +11019 -0
- package/dist/magicCabin-DPQi_jh-.js.map +1 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +1 -0
- package/dist/monumentHall-IOLbRZQC.js +403 -0
- package/dist/monumentHall-IOLbRZQC.js.map +1 -0
- package/dist/node.d.ts +16 -0
- package/dist/node.js +26 -0
- package/dist/rolldown-runtime-D3KUYPsf.js +12 -0
- package/dist/ruinedCourtyard-BtaF_aOi.js +696 -0
- package/dist/ruinedCourtyard-BtaF_aOi.js.map +1 -0
- package/dist/runtime/application/AgentTools.js +28 -0
- package/dist/runtime/application/README.md +14 -0
- package/dist/runtime/application/agent/ProgressiveAgentTools.js +92 -0
- package/dist/runtime/application/agent/StudioMcpAllowlist.js +8 -0
- package/dist/runtime/application/buildTaskObservation.js +117 -0
- package/dist/runtime/application/code-execution/AuthoringSandboxEntry.js +46 -0
- package/dist/runtime/application/code-execution/BrowserCodeExecutor.js +35 -0
- package/dist/runtime/application/code-execution/BrowserCodeWorker.js +17 -0
- package/dist/runtime/application/code-execution/RemoteAuthoringDocument.js +72 -0
- package/dist/runtime/application/createSession.js +66 -0
- package/dist/runtime/application/createWorldAuthoringContext.js +400 -0
- package/dist/runtime/application/generation/GenerationOrchestrator.js +629 -0
- package/dist/runtime/application/generation/GenerationRuntime.js +214 -0
- package/dist/runtime/application/generation/PromptHybridWorldOrchestrator.js +285 -0
- package/dist/runtime/application/native-scene/CodeProject.js +119 -0
- package/dist/runtime/application/native-scene/CodeProjectModules.js +128 -0
- package/dist/runtime/application/native-scene/NativeEnvironmentGeometry.js +62 -0
- package/dist/runtime/application/native-scene/NativeOverlayCheckpoint.js +127 -0
- package/dist/runtime/application/native-scene/NativeRenderDiscovery.js +51 -0
- package/dist/runtime/application/native-scene/NativeSceneHost.js +319 -0
- package/dist/runtime/application/native-scene/NativeSceneOverlay.js +116 -0
- package/dist/runtime/application/native-scene/NativeThreeModule.js +16 -0
- package/dist/runtime/application/object-forge/SceneObjectForge.js +232 -0
- package/dist/runtime/application/programmatic-assets/ProgrammaticAssetBuilder.js +59 -0
- package/dist/runtime/application/programmatic-assets/ProgrammaticAssetContract.js +22 -0
- package/dist/runtime/application/programmatic-assets/ThreeCodeAsset.js +40 -0
- package/dist/runtime/application/scene/CapabilityResolver.js +79 -0
- package/dist/runtime/application/scene/RequestWindow.js +54 -0
- package/dist/runtime/application/scene/SceneAgentTools.js +21 -0
- package/dist/runtime/application/scene/SceneContracts.js +45 -0
- package/dist/runtime/application/scene/SceneEditService.js +144 -0
- package/dist/runtime/application/scene/SceneFacade.js +261 -0
- package/dist/runtime/application/scene/SceneInteractionAdapters.js +40 -0
- package/dist/runtime/application/scene/SceneJobController.js +229 -0
- package/dist/runtime/application/scene/SceneLifecycle.js +57 -0
- package/dist/runtime/application/scene/ScenePackage.js +162 -0
- package/dist/runtime/application/scene/ScenePersistence.js +50 -0
- package/dist/runtime/application/scene/SceneProject.js +95 -0
- package/dist/runtime/application/scene/SceneSkillNames.js +5 -0
- package/dist/runtime/application/scene/StarterScene.js +56 -0
- package/dist/runtime/application/scene/WorldArchive.js +87 -0
- package/dist/runtime/application/scene/WorldDirectory.js +20 -0
- package/dist/runtime/application/scene/WorldDocument.js +74 -0
- package/dist/runtime/application/scene/WorldIO.js +103 -0
- package/dist/runtime/application/scene/WorldStorage.js +137 -0
- package/dist/runtime/application/skills/SkillRegistry.js +189 -0
- package/dist/runtime/application/skills/packs/acceptanceSkills.js +32 -0
- package/dist/runtime/application/skills/packs/affordanceSkills.js +36 -0
- package/dist/runtime/application/skills/packs/assetSkills.js +46 -0
- package/dist/runtime/application/skills/packs/authoringSkills.js +16 -0
- package/dist/runtime/application/skills/packs/batchSkills.js +22 -0
- package/dist/runtime/application/skills/packs/codeSkills.js +106 -0
- package/dist/runtime/application/skills/packs/generationSkills.js +45 -0
- package/dist/runtime/application/skills/packs/interactionSkills.js +46 -0
- package/dist/runtime/application/skills/packs/recoverySkills.js +80 -0
- package/dist/runtime/application/skills/packs/sceneSkills.js +24 -0
- package/dist/runtime/application/skills/packs/spatialSkills.js +35 -0
- package/dist/runtime/application/skills/packs/verificationSkills.js +14 -0
- package/dist/runtime/application/skills/packs/worldSkills.js +45 -0
- package/dist/runtime/application/skills/registerCoreSkills.js +31 -0
- package/dist/runtime/application/skills/skillPrimitives.js +4 -0
- package/dist/runtime/application/tasks/CabinetCupTask.js +76 -0
- package/dist/runtime/application/tasks.jsonl +67 -0
- package/dist/runtime/application/world-authoring/AuthoringAssetProducer.js +42 -0
- package/dist/runtime/application/world-authoring/AuthoringDiff.js +149 -0
- package/dist/runtime/application/world-authoring/AuthoringDocument.js +825 -0
- package/dist/runtime/application/world-authoring/AuthoringExecutionHost.js +109 -0
- package/dist/runtime/application/world-authoring/AuthoringIdentity.js +17 -0
- package/dist/runtime/application/world-authoring/AuthoringModelResolver.js +29 -0
- package/dist/runtime/application/world-authoring/AuthoringPatch.js +118 -0
- package/dist/runtime/application/world-authoring/AuthoringPromotionController.js +334 -0
- package/dist/runtime/application/world-authoring/AuthoringPromotionSource.js +126 -0
- package/dist/runtime/application/world-authoring/AuthoringRevisionHistory.js +144 -0
- package/dist/runtime/application/world-authoring/HeadlessImageExport.js +174 -0
- package/dist/runtime/application/world-authoring/ModelRef.js +62 -0
- package/dist/runtime/apps/mcp-server/AUTHORING.md +71 -0
- package/dist/runtime/apps/mcp-server/AgentMcpCompat.js +77 -0
- package/dist/runtime/apps/mcp-server/AuthoringSandboxEntry.js +1 -0
- package/dist/runtime/apps/mcp-server/AuthoringSandboxWorker.mjs +30 -0
- package/dist/runtime/apps/mcp-server/BuildEnvironment.js +17 -0
- package/dist/runtime/apps/mcp-server/CodeExecutor.js +71 -0
- package/dist/runtime/apps/mcp-server/DEPLOYMENT-PC2.md +42 -0
- package/dist/runtime/apps/mcp-server/DockerBuildRunner.js +66 -0
- package/dist/runtime/apps/mcp-server/FileAssetRepository.js +159 -0
- package/dist/runtime/apps/mcp-server/HeadlessAssetIO.js +8 -0
- package/dist/runtime/apps/mcp-server/HeadlessGLTFLoader.js +47 -0
- package/dist/runtime/apps/mcp-server/HeadlessWorldHost.js +132 -0
- package/dist/runtime/apps/mcp-server/IsolatedAuthoringExecutor.js +6 -0
- package/dist/runtime/apps/mcp-server/PROGRAMMATIC-ASSETS.md +116 -0
- package/dist/runtime/apps/mcp-server/ProgrammaticAssets.js +60 -0
- package/dist/runtime/apps/mcp-server/README.md +150 -0
- package/dist/runtime/apps/mcp-server/RemoteAuthoringDocument.js +1 -0
- package/dist/runtime/apps/mcp-server/SandboxBundle.js +13 -0
- package/dist/runtime/apps/mcp-server/SessionManager.js +80 -0
- package/dist/runtime/apps/mcp-server/StudioBridgeHttp.js +58 -0
- package/dist/runtime/apps/mcp-server/StudioLiveBridge.js +190 -0
- package/dist/runtime/apps/mcp-server/TrustedAuthoringWorker.mjs +16 -0
- package/dist/runtime/apps/mcp-server/VALIDATION.md +45 -0
- package/dist/runtime/apps/mcp-server/acceptance-evidence.json +332 -0
- package/dist/runtime/apps/mcp-server/errorDiagnostics.js +32 -0
- package/dist/runtime/apps/mcp-server/examples/code-house.js +24 -0
- package/dist/runtime/apps/mcp-server/examples/procedural-assets.js +85 -0
- package/dist/runtime/apps/mcp-server/main.mjs +65 -0
- package/dist/runtime/apps/mcp-server/registerTools.js +225 -0
- package/dist/runtime/apps/mcp-server/sandbox/run.mjs +23 -0
- package/dist/runtime/apps/mcp-server/security.js +21 -0
- package/dist/runtime/apps/mcp-server/tasks.jsonl +9 -0
- package/dist/runtime/apps/server/CapabilityAdapterRegistry.js +157 -0
- package/dist/runtime/apps/server/README.md +7 -0
- package/dist/runtime/apps/server/WorldDiskStorage.js +51 -0
- package/dist/runtime/apps/server/openai-compatible-agent-gateway.mjs +278 -0
- package/dist/runtime/apps/server/tasks.jsonl +10 -0
- package/dist/runtime/foundation/EventBus.js +18 -0
- package/dist/runtime/foundation/JsonGateway.js +47 -0
- package/dist/runtime/foundation/PolicyEngine.js +21 -0
- package/dist/runtime/foundation/README.md +7 -0
- package/dist/runtime/foundation/TraceRecorder.js +76 -0
- package/dist/runtime/foundation/errors.js +8 -0
- package/dist/runtime/foundation/simulation/SimulationProfile.js +143 -0
- package/dist/runtime/foundation/version.js +2 -0
- package/dist/runtime/modules/agent/README.md +11 -0
- package/dist/runtime/modules/agent/ToolCallingAgent.js +19 -0
- package/dist/runtime/modules/agent/bootstrapWorld.js +10 -0
- package/dist/runtime/modules/agent/buildRecoveryProposals.js +533 -0
- package/dist/runtime/modules/agent/execution/AgentExecutionRules.js +128 -0
- package/dist/runtime/modules/agent/execution/AgentRunResults.js +55 -0
- package/dist/runtime/modules/agent/execution/AgentRunSession.js +393 -0
- package/dist/runtime/modules/agent/execution/AgentToolInvoker.js +40 -0
- package/dist/runtime/modules/agent/gateway/HttpLLMGateway.js +19 -0
- package/dist/runtime/modules/agent/prompt/index.js +52 -0
- package/dist/runtime/modules/agent/tasks.jsonl +94 -0
- package/dist/runtime/modules/artifact/ArtifactContentGate.js +144 -0
- package/dist/runtime/modules/artifact/ArtifactDescriptor.js +280 -0
- package/dist/runtime/modules/artifact/ArtifactImporter.js +185 -0
- package/dist/runtime/modules/artifact/ArtifactModule.js +111 -0
- package/dist/runtime/modules/artifact/ArtifactRegistry.js +197 -0
- package/dist/runtime/modules/artifact/IncrementalSha256.js +129 -0
- package/dist/runtime/modules/artifact/MemoryArtifactByteStore.js +115 -0
- package/dist/runtime/modules/artifact/README.md +7 -0
- package/dist/runtime/modules/artifact/storage/IndexedDbArtifactStore.js +67 -0
- package/dist/runtime/modules/artifact/tasks.jsonl +31 -0
- package/dist/runtime/modules/asset/AssetModule.js +399 -0
- package/dist/runtime/modules/asset/README.md +54 -0
- package/dist/runtime/modules/asset/loading/AssetLoader.js +157 -0
- package/dist/runtime/modules/asset/loading/GltfAssetLoader.js +61 -0
- package/dist/runtime/modules/asset/loading/builtins/BuiltinAssets.js +95 -0
- package/dist/runtime/modules/asset/loading/builtins/HouseDoor.js +33 -0
- package/dist/runtime/modules/asset/loading/builtins/IndustrialCabinet.js +103 -0
- package/dist/runtime/modules/asset/model/AssetInputContracts.js +100 -0
- package/dist/runtime/modules/asset/model/AssetRef.js +12 -0
- package/dist/runtime/modules/asset/model/MechanicalAssetDraft.js +172 -0
- package/dist/runtime/modules/asset/model/admission.js +117 -0
- package/dist/runtime/modules/asset/model/errors.js +6 -0
- package/dist/runtime/modules/asset/model/parts.js +27 -0
- package/dist/runtime/modules/asset/model/resourceBudget.js +10 -0
- package/dist/runtime/modules/asset/model/schema.js +150 -0
- package/dist/runtime/modules/asset/persistence/AssetManifestStore.js +78 -0
- package/dist/runtime/modules/asset/persistence/CompiledAssetStore.js +84 -0
- package/dist/runtime/modules/asset/persistence/LocalAssetLibrary.js +86 -0
- package/dist/runtime/modules/asset/persistence/LocalAssetLibraryStore.js +81 -0
- package/dist/runtime/modules/asset/production/AssetProductionPipeline.js +272 -0
- package/dist/runtime/modules/asset/production/AssetRecipe.js +47 -0
- package/dist/runtime/modules/asset/production/adapters/EmbodiedGenAdapter.js +45 -0
- package/dist/runtime/modules/asset/production/adapters/EmbodiedGenBundleAdapter.js +590 -0
- package/dist/runtime/modules/asset/production/compiler/AssetCompiler.js +173 -0
- package/dist/runtime/modules/asset/production/compiler/evidence/AnimationMotionEvidence.js +124 -0
- package/dist/runtime/modules/asset/production/compiler/evidence/StaticPanelEvidence.js +56 -0
- package/dist/runtime/modules/asset/production/compiler/gltfIO.js +6 -0
- package/dist/runtime/modules/asset/production/compiler/partGeometry.js +74 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ArticulatedCollisionPass.js +63 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ArticulationCandidatePass.js +48 -0
- package/dist/runtime/modules/asset/production/compiler/passes/AuthoringIntentPass.js +16 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ColliderFallbackPass.js +30 -0
- package/dist/runtime/modules/asset/production/compiler/passes/CompileQualityPass.js +75 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ExplicitDefinitionPass.js +20 -0
- package/dist/runtime/modules/asset/production/compiler/passes/GLTFInspectPass.js +34 -0
- package/dist/runtime/modules/asset/production/compiler/passes/GeometryPass.js +32 -0
- package/dist/runtime/modules/asset/production/compiler/passes/JointFramePass.js +116 -0
- package/dist/runtime/modules/asset/production/compiler/passes/KinematicEvidencePass.js +84 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ManifestPass.js +63 -0
- package/dist/runtime/modules/asset/production/compiler/passes/NormalizeTransformPass.js +16 -0
- package/dist/runtime/modules/asset/production/compiler/passes/OptimizeGLBPass.js +23 -0
- package/dist/runtime/modules/asset/production/compiler/passes/PartColliderPass.js +50 -0
- package/dist/runtime/modules/asset/production/compiler/passes/PartGeometryEnrichmentPass.js +60 -0
- package/dist/runtime/modules/asset/production/compiler/passes/PartProposalPass.js +93 -0
- package/dist/runtime/modules/asset/production/compiler/passes/RemoteEnrichmentPass.js +32 -0
- package/dist/runtime/modules/asset/production/compiler/passes/ResourceBudgetPass.js +55 -0
- package/dist/runtime/modules/asset/production/compiler/passes/SegmentMaterializePass.js +203 -0
- package/dist/runtime/modules/asset/production/compiler/passes/SegmentationEvidencePass.js +43 -0
- package/dist/runtime/modules/asset/production/compiler/passes/SemanticHeuristicPass.js +33 -0
- package/dist/runtime/modules/asset/production/compiler/passes/StructurePass.js +60 -0
- package/dist/runtime/modules/asset/production/compiler/providers/HttpCompilerProvider.js +23 -0
- package/dist/runtime/modules/asset/production/verification/KinematicHypothesisScreen.js +198 -0
- package/dist/runtime/modules/asset/registry/AssetCatalog.js +72 -0
- package/dist/runtime/modules/asset/registry/AssetRegistry.js +51 -0
- package/dist/runtime/modules/asset/registry/manifests/index.js +173 -0
- package/dist/runtime/modules/asset/tasks.jsonl +87 -0
- package/dist/runtime/modules/generation/README.md +9 -0
- package/dist/runtime/modules/generation/connector/ConnectorArtifactClient.js +45 -0
- package/dist/runtime/modules/generation/connector/ConnectorCapabilityAdapter.js +169 -0
- package/dist/runtime/modules/generation/connector/ConnectorClient.js +192 -0
- package/dist/runtime/modules/generation/connector/ConnectorJobClient.js +167 -0
- package/dist/runtime/modules/generation/connector/ConnectorJobEventClient.js +179 -0
- package/dist/runtime/modules/generation/connector/ConnectorSession.js +202 -0
- package/dist/runtime/modules/generation/jobs/GenerationJobProjection.js +239 -0
- package/dist/runtime/modules/generation/jobs/GenerationJobReconciler.js +99 -0
- package/dist/runtime/modules/generation/jobs/GenerationJobStore.js +91 -0
- package/dist/runtime/modules/generation/jobs/GenerationJobTransportOverlay.js +50 -0
- package/dist/runtime/modules/generation/providers/ProviderRegistry.js +304 -0
- package/dist/runtime/modules/generation/tasks.jsonl +35 -0
- package/dist/runtime/modules/navigation/NavigationBackend.js +17 -0
- package/dist/runtime/modules/navigation/RecastNavigationBackend.js +245 -0
- package/dist/runtime/modules/physics/JoltPhysicsBackend.js +850 -0
- package/dist/runtime/modules/physics/PhysicsApiSurface.js +651 -0
- package/dist/runtime/modules/physics/PhysicsBackend.js +88 -0
- package/dist/runtime/modules/physics/RapierPhysicsBackend.js +410 -0
- package/dist/runtime/modules/rendering/README.md +7 -0
- package/dist/runtime/modules/rendering/RendererProbe.js +153 -0
- package/dist/runtime/modules/rendering/WebGpuPostFxPipeline.js +140 -0
- package/dist/runtime/modules/rendering/createRenderer.js +76 -0
- package/dist/runtime/modules/rendering/disposeObject3D.js +37 -0
- package/dist/runtime/modules/rendering/loadGaussianSplatVisual.js +74 -0
- package/dist/runtime/modules/rendering/spatial/ThreeBvhRuntime.js +107 -0
- package/dist/runtime/modules/rendering/style/StylePack.js +34 -0
- package/dist/runtime/modules/rendering/style/StyleSystem.js +173 -0
- package/dist/runtime/modules/rendering/tasks.jsonl +7 -0
- package/dist/runtime/modules/world/README.md +13 -0
- package/dist/runtime/modules/world/build/WorldBuilder.js +170 -0
- package/dist/runtime/modules/world/compiler/PipelineEngine.js +32 -0
- package/dist/runtime/modules/world/compiler/WorldAdmission.js +43 -0
- package/dist/runtime/modules/world/compiler/WorldBehaviorCompiler.js +68 -0
- package/dist/runtime/modules/world/compiler/WorldCompilation.js +157 -0
- package/dist/runtime/modules/world/compiler/WorldComposer.js +201 -0
- package/dist/runtime/modules/world/compiler/WorldPhysicsAdmission.js +76 -0
- package/dist/runtime/modules/world/compiler/WorldRecompiler.js +356 -0
- package/dist/runtime/modules/world/compiler/WorldRetry.js +75 -0
- package/dist/runtime/modules/world/compiler/createWorldPipeline.js +379 -0
- package/dist/runtime/modules/world/content/blankWorld.js +35 -0
- package/dist/runtime/modules/world/content/environments.js +84 -0
- package/dist/runtime/modules/world/content/grandUrbanBlock.js +189 -0
- package/dist/runtime/modules/world/content/magic-cabin/README.md +28 -0
- package/dist/runtime/modules/world/content/magic-cabin/affordances.js +64 -0
- package/dist/runtime/modules/world/content/magic-cabin/cabinContents.js +7078 -0
- package/dist/runtime/modules/world/content/magic-cabin/lighting.js +26 -0
- package/dist/runtime/modules/world/content/magic-cabin/materials.js +20 -0
- package/dist/runtime/modules/world/content/magicCabin.js +190 -0
- package/dist/runtime/modules/world/content/monumentHall.js +154 -0
- package/dist/runtime/modules/world/content/ruinedCourtyard.js +196 -0
- package/dist/runtime/modules/world/content/suzhouGarden/README.md +141 -0
- package/dist/runtime/modules/world/content/suzhouGarden/index.js +137 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/arch.js +491 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/buildings.js +670 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/core.js +578 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/lod.js +127 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/main.js +642 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/nature.js +650 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/rockery.js +280 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/sky.js +242 -0
- package/dist/runtime/modules/world/content/suzhouGarden/src/water.js +215 -0
- package/dist/runtime/modules/world/content/woodlandWorkshop.js +192 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/README.md +36 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/arch.js +351 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/buildings.js +490 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/core.js +505 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/index.js +101 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/nature.js +435 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/sky.js +169 -0
- package/dist/runtime/modules/world/content/yuanmingyuan/water.js +245 -0
- package/dist/runtime/modules/world/errors.js +9 -0
- package/dist/runtime/modules/world/generated/GeneratedWorldCoordinates.js +50 -0
- package/dist/runtime/modules/world/generated/GeneratedWorldLoader.js +297 -0
- package/dist/runtime/modules/world/runtime/CommandHistory.js +80 -0
- package/dist/runtime/modules/world/runtime/EntityCapabilityRegistry.js +150 -0
- package/dist/runtime/modules/world/runtime/ObjectStore.js +31 -0
- package/dist/runtime/modules/world/runtime/ObjectTransform.js +62 -0
- package/dist/runtime/modules/world/runtime/ObservedEntity.js +37 -0
- package/dist/runtime/modules/world/runtime/ProjectCapabilities.js +207 -0
- package/dist/runtime/modules/world/runtime/SceneSerializer.js +246 -0
- package/dist/runtime/modules/world/runtime/WorldAuthority.js +41 -0
- package/dist/runtime/modules/world/runtime/WorldCollisionSignature.js +14 -0
- package/dist/runtime/modules/world/runtime/WorldCommands.js +502 -0
- package/dist/runtime/modules/world/runtime/WorldObservation.js +71 -0
- package/dist/runtime/modules/world/runtime/WorldQueries.js +340 -0
- package/dist/runtime/modules/world/runtime/WorldRecovery.js +78 -0
- package/dist/runtime/modules/world/runtime/WorldRuntime.js +665 -0
- package/dist/runtime/modules/world/runtime/affordance/ObjectAffordances.js +107 -0
- package/dist/runtime/modules/world/runtime/affordance/WorldAffordances.js +130 -0
- package/dist/runtime/modules/world/runtime/behavior/BehaviorCompiler.js +79 -0
- package/dist/runtime/modules/world/runtime/behavior/ProjectStateMachine.js +195 -0
- package/dist/runtime/modules/world/runtime/behavior/RuleGraph.js +70 -0
- package/dist/runtime/modules/world/runtime/behavior/RuleRuntime.js +115 -0
- package/dist/runtime/modules/world/runtime/graph/SceneGraph.js +305 -0
- package/dist/runtime/modules/world/runtime/interaction/ArticulationRuntime.js +214 -0
- package/dist/runtime/modules/world/runtime/interaction/CarryCapability.js +65 -0
- package/dist/runtime/modules/world/runtime/interaction/CarryRuntime.js +222 -0
- package/dist/runtime/modules/world/runtime/interaction/InteractionApproach.js +130 -0
- package/dist/runtime/modules/world/runtime/interaction/InteractionContract.js +57 -0
- package/dist/runtime/modules/world/runtime/interaction/RecoveryRuntime.js +123 -0
- package/dist/runtime/modules/world/runtime/interaction/SettleRuntime.js +120 -0
- package/dist/runtime/modules/world/runtime/semantic/SemanticWorldView.js +102 -0
- package/dist/runtime/modules/world/runtime/simulation/SimulationClock.js +89 -0
- package/dist/runtime/modules/world/runtime/simulation/SimulationSession.js +99 -0
- package/dist/runtime/modules/world/runtime/simulation/ThermalSystem.js +269 -0
- package/dist/runtime/modules/world/runtime/spatial/SpatialSnapshot.js +56 -0
- package/dist/runtime/modules/world/runtime/systems/AudioSystem.js +125 -0
- package/dist/runtime/modules/world/runtime/systems/Instrument.js +38 -0
- package/dist/runtime/modules/world/runtime/systems/InteractionSystem.js +728 -0
- package/dist/runtime/modules/world/runtime/systems/LocomotionSystem.js +269 -0
- package/dist/runtime/modules/world/runtime/systems/NavigationSystem.js +469 -0
- package/dist/runtime/modules/world/runtime/systems/PhysicsSystem.js +1673 -0
- package/dist/runtime/modules/world/runtime/systems/RenderingSystem.js +457 -0
- package/dist/runtime/modules/world/runtime/systems/SpatialSystem.js +284 -0
- package/dist/runtime/modules/world/spec/WorldIR.js +165 -0
- package/dist/runtime/modules/world/spec/WorldIRToolSchema.js +86 -0
- package/dist/runtime/modules/world/spec/WorldPlannerProposal.js +51 -0
- package/dist/runtime/modules/world/spec/WorldRevision.js +231 -0
- package/dist/runtime/modules/world/spec/WorldSpec.js +86 -0
- package/dist/runtime/modules/world/tasks.jsonl +530 -0
- package/dist/runtime/modules/world/verification/ArticulationVerifier.js +254 -0
- package/dist/runtime/modules/world/verification/Finding.js +105 -0
- package/dist/runtime/modules/world/verification/InteractionEvidence.js +69 -0
- package/dist/runtime/modules/world/verification/RepairEngine.js +49 -0
- package/dist/runtime/modules/world/verification/WorldAcceptance.js +158 -0
- package/dist/runtime/modules/world/verification/WorldValidator.js +65 -0
- package/dist/runtime/package-lock.json +16048 -0
- package/dist/runtime/package.json +105 -0
- package/dist/runtime/public/assets/cabinet.glb +0 -0
- package/dist/runtime/public/assets/grand-urban-block/clean_asphalt_diff_1k.jpg +0 -0
- package/dist/runtime/public/assets/grand-urban-block/clean_asphalt_nor_gl_1k.jpg +0 -0
- package/dist/runtime/public/assets/grand-urban-block/concrete_pavement_diff_1k.jpg +0 -0
- package/dist/runtime/public/assets/grand-urban-block/urban_street_01_1k.hdr +0 -0
- package/dist/runtime/public/assets/monument-hall/marble_diff_1k.jpg +0 -0
- package/dist/runtime/public/assets/monument-hall/marble_nor_gl_1k.jpg +0 -0
- package/dist/runtime/public/assets/monument-hall/marble_rough_1k.jpg +0 -0
- package/dist/runtime/public/assets/monument-hall/solitude_interior_1k.hdr +0 -0
- package/dist/runtime/public/assets/ruined-courtyard/courtyard_1k.hdr +0 -0
- package/dist/runtime/public/assets/ruined-courtyard/mossy_cobblestone_diff_1k.jpg +0 -0
- package/dist/runtime/public/assets/ruined-courtyard/mossy_cobblestone_nor_gl_1k.jpg +0 -0
- package/dist/runtime/public/assets/ruined-courtyard/mossy_sandstone_diff_1k.jpg +0 -0
- package/dist/schema-BWpTl0Wj.js +359 -0
- package/dist/schema-BWpTl0Wj.js.map +1 -0
- package/dist/suzhouGarden-H9tiPgxq.js +6150 -0
- package/dist/suzhouGarden-H9tiPgxq.js.map +1 -0
- package/dist/woodlandWorkshop-D6zzSbHr.js +483 -0
- package/dist/woodlandWorkshop-D6zzSbHr.js.map +1 -0
- package/dist/yuanmingyuan-D6IHqjZ-.js +4955 -0
- package/dist/yuanmingyuan-D6IHqjZ-.js.map +1 -0
- package/package.json +70 -4
|
@@ -0,0 +1,515 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
// ../../modules/world/content/grandUrbanBlock.js
|
|
3
|
+
const GRAND_URBAN_BLOCK_ASSETS = Object.freeze({
|
|
4
|
+
hdri: "/assets/grand-urban-block/urban_street_01_1k.hdr",
|
|
5
|
+
asphaltDiffuse: "/assets/grand-urban-block/clean_asphalt_diff_1k.jpg",
|
|
6
|
+
asphaltNormal: "/assets/grand-urban-block/clean_asphalt_nor_gl_1k.jpg",
|
|
7
|
+
pavementDiffuse: "/assets/grand-urban-block/concrete_pavement_diff_1k.jpg"
|
|
8
|
+
});
|
|
9
|
+
const box = (halfExtents, translation) => ({
|
|
10
|
+
shape: "box",
|
|
11
|
+
halfExtents,
|
|
12
|
+
translation
|
|
13
|
+
});
|
|
14
|
+
const PADS = [
|
|
15
|
+
[-27, -21.5],
|
|
16
|
+
[27, -21.5],
|
|
17
|
+
[-27, 21.5],
|
|
18
|
+
[27, 21.5]
|
|
19
|
+
];
|
|
20
|
+
const BUILDINGS = Object.freeze([
|
|
21
|
+
[
|
|
22
|
+
-35,
|
|
23
|
+
-25,
|
|
24
|
+
12,
|
|
25
|
+
14,
|
|
26
|
+
18,
|
|
27
|
+
0
|
|
28
|
+
],
|
|
29
|
+
[
|
|
30
|
+
-21,
|
|
31
|
+
-25,
|
|
32
|
+
10,
|
|
33
|
+
14,
|
|
34
|
+
26,
|
|
35
|
+
1
|
|
36
|
+
],
|
|
37
|
+
[
|
|
38
|
+
-30,
|
|
39
|
+
-11,
|
|
40
|
+
20,
|
|
41
|
+
7,
|
|
42
|
+
12,
|
|
43
|
+
2
|
|
44
|
+
],
|
|
45
|
+
[
|
|
46
|
+
22,
|
|
47
|
+
-25,
|
|
48
|
+
11,
|
|
49
|
+
14,
|
|
50
|
+
20,
|
|
51
|
+
1
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
36,
|
|
55
|
+
-25,
|
|
56
|
+
12,
|
|
57
|
+
14,
|
|
58
|
+
30,
|
|
59
|
+
2
|
|
60
|
+
],
|
|
61
|
+
[
|
|
62
|
+
29,
|
|
63
|
+
-11,
|
|
64
|
+
22,
|
|
65
|
+
7,
|
|
66
|
+
14,
|
|
67
|
+
0
|
|
68
|
+
],
|
|
69
|
+
[
|
|
70
|
+
-35,
|
|
71
|
+
25,
|
|
72
|
+
12,
|
|
73
|
+
14,
|
|
74
|
+
22,
|
|
75
|
+
2
|
|
76
|
+
],
|
|
77
|
+
[
|
|
78
|
+
-21,
|
|
79
|
+
25,
|
|
80
|
+
10,
|
|
81
|
+
14,
|
|
82
|
+
16,
|
|
83
|
+
0
|
|
84
|
+
],
|
|
85
|
+
[
|
|
86
|
+
-30,
|
|
87
|
+
11,
|
|
88
|
+
20,
|
|
89
|
+
7,
|
|
90
|
+
28,
|
|
91
|
+
1
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
22,
|
|
95
|
+
25,
|
|
96
|
+
11,
|
|
97
|
+
14,
|
|
98
|
+
18,
|
|
99
|
+
0
|
|
100
|
+
],
|
|
101
|
+
[
|
|
102
|
+
36,
|
|
103
|
+
25,
|
|
104
|
+
12,
|
|
105
|
+
14,
|
|
106
|
+
24,
|
|
107
|
+
1
|
|
108
|
+
],
|
|
109
|
+
[
|
|
110
|
+
29,
|
|
111
|
+
11,
|
|
112
|
+
22,
|
|
113
|
+
7,
|
|
114
|
+
13,
|
|
115
|
+
2
|
|
116
|
+
]
|
|
117
|
+
]);
|
|
118
|
+
const GRAND_URBAN_BLOCK_COLLIDERS = Object.freeze([
|
|
119
|
+
box([
|
|
120
|
+
48,
|
|
121
|
+
.15,
|
|
122
|
+
36
|
|
123
|
+
], [
|
|
124
|
+
0,
|
|
125
|
+
-.15,
|
|
126
|
+
0
|
|
127
|
+
]),
|
|
128
|
+
...PADS.map(([x, z]) => box([
|
|
129
|
+
18,
|
|
130
|
+
.12,
|
|
131
|
+
14.5
|
|
132
|
+
], [
|
|
133
|
+
x,
|
|
134
|
+
.12,
|
|
135
|
+
z
|
|
136
|
+
])),
|
|
137
|
+
box([
|
|
138
|
+
9,
|
|
139
|
+
.08,
|
|
140
|
+
9
|
|
141
|
+
], [
|
|
142
|
+
0,
|
|
143
|
+
.08,
|
|
144
|
+
0
|
|
145
|
+
]),
|
|
146
|
+
...BUILDINGS.map(([x, z, w, d, h]) => box([
|
|
147
|
+
w / 2,
|
|
148
|
+
h / 2,
|
|
149
|
+
d / 2
|
|
150
|
+
], [
|
|
151
|
+
x,
|
|
152
|
+
.24 + h / 2,
|
|
153
|
+
z
|
|
154
|
+
])),
|
|
155
|
+
{
|
|
156
|
+
shape: "cylinder",
|
|
157
|
+
radius: 2.2,
|
|
158
|
+
halfHeight: 1.8,
|
|
159
|
+
translation: [
|
|
160
|
+
0,
|
|
161
|
+
1.96,
|
|
162
|
+
0
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
]);
|
|
166
|
+
const mesh = (geometry, material, { position, name, castShadow = true, receiveShadow = true, navigationIgnore = false } = {}) => {
|
|
167
|
+
const value = new THREE.Mesh(geometry, material);
|
|
168
|
+
if (position) value.position.set(...position);
|
|
169
|
+
value.name = name || "";
|
|
170
|
+
value.castShadow = castShadow;
|
|
171
|
+
value.receiveShadow = receiveShadow;
|
|
172
|
+
if (navigationIgnore) value.userData.navigationIgnore = true;
|
|
173
|
+
return value;
|
|
174
|
+
};
|
|
175
|
+
const tile = (texture, repeat, color = false) => {
|
|
176
|
+
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
|
|
177
|
+
texture.repeat.set(...repeat);
|
|
178
|
+
texture.anisotropy = 4;
|
|
179
|
+
if (color) texture.colorSpace = THREE.SRGBColorSpace;
|
|
180
|
+
return texture;
|
|
181
|
+
};
|
|
182
|
+
const addRoadMarkings = (root) => {
|
|
183
|
+
const material = new THREE.MeshBasicMaterial({ color: 15196356 });
|
|
184
|
+
const geometry = new THREE.BoxGeometry(.18, .012, 2.2);
|
|
185
|
+
const items = [];
|
|
186
|
+
for (let z = -31; z <= 31; z += 5.5) items.push([
|
|
187
|
+
0,
|
|
188
|
+
.012,
|
|
189
|
+
z,
|
|
190
|
+
0
|
|
191
|
+
]);
|
|
192
|
+
for (let x = -43; x <= 43; x += 5.5) items.push([
|
|
193
|
+
x,
|
|
194
|
+
.012,
|
|
195
|
+
0,
|
|
196
|
+
Math.PI / 2
|
|
197
|
+
]);
|
|
198
|
+
const lines = new THREE.InstancedMesh(geometry, material, items.length);
|
|
199
|
+
lines.name = "LaneMarkings";
|
|
200
|
+
lines.userData.navigationIgnore = true;
|
|
201
|
+
lines.userData.decorative = true;
|
|
202
|
+
const matrix = new THREE.Matrix4(), quaternion = new THREE.Quaternion(), scale = new THREE.Vector3(1, 1, 1);
|
|
203
|
+
items.forEach(([x, y, z, r], i) => {
|
|
204
|
+
quaternion.setFromAxisAngle(new THREE.Vector3(0, 1, 0), r);
|
|
205
|
+
matrix.compose(new THREE.Vector3(x, y, z), quaternion, scale);
|
|
206
|
+
lines.setMatrixAt(i, matrix);
|
|
207
|
+
});
|
|
208
|
+
lines.instanceMatrix.needsUpdate = true;
|
|
209
|
+
root.add(lines);
|
|
210
|
+
};
|
|
211
|
+
const addFacadeWindows = (root) => {
|
|
212
|
+
const material = new THREE.MeshBasicMaterial({
|
|
213
|
+
color: 12045029,
|
|
214
|
+
toneMapped: false,
|
|
215
|
+
transparent: true,
|
|
216
|
+
opacity: .68,
|
|
217
|
+
side: THREE.DoubleSide
|
|
218
|
+
});
|
|
219
|
+
const geometry = new THREE.PlaneGeometry(.9, .52);
|
|
220
|
+
const transforms = [];
|
|
221
|
+
for (const [x, z, w, d, h] of BUILDINGS) {
|
|
222
|
+
const floors = Math.max(3, Math.floor((h - 2) / 2.5));
|
|
223
|
+
const columns = Math.max(3, Math.floor(d / 3));
|
|
224
|
+
const innerX = x < 0 ? x + w / 2 + .012 : x - w / 2 - .012;
|
|
225
|
+
const rotation = x < 0 ? Math.PI / 2 : -Math.PI / 2;
|
|
226
|
+
for (let floor = 0; floor < floors; floor++) for (let col = 0; col < columns; col++) {
|
|
227
|
+
const zz = z - d * .38 + col / Math.max(1, columns - 1) * d * .76;
|
|
228
|
+
transforms.push([
|
|
229
|
+
innerX,
|
|
230
|
+
1.8 + floor * 2.5,
|
|
231
|
+
zz,
|
|
232
|
+
rotation
|
|
233
|
+
]);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
const windows = new THREE.InstancedMesh(geometry, material, transforms.length);
|
|
237
|
+
windows.name = "FacadeWindows";
|
|
238
|
+
windows.userData.navigationIgnore = true;
|
|
239
|
+
const matrix = new THREE.Matrix4(), quaternion = new THREE.Quaternion(), scale = new THREE.Vector3(1, 1, 1);
|
|
240
|
+
transforms.forEach(([x, y, z, r], i) => {
|
|
241
|
+
quaternion.setFromAxisAngle(new THREE.Vector3(0, 1, 0), r);
|
|
242
|
+
matrix.compose(new THREE.Vector3(x, y, z), quaternion, scale);
|
|
243
|
+
windows.setMatrixAt(i, matrix);
|
|
244
|
+
});
|
|
245
|
+
windows.instanceMatrix.needsUpdate = true;
|
|
246
|
+
root.add(windows);
|
|
247
|
+
};
|
|
248
|
+
const addStreetFurniture = (root) => {
|
|
249
|
+
const poleGeometry = new THREE.CylinderGeometry(.055, .075, 3.6, 8);
|
|
250
|
+
const poleMaterial = new THREE.MeshStandardMaterial({
|
|
251
|
+
color: 2304561,
|
|
252
|
+
roughness: .4,
|
|
253
|
+
metalness: .72
|
|
254
|
+
});
|
|
255
|
+
const lampGeometry = new THREE.SphereGeometry(.12, 8, 6);
|
|
256
|
+
const lampMaterial = new THREE.MeshBasicMaterial({
|
|
257
|
+
color: 16767129,
|
|
258
|
+
toneMapped: false
|
|
259
|
+
});
|
|
260
|
+
const locations = [];
|
|
261
|
+
for (let z = -28; z <= 28; z += 8) locations.push([-6.8, z], [6.8, z]);
|
|
262
|
+
for (let x = -40; x <= 40; x += 10) locations.push([x, -5.2], [x, 5.2]);
|
|
263
|
+
const poles = new THREE.InstancedMesh(poleGeometry, poleMaterial, locations.length);
|
|
264
|
+
const lamps = new THREE.InstancedMesh(lampGeometry, lampMaterial, locations.length);
|
|
265
|
+
poles.name = "StreetlightPoles";
|
|
266
|
+
lamps.name = "StreetlightLamps";
|
|
267
|
+
poles.userData.navigationIgnore = lamps.userData.navigationIgnore = true;
|
|
268
|
+
poles.userData.decorative = lamps.userData.decorative = true;
|
|
269
|
+
const matrix = new THREE.Matrix4();
|
|
270
|
+
locations.forEach(([x, z], i) => {
|
|
271
|
+
matrix.makeTranslation(x, 2, z);
|
|
272
|
+
poles.setMatrixAt(i, matrix);
|
|
273
|
+
matrix.makeTranslation(x, 3.86, z);
|
|
274
|
+
lamps.setMatrixAt(i, matrix);
|
|
275
|
+
});
|
|
276
|
+
poles.instanceMatrix.needsUpdate = lamps.instanceMatrix.needsUpdate = true;
|
|
277
|
+
root.add(poles, lamps);
|
|
278
|
+
const trunkGeometry = new THREE.CylinderGeometry(.11, .15, 2.2, 7);
|
|
279
|
+
const trunkMaterial = new THREE.MeshStandardMaterial({
|
|
280
|
+
color: 4864040,
|
|
281
|
+
roughness: 1
|
|
282
|
+
});
|
|
283
|
+
const crownGeometry = new THREE.IcosahedronGeometry(.85, 1);
|
|
284
|
+
const crownMaterial = new THREE.MeshStandardMaterial({
|
|
285
|
+
color: 4546374,
|
|
286
|
+
roughness: .95
|
|
287
|
+
});
|
|
288
|
+
const trees = [
|
|
289
|
+
[-42, -15],
|
|
290
|
+
[-42, 15],
|
|
291
|
+
[42, -15],
|
|
292
|
+
[42, 15],
|
|
293
|
+
[-12, -30],
|
|
294
|
+
[12, -30],
|
|
295
|
+
[-12, 30],
|
|
296
|
+
[12, 30],
|
|
297
|
+
[-13, -8],
|
|
298
|
+
[13, -8],
|
|
299
|
+
[-13, 8],
|
|
300
|
+
[13, 8]
|
|
301
|
+
];
|
|
302
|
+
const trunks = new THREE.InstancedMesh(trunkGeometry, trunkMaterial, trees.length);
|
|
303
|
+
const crowns = new THREE.InstancedMesh(crownGeometry, crownMaterial, trees.length);
|
|
304
|
+
trunks.name = "StreetTrees";
|
|
305
|
+
crowns.name = "StreetTreeCrowns";
|
|
306
|
+
trunks.userData.navigationIgnore = crowns.userData.navigationIgnore = true;
|
|
307
|
+
trunks.userData.decorative = crowns.userData.decorative = true;
|
|
308
|
+
trees.forEach(([x, z], i) => {
|
|
309
|
+
matrix.makeTranslation(x, 1.1, z);
|
|
310
|
+
trunks.setMatrixAt(i, matrix);
|
|
311
|
+
matrix.makeTranslation(x, 2.75, z);
|
|
312
|
+
crowns.setMatrixAt(i, matrix);
|
|
313
|
+
});
|
|
314
|
+
trunks.instanceMatrix.needsUpdate = crowns.instanceMatrix.needsUpdate = true;
|
|
315
|
+
root.add(trunks, crowns);
|
|
316
|
+
};
|
|
317
|
+
function createGrandUrbanBlock({ loadAssets = true } = {}) {
|
|
318
|
+
const root = new THREE.Group();
|
|
319
|
+
root.name = "GrandUrbanBlock";
|
|
320
|
+
root.userData.environment = "grand-urban-block";
|
|
321
|
+
const asphalt = new THREE.MeshStandardMaterial({
|
|
322
|
+
color: 3422782,
|
|
323
|
+
roughness: .92
|
|
324
|
+
});
|
|
325
|
+
const pavement = new THREE.MeshStandardMaterial({
|
|
326
|
+
color: 8685184,
|
|
327
|
+
roughness: .9
|
|
328
|
+
});
|
|
329
|
+
const buildingMaterials = [
|
|
330
|
+
new THREE.MeshStandardMaterial({
|
|
331
|
+
color: 7830916,
|
|
332
|
+
roughness: .72,
|
|
333
|
+
metalness: .04
|
|
334
|
+
}),
|
|
335
|
+
new THREE.MeshStandardMaterial({
|
|
336
|
+
color: 5594985,
|
|
337
|
+
roughness: .68,
|
|
338
|
+
metalness: .08
|
|
339
|
+
}),
|
|
340
|
+
new THREE.MeshStandardMaterial({
|
|
341
|
+
color: 9142647,
|
|
342
|
+
roughness: .78,
|
|
343
|
+
metalness: .02
|
|
344
|
+
})
|
|
345
|
+
];
|
|
346
|
+
const darkMetal = new THREE.MeshStandardMaterial({
|
|
347
|
+
color: 2107700,
|
|
348
|
+
roughness: .32,
|
|
349
|
+
metalness: .78
|
|
350
|
+
});
|
|
351
|
+
const beaconGlow = new THREE.MeshBasicMaterial({
|
|
352
|
+
color: 8828927,
|
|
353
|
+
toneMapped: false
|
|
354
|
+
});
|
|
355
|
+
const floor = mesh(new THREE.BoxGeometry(96, .3, 72), asphalt, {
|
|
356
|
+
position: [
|
|
357
|
+
0,
|
|
358
|
+
-.15,
|
|
359
|
+
0
|
|
360
|
+
],
|
|
361
|
+
name: "UrbanGround",
|
|
362
|
+
castShadow: false
|
|
363
|
+
});
|
|
364
|
+
root.add(floor);
|
|
365
|
+
for (const [x, z] of PADS) root.add(mesh(new THREE.BoxGeometry(36, .24, 29), pavement, {
|
|
366
|
+
position: [
|
|
367
|
+
x,
|
|
368
|
+
.12,
|
|
369
|
+
z
|
|
370
|
+
],
|
|
371
|
+
name: `CityBlock_${x}_${z}`,
|
|
372
|
+
castShadow: false
|
|
373
|
+
}));
|
|
374
|
+
root.add(mesh(new THREE.BoxGeometry(18, .16, 18), pavement, {
|
|
375
|
+
position: [
|
|
376
|
+
0,
|
|
377
|
+
.08,
|
|
378
|
+
0
|
|
379
|
+
],
|
|
380
|
+
name: "CentralPlaza",
|
|
381
|
+
castShadow: false
|
|
382
|
+
}));
|
|
383
|
+
for (const [x, z, w, d, h, materialIndex] of BUILDINGS) {
|
|
384
|
+
root.add(mesh(new THREE.BoxGeometry(w, h, d), buildingMaterials[materialIndex], {
|
|
385
|
+
position: [
|
|
386
|
+
x,
|
|
387
|
+
.24 + h / 2,
|
|
388
|
+
z
|
|
389
|
+
],
|
|
390
|
+
name: `Building_${x}_${z}`
|
|
391
|
+
}));
|
|
392
|
+
root.add(mesh(new THREE.BoxGeometry(w * .62, .35, d * .56), darkMetal, {
|
|
393
|
+
position: [
|
|
394
|
+
x,
|
|
395
|
+
.24 + h + .175,
|
|
396
|
+
z
|
|
397
|
+
],
|
|
398
|
+
name: "RooftopPlant",
|
|
399
|
+
navigationIgnore: true
|
|
400
|
+
}));
|
|
401
|
+
}
|
|
402
|
+
const beacon = mesh(new THREE.CylinderGeometry(2.2, 2.45, 3.6, 32), darkMetal, {
|
|
403
|
+
position: [
|
|
404
|
+
0,
|
|
405
|
+
1.96,
|
|
406
|
+
0
|
|
407
|
+
],
|
|
408
|
+
name: "CivicBeacon"
|
|
409
|
+
});
|
|
410
|
+
const halo = mesh(new THREE.TorusGeometry(2.75, .07, 10, 64), beaconGlow, {
|
|
411
|
+
position: [
|
|
412
|
+
0,
|
|
413
|
+
3.35,
|
|
414
|
+
0
|
|
415
|
+
],
|
|
416
|
+
name: "BeaconHalo",
|
|
417
|
+
castShadow: false,
|
|
418
|
+
receiveShadow: false,
|
|
419
|
+
navigationIgnore: true
|
|
420
|
+
});
|
|
421
|
+
halo.rotation.x = Math.PI / 2;
|
|
422
|
+
root.add(beacon, halo);
|
|
423
|
+
addRoadMarkings(root);
|
|
424
|
+
addFacadeWindows(root);
|
|
425
|
+
addStreetFurniture(root);
|
|
426
|
+
const hemi = new THREE.HemisphereLight(14148335, 2568506, 1.6);
|
|
427
|
+
const sun = new THREE.DirectionalLight(16769981, 3.4);
|
|
428
|
+
sun.position.set(-28, 42, 22);
|
|
429
|
+
sun.castShadow = true;
|
|
430
|
+
sun.shadow.mapSize.set(2048, 2048);
|
|
431
|
+
Object.assign(sun.shadow.camera, {
|
|
432
|
+
left: -58,
|
|
433
|
+
right: 58,
|
|
434
|
+
top: 48,
|
|
435
|
+
bottom: -48,
|
|
436
|
+
near: 2,
|
|
437
|
+
far: 110
|
|
438
|
+
});
|
|
439
|
+
const cityFill = new THREE.DirectionalLight(8168664, 1.15);
|
|
440
|
+
cityFill.position.set(36, 18, -32);
|
|
441
|
+
const beaconLight = new THREE.PointLight(7973631, 38, 22, 1.5);
|
|
442
|
+
beaconLight.position.set(0, 4.6, 0);
|
|
443
|
+
root.add(hemi, sun, cityFill, beaconLight);
|
|
444
|
+
let active = true;
|
|
445
|
+
const loader = loadAssets ? new THREE.TextureLoader() : null;
|
|
446
|
+
const loadTexture = (url, configure, apply) => loader?.load(url, (texture) => {
|
|
447
|
+
if (!active) {
|
|
448
|
+
texture.dispose();
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
configure?.(texture);
|
|
452
|
+
apply(texture);
|
|
453
|
+
});
|
|
454
|
+
if (loadAssets) {
|
|
455
|
+
loadTexture(GRAND_URBAN_BLOCK_ASSETS.asphaltDiffuse, (t) => tile(t, [28, 20], true), (t) => {
|
|
456
|
+
asphalt.map = t;
|
|
457
|
+
asphalt.needsUpdate = true;
|
|
458
|
+
});
|
|
459
|
+
loadTexture(GRAND_URBAN_BLOCK_ASSETS.asphaltNormal, (t) => tile(t, [28, 20]), (t) => {
|
|
460
|
+
asphalt.normalMap = t;
|
|
461
|
+
asphalt.normalScale.set(.28, .28);
|
|
462
|
+
asphalt.needsUpdate = true;
|
|
463
|
+
});
|
|
464
|
+
loadTexture(GRAND_URBAN_BLOCK_ASSETS.pavementDiffuse, (t) => tile(t, [12, 9], true), (t) => {
|
|
465
|
+
pavement.map = t;
|
|
466
|
+
pavement.needsUpdate = true;
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
return {
|
|
470
|
+
id: "grand-urban-block",
|
|
471
|
+
root,
|
|
472
|
+
floor,
|
|
473
|
+
colliders: GRAND_URBAN_BLOCK_COLLIDERS.map((value) => structuredClone(value)),
|
|
474
|
+
layout: {
|
|
475
|
+
bounds: {
|
|
476
|
+
min: [-47, -35],
|
|
477
|
+
max: [47, 35]
|
|
478
|
+
},
|
|
479
|
+
groundY: 0,
|
|
480
|
+
margin: 1.5
|
|
481
|
+
},
|
|
482
|
+
camera: {
|
|
483
|
+
position: [
|
|
484
|
+
52,
|
|
485
|
+
36,
|
|
486
|
+
58
|
|
487
|
+
],
|
|
488
|
+
target: [
|
|
489
|
+
0,
|
|
490
|
+
4,
|
|
491
|
+
0
|
|
492
|
+
],
|
|
493
|
+
far: 190
|
|
494
|
+
},
|
|
495
|
+
rendering: {
|
|
496
|
+
background: 6713725,
|
|
497
|
+
fog: {
|
|
498
|
+
color: 6713725,
|
|
499
|
+
near: 58,
|
|
500
|
+
far: 155
|
|
501
|
+
},
|
|
502
|
+
exposure: 1.04,
|
|
503
|
+
ibl: loadAssets ? {
|
|
504
|
+
url: GRAND_URBAN_BLOCK_ASSETS.hdri,
|
|
505
|
+
intensity: 1
|
|
506
|
+
} : null
|
|
507
|
+
},
|
|
508
|
+
dispose() {
|
|
509
|
+
active = false;
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
export { createGrandUrbanBlock };
|
|
514
|
+
|
|
515
|
+
//# sourceMappingURL=grandUrbanBlock-Bdjgc6ZT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grandUrbanBlock-Bdjgc6ZT.js","names":[],"sources":["../../../modules/world/content/grandUrbanBlock.js"],"sourcesContent":["import * as THREE from 'three';\r\n\r\nexport const GRAND_URBAN_BLOCK_ASSETS = Object.freeze({\r\n hdri:'/assets/grand-urban-block/urban_street_01_1k.hdr',\r\n asphaltDiffuse:'/assets/grand-urban-block/clean_asphalt_diff_1k.jpg',\r\n asphaltNormal:'/assets/grand-urban-block/clean_asphalt_nor_gl_1k.jpg',\r\n pavementDiffuse:'/assets/grand-urban-block/concrete_pavement_diff_1k.jpg'\r\n});\r\n\r\nconst box = (halfExtents, translation) => ({ shape:'box', halfExtents, translation });\r\nconst PADS = [[-27,-21.5],[27,-21.5],[-27,21.5],[27,21.5]];\r\nconst BUILDINGS = Object.freeze([\r\n [-35,-25,12,14,18,0],[-21,-25,10,14,26,1],[-30,-11,20,7,12,2],\r\n [22,-25,11,14,20,1],[36,-25,12,14,30,2],[29,-11,22,7,14,0],\r\n [-35,25,12,14,22,2],[-21,25,10,14,16,0],[-30,11,20,7,28,1],\r\n [22,25,11,14,18,0],[36,25,12,14,24,1],[29,11,22,7,13,2]\r\n]);\r\n\r\nexport const GRAND_URBAN_BLOCK_COLLIDERS = Object.freeze([\r\n box([48,.15,36],[0,-.15,0]),\r\n ...PADS.map(([x,z])=>box([18,.12,14.5],[x,.12,z])),\r\n box([9,.08,9],[0,.08,0]),\r\n ...BUILDINGS.map(([x,z,w,d,h])=>box([w/2,h/2,d/2],[x,.24+h/2,z])),\r\n { shape:'cylinder', radius:2.2, halfHeight:1.8, translation:[0,1.96,0] }\r\n]);\r\n\r\nconst mesh = (geometry, material, { position, name, castShadow=true, receiveShadow=true, navigationIgnore=false }={}) => {\r\n const value=new THREE.Mesh(geometry,material);\r\n if(position) value.position.set(...position);\r\n value.name=name||'';\r\n value.castShadow=castShadow;\r\n value.receiveShadow=receiveShadow;\r\n if(navigationIgnore) value.userData.navigationIgnore=true;\r\n return value;\r\n};\r\n\r\nconst tile = (texture, repeat, color=false) => {\r\n texture.wrapS=texture.wrapT=THREE.RepeatWrapping;\r\n texture.repeat.set(...repeat);\r\n texture.anisotropy=4;\r\n if(color) texture.colorSpace=THREE.SRGBColorSpace;\r\n return texture;\r\n};\r\n\r\nconst addRoadMarkings = (root) => {\r\n const material=new THREE.MeshBasicMaterial({color:0xe7e0c4});\r\n const geometry=new THREE.BoxGeometry(.18,.012,2.2);\r\n const items=[];\r\n for(let z=-31;z<=31;z+=5.5) items.push([0,.012,z,0]);\r\n for(let x=-43;x<=43;x+=5.5) items.push([x,.012,0,Math.PI/2]);\r\n const lines=new THREE.InstancedMesh(geometry,material,items.length);\r\n lines.name='LaneMarkings'; lines.userData.navigationIgnore=true; lines.userData.decorative=true;\r\n const matrix=new THREE.Matrix4(), quaternion=new THREE.Quaternion(), scale=new THREE.Vector3(1,1,1);\r\n items.forEach(([x,y,z,r],i)=>{\r\n quaternion.setFromAxisAngle(new THREE.Vector3(0,1,0),r);\r\n matrix.compose(new THREE.Vector3(x,y,z),quaternion,scale);\r\n lines.setMatrixAt(i,matrix);\r\n });\r\n lines.instanceMatrix.needsUpdate=true;\r\n root.add(lines);\r\n};\r\n\r\nconst addFacadeWindows = (root) => {\r\n const material=new THREE.MeshBasicMaterial({color:0xb7cae5,toneMapped:false,transparent:true,opacity:.68,side:THREE.DoubleSide});\r\n const geometry=new THREE.PlaneGeometry(.9,.52);\r\n const transforms=[];\r\n for(const [x,z,w,d,h] of BUILDINGS){\r\n const floors=Math.max(3,Math.floor((h-2)/2.5));\r\n const columns=Math.max(3,Math.floor(d/3));\r\n const innerX=x<0?x+w/2+.012:x-w/2-.012;\r\n const rotation=x<0?Math.PI/2:-Math.PI/2;\r\n for(let floor=0;floor<floors;floor++){\r\n for(let col=0;col<columns;col++){\r\n const zz=z-d*.38+(col/(Math.max(1,columns-1)))*d*.76;\r\n transforms.push([innerX,1.8+floor*2.5,zz,rotation]);\r\n }\r\n }\r\n }\r\n const windows=new THREE.InstancedMesh(geometry,material,transforms.length);\r\n windows.name='FacadeWindows'; windows.userData.navigationIgnore=true;\r\n const matrix=new THREE.Matrix4(), quaternion=new THREE.Quaternion(), scale=new THREE.Vector3(1,1,1);\r\n transforms.forEach(([x,y,z,r],i)=>{\r\n quaternion.setFromAxisAngle(new THREE.Vector3(0,1,0),r);\r\n matrix.compose(new THREE.Vector3(x,y,z),quaternion,scale);\r\n windows.setMatrixAt(i,matrix);\r\n });\r\n windows.instanceMatrix.needsUpdate=true;\r\n root.add(windows);\r\n};\r\n\r\nconst addStreetFurniture = (root) => {\r\n const poleGeometry=new THREE.CylinderGeometry(.055,.075,3.6,8);\r\n const poleMaterial=new THREE.MeshStandardMaterial({color:0x232a31,roughness:.4,metalness:.72});\r\n const lampGeometry=new THREE.SphereGeometry(.12,8,6);\r\n const lampMaterial=new THREE.MeshBasicMaterial({color:0xffd899,toneMapped:false});\r\n const locations=[];\r\n for(let z=-28;z<=28;z+=8) locations.push([-6.8,z],[6.8,z]);\r\n for(let x=-40;x<=40;x+=10) locations.push([x,-5.2],[x,5.2]);\r\n const poles=new THREE.InstancedMesh(poleGeometry,poleMaterial,locations.length);\r\n const lamps=new THREE.InstancedMesh(lampGeometry,lampMaterial,locations.length);\r\n poles.name='StreetlightPoles'; lamps.name='StreetlightLamps';\r\n poles.userData.navigationIgnore=lamps.userData.navigationIgnore=true; poles.userData.decorative=lamps.userData.decorative=true;\r\n const matrix=new THREE.Matrix4();\r\n locations.forEach(([x,z],i)=>{\r\n matrix.makeTranslation(x,2,z); poles.setMatrixAt(i,matrix);\r\n matrix.makeTranslation(x,3.86,z); lamps.setMatrixAt(i,matrix);\r\n });\r\n poles.instanceMatrix.needsUpdate=lamps.instanceMatrix.needsUpdate=true;\r\n root.add(poles,lamps);\r\n\r\n const trunkGeometry=new THREE.CylinderGeometry(.11,.15,2.2,7);\r\n const trunkMaterial=new THREE.MeshStandardMaterial({color:0x4a3828,roughness:1});\r\n const crownGeometry=new THREE.IcosahedronGeometry(.85,1);\r\n const crownMaterial=new THREE.MeshStandardMaterial({color:0x455f46,roughness:.95});\r\n const trees=[[-42,-15],[-42,15],[42,-15],[42,15],[-12,-30],[12,-30],[-12,30],[12,30],[-13,-8],[13,-8],[-13,8],[13,8]];\r\n const trunks=new THREE.InstancedMesh(trunkGeometry,trunkMaterial,trees.length);\r\n const crowns=new THREE.InstancedMesh(crownGeometry,crownMaterial,trees.length);\r\n trunks.name='StreetTrees'; crowns.name='StreetTreeCrowns';\r\n trunks.userData.navigationIgnore=crowns.userData.navigationIgnore=true; trunks.userData.decorative=crowns.userData.decorative=true;\r\n trees.forEach(([x,z],i)=>{\r\n matrix.makeTranslation(x,1.1,z); trunks.setMatrixAt(i,matrix);\r\n matrix.makeTranslation(x,2.75,z); crowns.setMatrixAt(i,matrix);\r\n });\r\n trunks.instanceMatrix.needsUpdate=crowns.instanceMatrix.needsUpdate=true;\r\n root.add(trunks,crowns);\r\n};\r\n\r\nexport function createGrandUrbanBlock({loadAssets=true}={}){\r\n const root=new THREE.Group();\r\n root.name='GrandUrbanBlock'; root.userData.environment='grand-urban-block';\r\n\r\n const asphalt=new THREE.MeshStandardMaterial({color:0x343a3e,roughness:.92});\r\n const pavement=new THREE.MeshStandardMaterial({color:0x848680,roughness:.9});\r\n const buildingMaterials=[\r\n new THREE.MeshStandardMaterial({color:0x777d84,roughness:.72,metalness:.04}),\r\n new THREE.MeshStandardMaterial({color:0x555f69,roughness:.68,metalness:.08}),\r\n new THREE.MeshStandardMaterial({color:0x8b8177,roughness:.78,metalness:.02})\r\n ];\r\n const darkMetal=new THREE.MeshStandardMaterial({color:0x202934,roughness:.32,metalness:.78});\r\n const beaconGlow=new THREE.MeshBasicMaterial({color:0x86b7ff,toneMapped:false});\r\n\r\n const floor=mesh(new THREE.BoxGeometry(96,.3,72),asphalt,{position:[0,-.15,0],name:'UrbanGround',castShadow:false});\r\n root.add(floor);\r\n for(const [x,z] of PADS) root.add(mesh(new THREE.BoxGeometry(36,.24,29),pavement,{position:[x,.12,z],name:`CityBlock_${x}_${z}`,castShadow:false}));\r\n root.add(mesh(new THREE.BoxGeometry(18,.16,18),pavement,{position:[0,.08,0],name:'CentralPlaza',castShadow:false}));\r\n\r\n for(const [x,z,w,d,h,materialIndex] of BUILDINGS){\r\n root.add(mesh(new THREE.BoxGeometry(w,h,d),buildingMaterials[materialIndex],{position:[x,.24+h/2,z],name:`Building_${x}_${z}`}));\r\n root.add(mesh(new THREE.BoxGeometry(w*.62,.35,d*.56),darkMetal,{position:[x,.24+h+.175,z],name:'RooftopPlant',navigationIgnore:true}));\r\n }\r\n\r\n const beacon=mesh(new THREE.CylinderGeometry(2.2,2.45,3.6,32),darkMetal,{position:[0,1.96,0],name:'CivicBeacon'});\r\n const halo=mesh(new THREE.TorusGeometry(2.75,.07,10,64),beaconGlow,{position:[0,3.35,0],name:'BeaconHalo',castShadow:false,receiveShadow:false,navigationIgnore:true});\r\n halo.rotation.x=Math.PI/2;\r\n root.add(beacon,halo);\r\n\r\n addRoadMarkings(root);\r\n addFacadeWindows(root);\r\n addStreetFurniture(root);\r\n\r\n const hemi=new THREE.HemisphereLight(0xd7e2ef,0x27313a,1.6);\r\n const sun=new THREE.DirectionalLight(0xffe3bd,3.4);\r\n sun.position.set(-28,42,22); sun.castShadow=true; sun.shadow.mapSize.set(2048,2048);\r\n Object.assign(sun.shadow.camera,{left:-58,right:58,top:48,bottom:-48,near:2,far:110});\r\n const cityFill=new THREE.DirectionalLight(0x7ca4d8,1.15); cityFill.position.set(36,18,-32);\r\n const beaconLight=new THREE.PointLight(0x79aaff,38,22,1.5); beaconLight.position.set(0,4.6,0);\r\n root.add(hemi,sun,cityFill,beaconLight);\r\n\r\n let active=true;\r\n const loader=loadAssets?new THREE.TextureLoader():null;\r\n const loadTexture=(url,configure,apply)=>loader?.load(url,(texture)=>{\r\n if(!active){texture.dispose();return;}\r\n configure?.(texture); apply(texture);\r\n });\r\n if(loadAssets){\r\n loadTexture(GRAND_URBAN_BLOCK_ASSETS.asphaltDiffuse,(t)=>tile(t,[28,20],true),(t)=>{asphalt.map=t;asphalt.needsUpdate=true;});\r\n loadTexture(GRAND_URBAN_BLOCK_ASSETS.asphaltNormal,(t)=>tile(t,[28,20]),(t)=>{asphalt.normalMap=t;asphalt.normalScale.set(.28,.28);asphalt.needsUpdate=true;});\r\n loadTexture(GRAND_URBAN_BLOCK_ASSETS.pavementDiffuse,(t)=>tile(t,[12,9],true),(t)=>{pavement.map=t;pavement.needsUpdate=true;});\r\n }\r\n\r\n return {\r\n id:'grand-urban-block',root,floor,\r\n colliders:GRAND_URBAN_BLOCK_COLLIDERS.map((value)=>structuredClone(value)),\r\n layout:{bounds:{min:[-47,-35],max:[47,35]},groundY:0,margin:1.5},\r\n camera:{position:[52,36,58],target:[0,4,0],far:190},\r\n rendering:{background:0x66717d,fog:{color:0x66717d,near:58,far:155},exposure:1.04, ibl:loadAssets?{url:GRAND_URBAN_BLOCK_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