agentscape3d 1.0.0-beta.1 → 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/README.md +23 -48
- package/dist/core.d.ts +68 -0
- package/dist/core.js +209 -0
- package/dist/core.js.map +1 -0
- package/dist/index.d.ts +10 -229
- package/dist/index.js +192 -15462
- package/dist/index.js.map +1 -1
- package/package.json +11 -40
- package/cli.mjs +0 -27
- package/dist/AssetCompiler-CDFiElji.js +0 -2451
- package/dist/AssetCompiler-CDFiElji.js.map +0 -1
- package/dist/AssetInputContracts-Dy8iU4eT.js +0 -228
- package/dist/AssetInputContracts-Dy8iU4eT.js.map +0 -1
- package/dist/AssetRecipe-DmFpzxr-.js +0 -55
- package/dist/AssetRecipe-DmFpzxr-.js.map +0 -1
- package/dist/BrowserCodeWorker.js +0 -53615
- package/dist/KinematicHypothesisScreen-D-z6qgMB.js +0 -242
- package/dist/KinematicHypothesisScreen-D-z6qgMB.js.map +0 -1
- package/dist/SceneSerializer-DPVOyeRk.js +0 -353
- package/dist/SceneSerializer-DPVOyeRk.js.map +0 -1
- package/dist/StylePack-DNrdLeGI.js +0 -6314
- package/dist/StylePack-DNrdLeGI.js.map +0 -1
- package/dist/WorldArchive-pSBIGxLa.js +0 -420
- package/dist/WorldArchive-pSBIGxLa.js.map +0 -1
- package/dist/WorldIO-wsDfZGM4.js +0 -150
- package/dist/WorldIO-wsDfZGM4.js.map +0 -1
- package/dist/blankWorld-CBWbwJGj.js +0 -76
- package/dist/blankWorld-CBWbwJGj.js.map +0 -1
- package/dist/disposeObject3D-BQ9TyVC_.js +0 -54
- package/dist/disposeObject3D-BQ9TyVC_.js.map +0 -1
- package/dist/environments-DgH66NqV.js +0 -4220
- package/dist/environments-DgH66NqV.js.map +0 -1
- package/dist/gltfIO-B87nJaat.js +0 -10
- package/dist/gltfIO-B87nJaat.js.map +0 -1
- package/dist/grandUrbanBlock-Ob9pN-CB.js +0 -516
- package/dist/grandUrbanBlock-Ob9pN-CB.js.map +0 -1
- package/dist/magicCabin-D64fD1E2.js +0 -11024
- package/dist/magicCabin-D64fD1E2.js.map +0 -1
- package/dist/mcp.d.ts +0 -2
- package/dist/mcp.js +0 -1
- package/dist/monumentHall-BKbs0UOQ.js +0 -404
- package/dist/monumentHall-BKbs0UOQ.js.map +0 -1
- package/dist/node.d.ts +0 -16
- package/dist/node.js +0 -25
- package/dist/ruinedCourtyard-BoZxHldu.js +0 -697
- package/dist/ruinedCourtyard-BoZxHldu.js.map +0 -1
- package/dist/runtime/application/AgentTools.js +0 -25
- package/dist/runtime/application/README.md +0 -14
- package/dist/runtime/application/buildTaskObservation.js +0 -117
- package/dist/runtime/application/code-execution/AuthoringSandboxEntry.js +0 -46
- package/dist/runtime/application/code-execution/BrowserCodeExecutor.js +0 -35
- package/dist/runtime/application/code-execution/BrowserCodeWorker.js +0 -17
- package/dist/runtime/application/code-execution/RemoteAuthoringDocument.js +0 -72
- package/dist/runtime/application/createSession.js +0 -66
- package/dist/runtime/application/createWorldAuthoringContext.js +0 -400
- package/dist/runtime/application/generation/GenerationOrchestrator.js +0 -629
- package/dist/runtime/application/generation/GenerationRuntime.js +0 -214
- package/dist/runtime/application/generation/PromptHybridWorldOrchestrator.js +0 -285
- package/dist/runtime/application/native-scene/CodeProject.js +0 -119
- package/dist/runtime/application/native-scene/CodeProjectModules.js +0 -128
- package/dist/runtime/application/native-scene/NativeEnvironmentGeometry.js +0 -62
- package/dist/runtime/application/native-scene/NativeOverlayCheckpoint.js +0 -127
- package/dist/runtime/application/native-scene/NativeRenderDiscovery.js +0 -51
- package/dist/runtime/application/native-scene/NativeSceneHost.js +0 -164
- package/dist/runtime/application/native-scene/NativeSceneOverlay.js +0 -116
- package/dist/runtime/application/native-scene/NativeThreeModule.js +0 -16
- package/dist/runtime/application/object-forge/SceneObjectForge.js +0 -232
- package/dist/runtime/application/programmatic-assets/ProgrammaticAssetBuilder.js +0 -54
- package/dist/runtime/application/programmatic-assets/ProgrammaticAssetContract.js +0 -22
- package/dist/runtime/application/programmatic-assets/ThreeCodeAsset.js +0 -40
- package/dist/runtime/application/scene/CapabilityResolver.js +0 -79
- package/dist/runtime/application/scene/RequestWindow.js +0 -54
- package/dist/runtime/application/scene/SceneAgentTools.js +0 -21
- package/dist/runtime/application/scene/SceneContracts.js +0 -45
- package/dist/runtime/application/scene/SceneEditService.js +0 -144
- package/dist/runtime/application/scene/SceneFacade.js +0 -267
- package/dist/runtime/application/scene/SceneInteractionAdapters.js +0 -40
- package/dist/runtime/application/scene/SceneJobController.js +0 -229
- package/dist/runtime/application/scene/ScenePackage.js +0 -162
- package/dist/runtime/application/scene/ScenePersistence.js +0 -50
- package/dist/runtime/application/scene/SceneProject.js +0 -95
- package/dist/runtime/application/scene/SceneSkillNames.js +0 -5
- package/dist/runtime/application/scene/StarterScene.js +0 -56
- package/dist/runtime/application/scene/WorldArchive.js +0 -87
- package/dist/runtime/application/scene/WorldDirectory.js +0 -20
- package/dist/runtime/application/scene/WorldDocument.js +0 -74
- package/dist/runtime/application/scene/WorldIO.js +0 -103
- package/dist/runtime/application/scene/WorldStorage.js +0 -137
- package/dist/runtime/application/skills/SkillRegistry.js +0 -163
- package/dist/runtime/application/skills/packs/acceptanceSkills.js +0 -32
- package/dist/runtime/application/skills/packs/affordanceSkills.js +0 -36
- package/dist/runtime/application/skills/packs/assetSkills.js +0 -46
- package/dist/runtime/application/skills/packs/authoringSkills.js +0 -16
- package/dist/runtime/application/skills/packs/batchSkills.js +0 -22
- package/dist/runtime/application/skills/packs/codeSkills.js +0 -106
- package/dist/runtime/application/skills/packs/generationSkills.js +0 -45
- package/dist/runtime/application/skills/packs/interactionSkills.js +0 -46
- package/dist/runtime/application/skills/packs/recoverySkills.js +0 -80
- package/dist/runtime/application/skills/packs/sceneSkills.js +0 -24
- package/dist/runtime/application/skills/packs/spatialSkills.js +0 -35
- package/dist/runtime/application/skills/packs/verificationSkills.js +0 -14
- package/dist/runtime/application/skills/packs/worldSkills.js +0 -45
- package/dist/runtime/application/skills/registerCoreSkills.js +0 -31
- package/dist/runtime/application/skills/skillPrimitives.js +0 -4
- package/dist/runtime/application/tasks/CabinetCupTask.js +0 -76
- package/dist/runtime/application/tasks.jsonl +0 -67
- package/dist/runtime/application/world-authoring/AuthoringAssetProducer.js +0 -42
- package/dist/runtime/application/world-authoring/AuthoringDiff.js +0 -149
- package/dist/runtime/application/world-authoring/AuthoringDocument.js +0 -825
- package/dist/runtime/application/world-authoring/AuthoringExecutionHost.js +0 -109
- package/dist/runtime/application/world-authoring/AuthoringIdentity.js +0 -17
- package/dist/runtime/application/world-authoring/AuthoringModelResolver.js +0 -29
- package/dist/runtime/application/world-authoring/AuthoringPatch.js +0 -118
- package/dist/runtime/application/world-authoring/AuthoringPromotionController.js +0 -334
- package/dist/runtime/application/world-authoring/AuthoringPromotionSource.js +0 -126
- package/dist/runtime/application/world-authoring/AuthoringRevisionHistory.js +0 -144
- package/dist/runtime/application/world-authoring/HeadlessImageExport.js +0 -174
- package/dist/runtime/application/world-authoring/ModelRef.js +0 -62
- package/dist/runtime/apps/mcp-server/AUTHORING.md +0 -71
- package/dist/runtime/apps/mcp-server/AuthoringSandboxEntry.js +0 -1
- package/dist/runtime/apps/mcp-server/AuthoringSandboxWorker.mjs +0 -30
- package/dist/runtime/apps/mcp-server/BuildEnvironment.js +0 -17
- package/dist/runtime/apps/mcp-server/CodeExecutor.js +0 -71
- package/dist/runtime/apps/mcp-server/DEPLOYMENT-PC2.md +0 -42
- package/dist/runtime/apps/mcp-server/DockerBuildRunner.js +0 -66
- package/dist/runtime/apps/mcp-server/FileAssetRepository.js +0 -159
- package/dist/runtime/apps/mcp-server/HeadlessAssetIO.js +0 -8
- package/dist/runtime/apps/mcp-server/HeadlessGLTFLoader.js +0 -47
- package/dist/runtime/apps/mcp-server/HeadlessWorldHost.js +0 -132
- package/dist/runtime/apps/mcp-server/IsolatedAuthoringExecutor.js +0 -6
- package/dist/runtime/apps/mcp-server/PROGRAMMATIC-ASSETS.md +0 -116
- package/dist/runtime/apps/mcp-server/ProgrammaticAssets.js +0 -60
- package/dist/runtime/apps/mcp-server/README.md +0 -150
- package/dist/runtime/apps/mcp-server/RemoteAuthoringDocument.js +0 -1
- package/dist/runtime/apps/mcp-server/SandboxBundle.js +0 -13
- package/dist/runtime/apps/mcp-server/SessionManager.js +0 -80
- package/dist/runtime/apps/mcp-server/StudioBridgeHttp.js +0 -58
- package/dist/runtime/apps/mcp-server/StudioLiveBridge.js +0 -190
- package/dist/runtime/apps/mcp-server/TrustedAuthoringWorker.mjs +0 -16
- package/dist/runtime/apps/mcp-server/VALIDATION.md +0 -45
- package/dist/runtime/apps/mcp-server/acceptance-evidence.json +0 -332
- package/dist/runtime/apps/mcp-server/errorDiagnostics.js +0 -32
- package/dist/runtime/apps/mcp-server/examples/code-house.js +0 -24
- package/dist/runtime/apps/mcp-server/examples/procedural-assets.js +0 -37
- package/dist/runtime/apps/mcp-server/main.mjs +0 -56
- package/dist/runtime/apps/mcp-server/registerTools.js +0 -215
- package/dist/runtime/apps/mcp-server/sandbox/run.mjs +0 -23
- package/dist/runtime/apps/mcp-server/security.js +0 -21
- package/dist/runtime/apps/mcp-server/tasks.jsonl +0 -9
- package/dist/runtime/apps/server/CapabilityAdapterRegistry.js +0 -157
- package/dist/runtime/apps/server/README.md +0 -7
- package/dist/runtime/apps/server/WorldDiskStorage.js +0 -51
- package/dist/runtime/apps/server/openai-compatible-agent-gateway.mjs +0 -278
- package/dist/runtime/apps/server/tasks.jsonl +0 -10
- package/dist/runtime/foundation/EventBus.js +0 -18
- package/dist/runtime/foundation/JsonGateway.js +0 -47
- package/dist/runtime/foundation/PolicyEngine.js +0 -21
- package/dist/runtime/foundation/README.md +0 -7
- package/dist/runtime/foundation/TraceRecorder.js +0 -76
- package/dist/runtime/foundation/errors.js +0 -8
- package/dist/runtime/foundation/simulation/SimulationProfile.js +0 -143
- package/dist/runtime/foundation/version.js +0 -2
- package/dist/runtime/modules/agent/README.md +0 -11
- package/dist/runtime/modules/agent/ToolCallingAgent.js +0 -19
- package/dist/runtime/modules/agent/bootstrapWorld.js +0 -10
- package/dist/runtime/modules/agent/buildRecoveryProposals.js +0 -533
- package/dist/runtime/modules/agent/execution/AgentExecutionRules.js +0 -127
- package/dist/runtime/modules/agent/execution/AgentRunResults.js +0 -55
- package/dist/runtime/modules/agent/execution/AgentRunSession.js +0 -390
- package/dist/runtime/modules/agent/execution/AgentToolInvoker.js +0 -39
- package/dist/runtime/modules/agent/gateway/HttpLLMGateway.js +0 -19
- package/dist/runtime/modules/agent/prompt/index.js +0 -46
- package/dist/runtime/modules/agent/tasks.jsonl +0 -94
- package/dist/runtime/modules/artifact/ArtifactContentGate.js +0 -144
- package/dist/runtime/modules/artifact/ArtifactDescriptor.js +0 -280
- package/dist/runtime/modules/artifact/ArtifactImporter.js +0 -185
- package/dist/runtime/modules/artifact/ArtifactModule.js +0 -111
- package/dist/runtime/modules/artifact/ArtifactRegistry.js +0 -197
- package/dist/runtime/modules/artifact/IncrementalSha256.js +0 -129
- package/dist/runtime/modules/artifact/MemoryArtifactByteStore.js +0 -115
- package/dist/runtime/modules/artifact/README.md +0 -7
- package/dist/runtime/modules/artifact/storage/IndexedDbArtifactStore.js +0 -67
- package/dist/runtime/modules/artifact/tasks.jsonl +0 -31
- package/dist/runtime/modules/asset/AssetModule.js +0 -399
- package/dist/runtime/modules/asset/README.md +0 -54
- package/dist/runtime/modules/asset/loading/AssetLoader.js +0 -157
- package/dist/runtime/modules/asset/loading/GltfAssetLoader.js +0 -61
- package/dist/runtime/modules/asset/loading/builtins/BuiltinAssets.js +0 -95
- package/dist/runtime/modules/asset/loading/builtins/HouseDoor.js +0 -33
- package/dist/runtime/modules/asset/loading/builtins/IndustrialCabinet.js +0 -103
- package/dist/runtime/modules/asset/model/AssetInputContracts.js +0 -95
- package/dist/runtime/modules/asset/model/AssetRef.js +0 -12
- package/dist/runtime/modules/asset/model/MechanicalAssetDraft.js +0 -172
- package/dist/runtime/modules/asset/model/admission.js +0 -117
- package/dist/runtime/modules/asset/model/errors.js +0 -6
- package/dist/runtime/modules/asset/model/parts.js +0 -27
- package/dist/runtime/modules/asset/model/resourceBudget.js +0 -10
- package/dist/runtime/modules/asset/model/schema.js +0 -150
- package/dist/runtime/modules/asset/persistence/AssetManifestStore.js +0 -78
- package/dist/runtime/modules/asset/persistence/CompiledAssetStore.js +0 -84
- package/dist/runtime/modules/asset/persistence/LocalAssetLibrary.js +0 -86
- package/dist/runtime/modules/asset/persistence/LocalAssetLibraryStore.js +0 -81
- package/dist/runtime/modules/asset/production/AssetProductionPipeline.js +0 -272
- package/dist/runtime/modules/asset/production/AssetRecipe.js +0 -32
- package/dist/runtime/modules/asset/production/adapters/EmbodiedGenAdapter.js +0 -45
- package/dist/runtime/modules/asset/production/adapters/EmbodiedGenBundleAdapter.js +0 -590
- package/dist/runtime/modules/asset/production/compiler/AssetCompiler.js +0 -173
- package/dist/runtime/modules/asset/production/compiler/evidence/AnimationMotionEvidence.js +0 -124
- package/dist/runtime/modules/asset/production/compiler/evidence/StaticPanelEvidence.js +0 -56
- package/dist/runtime/modules/asset/production/compiler/gltfIO.js +0 -6
- package/dist/runtime/modules/asset/production/compiler/partGeometry.js +0 -74
- package/dist/runtime/modules/asset/production/compiler/passes/ArticulatedCollisionPass.js +0 -63
- package/dist/runtime/modules/asset/production/compiler/passes/ArticulationCandidatePass.js +0 -48
- package/dist/runtime/modules/asset/production/compiler/passes/AuthoringIntentPass.js +0 -16
- package/dist/runtime/modules/asset/production/compiler/passes/ColliderFallbackPass.js +0 -30
- package/dist/runtime/modules/asset/production/compiler/passes/CompileQualityPass.js +0 -75
- package/dist/runtime/modules/asset/production/compiler/passes/ExplicitDefinitionPass.js +0 -20
- package/dist/runtime/modules/asset/production/compiler/passes/GLTFInspectPass.js +0 -34
- package/dist/runtime/modules/asset/production/compiler/passes/GeometryPass.js +0 -32
- package/dist/runtime/modules/asset/production/compiler/passes/JointFramePass.js +0 -116
- package/dist/runtime/modules/asset/production/compiler/passes/KinematicEvidencePass.js +0 -84
- package/dist/runtime/modules/asset/production/compiler/passes/ManifestPass.js +0 -63
- package/dist/runtime/modules/asset/production/compiler/passes/NormalizeTransformPass.js +0 -16
- package/dist/runtime/modules/asset/production/compiler/passes/OptimizeGLBPass.js +0 -23
- package/dist/runtime/modules/asset/production/compiler/passes/PartColliderPass.js +0 -50
- package/dist/runtime/modules/asset/production/compiler/passes/PartGeometryEnrichmentPass.js +0 -60
- package/dist/runtime/modules/asset/production/compiler/passes/PartProposalPass.js +0 -93
- package/dist/runtime/modules/asset/production/compiler/passes/RemoteEnrichmentPass.js +0 -32
- package/dist/runtime/modules/asset/production/compiler/passes/ResourceBudgetPass.js +0 -55
- package/dist/runtime/modules/asset/production/compiler/passes/SegmentMaterializePass.js +0 -203
- package/dist/runtime/modules/asset/production/compiler/passes/SegmentationEvidencePass.js +0 -43
- package/dist/runtime/modules/asset/production/compiler/passes/SemanticHeuristicPass.js +0 -33
- package/dist/runtime/modules/asset/production/compiler/passes/StructurePass.js +0 -60
- package/dist/runtime/modules/asset/production/compiler/providers/HttpCompilerProvider.js +0 -23
- package/dist/runtime/modules/asset/production/verification/KinematicHypothesisScreen.js +0 -198
- package/dist/runtime/modules/asset/registry/AssetCatalog.js +0 -72
- package/dist/runtime/modules/asset/registry/AssetRegistry.js +0 -51
- package/dist/runtime/modules/asset/registry/manifests/index.js +0 -173
- package/dist/runtime/modules/asset/tasks.jsonl +0 -87
- package/dist/runtime/modules/generation/README.md +0 -9
- package/dist/runtime/modules/generation/connector/ConnectorArtifactClient.js +0 -45
- package/dist/runtime/modules/generation/connector/ConnectorCapabilityAdapter.js +0 -169
- package/dist/runtime/modules/generation/connector/ConnectorClient.js +0 -192
- package/dist/runtime/modules/generation/connector/ConnectorJobClient.js +0 -167
- package/dist/runtime/modules/generation/connector/ConnectorJobEventClient.js +0 -179
- package/dist/runtime/modules/generation/connector/ConnectorSession.js +0 -202
- package/dist/runtime/modules/generation/jobs/GenerationJobProjection.js +0 -239
- package/dist/runtime/modules/generation/jobs/GenerationJobReconciler.js +0 -99
- package/dist/runtime/modules/generation/jobs/GenerationJobStore.js +0 -91
- package/dist/runtime/modules/generation/jobs/GenerationJobTransportOverlay.js +0 -50
- package/dist/runtime/modules/generation/providers/ProviderRegistry.js +0 -304
- package/dist/runtime/modules/generation/tasks.jsonl +0 -35
- package/dist/runtime/modules/navigation/NavigationBackend.js +0 -17
- package/dist/runtime/modules/navigation/RecastNavigationBackend.js +0 -245
- package/dist/runtime/modules/physics/JoltPhysicsBackend.js +0 -850
- package/dist/runtime/modules/physics/PhysicsApiSurface.js +0 -651
- package/dist/runtime/modules/physics/PhysicsBackend.js +0 -88
- package/dist/runtime/modules/physics/RapierPhysicsBackend.js +0 -410
- package/dist/runtime/modules/rendering/README.md +0 -7
- package/dist/runtime/modules/rendering/RendererProbe.js +0 -153
- package/dist/runtime/modules/rendering/WebGpuPostFxPipeline.js +0 -140
- package/dist/runtime/modules/rendering/createRenderer.js +0 -76
- package/dist/runtime/modules/rendering/disposeObject3D.js +0 -34
- package/dist/runtime/modules/rendering/loadGaussianSplatVisual.js +0 -74
- package/dist/runtime/modules/rendering/style/StylePack.js +0 -34
- package/dist/runtime/modules/rendering/style/StyleSystem.js +0 -173
- package/dist/runtime/modules/rendering/tasks.jsonl +0 -7
- package/dist/runtime/modules/world/README.md +0 -13
- package/dist/runtime/modules/world/build/WorldBuilder.js +0 -170
- package/dist/runtime/modules/world/compiler/PipelineEngine.js +0 -32
- package/dist/runtime/modules/world/compiler/WorldAdmission.js +0 -43
- package/dist/runtime/modules/world/compiler/WorldBehaviorCompiler.js +0 -68
- package/dist/runtime/modules/world/compiler/WorldCompilation.js +0 -157
- package/dist/runtime/modules/world/compiler/WorldComposer.js +0 -201
- package/dist/runtime/modules/world/compiler/WorldPhysicsAdmission.js +0 -76
- package/dist/runtime/modules/world/compiler/WorldRecompiler.js +0 -356
- package/dist/runtime/modules/world/compiler/WorldRetry.js +0 -75
- package/dist/runtime/modules/world/compiler/createWorldPipeline.js +0 -379
- package/dist/runtime/modules/world/content/blankWorld.js +0 -35
- package/dist/runtime/modules/world/content/environments.js +0 -84
- package/dist/runtime/modules/world/content/grandUrbanBlock.js +0 -189
- package/dist/runtime/modules/world/content/magic-cabin/README.md +0 -28
- package/dist/runtime/modules/world/content/magic-cabin/affordances.js +0 -64
- package/dist/runtime/modules/world/content/magic-cabin/cabinContents.js +0 -7078
- package/dist/runtime/modules/world/content/magic-cabin/lighting.js +0 -26
- package/dist/runtime/modules/world/content/magic-cabin/materials.js +0 -20
- package/dist/runtime/modules/world/content/magicCabin.js +0 -190
- package/dist/runtime/modules/world/content/monumentHall.js +0 -154
- package/dist/runtime/modules/world/content/ruinedCourtyard.js +0 -196
- package/dist/runtime/modules/world/content/suzhouGarden/README.md +0 -141
- package/dist/runtime/modules/world/content/suzhouGarden/index.js +0 -137
- package/dist/runtime/modules/world/content/suzhouGarden/src/arch.js +0 -491
- package/dist/runtime/modules/world/content/suzhouGarden/src/buildings.js +0 -670
- package/dist/runtime/modules/world/content/suzhouGarden/src/core.js +0 -578
- package/dist/runtime/modules/world/content/suzhouGarden/src/lod.js +0 -127
- package/dist/runtime/modules/world/content/suzhouGarden/src/main.js +0 -642
- package/dist/runtime/modules/world/content/suzhouGarden/src/nature.js +0 -650
- package/dist/runtime/modules/world/content/suzhouGarden/src/rockery.js +0 -280
- package/dist/runtime/modules/world/content/suzhouGarden/src/sky.js +0 -242
- package/dist/runtime/modules/world/content/suzhouGarden/src/water.js +0 -215
- package/dist/runtime/modules/world/content/woodlandWorkshop.js +0 -192
- package/dist/runtime/modules/world/content/yuanmingyuan/README.md +0 -36
- package/dist/runtime/modules/world/content/yuanmingyuan/arch.js +0 -351
- package/dist/runtime/modules/world/content/yuanmingyuan/buildings.js +0 -490
- package/dist/runtime/modules/world/content/yuanmingyuan/core.js +0 -505
- package/dist/runtime/modules/world/content/yuanmingyuan/index.js +0 -101
- package/dist/runtime/modules/world/content/yuanmingyuan/nature.js +0 -435
- package/dist/runtime/modules/world/content/yuanmingyuan/sky.js +0 -169
- package/dist/runtime/modules/world/content/yuanmingyuan/water.js +0 -245
- package/dist/runtime/modules/world/errors.js +0 -9
- package/dist/runtime/modules/world/generated/GeneratedWorldCoordinates.js +0 -50
- package/dist/runtime/modules/world/generated/GeneratedWorldLoader.js +0 -297
- package/dist/runtime/modules/world/runtime/CommandHistory.js +0 -80
- package/dist/runtime/modules/world/runtime/ObjectStore.js +0 -31
- package/dist/runtime/modules/world/runtime/ObjectTransform.js +0 -62
- package/dist/runtime/modules/world/runtime/ObservedEntity.js +0 -37
- package/dist/runtime/modules/world/runtime/ProjectCapabilities.js +0 -207
- package/dist/runtime/modules/world/runtime/SceneSerializer.js +0 -246
- package/dist/runtime/modules/world/runtime/WorldAuthority.js +0 -41
- package/dist/runtime/modules/world/runtime/WorldCollisionSignature.js +0 -14
- package/dist/runtime/modules/world/runtime/WorldCommands.js +0 -502
- package/dist/runtime/modules/world/runtime/WorldObservation.js +0 -71
- package/dist/runtime/modules/world/runtime/WorldQueries.js +0 -340
- package/dist/runtime/modules/world/runtime/WorldRecovery.js +0 -78
- package/dist/runtime/modules/world/runtime/WorldRuntime.js +0 -649
- package/dist/runtime/modules/world/runtime/affordance/ObjectAffordances.js +0 -107
- package/dist/runtime/modules/world/runtime/affordance/WorldAffordances.js +0 -130
- package/dist/runtime/modules/world/runtime/behavior/BehaviorCompiler.js +0 -79
- package/dist/runtime/modules/world/runtime/behavior/ProjectStateMachine.js +0 -195
- package/dist/runtime/modules/world/runtime/behavior/RuleGraph.js +0 -70
- package/dist/runtime/modules/world/runtime/behavior/RuleRuntime.js +0 -115
- package/dist/runtime/modules/world/runtime/graph/SceneGraph.js +0 -216
- package/dist/runtime/modules/world/runtime/interaction/ArticulationRuntime.js +0 -214
- package/dist/runtime/modules/world/runtime/interaction/CarryCapability.js +0 -65
- package/dist/runtime/modules/world/runtime/interaction/CarryRuntime.js +0 -222
- package/dist/runtime/modules/world/runtime/interaction/InteractionApproach.js +0 -130
- package/dist/runtime/modules/world/runtime/interaction/InteractionContract.js +0 -57
- package/dist/runtime/modules/world/runtime/interaction/RecoveryRuntime.js +0 -123
- package/dist/runtime/modules/world/runtime/interaction/SettleRuntime.js +0 -120
- package/dist/runtime/modules/world/runtime/semantic/SemanticWorldView.js +0 -102
- package/dist/runtime/modules/world/runtime/simulation/SimulationClock.js +0 -89
- package/dist/runtime/modules/world/runtime/simulation/SimulationSession.js +0 -99
- package/dist/runtime/modules/world/runtime/simulation/ThermalSystem.js +0 -269
- package/dist/runtime/modules/world/runtime/spatial/SpatialSnapshot.js +0 -56
- package/dist/runtime/modules/world/runtime/spatial/ThreeBvhRuntime.js +0 -36
- package/dist/runtime/modules/world/runtime/systems/InteractionSystem.js +0 -728
- package/dist/runtime/modules/world/runtime/systems/LocomotionSystem.js +0 -269
- package/dist/runtime/modules/world/runtime/systems/NavigationSystem.js +0 -469
- package/dist/runtime/modules/world/runtime/systems/PhysicsSystem.js +0 -1657
- package/dist/runtime/modules/world/runtime/systems/RenderingSystem.js +0 -457
- package/dist/runtime/modules/world/runtime/systems/SpatialSystem.js +0 -284
- package/dist/runtime/modules/world/spec/WorldIR.js +0 -165
- package/dist/runtime/modules/world/spec/WorldIRToolSchema.js +0 -86
- package/dist/runtime/modules/world/spec/WorldPlannerProposal.js +0 -51
- package/dist/runtime/modules/world/spec/WorldRevision.js +0 -231
- package/dist/runtime/modules/world/spec/WorldSpec.js +0 -86
- package/dist/runtime/modules/world/tasks.jsonl +0 -530
- package/dist/runtime/modules/world/verification/ArticulationVerifier.js +0 -254
- package/dist/runtime/modules/world/verification/Finding.js +0 -105
- package/dist/runtime/modules/world/verification/InteractionEvidence.js +0 -69
- package/dist/runtime/modules/world/verification/RepairEngine.js +0 -49
- package/dist/runtime/modules/world/verification/WorldAcceptance.js +0 -158
- package/dist/runtime/modules/world/verification/WorldValidator.js +0 -65
- package/dist/runtime/package-lock.json +0 -6245
- package/dist/runtime/package.json +0 -91
- 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-Dudvovhu.js +0 -364
- package/dist/schema-Dudvovhu.js.map +0 -1
- package/dist/suzhouGarden-BCx_JeV5.js +0 -6159
- package/dist/suzhouGarden-BCx_JeV5.js.map +0 -1
- package/dist/woodlandWorkshop-BGNWPNdK.js +0 -484
- package/dist/woodlandWorkshop-BGNWPNdK.js.map +0 -1
- package/dist/yuanmingyuan-DAIb1msO.js +0 -4962
- package/dist/yuanmingyuan-DAIb1msO.js.map +0 -1
|
@@ -1,516 +0,0 @@
|
|
|
1
|
-
import * as THREE from "three";
|
|
2
|
-
//#region ../../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
|
-
//#endregion
|
|
514
|
-
export { createGrandUrbanBlock };
|
|
515
|
-
|
|
516
|
-
//# sourceMappingURL=grandUrbanBlock-Ob9pN-CB.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"grandUrbanBlock-Ob9pN-CB.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_ASSETS.hdri,intensity:1}:null },\r\n dispose(){active=false;}\r\n };\r\n}\r\n"],"mappings":";;AAEA,MAAa,2BAA2B,OAAO,OAAO;CACpD,MAAK;CACL,gBAAe;CACf,eAAc;CACd,iBAAgB;AAClB,CAAC;AAED,MAAM,OAAO,aAAa,iBAAiB;CAAE,OAAM;CAAO;CAAa;AAAY;AACnF,MAAM,OAAO;CAAC,CAAC,KAAI,KAAK;CAAE,CAAC,IAAG,KAAK;CAAE,CAAC,KAAI,IAAI;CAAE,CAAC,IAAG,IAAI;AAAC;AACzD,MAAM,YAAY,OAAO,OAAO;CAC9B;EAAC;EAAI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