@realsee/five-webgpu 1.0.0-alpha.1
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/AGENTS_READ_ME.md +9 -0
- package/AI_CONTEXT.md +9 -0
- package/README.md +80 -0
- package/TERMS.txt +54 -0
- package/ai_guides/README.md +118 -0
- package/ai_guides/ai-doc-guidelines.md +102 -0
- package/ai_guides/api.md +274 -0
- package/ai_guides/features/3dtile.md +172 -0
- package/ai_guides/features/camera-animation.md +205 -0
- package/ai_guides/features/clipper.md +135 -0
- package/ai_guides/features/coordinate-system.md +128 -0
- package/ai_guides/features/event.md +154 -0
- package/ai_guides/features/five.md +184 -0
- package/ai_guides/features/gesture.md +181 -0
- package/ai_guides/features/get-screen-pixels.md +182 -0
- package/ai_guides/features/image-options.md +164 -0
- package/ai_guides/features/load-external-model.md +350 -0
- package/ai_guides/features/load-progress.md +140 -0
- package/ai_guides/features/material.md +153 -0
- package/ai_guides/features/mode.md +269 -0
- package/ai_guides/features/model.md +186 -0
- package/ai_guides/features/move-pano-effect.md +145 -0
- package/ai_guides/features/multi-work.md +146 -0
- package/ai_guides/features/pano-filter.md +144 -0
- package/ai_guides/features/pano-tile.md +132 -0
- package/ai_guides/features/pano-uv.md +131 -0
- package/ai_guides/features/parameter.md +153 -0
- package/ai_guides/features/raycast.md +175 -0
- package/ai_guides/features/request-proxy.md +112 -0
- package/ai_guides/features/screen-project.md +165 -0
- package/ai_guides/features/state.md +101 -0
- package/ai_guides/features/ultra-hdr.md +204 -0
- package/ai_guides/features/view-layer.md +187 -0
- package/ai_guides/features/work.md +303 -0
- package/ai_guides/glossary.md +93 -0
- package/ai_guides/intro.md +23 -0
- package/ai_guides/quick-start.md +69 -0
- package/ai_guides/release_notes/6.6.md +86 -0
- package/ai_guides/release_notes/6.7.md +401 -0
- package/ai_guides/release_notes/6.8.md +208 -0
- package/ai_guides/support.md +23 -0
- package/ai_guides/template.md +70 -0
- package/docs/.nojekyll +1 -0
- package/docs/00_FOR_AI_AGENTS.md +12 -0
- package/docs/README.md +12 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1633 -0
- package/docs/classes/index.AdaptiveLuminancePass.html +23 -0
- package/docs/classes/index.AnimationFrameLoop.html +18 -0
- package/docs/classes/index.BoundingMesh.html +4 -0
- package/docs/classes/index.Camera.html +42 -0
- package/docs/classes/index.EffectComposer.html +25 -0
- package/docs/classes/index.EyeDomeLightingPass.html +20 -0
- package/docs/classes/index.Fetcher.html +5 -0
- package/docs/classes/index.Five.html +311 -0
- package/docs/classes/index.FivePass.html +17 -0
- package/docs/classes/index.FiveRenderer.html +8 -0
- package/docs/classes/index.FlowingFireworks3DPass.html +22 -0
- package/docs/classes/index.FlowingLight2DPass.html +21 -0
- package/docs/classes/index.FlowingLight3DPass.html +23 -0
- package/docs/classes/index.FullScreenQuad.html +7 -0
- package/docs/classes/index.GaussianBlurPass.html +19 -0
- package/docs/classes/index.Histogram.html +19 -0
- package/docs/classes/index.InternalWebGPURenderer.html +4 -0
- package/docs/classes/index.Model.html +93 -0
- package/docs/classes/index.ModelScene.html +40 -0
- package/docs/classes/index.Motion.html +17 -0
- package/docs/classes/index.NetworkSubscribe.html +41 -0
- package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +37 -0
- package/docs/classes/index.PBMGaussianSplattingObject.html +32 -0
- package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +19 -0
- package/docs/classes/index.PBMGroup.html +5 -0
- package/docs/classes/index.PBMMesh.html +2 -0
- package/docs/classes/index.PBMMeshBasicMaterial.html +70 -0
- package/docs/classes/index.PBMMeshBasicNodeMaterial.html +74 -0
- package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +70 -0
- package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +74 -0
- package/docs/classes/index.PBMMeshPhongMaterial.html +69 -0
- package/docs/classes/index.PBMMeshPhongNodeMaterial.html +73 -0
- package/docs/classes/index.PBMMeshPhysicalMaterial.html +69 -0
- package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +73 -0
- package/docs/classes/index.PBMPanoFilter.html +61 -0
- package/docs/classes/index.PBMPointCloud.html +50 -0
- package/docs/classes/index.PBMSkinnedMesh.html +8 -0
- package/docs/classes/index.PBMUpdateable.html +41 -0
- package/docs/classes/index.PanoCircleMesh.html +30 -0
- package/docs/classes/index.PanoCircleMeshCustom.html +30 -0
- package/docs/classes/index.PanoCircleMeshSolid.html +30 -0
- package/docs/classes/index.Parameter.html +114 -0
- package/docs/classes/index.Scene.html +18 -0
- package/docs/classes/index.Subscribe.html +43 -0
- package/docs/classes/index.TextureLoader.html +4 -0
- package/docs/classes/index.Tile.html +34 -0
- package/docs/classes/index.Tile3D.html +98 -0
- package/docs/classes/index.TileCache.html +8 -0
- package/docs/classes/index.TileNode.html +14 -0
- package/docs/classes/index.TileRequestScheduler.html +4 -0
- package/docs/classes/index.Tileset.html +38 -0
- package/docs/classes/index.Trajectory.html +8 -0
- package/docs/classes/index.TrajectoryNode.html +8 -0
- package/docs/classes/index.Work.html +52 -0
- package/docs/classes/index.WorkResolvedObserver.html +68 -0
- package/docs/documents/README.html +134 -0
- package/docs/documents/ai-doc-guidelines.html +117 -0
- package/docs/documents/api.html +337 -0
- package/docs/documents/features_3dtile.html +216 -0
- package/docs/documents/features_camera-animation.html +157 -0
- package/docs/documents/features_clipper.html +80 -0
- package/docs/documents/features_coordinate-system.html +127 -0
- package/docs/documents/features_event.html +104 -0
- package/docs/documents/features_five.html +147 -0
- package/docs/documents/features_gesture.html +121 -0
- package/docs/documents/features_get-screen-pixels.html +88 -0
- package/docs/documents/features_image-options.html +108 -0
- package/docs/documents/features_load-external-model.html +600 -0
- package/docs/documents/features_load-progress.html +110 -0
- package/docs/documents/features_material.html +341 -0
- package/docs/documents/features_mode.html +114 -0
- package/docs/documents/features_model.html +141 -0
- package/docs/documents/features_move-pano-effect.html +110 -0
- package/docs/documents/features_multi-work.html +97 -0
- package/docs/documents/features_pano-filter.html +119 -0
- package/docs/documents/features_pano-tile.html +100 -0
- package/docs/documents/features_pano-uv.html +82 -0
- package/docs/documents/features_parameter.html +101 -0
- package/docs/documents/features_raycast.html +98 -0
- package/docs/documents/features_request-proxy.html +78 -0
- package/docs/documents/features_screen-project.html +112 -0
- package/docs/documents/features_state.html +71 -0
- package/docs/documents/features_ultra-hdr.html +188 -0
- package/docs/documents/features_view-layer.html +158 -0
- package/docs/documents/features_work.html +129 -0
- package/docs/documents/glossary.html +94 -0
- package/docs/documents/intro.html +24 -0
- package/docs/documents/quick-start.html +32 -0
- package/docs/documents/release_notes_6.6.html +79 -0
- package/docs/documents/release_notes_6.7.html +209 -0
- package/docs/documents/release_notes_6.8.html +189 -0
- package/docs/documents/support.html +49 -0
- package/docs/documents/template.html +80 -0
- package/docs/enums/index.VolumePlaneIntersect.html +4 -0
- package/docs/functions/index.coordinatesToVector.html +2 -0
- package/docs/functions/index.createDebugBoundingMesh.html +1 -0
- package/docs/functions/index.createWorks.html +1 -0
- package/docs/functions/index.defaultImageURLTransform.html +5 -0
- package/docs/functions/index.getViewportScale.html +1 -0
- package/docs/functions/index.headingToLongitude.html +4 -0
- package/docs/functions/index.imageSupport.html +1 -0
- package/docs/functions/index.isBoundingVolume.html +1 -0
- package/docs/functions/index.isPanoId.html +1 -0
- package/docs/functions/index.loadAt3d.html +1 -0
- package/docs/functions/index.loadDome.html +1 -0
- package/docs/functions/index.loadDomez.html +1 -0
- package/docs/functions/index.loadGltf.html +1 -0
- package/docs/functions/index.loadPbm.html +1 -0
- package/docs/functions/index.loadPly.html +1 -0
- package/docs/functions/index.longitudeToHeading.html +4 -0
- package/docs/functions/index.makeBoundingVolume.html +1 -0
- package/docs/functions/index.panoEqual.html +1 -0
- package/docs/functions/index.panoParse.html +1 -0
- package/docs/functions/index.panoStringify.html +1 -0
- package/docs/functions/index.parseWork.html +7 -0
- package/docs/functions/index.registerPBMMaterials.html +3 -0
- package/docs/functions/index.vectorToCoordinates.html +2 -0
- package/docs/functions/index.workToJson.html +1 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +134 -0
- package/docs/interfaces/index.AddableObject.html +9 -0
- package/docs/interfaces/index.AjaxOptions.html +9 -0
- package/docs/interfaces/index.AnimationFrame.html +6 -0
- package/docs/interfaces/index.AnimationFrameContext.html +3 -0
- package/docs/interfaces/index.BaseEvent.html +5 -0
- package/docs/interfaces/index.BoundingVolume.html +15 -0
- package/docs/interfaces/index.BoxBoundingVolume.html +18 -0
- package/docs/interfaces/index.CameraPose.html +6 -0
- package/docs/interfaces/index.CullingVolume.html +9 -0
- package/docs/interfaces/index.Draco.html +12 -0
- package/docs/interfaces/index.EventCallback.html +394 -0
- package/docs/interfaces/index.FiveInitArgs.html +104 -0
- package/docs/interfaces/index.FiveLoadOptions.html +12 -0
- package/docs/interfaces/index.FloorplanControllerCustomInitArgs.html +17 -0
- package/docs/interfaces/index.GestureEvent.html +19 -0
- package/docs/interfaces/index.IPBMMaterial.html +64 -0
- package/docs/interfaces/index.ImageOptions.html +21 -0
- package/docs/interfaces/index.ImageURLMappings.html +1 -0
- package/docs/interfaces/index.ImageURLOptions.html +17 -0
- package/docs/interfaces/index.IntersectEvent.html +8 -0
- package/docs/interfaces/index.IntersectMesh.html +2 -0
- package/docs/interfaces/index.IntersectMeshInterface.html +3 -0
- package/docs/interfaces/index.Intersection.html +9 -0
- package/docs/interfaces/index.LoosePanoWork.html +10 -0
- package/docs/interfaces/index.LooseWork.html +15 -0
- package/docs/interfaces/index.LooseWorkInitial.html +11 -0
- package/docs/interfaces/index.LooseWorkModel.html +8 -0
- package/docs/interfaces/index.LooseWorkObserver.html +17 -0
- package/docs/interfaces/index.LooseWorkPanorama.html +22 -0
- package/docs/interfaces/index.LooseWorkVideo.html +4 -0
- package/docs/interfaces/index.LooseWorkWithExtrinsics.html +15 -0
- package/docs/interfaces/index.MapviewControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/index.ModeChangeEvent.html +9 -0
- package/docs/interfaces/index.ModelControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/index.ModelEvent.html +8 -0
- package/docs/interfaces/index.ModelOptions.html +11 -0
- package/docs/interfaces/index.ModelSceneEvent.html +6 -0
- package/docs/interfaces/index.ModelTileEvent.html +8 -0
- package/docs/interfaces/index.MotionKeyframe.html +4 -0
- package/docs/interfaces/index.MovePanoOptions.html +35 -0
- package/docs/interfaces/index.NetworkAbortError.html +1 -0
- package/docs/interfaces/index.NetworkFirbiddenError.html +1 -0
- package/docs/interfaces/index.NetworkOptions.html +7 -0
- package/docs/interfaces/index.NetworkProxyError.html +1 -0
- package/docs/interfaces/index.NetworkResourceEvent.html +9 -0
- package/docs/interfaces/index.NetworkResponseError.html +2 -0
- package/docs/interfaces/index.NetworkTimeoutError.html +1 -0
- package/docs/interfaces/index.ObjectEvent.html +6 -0
- package/docs/interfaces/index.PBMClipperParameter.html +3 -0
- package/docs/interfaces/index.PBMHDRConfig.html +12 -0
- package/docs/interfaces/index.PBMPanoDepth.html +9 -0
- package/docs/interfaces/index.PBMPanoFilterValue.html +6 -0
- package/docs/interfaces/index.PBMPanoPicture.html +14 -0
- package/docs/interfaces/index.PBMRefinedScreen.html +6 -0
- package/docs/interfaces/index.PanoCircleMeshCustomOptions.html +9 -0
- package/docs/interfaces/index.PanoCircleMeshInterface.html +30 -0
- package/docs/interfaces/index.PanoCircleMeshOptions.html +3 -0
- package/docs/interfaces/index.PanoCircleMeshSolidOptions.html +3 -0
- package/docs/interfaces/index.PanoEvent.html +11 -0
- package/docs/interfaces/index.PanoTextureEvent.html +9 -0
- package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +41 -0
- package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/index.ParameterMaterialValue.html +74 -0
- package/docs/interfaces/index.ParameterTilesetValue.html +30 -0
- package/docs/interfaces/index.ParameterValue.html +103 -0
- package/docs/interfaces/index.Pass.html +9 -0
- package/docs/interfaces/index.PointCloudData.html +6 -0
- package/docs/interfaces/index.Pose.html +12 -0
- package/docs/interfaces/index.RegionBoundingVolume.html +21 -0
- package/docs/interfaces/index.RenderEvent.html +6 -0
- package/docs/interfaces/index.ResolvedParameterValue.html +104 -0
- package/docs/interfaces/index.RgbaData.html +7 -0
- package/docs/interfaces/index.SphereBoundingVolume.html +17 -0
- package/docs/interfaces/index.SplatData.html +10 -0
- package/docs/interfaces/index.State.html +23 -0
- package/docs/interfaces/index.StateEvent.html +7 -0
- package/docs/interfaces/index.TextureOptions.html +23 -0
- package/docs/interfaces/index.Tile3DOptions.html +11 -0
- package/docs/interfaces/index.TileCoordinateSystem.html +3 -0
- package/docs/interfaces/index.TileHeader.html +9 -0
- package/docs/interfaces/index.TilesetHeader.html +20 -0
- package/docs/interfaces/index.TilesetOptions.html +7 -0
- package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +13 -0
- package/docs/interfaces/index.TrajectoryHeader.html +5 -0
- package/docs/interfaces/index.ViewLayer.html +97 -0
- package/docs/interfaces/index.Viewport.html +13 -0
- package/docs/interfaces/index.WebXRAxesParams.html +4 -0
- package/docs/interfaces/index.WebXRControllerParams.html +2 -0
- package/docs/interfaces/index.WorkCubeImage.html +15 -0
- package/docs/interfaces/index.WorkImage.html +22 -0
- package/docs/interfaces/index.WorkInitial.html +17 -0
- package/docs/interfaces/index.WorkInitialJson.html +8 -0
- package/docs/interfaces/index.WorkJson.html +11 -0
- package/docs/interfaces/index.WorkModel.html +16 -0
- package/docs/interfaces/index.WorkModelJson.html +6 -0
- package/docs/interfaces/index.WorkModelLayer.html +11 -0
- package/docs/interfaces/index.WorkModelLayerJson.html +5 -0
- package/docs/interfaces/index.WorkObserver.html +63 -0
- package/docs/interfaces/index.WorkObserverJson.html +10 -0
- package/docs/interfaces/index.WorkPanoramaJson.html +14 -0
- package/docs/interfaces/index.WorkPanoramasJson.html +3 -0
- package/docs/interfaces/index.WorkTile.html +21 -0
- package/docs/interfaces/index.WorkVideo.html +9 -0
- package/docs/interfaces/index.WorksEvent.html +8 -0
- package/docs/interfaces/index.XRControllerEvent.html +8 -0
- package/docs/interfaces/index.XRGestureEvent.html +11 -0
- package/docs/interfaces/index.XRSessionEvent.html +7 -0
- package/docs/modules/index.html +1 -0
- package/docs/modules.html +1 -0
- package/docs/types/index.AjaxResponseType.html +1 -0
- package/docs/types/index.AjaxResponseTypeMapping.html +1 -0
- package/docs/types/index.AnimationFrameLoopType.html +1 -0
- package/docs/types/index.BoundingVolumeJson.html +1 -0
- package/docs/types/index.BoxBoundingVolumeJson.html +2 -0
- package/docs/types/index.ControllerCustomInitTypes.html +6 -0
- package/docs/types/index.ControllerEventTypes.html +68 -0
- package/docs/types/index.CubeFace.html +1 -0
- package/docs/types/index.EasingFunction.html +1 -0
- package/docs/types/index.EventTypes.html +28 -0
- package/docs/types/index.FivePlugin.html +4 -0
- package/docs/types/index.FivePluginInit.html +3 -0
- package/docs/types/index.FivePluginInstance.html +3 -0
- package/docs/types/index.FlowingFireworks3DPassLine.html +16 -0
- package/docs/types/index.FlowingLight2DPassLine.html +10 -0
- package/docs/types/index.FlowingLight3DPassLine.html +10 -0
- package/docs/types/index.GestureTypes.html +1 -0
- package/docs/types/index.LegacyEventType.html +282 -0
- package/docs/types/index.LoadResultType.html +12 -0
- package/docs/types/index.Mode.html +15 -0
- package/docs/types/index.Models.html +11 -0
- package/docs/types/index.MotionCircle.html +2 -0
- package/docs/types/index.MotionConfig.html +1 -0
- package/docs/types/index.MotionInitalValue.html +1 -0
- package/docs/types/index.MotionValue.html +1 -0
- package/docs/types/index.MovePanoEffect.html +12 -0
- package/docs/types/index.NetWorkMeta.html +8 -0
- package/docs/types/index.NetworkError.html +1 -0
- package/docs/types/index.NetworkErrorCallback.html +1 -0
- package/docs/types/index.NetworkProgressCallback.html +1 -0
- package/docs/types/index.NetworkResponse.html +3 -0
- package/docs/types/index.NetworkState.html +1 -0
- package/docs/types/index.NetworkSuccessCallback.html +1 -0
- package/docs/types/index.NetworkType.html +1 -0
- package/docs/types/index.OutputTextureDataType.html +1 -0
- package/docs/types/index.PBMAlphaMode.html +1 -0
- package/docs/types/index.PBMColorStyle.html +1 -0
- package/docs/types/index.PBMFloorStyle.html +1 -0
- package/docs/types/index.PBMMeshMaterial.html +1 -0
- package/docs/types/index.PBMPointBack.html +1 -0
- package/docs/types/index.PBMPointCloudShaderType.html +1 -0
- package/docs/types/index.PBMPointShape.html +1 -0
- package/docs/types/index.PBMPointSize.html +1 -0
- package/docs/types/index.PBMTransition.html +1 -0
- package/docs/types/index.Pano.html +3 -0
- package/docs/types/index.PanoId.html +1 -0
- package/docs/types/index.ParseOptions.html +13 -0
- package/docs/types/index.PostProcessingType.html +1 -0
- package/docs/types/index.RegionBoundingVolumeJson.html +2 -0
- package/docs/types/index.RequestAnimationFrameArgs.html +1 -0
- package/docs/types/index.Scissor.html +2 -0
- package/docs/types/index.SphereBoundingVolumeJson.html +2 -0
- package/docs/types/index.SubscribeEventMap.html +1 -0
- package/docs/types/index.TileCacheOptions.html +3 -0
- package/docs/types/index.TileContentData.html +6 -0
- package/docs/types/index.TileRequestOrder.html +1 -0
- package/docs/types/index.TileRequestSchedulerOptions.html +4 -0
- package/docs/types/index.TilesetFrameState.html +21 -0
- package/docs/types/index.TrajectoryContentData.html +7 -0
- package/docs/types/index.WebXRControllerKey.html +1 -0
- package/docs/types/index.WebXRControllerType.html +1 -0
- package/docs/types/index.Works.html +1 -0
- package/docs/variables/index.PROXY_CONTROLLER_EVENT_NAMES.html +1 -0
- package/docs/variables/index.controllersDefaultInitArgs.html +1 -0
- package/docs/variables/index.draco.html +1 -0
- package/five/application/analysis.d.ts +40 -0
- package/five/application/controllers.d.ts +33 -0
- package/five/application/events-legacy.d.ts +454 -0
- package/five/application/events.d.ts +69 -0
- package/five/application/five.d.ts +498 -0
- package/five/application/fiveInitArgs.d.ts +173 -0
- package/five/application/fiveLoadOptions.d.ts +21 -0
- package/five/application/generateDefaultVideoElement.d.ts +2 -0
- package/five/application/getViewportScale.d.ts +2 -0
- package/five/application/initLights.d.ts +3 -0
- package/five/application/mode.d.ts +24 -0
- package/five/application/renderPoweredByRealsee.d.ts +3 -0
- package/five/assets/cardboard-png-data-url.d.ts +2 -0
- package/five/assets/gradient-png-data-url.d.ts +2 -0
- package/five/assets/loading-png-data-url.d.ts +2 -0
- package/five/assets/phone-png-data-url.d.ts +2 -0
- package/five/assets/realsee-pmg-data-url.d.ts +2 -0
- package/five/bvh/bvhMath.d.ts +33 -0
- package/five/bvh/bvhMesh.d.ts +7 -0
- package/five/bvh/bvhNode.d.ts +29 -0
- package/five/bvh/bvhObject.d.ts +19 -0
- package/five/bvh/bvhPoints.d.ts +6 -0
- package/five/bvh/index.d.ts +14 -0
- package/five/bvh/type.d.ts +1 -0
- package/five/bvh/worker.d.ts +36 -0
- package/five/certificates/hardware.d.ts +1 -0
- package/five/controllers/base.d.ts +166 -0
- package/five/controllers/events.d.ts +71 -0
- package/five/controllers/floorplan.d.ts +119 -0
- package/five/controllers/mapview.d.ts +138 -0
- package/five/controllers/model.d.ts +57 -0
- package/five/controllers/panorama.d.ts +143 -0
- package/five/controllers/panoramaLike.d.ts +87 -0
- package/five/controllers/topview.d.ts +42 -0
- package/five/core/camera.d.ts +65 -0
- package/five/core/internalWebGPURenderer.d.ts +13 -0
- package/five/core/panoVideo.d.ts +18 -0
- package/five/core/scene.d.ts +10 -0
- package/five/core/tiling.d.ts +56 -0
- package/five/declare.d.ts +35 -0
- package/five/gaussian-splatting/util/renderData.d.ts +66 -0
- package/five/gaussian-splatting/wasm/data.d.ts +20 -0
- package/five/gaussian-splatting/wasm/sort.d.ts +18 -0
- package/five/gaussian-splatting/worker/dataWorker.d.ts +1 -0
- package/five/gaussian-splatting/worker/sortWorker.d.ts +1 -0
- package/five/index.d.ts +58 -0
- package/five/index.js +1179 -0
- package/five/index.mjs +25111 -0
- package/five/meshes/boundingMesh.d.ts +12 -0
- package/five/meshes/intersectMesh.d.ts +8 -0
- package/five/meshes/panoCircleMesh.d.ts +36 -0
- package/five/meshes/panoCircleMeshCustom.d.ts +40 -0
- package/five/meshes/panoCircleMeshSolid.d.ts +35 -0
- package/five/meshes/panoSphereMesh.d.ts +29 -0
- package/five/model/helpers/coordinate-transform.d.ts +3 -0
- package/five/model/helpers/ellipsoid-coordinates.d.ts +14 -0
- package/five/model/helpers/get-edges-by-sphere.d.ts +8 -0
- package/five/model/helpers/get-recommend-tile3d-parameters.d.ts +8 -0
- package/five/model/index.d.ts +55 -0
- package/five/model/intersection.d.ts +18 -0
- package/five/model/loaders/at3d.d.ts +12 -0
- package/five/model/loaders/b3dm.d.ts +10 -0
- package/five/model/loaders/dome.d.ts +22 -0
- package/five/model/loaders/domez.d.ts +11 -0
- package/five/model/loaders/fbx.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/CESIUM_RTC.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_meshopt_compression.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_texture_webp.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_animation_pointer.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +25 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_draco_mesh_compression.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting.d.ts +26 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +13 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_clearcoat.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_emissive_strength.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_sheen.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_transmission.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_unlit.d.ts +12 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_mesh_quantization.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_node_visibility.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_basisu.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_transform.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/REALSEE_materials_lightmap.d.ts +7 -0
- package/five/model/loaders/glTF-helpers/extensions/base.d.ts +25 -0
- package/five/model/loaders/glTF-helpers/glTF.d.ts +713 -0
- package/five/model/loaders/glTF-helpers/index.d.ts +51 -0
- package/five/model/loaders/glTF-helpers/parser.d.ts +115 -0
- package/five/model/loaders/glTF-helpers/type.d.ts +14 -0
- package/five/model/loaders/gltf.d.ts +10 -0
- package/five/model/loaders/obj.d.ts +9 -0
- package/five/model/loaders/pbm.d.ts +26 -0
- package/five/model/loaders/ply.d.ts +24 -0
- package/five/model/loaders/pnts.d.ts +8 -0
- package/five/model/loaders/protobuf/dome.d.ts +540 -0
- package/five/model/loaders/protobuf/pbm.d.ts +203 -0
- package/five/model/loaders/shared.d.ts +16 -0
- package/five/model/loaders/splat.d.ts +8 -0
- package/five/model/loaders/spz.d.ts +14 -0
- package/five/model/loaders/tile3d-helpers/feature-table.d.ts +15 -0
- package/five/model/loaders/tile3d-helpers/gl-type.d.ts +20 -0
- package/five/model/loaders/tile3d-helpers/parse-gltf-array-buffer.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-header.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.worker.d.ts +6 -0
- package/five/model/loaders/tile3d-helpers/parse-table.d.ts +3 -0
- package/five/model/loaders/tile3d-helpers/tile3d-type.d.ts +36 -0
- package/five/model/loaders/x3p.d.ts +22 -0
- package/five/model/materials/nodes/pbmMeshBasicNodeMaterial.d.ts +14 -0
- package/five/model/materials/nodes/pbmMeshPanoOnlyNodeMaterial.d.ts +14 -0
- package/five/model/materials/nodes/pbmMeshPhongNodeMaterial.d.ts +14 -0
- package/five/model/materials/nodes/pbmMeshPhysicalNodeMaterial.d.ts +14 -0
- package/five/model/materials/nodes/pbmPointCloudNodeMaterial.d.ts +22 -0
- package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +78 -0
- package/five/model/materials/pbmMaterial.d.ts +171 -0
- package/five/model/materials/pbmMaterialRegister.d.ts +6 -0
- package/five/model/materials/pbmMeshMaterial.d.ts +57 -0
- package/five/model/materials/pbmPointCloudMaterial.d.ts +20 -0
- package/five/model/materials/pbmPointCloudNodeMaterial.d.ts +46 -0
- package/five/model/materials/tsl/colorFilter.d.ts +9 -0
- package/five/model/materials/tsl/defines.d.ts +68 -0
- package/five/model/materials/tsl/nodeTypes.d.ts +12 -0
- package/five/model/materials/tsl/outputBuilder.d.ts +26 -0
- package/five/model/materials/tsl/panoColor.d.ts +17 -0
- package/five/model/materials/tsl/panoTransition.d.ts +8 -0
- package/five/model/materials/tsl/utils.d.ts +11 -0
- package/five/model/model-scene.d.ts +172 -0
- package/five/model/model.d.ts +203 -0
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +47 -0
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +73 -0
- package/five/model/objects/pbmGroup.d.ts +8 -0
- package/five/model/objects/pbmMesh.d.ts +10 -0
- package/five/model/objects/pbmPointCloud.d.ts +89 -0
- package/five/model/objects/pbmPointCloudObject.d.ts +81 -0
- package/five/model/parameter.d.ts +138 -0
- package/five/model/tile3d/header.d.ts +88 -0
- package/five/model/tile3d/index.d.ts +213 -0
- package/five/model/tile3d/tile-cache.d.ts +18 -0
- package/five/model/tile3d/tile-content.d.ts +10 -0
- package/five/model/tile3d/tile-node.d.ts +26 -0
- package/five/model/tile3d/tile-request-scheduler.d.ts +17 -0
- package/five/model/tile3d/tile.d.ts +79 -0
- package/five/model/tile3d/tileset-base-traverser.d.ts +59 -0
- package/five/model/tile3d/tileset-most-detail-traverser.d.ts +14 -0
- package/five/model/tile3d/tileset-normal-traverser.d.ts +15 -0
- package/five/model/tile3d/tileset-skip-traverser.d.ts +60 -0
- package/five/model/tile3d/tileset.d.ts +65 -0
- package/five/model/tile3d/trajectory-content.d.ts +0 -0
- package/five/model/tile3d/trajectory-node.d.ts +15 -0
- package/five/model/tile3d/trajectory.d.ts +30 -0
- package/five/model/tile3d/types.d.ts +33 -0
- package/five/model/view-layer.d.ts +20 -0
- package/five/renderer/compute-renderers/pointcloud-compute-renderer.d.ts +154 -0
- package/five/renderer/compute-renderers/rgb565.d.ts +45 -0
- package/five/renderer/compute-renderers/shaders/clear.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/fullscreenQuad.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/rasterize.d.ts +2 -0
- package/five/renderer/five-renderer.d.ts +33 -0
- package/five/renderer/index.d.ts +3 -0
- package/five/renderer/postprocessing/composer.d.ts +45 -0
- package/five/renderer/postprocessing/index.d.ts +8 -0
- package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +27 -0
- package/five/renderer/postprocessing/passes/eye-dome-lighting-pass.d.ts +31 -0
- package/five/renderer/postprocessing/passes/flowing-fireworks-3d-pass.d.ts +71 -0
- package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +26 -0
- package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +75 -0
- package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +22 -0
- package/five/renderer/postprocessing/passes/pass.d.ts +38 -0
- package/five/renderer/scene-renderers/scene-renderer.d.ts +9 -0
- package/five/renderer/tools/full-screen-quad.d.ts +17 -0
- package/five/renderer/tools/postprocess-uv.d.ts +11 -0
- package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
- package/five/renderer/tools/render-full-screen-depth.d.ts +2 -0
- package/five/renderer/tools/render-full-screen.d.ts +2 -0
- package/five/texture/histogram.d.ts +54 -0
- package/five/texture/imageBitmap.d.ts +13 -0
- package/five/texture/initTexture.d.ts +3 -0
- package/five/texture/loader.d.ts +39 -0
- package/five/texture/textureData.d.ts +11 -0
- package/five/thirdparty/fflate.d.ts +1407 -0
- package/five/thirdparty/hammer.d.ts +375 -0
- package/five/thirdparty/jsrsasign.d.ts +753 -0
- package/five/thirdparty/meshopt_decoder.d.ts +15 -0
- package/five/three-version-check.d.ts +1 -0
- package/five/types/addableObject.d.ts +12 -0
- package/five/types/cube.d.ts +2 -0
- package/five/types/gestureInput.d.ts +24 -0
- package/five/types/imageOptions.d.ts +20 -0
- package/five/types/intersectMeshInterface.d.ts +8 -0
- package/five/types/movePanoEffect.d.ts +13 -0
- package/five/types/movePanoOptions.d.ts +36 -0
- package/five/types/panoCircleMeshInterface.d.ts +34 -0
- package/five/types/plugin.d.ts +25 -0
- package/five/types/pose.d.ts +17 -0
- package/five/types/state.d.ts +20 -0
- package/five/types/viewport.d.ts +22 -0
- package/five/utils/ajax.d.ts +66 -0
- package/five/utils/animationFrameLoop.d.ts +45 -0
- package/five/utils/array.d.ts +31 -0
- package/five/utils/asyncTaskQueue.d.ts +8 -0
- package/five/utils/bufferGeometry.d.ts +33 -0
- package/five/utils/calculateProgress.d.ts +39 -0
- package/five/utils/calculateThreeMouse.d.ts +13 -0
- package/five/utils/canplayVideo.d.ts +2 -0
- package/five/utils/clamp.d.ts +2 -0
- package/five/utils/clock.d.ts +30 -0
- package/five/utils/createSymbol.d.ts +5 -0
- package/five/utils/decodeText.d.ts +2 -0
- package/five/utils/deepEqual.d.ts +2 -0
- package/five/utils/deepFreeze.d.ts +2 -0
- package/five/utils/defineProperty.d.ts +9 -0
- package/five/utils/detector.d.ts +14 -0
- package/five/utils/distance.d.ts +10 -0
- package/five/utils/draco.d.ts +26 -0
- package/five/utils/easing.d.ts +63 -0
- package/five/utils/event.d.ts +159 -0
- package/five/utils/face3.d.ts +12 -0
- package/five/utils/formatRad.d.ts +7 -0
- package/five/utils/hdr-data.d.ts +13 -0
- package/five/utils/imageSupport.d.ts +6 -0
- package/five/utils/imageURL.d.ts +42 -0
- package/five/utils/isEmptyObject.d.ts +2 -0
- package/five/utils/isNil.d.ts +6 -0
- package/five/utils/isNumber.d.ts +2 -0
- package/five/utils/isPowerOfTwo.d.ts +2 -0
- package/five/utils/isPromise.d.ts +2 -0
- package/five/utils/isSimilar.d.ts +6 -0
- package/five/utils/json.d.ts +7 -0
- package/five/utils/ktx2.d.ts +30 -0
- package/five/utils/lzma/index.d.ts +2 -0
- package/five/utils/lzma/lzma.d.ts +3 -0
- package/five/utils/lzma/lzmaWASM.d.ts +2 -0
- package/five/utils/lzma/lzmaWorker.d.ts +14 -0
- package/five/utils/memoryUsage.d.ts +37 -0
- package/five/utils/motion.d.ts +38 -0
- package/five/utils/noop.d.ts +6 -0
- package/five/utils/now.d.ts +7 -0
- package/five/utils/pano.d.ts +9 -0
- package/five/utils/pick.d.ts +3 -0
- package/five/utils/poseUtils.d.ts +5 -0
- package/five/utils/renderCubeTextureToCubeRenderTarget.d.ts +3 -0
- package/five/utils/renderDepth.d.ts +2 -0
- package/five/utils/renderTexturesToCubeRenderTarget.d.ts +10 -0
- package/five/utils/requestPermission.d.ts +3 -0
- package/five/utils/shaderContentFix.d.ts +7 -0
- package/five/utils/shaderMaterial.d.ts +20 -0
- package/five/utils/stateUtils.d.ts +5 -0
- package/five/utils/string-pattern.d.ts +8 -0
- package/five/utils/subscribe.d.ts +67 -0
- package/five/utils/tileCube.d.ts +19 -0
- package/five/utils/toFastProperties.d.ts +1 -0
- package/five/utils/typedCache.d.ts +10 -0
- package/five/utils/uniform.d.ts +15 -0
- package/five/utils/url.d.ts +35 -0
- package/five/utils/uuid.d.ts +5 -0
- package/five/utils/values.d.ts +2 -0
- package/five/utils/vectorCoordinates.d.ts +29 -0
- package/five/utils/volume.d.ts +111 -0
- package/five/utils/worker.d.ts +26 -0
- package/five/work/_ALLOW_HOST.d.ts +2 -0
- package/five/work/index.d.ts +6 -0
- package/five/work/keychain.d.ts +5 -0
- package/five/work/looseWorkType.d.ts +128 -0
- package/five/work/verify.d.ts +7 -0
- package/five/work/work.d.ts +246 -0
- package/five/work/workFetcher.d.ts +4 -0
- package/five/work/workJson.d.ts +3 -0
- package/five/work/workJsonType.d.ts +73 -0
- package/five/work/workObserverUtils.d.ts +36 -0
- package/five/work/workParser.d.ts +6 -0
- package/five/work/workResolvedObserver.d.ts +12 -0
- package/five/work/workVerify.d.ts +2 -0
- package/five/work/works.d.ts +10 -0
- package/llms.txt +66 -0
- package/package.json +56 -0
- package/plugins/BasePlugin/index.d.ts +96 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +66 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.d.ts +5 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/typing.d.ts +32 -0
- package/plugins/index.d.ts +2 -0
- package/plugins/index.js +255 -0
- package/plugins/index.mjs +539 -0
- package/plugins/utils/absoluteUrl.d.ts +5 -0
- package/react/autoCanvas.d.ts +9 -0
- package/react/canvas.d.ts +19 -0
- package/react/context.d.ts +12 -0
- package/react/createProvider.d.ts +98 -0
- package/react/createStore.d.ts +144 -0
- package/react/fiveApp.d.ts +22 -0
- package/react/hooks/unsafe__useFiveInstance.d.ts +9 -0
- package/react/hooks/useFiveAction.d.ts +147 -0
- package/react/hooks/useFiveCameraDirection.d.ts +7 -0
- package/react/hooks/useFiveCameraRaycaster.d.ts +7 -0
- package/react/hooks/useFiveCurrentObserver.d.ts +11 -0
- package/react/hooks/useFiveCurrentState.d.ts +15 -0
- package/react/hooks/useFiveEventCallback.d.ts +12 -0
- package/react/hooks/useFiveFloor.d.ts +15 -0
- package/react/hooks/useFiveHelper.d.ts +14 -0
- package/react/hooks/useFiveModelBounding.d.ts +5 -0
- package/react/hooks/useFiveModelEffect.d.ts +14 -0
- package/react/hooks/useFiveModelIntersectRaycaster.d.ts +22 -0
- package/react/hooks/useFiveModelReadyState.d.ts +8 -0
- package/react/hooks/useFivePlugin.d.ts +22 -0
- package/react/hooks/useFiveProject2d.d.ts +21 -0
- package/react/hooks/useFiveSceneEffect.d.ts +21 -0
- package/react/hooks/useFiveState.d.ts +6 -0
- package/react/hooks/useFiveWork.d.ts +29 -0
- package/react/index.d.ts +28 -0
- package/react/index.js +255 -0
- package/react/index.mjs +896 -0
- package/react/withFive.d.ts +213 -0
- package/resource/basis/1.16/basis_transcoder.js +22 -0
- package/resource/basis/1.16/basis_transcoder.wasm +0 -0
- package/resource/basis/README.md +5 -0
- package/resource/draco/1.5.6/draco_decoder.js +34 -0
- package/resource/draco/1.5.6/draco_decoder.wasm +0 -0
- package/resource/draco/1.5.6/draco_decoder_gltf.js +33 -0
- package/resource/draco/1.5.6/draco_decoder_gltf.wasm +0 -0
- package/resource/draco/1.5.6/draco_encoder.js +35 -0
- package/resource/draco/1.5.6/draco_encoder.wasm +0 -0
- package/resource/draco/1.5.6/draco_encoder_wrapper.js +97 -0
- package/resource/draco/1.5.6/draco_wasm_wrapper.js +117 -0
- package/resource/draco/1.5.6/draco_wasm_wrapper_gltf.js +116 -0
- package/resource/draco/README.md +5 -0
- package/umd/five-plugins.js +255 -0
- package/umd/five-react.js +255 -0
- package/umd/five.js +1579 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { type ViewLayer } from './view-layer';
|
|
3
|
+
import { type Work } from "../work";
|
|
4
|
+
import { type TextureOptions } from "../types/imageOptions";
|
|
5
|
+
import { type Intersection } from "./intersection";
|
|
6
|
+
import { type Camera } from "../core/camera";
|
|
7
|
+
import { Parameter, type ParameterValue } from './parameter';
|
|
8
|
+
import { type ModelScene } from './model-scene';
|
|
9
|
+
import { type Tile } from './tile3d/tile';
|
|
10
|
+
export interface Model {
|
|
11
|
+
dispatchEvent(event: {
|
|
12
|
+
type: 'error';
|
|
13
|
+
error: Error;
|
|
14
|
+
}): void;
|
|
15
|
+
dispatchEvent(event: {
|
|
16
|
+
type: 'load';
|
|
17
|
+
}): void;
|
|
18
|
+
dispatchEvent(event: {
|
|
19
|
+
type: 'dispose';
|
|
20
|
+
}): void;
|
|
21
|
+
dispatchEvent(event: {
|
|
22
|
+
type: 'changeShownFloor';
|
|
23
|
+
floorIndex: number | null;
|
|
24
|
+
}): void;
|
|
25
|
+
dispatchEvent(event: {
|
|
26
|
+
type: 'tileLoad';
|
|
27
|
+
tile: Tile;
|
|
28
|
+
}): void;
|
|
29
|
+
dispatchEvent(event: {
|
|
30
|
+
type: 'tileUnload';
|
|
31
|
+
tile: Tile;
|
|
32
|
+
}): void;
|
|
33
|
+
dispatchEvent(event: {
|
|
34
|
+
type: string;
|
|
35
|
+
[attachment: string]: any;
|
|
36
|
+
}): void;
|
|
37
|
+
addEventListener(type: 'error', listener: (event: THREE.Event & {
|
|
38
|
+
type: 'error';
|
|
39
|
+
error: Error;
|
|
40
|
+
}) => void): void;
|
|
41
|
+
addEventListener(type: 'load', listener: (event: THREE.Event & {
|
|
42
|
+
type: 'load';
|
|
43
|
+
}) => void): void;
|
|
44
|
+
addEventListener(type: 'dispose', listener: (event: THREE.Event & {
|
|
45
|
+
type: 'dispose';
|
|
46
|
+
}) => void): void;
|
|
47
|
+
addEventListener(type: 'changeShownFloor', listener: (event: THREE.Event & {
|
|
48
|
+
type: 'changeShownFloor';
|
|
49
|
+
floorIndex: number | null;
|
|
50
|
+
}) => void): void;
|
|
51
|
+
addEventListener(type: 'tileLoad', listener: (event: THREE.Event & {
|
|
52
|
+
type: 'tileLoad';
|
|
53
|
+
tile: Tile;
|
|
54
|
+
}) => void): void;
|
|
55
|
+
addEventListener(type: 'tileUnload', listener: (event: THREE.Event & {
|
|
56
|
+
type: 'tileUnload';
|
|
57
|
+
tile: Tile;
|
|
58
|
+
}) => void): void;
|
|
59
|
+
addEventListener(type: string, listener: (event: THREE.Event) => void): void;
|
|
60
|
+
removeEventListener(type: 'error', listener: (event: THREE.Event & {
|
|
61
|
+
type: 'error';
|
|
62
|
+
error: Error;
|
|
63
|
+
}) => void): void;
|
|
64
|
+
removeEventListener(type: 'load', listener: (event: THREE.Event & {
|
|
65
|
+
type: 'load';
|
|
66
|
+
}) => void): void;
|
|
67
|
+
removeEventListener(type: 'dispose', listener: (event: THREE.Event & {
|
|
68
|
+
type: 'dispose';
|
|
69
|
+
}) => void): void;
|
|
70
|
+
removeEventListener(type: 'changeShownFloor', listener: (event: THREE.Event & {
|
|
71
|
+
type: 'changeShownFloor';
|
|
72
|
+
floorIndex: number | null;
|
|
73
|
+
}) => void): void;
|
|
74
|
+
removeEventListener(type: 'tileLoad', listener: (event: THREE.Event & {
|
|
75
|
+
type: 'tileLoad';
|
|
76
|
+
tile: Tile;
|
|
77
|
+
}) => void): void;
|
|
78
|
+
removeEventListener(type: 'tileUnload', listener: (event: THREE.Event & {
|
|
79
|
+
type: 'tileUnload';
|
|
80
|
+
tile: Tile;
|
|
81
|
+
}) => void): void;
|
|
82
|
+
removeEventListener(type: string, listener: (event: THREE.Event) => void): void;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Five 模型
|
|
86
|
+
* @description
|
|
87
|
+
* 通过 work 数据加载, 适配 at3d、pbm、dome、domez 格式的文件
|
|
88
|
+
* 可以通过 jsonp 解析 base64 的 dataURL 内容,
|
|
89
|
+
* 需要满足 your/path/filename.at3d.json_xxxxxx,
|
|
90
|
+
* 通过 json_xxxxxx(<dataURL>) 方式返回。
|
|
91
|
+
*/
|
|
92
|
+
export declare class Model extends THREE.Object3D {
|
|
93
|
+
fiveId: string;
|
|
94
|
+
parent: ModelScene | null;
|
|
95
|
+
needsRender: boolean;
|
|
96
|
+
children: ViewLayer[];
|
|
97
|
+
add: (...object: ViewLayer[]) => this;
|
|
98
|
+
private disposed;
|
|
99
|
+
parameter: Parameter;
|
|
100
|
+
/** work */
|
|
101
|
+
work: Work;
|
|
102
|
+
/** 是否过期 */
|
|
103
|
+
outdated: boolean;
|
|
104
|
+
/** 是否自动细化 */
|
|
105
|
+
autoRefine: boolean;
|
|
106
|
+
/** 是否在加载元信息 */
|
|
107
|
+
metaPending: boolean;
|
|
108
|
+
/** 模型已经加载 */
|
|
109
|
+
loaded: boolean;
|
|
110
|
+
/** 模型是否已经细化 */
|
|
111
|
+
refined: boolean;
|
|
112
|
+
/** 模型细化进度 */
|
|
113
|
+
refineProgress: [number, number];
|
|
114
|
+
/** 初始化完成 */
|
|
115
|
+
initReady: Promise<Model>;
|
|
116
|
+
/** 初次加载完成 */
|
|
117
|
+
loadedReady: Promise<Model>;
|
|
118
|
+
/** 外接盒子的大小 */
|
|
119
|
+
boundingBox: THREE.Box3;
|
|
120
|
+
/** 所有楼层 */
|
|
121
|
+
floorLength: number;
|
|
122
|
+
constructor(fiveId: string, work: Work, options?: {
|
|
123
|
+
light?: boolean;
|
|
124
|
+
textureOptions?: TextureOptions;
|
|
125
|
+
});
|
|
126
|
+
/** 析构函数 一旦析构,则不能使用 */
|
|
127
|
+
dispose(): void;
|
|
128
|
+
/** 模型内容是否为空 */
|
|
129
|
+
get empty(): boolean;
|
|
130
|
+
/** 模型的不同图层 */
|
|
131
|
+
get viewLayers(): ViewLayer[];
|
|
132
|
+
/**
|
|
133
|
+
* 获取模型边界线
|
|
134
|
+
* @param sphere - 获取区域
|
|
135
|
+
* @param threshold - 面片间夹角阈值
|
|
136
|
+
* @returns 所有模型边界线
|
|
137
|
+
*/
|
|
138
|
+
getEdgesBySphere(sphere: THREE.Sphere, threshold?: number): THREE.Line3[];
|
|
139
|
+
/**
|
|
140
|
+
* 计算模型射线碰撞检测
|
|
141
|
+
* @param raycaster - THREE 射线对象
|
|
142
|
+
* @param target - 返回碰撞
|
|
143
|
+
* @returns 返回碰撞
|
|
144
|
+
*/
|
|
145
|
+
intersectRaycaster(raycaster: THREE.Raycaster, target?: Intersection[]): Intersection[];
|
|
146
|
+
update(renderer: THREE.WebGPURenderer, camera: Camera, modelScene: ModelScene): boolean;
|
|
147
|
+
localToEnu(vector: THREE.Vector3): THREE.Vector3;
|
|
148
|
+
enuToLocal(vector: THREE.Vector3): THREE.Vector3;
|
|
149
|
+
worldToEnu(vector: THREE.Vector3): THREE.Vector3;
|
|
150
|
+
enuToWorld(vector: THREE.Vector3): THREE.Vector3;
|
|
151
|
+
/**
|
|
152
|
+
* 当前显示的楼层
|
|
153
|
+
*/
|
|
154
|
+
get shownFloor(): number | null;
|
|
155
|
+
set shownFloor(floor: number | null);
|
|
156
|
+
/**
|
|
157
|
+
* 显示某楼层
|
|
158
|
+
* @example
|
|
159
|
+
* ```
|
|
160
|
+
* model.show() //显示全部楼层
|
|
161
|
+
* model.show(1) //显示第一楼层
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
show(floor?: number | null): void;
|
|
165
|
+
/**
|
|
166
|
+
* @deprecated
|
|
167
|
+
* Use `.boundingBox` instead
|
|
168
|
+
*/
|
|
169
|
+
get bounding(): THREE.Box3;
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated
|
|
172
|
+
* Use `.parameter.set` instead
|
|
173
|
+
*/
|
|
174
|
+
setMaterial(parameter: Partial<ParameterValue>): void;
|
|
175
|
+
/**
|
|
176
|
+
* @deprecated
|
|
177
|
+
* Use `.parameter.get` instead
|
|
178
|
+
*/
|
|
179
|
+
getMaterial(): ParameterValue;
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated
|
|
182
|
+
* Use `.parameter.shownFloorIndex` `.parameter.set('brightness', brightness)` instead
|
|
183
|
+
*/
|
|
184
|
+
get shownFloorIndex(): ParameterValue['shownFloorIndex'];
|
|
185
|
+
set shownFloorIndex(floorIndex: ParameterValue['shownFloorIndex']);
|
|
186
|
+
/**
|
|
187
|
+
* @deprecated
|
|
188
|
+
* Use `.parameter.brightness` `.parameter.set('brightness', brightness)` instead
|
|
189
|
+
*/
|
|
190
|
+
get brightness(): ParameterValue['brightness'];
|
|
191
|
+
set brightness(brightness: ParameterValue['brightness']);
|
|
192
|
+
/**
|
|
193
|
+
* @deprecated
|
|
194
|
+
* Use `.parameter.clippers` `.parameter.set('clippers', clippers)` instead
|
|
195
|
+
*/
|
|
196
|
+
get clippers(): ParameterValue['clippers'];
|
|
197
|
+
set clippers(clippers: ParameterValue['clippers']);
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated
|
|
200
|
+
* Use `.parameter.reset('brightness')` instead
|
|
201
|
+
*/
|
|
202
|
+
resetBrightness(): void;
|
|
203
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import type { PBMClipperParameter } from "../materials/pbmMaterial";
|
|
3
|
+
export interface SplatData {
|
|
4
|
+
numPoints: number;
|
|
5
|
+
positions: Float32Array;
|
|
6
|
+
colors: Uint8Array;
|
|
7
|
+
scales: Float32Array;
|
|
8
|
+
rotations: Float32Array;
|
|
9
|
+
sh1?: Float32Array;
|
|
10
|
+
sh2?: Float32Array;
|
|
11
|
+
sh3?: Float32Array;
|
|
12
|
+
shDegree?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 3DGS 源对象:承载 BufferGeometry 属性 + world matrix,不参与直接绘制
|
|
16
|
+
* (material.visible = false),最终由 PBMGaussianSplattingRenderMesh 统一渲染。
|
|
17
|
+
*/
|
|
18
|
+
export declare class PBMGaussianSplattingObject extends THREE.Points<THREE.BufferGeometry, THREE.Material> {
|
|
19
|
+
static RowLength: number;
|
|
20
|
+
transformChanged: boolean;
|
|
21
|
+
selectedChanged: boolean;
|
|
22
|
+
transferDetached: boolean;
|
|
23
|
+
numPoints: number;
|
|
24
|
+
maxSHDegree: number;
|
|
25
|
+
usedSHDegree: number;
|
|
26
|
+
gsViewLayerKey: string;
|
|
27
|
+
gsClippers: readonly PBMClipperParameter[];
|
|
28
|
+
private _selected;
|
|
29
|
+
private _boundingBox;
|
|
30
|
+
lastMatrixWorld: THREE.Matrix4 | null;
|
|
31
|
+
get positions(): Float32Array;
|
|
32
|
+
get rotations(): Float32Array;
|
|
33
|
+
get scales(): Float32Array;
|
|
34
|
+
get colors(): Uint8Array;
|
|
35
|
+
get selection(): Uint8Array;
|
|
36
|
+
get sh1(): Float32Array | undefined;
|
|
37
|
+
get sh2(): Float32Array | undefined;
|
|
38
|
+
get sh3(): Float32Array | undefined;
|
|
39
|
+
constructor(splatData?: SplatData);
|
|
40
|
+
serialize(): Uint8Array<ArrayBuffer>;
|
|
41
|
+
reattach(positions: ArrayBufferLike, rotations: ArrayBufferLike, scales: ArrayBufferLike, colors: ArrayBufferLike, selection: ArrayBufferLike): void;
|
|
42
|
+
get selected(): boolean;
|
|
43
|
+
set selected(selected: boolean);
|
|
44
|
+
get boundingBox(): THREE.Box3;
|
|
45
|
+
dispose(): void;
|
|
46
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
47
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { RenderData } from '../../gaussian-splatting/util/renderData';
|
|
3
|
+
import { PBMGaussianSplattingNodeMaterial } from '../materials/pbmGaussianSplattingNodeMaterial';
|
|
4
|
+
/**
|
|
5
|
+
* 3DGS 渲染 Mesh(WebGPU / TSL 版)
|
|
6
|
+
*
|
|
7
|
+
* 与 five (WebGL2) 版本同构:
|
|
8
|
+
* - 单一四边形几何 + splatIndex 实例属性(排序结果驱动)
|
|
9
|
+
* - 双 slot(active/pending)+ 池复用纹理
|
|
10
|
+
* - SortWorker 处理 radix-64K 排序
|
|
11
|
+
*
|
|
12
|
+
* 唯一差异:将 `THREE.ShaderMaterial` 换成 `PBMGaussianSplattingNodeMaterial`(TSL)。
|
|
13
|
+
* 所有「uniform.value = …」赋值改为「material.<field> = …」。
|
|
14
|
+
* NUM_GS_CLIPPERS / NUM_GS_LAYERS / MAX_SH_DEGREE 的变更通过 `customProgramCacheKey`
|
|
15
|
+
* + `material.needsUpdate = true` 触发管线重建。
|
|
16
|
+
*/
|
|
17
|
+
declare class PBMGaussianSplattingRenderMesh extends THREE.Mesh<THREE.InstancedBufferGeometry, PBMGaussianSplattingNodeMaterial> {
|
|
18
|
+
private gsSceneState;
|
|
19
|
+
renderData: RenderData | null;
|
|
20
|
+
needsRender: boolean;
|
|
21
|
+
private sortWorker;
|
|
22
|
+
private depthIndex;
|
|
23
|
+
private splatIndexCapacity;
|
|
24
|
+
private activeSlot;
|
|
25
|
+
private pendingSlot;
|
|
26
|
+
private rebuildGeneration;
|
|
27
|
+
private forceClipperUniformRefresh;
|
|
28
|
+
private incrementalUpdateInFlight;
|
|
29
|
+
private freeSlotPool;
|
|
30
|
+
private _scratchViewProj;
|
|
31
|
+
private dataTexture;
|
|
32
|
+
private transformsTexture;
|
|
33
|
+
private transformIndicesTexture;
|
|
34
|
+
private layerIndicesTexture;
|
|
35
|
+
private shTexture;
|
|
36
|
+
private usedSHDegree;
|
|
37
|
+
constructor();
|
|
38
|
+
private ensureSplatIndexCapacity;
|
|
39
|
+
private getExpandedCapacity;
|
|
40
|
+
private createGeometry;
|
|
41
|
+
private createMaterial;
|
|
42
|
+
private createDefaultLayerClipperRanges;
|
|
43
|
+
private createDefaultClipperMatrices;
|
|
44
|
+
private createTextures;
|
|
45
|
+
private createSHTexture;
|
|
46
|
+
/**
|
|
47
|
+
* 设置球谐阶数
|
|
48
|
+
* @param degree SH 阶数 (0, 1, 或 2)
|
|
49
|
+
*/
|
|
50
|
+
private setMaxShDegree;
|
|
51
|
+
private bindSlotTextures;
|
|
52
|
+
private disposeSlot;
|
|
53
|
+
private recycleSlot;
|
|
54
|
+
private disposeTextures;
|
|
55
|
+
private applyDepthIndex;
|
|
56
|
+
private swapPendingToActive;
|
|
57
|
+
private createSlot;
|
|
58
|
+
private updateSlotTextures;
|
|
59
|
+
private postSortData;
|
|
60
|
+
private sortDataRebuilding;
|
|
61
|
+
private requestSort;
|
|
62
|
+
private syncTransformsForSlot;
|
|
63
|
+
private collectObjects;
|
|
64
|
+
private isSceneNeedsRebuild;
|
|
65
|
+
private getClipperHash;
|
|
66
|
+
private updateClipperCounts;
|
|
67
|
+
private updateClipperUniforms;
|
|
68
|
+
private startPendingRebuild;
|
|
69
|
+
private tryStartIncrementalUpdate;
|
|
70
|
+
onBeforeRender: (_renderer: any, scene: THREE.Scene, camera: THREE.Camera, ..._rest: any[]) => void;
|
|
71
|
+
dispose(): void;
|
|
72
|
+
}
|
|
73
|
+
export { PBMGaussianSplattingRenderMesh };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import { type PBMMeshMaterial } from "../materials/pbmMeshMaterial";
|
|
3
|
+
export declare class PBMMesh extends THREE.Mesh<THREE.BufferGeometry, PBMMeshMaterial[]> {
|
|
4
|
+
constructor(geometry: THREE.BufferGeometry, materials: PBMMeshMaterial[]);
|
|
5
|
+
}
|
|
6
|
+
export declare class PBMSkinnedMesh extends THREE.SkinnedMesh<THREE.BufferGeometry, PBMMeshMaterial[]> {
|
|
7
|
+
geometry: THREE.BufferGeometry;
|
|
8
|
+
material: PBMMeshMaterial[];
|
|
9
|
+
constructor(geometry: THREE.BufferGeometry, materials: PBMMeshMaterial[], useVertexTexture?: boolean);
|
|
10
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PBMPointCloud — 统一点云对象 (WebGPU compute + WebGL NodeMaterial 双路径)
|
|
3
|
+
*
|
|
4
|
+
* 本身是 THREE.Mesh + InstancedBufferGeometry:
|
|
5
|
+
* - WebGL 路径:由 Three.js renderer 走 PBMPointCloudNodeMaterial (billboard quad) 直接绘制。
|
|
6
|
+
* - WebGPU 路径:compute renderer 通过 .positions/.colors/.normals 读取几何体包着的同一块 buffer,
|
|
7
|
+
* 不额外拷贝,无内存浪费。
|
|
8
|
+
*
|
|
9
|
+
* 原始数据只存一份:instancePosition/instanceColor/instanceNormal 三个实例属性,
|
|
10
|
+
* 既供顶点着色器展开,又直接暴露给 compute renderer 与 BVH。
|
|
11
|
+
*/
|
|
12
|
+
import * as THREE from 'three/webgpu';
|
|
13
|
+
import { PBMPointCloudMaterial } from '../materials/pbmPointCloudMaterial';
|
|
14
|
+
import type { PBMClipperParameter, PBMColorStyle, PBMFloorStyle, PBMPointBack, PBMPointShape, PBMPointSize } from '../materials/pbmMaterial';
|
|
15
|
+
/**
|
|
16
|
+
* 给 THREE.Object3D 的事件表加一个 'dispose' 事件,供 PBMPointCloud.dispose 时广播;
|
|
17
|
+
* compute 渲染器据此释放该 tile 占用的所有 GPU 资源。
|
|
18
|
+
*/
|
|
19
|
+
declare module 'three/webgpu' {
|
|
20
|
+
interface Object3DEventMap {
|
|
21
|
+
dispose: {};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export interface PointCloudData {
|
|
25
|
+
numPoints: number;
|
|
26
|
+
positions: Float32Array;
|
|
27
|
+
colors: Float32Array | Uint8Array;
|
|
28
|
+
/** 与 GL geometry.normal 一致:Int8×4 normalized(pnts worker 路径) */
|
|
29
|
+
normals?: Int8Array | null;
|
|
30
|
+
}
|
|
31
|
+
export declare const PBM_POINT_NORMAL_ITEM_SIZE = 4;
|
|
32
|
+
export declare function hasPointNormals(normals: Int8Array | null | undefined, numPoints: number): boolean;
|
|
33
|
+
export declare function decodeInt8NormalAt(normals: Int8Array, pointIndex: number, target: THREE.Vector3): void;
|
|
34
|
+
export declare function encodeNormalsToInt8Array(normalAttr: {
|
|
35
|
+
array: ArrayLike<number>;
|
|
36
|
+
itemSize: number;
|
|
37
|
+
normalized: boolean;
|
|
38
|
+
} | null | undefined, numPoints: number): Int8Array | null;
|
|
39
|
+
export declare class PBMPointCloud extends THREE.Mesh<THREE.InstancedBufferGeometry, PBMPointCloudMaterial> {
|
|
40
|
+
readonly isPBMPointCloud: true;
|
|
41
|
+
numPoints: number;
|
|
42
|
+
pointSize: PBMPointSize;
|
|
43
|
+
pointShape: PBMPointShape;
|
|
44
|
+
pointScale: number;
|
|
45
|
+
pointMinPixel: number;
|
|
46
|
+
pointMaxPixel: number;
|
|
47
|
+
pointBack: PBMPointBack;
|
|
48
|
+
floorIndex: number;
|
|
49
|
+
maxDisplayBoost: number;
|
|
50
|
+
opacity: number;
|
|
51
|
+
modelAlpha: number;
|
|
52
|
+
brightness: number;
|
|
53
|
+
floorStyle: PBMFloorStyle;
|
|
54
|
+
shownFloorIndex: number;
|
|
55
|
+
colorStyle: PBMColorStyle;
|
|
56
|
+
readonly constantColor: THREE.Vector3;
|
|
57
|
+
gradientTexture: THREE.Texture | null;
|
|
58
|
+
colorSaturation: number;
|
|
59
|
+
colorBrightness: number;
|
|
60
|
+
outlineGain: number;
|
|
61
|
+
distanceGain: number;
|
|
62
|
+
useAddBlend: boolean;
|
|
63
|
+
vertexMarks: boolean;
|
|
64
|
+
clippers: readonly PBMClipperParameter[];
|
|
65
|
+
readonly modelBoundingMin: THREE.Vector3;
|
|
66
|
+
readonly modelBoundingMax: THREE.Vector3;
|
|
67
|
+
styleRevision: number;
|
|
68
|
+
private _boundingBox;
|
|
69
|
+
private _positionVersion;
|
|
70
|
+
constructor(data?: PointCloudData, material?: PBMPointCloudMaterial);
|
|
71
|
+
get positions(): Float32Array;
|
|
72
|
+
get colors(): Float32Array | Uint8Array;
|
|
73
|
+
get normals(): Int8Array | null;
|
|
74
|
+
get positionVersion(): number;
|
|
75
|
+
get pointCount(): number;
|
|
76
|
+
get visiblePointCount(): number;
|
|
77
|
+
set visiblePointCount(count: number);
|
|
78
|
+
/** BVH worker transfer 回主线程后挂回位置 buffer,并递增 positionVersion 使 compute 缓存失效。 */
|
|
79
|
+
swapPositionsBuffer(newPositions: Float32Array): void;
|
|
80
|
+
/** tile bounding volume 裁剪到局部空间后写入(与 geometry.boundingBox 用途相同)。 */
|
|
81
|
+
setLocalBoundingBox(box: THREE.Box3): void;
|
|
82
|
+
/** 局部 AABB [minX,minY,minZ,maxX,maxY,maxZ],供 BVH 构建。 */
|
|
83
|
+
getLocalBoundingBoxExtents(): number[] | undefined;
|
|
84
|
+
get boundingBox(): THREE.Box3;
|
|
85
|
+
dispose(): void;
|
|
86
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
87
|
+
private _computeBoundsFromArray;
|
|
88
|
+
static createInstancedGeometry(data?: PointCloudData): THREE.InstancedBufferGeometry;
|
|
89
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as THREE from "three/webgpu";
|
|
2
|
+
import type { PBMClipperParameter, PBMColorStyle, PBMFloorStyle, PBMPointBack, PBMPointShape, PBMPointSize } from "../materials/pbmMaterial";
|
|
3
|
+
/**
|
|
4
|
+
* 给 THREE.Object3D 的事件表加一个 'dispose' 事件,供 PBMPointCloudObject.dispose 时广播;
|
|
5
|
+
* compute 渲染器据此释放该 tile 占用的所有 GPU 资源。
|
|
6
|
+
*/
|
|
7
|
+
declare module "three/webgpu" {
|
|
8
|
+
interface Object3DEventMap {
|
|
9
|
+
dispose: {};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export interface PointCloudData {
|
|
13
|
+
numPoints: number;
|
|
14
|
+
positions: Float32Array;
|
|
15
|
+
colors: Float32Array | Uint8Array;
|
|
16
|
+
/** 与 GL geometry.normal 一致:Int8×4 normalized(pnts worker 路径) */
|
|
17
|
+
normals?: Int8Array | null;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 点云 tile 节点:参与场景图(矩阵/可见性/拾取),不由 Three 绘制,由 compute renderer 上传 GPU。
|
|
21
|
+
*/
|
|
22
|
+
export declare class PBMPointCloudObject extends THREE.Object3D {
|
|
23
|
+
numPoints: number;
|
|
24
|
+
pointSize: PBMPointSize;
|
|
25
|
+
pointShape: PBMPointShape;
|
|
26
|
+
pointScale: number;
|
|
27
|
+
pointMinPixel: number;
|
|
28
|
+
pointMaxPixel: number;
|
|
29
|
+
pointBack: PBMPointBack;
|
|
30
|
+
floorIndex: number;
|
|
31
|
+
maxDisplayBoost: number;
|
|
32
|
+
opacity: number;
|
|
33
|
+
modelAlpha: number;
|
|
34
|
+
brightness: number;
|
|
35
|
+
floorStyle: PBMFloorStyle;
|
|
36
|
+
shownFloorIndex: number;
|
|
37
|
+
colorStyle: PBMColorStyle;
|
|
38
|
+
readonly constantColor: THREE.Vector3;
|
|
39
|
+
gradientTexture: THREE.Texture | null;
|
|
40
|
+
colorSaturation: number;
|
|
41
|
+
colorBrightness: number;
|
|
42
|
+
outlineGain: number;
|
|
43
|
+
distanceGain: number;
|
|
44
|
+
useAddBlend: boolean;
|
|
45
|
+
vertexMarks: boolean;
|
|
46
|
+
clippers: readonly PBMClipperParameter[];
|
|
47
|
+
readonly modelBoundingMin: THREE.Vector3;
|
|
48
|
+
readonly modelBoundingMax: THREE.Vector3;
|
|
49
|
+
styleRevision: number;
|
|
50
|
+
private _normals;
|
|
51
|
+
private _boundingBox;
|
|
52
|
+
private _positions;
|
|
53
|
+
private _colors;
|
|
54
|
+
private _visiblePointCount;
|
|
55
|
+
private _positionVersion;
|
|
56
|
+
get pointCount(): number;
|
|
57
|
+
get visiblePointCount(): number;
|
|
58
|
+
set visiblePointCount(count: number);
|
|
59
|
+
get positions(): Float32Array;
|
|
60
|
+
get colors(): Float32Array | Uint8Array;
|
|
61
|
+
get positionVersion(): number;
|
|
62
|
+
/** BVH worker transfer 回主线程后挂回位置 buffer,并递增 positionVersion 使 compute 缓存失效。 */
|
|
63
|
+
swapPositionsBuffer(newPositions: Float32Array): void;
|
|
64
|
+
get normals(): Int8Array | null;
|
|
65
|
+
/** tile bounding volume 裁剪到局部空间后写入(与 geometry.boundingBox 用途相同)。 */
|
|
66
|
+
setLocalBoundingBox(box: THREE.Box3): void;
|
|
67
|
+
/** 局部 AABB [minX,minY,minZ,maxX,maxY,maxZ],供 BVH 构建。 */
|
|
68
|
+
getLocalBoundingBoxExtents(): number[] | undefined;
|
|
69
|
+
constructor(data?: PointCloudData);
|
|
70
|
+
get boundingBox(): THREE.Box3;
|
|
71
|
+
dispose(): void;
|
|
72
|
+
raycast(raycaster: THREE.Raycaster, intersects: THREE.Intersection[]): void;
|
|
73
|
+
}
|
|
74
|
+
export declare const PBM_POINT_NORMAL_ITEM_SIZE = 4;
|
|
75
|
+
export declare function hasPointNormals(normals: Int8Array | null | undefined, numPoints: number): boolean;
|
|
76
|
+
export declare function decodeInt8NormalAt(normals: Int8Array, pointIndex: number, target: THREE.Vector3): void;
|
|
77
|
+
export declare function encodeNormalsToInt8Array(normalAttr: {
|
|
78
|
+
array: ArrayLike<number>;
|
|
79
|
+
itemSize: number;
|
|
80
|
+
normalized: boolean;
|
|
81
|
+
} | null | undefined, numPoints: number): Int8Array | null;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import * as THREE from 'three/webgpu';
|
|
2
|
+
import { type PBMPanoPicture, type PBMPanoDepth, type PBMRefinedScreen, type PBMTransition, type PBMFloorStyle, type PBMColorStyle, type PBMClipperParameter, type PBMPanoFilter, type PBMPointShape, type PBMPointSize, type PBMPointBack } from './materials/pbmMaterial';
|
|
3
|
+
import type { TileRequestOrder } from './tile3d/types';
|
|
4
|
+
import type { Camera } from '../core/camera';
|
|
5
|
+
export interface ParameterMaterialValue {
|
|
6
|
+
/**
|
|
7
|
+
* 是否生效标注
|
|
8
|
+
* 开启后,模型顶点上会预置 `_feature_id_rsmask` 标记。
|
|
9
|
+
* _feature_id_rsmask=1,在俯视等特定视角下,引擎会自动隐藏被标记的顶点对应的 Mesh,从而实现“开盖”效果,让室内布局观测更加清晰、观感更好。
|
|
10
|
+
*/
|
|
11
|
+
vertexMarks: boolean;
|
|
12
|
+
/** 起始点 */
|
|
13
|
+
pano0: PBMPanoPicture | null;
|
|
14
|
+
/** 结束点 */
|
|
15
|
+
pano1: PBMPanoPicture | null;
|
|
16
|
+
/** 起始点深度 */
|
|
17
|
+
pano0Depth: PBMPanoDepth | null;
|
|
18
|
+
/** 结束点深度 */
|
|
19
|
+
pano1Depth: PBMPanoDepth | null;
|
|
20
|
+
/** 全景图滤镜 */
|
|
21
|
+
panoFilter: PBMPanoFilter | null;
|
|
22
|
+
/** 细化瓦片的屏幕渲染 */
|
|
23
|
+
refinedScreen: PBMRefinedScreen | null;
|
|
24
|
+
/** 模型贴图和全景图的混合程度 [0-1] */
|
|
25
|
+
modelAlpha: number;
|
|
26
|
+
/** 全景图混合程度 [0-1] */
|
|
27
|
+
progress: number;
|
|
28
|
+
/** 全景图过度混合 */
|
|
29
|
+
transition: PBMTransition;
|
|
30
|
+
/** 模型透明度 */
|
|
31
|
+
opacity: number;
|
|
32
|
+
/** 楼层样式 */
|
|
33
|
+
floorStyle: PBMFloorStyle;
|
|
34
|
+
/** 颜色样式 */
|
|
35
|
+
colorStyle: PBMColorStyle;
|
|
36
|
+
/** 模型颜色*/
|
|
37
|
+
constantColor: THREE.Vector3;
|
|
38
|
+
/** 楼层参数*/
|
|
39
|
+
shownFloorIndex: number;
|
|
40
|
+
/** 模型裁切参数(工程侧调用)*/
|
|
41
|
+
clippers: readonly PBMClipperParameter[];
|
|
42
|
+
/** 亮度 */
|
|
43
|
+
brightness: number;
|
|
44
|
+
/** 是否使用HDR */
|
|
45
|
+
useHDR: boolean;
|
|
46
|
+
/** 点云形状*/
|
|
47
|
+
pointShape: PBMPointShape;
|
|
48
|
+
/** 点云大小绘制方式*/
|
|
49
|
+
pointSize: PBMPointSize;
|
|
50
|
+
/** 点云背面绘制方式*/
|
|
51
|
+
pointBack: PBMPointBack;
|
|
52
|
+
/** 点云基础大小*/
|
|
53
|
+
pointScale: number;
|
|
54
|
+
/** 点云最小尺寸*/
|
|
55
|
+
pointMinPixel: number;
|
|
56
|
+
/** 点云最大尺寸*/
|
|
57
|
+
pointMaxPixel: number;
|
|
58
|
+
/** 点云出现动画 */
|
|
59
|
+
pointAppearAnimation: boolean;
|
|
60
|
+
/** 饱和度调整值*/
|
|
61
|
+
colorSaturation: number;
|
|
62
|
+
/** 亮度调整值*/
|
|
63
|
+
colorBrightness: number;
|
|
64
|
+
/** outline增益*/
|
|
65
|
+
outlineGain: number;
|
|
66
|
+
/** distance增益*/
|
|
67
|
+
distanceGain: number;
|
|
68
|
+
/** 高程着色材质*/
|
|
69
|
+
gradientTexture: THREE.Texture | null;
|
|
70
|
+
/** 是否产生阴影 */
|
|
71
|
+
castShadow: boolean;
|
|
72
|
+
/** 是否接受阴影 */
|
|
73
|
+
receiveShadow: boolean;
|
|
74
|
+
/** 半透明叠加渲染*/
|
|
75
|
+
useAddBlend: boolean;
|
|
76
|
+
/** 包围盒 */
|
|
77
|
+
boundingBox: THREE.Box3;
|
|
78
|
+
/** 3dgs球谐阶数*/
|
|
79
|
+
gaussianSplattingSHDegree: number;
|
|
80
|
+
maxDisplayBoost: number;
|
|
81
|
+
}
|
|
82
|
+
export interface ParameterTilesetValue {
|
|
83
|
+
/** 模型显示最小细化层级 */
|
|
84
|
+
minLevelOfDetail: number;
|
|
85
|
+
/** 模型显示最大细化层级 */
|
|
86
|
+
maxLevelOfDetail: number;
|
|
87
|
+
/** 模型显示最小细化误差 */
|
|
88
|
+
minGeometricError: number;
|
|
89
|
+
/** 模型显示最大细化误差 */
|
|
90
|
+
maxGeometricError: number;
|
|
91
|
+
/** 全景态下模型显示最小细化误差 */
|
|
92
|
+
panoramaMinGeometricError: number;
|
|
93
|
+
/** 模型越层级加载 */
|
|
94
|
+
skipLevelOfDetail: boolean;
|
|
95
|
+
/** 模型是否最密 */
|
|
96
|
+
mostDetail: boolean;
|
|
97
|
+
/** 模型加载不在视野中的兄弟节点 */
|
|
98
|
+
loadSiblings: boolean;
|
|
99
|
+
/** 模型不加载在不在视野中的节点 */
|
|
100
|
+
cameraCulling: boolean;
|
|
101
|
+
/** 模型最大内存缓存 */
|
|
102
|
+
maxMemoryUsage: number;
|
|
103
|
+
/** 模型网络最大请求并发数 */
|
|
104
|
+
maxRequests: number;
|
|
105
|
+
/** 模型网络请求顺序 */
|
|
106
|
+
requestOrder: TileRequestOrder;
|
|
107
|
+
/** 模型屏幕空间误差计算最大值 */
|
|
108
|
+
maxScreenSpaceError: number;
|
|
109
|
+
memoryAdjustedScreenSpaceError: boolean;
|
|
110
|
+
/** 缓存相机 */
|
|
111
|
+
cacheCameras: readonly (Camera | THREE.PerspectiveCamera)[];
|
|
112
|
+
}
|
|
113
|
+
export interface ParameterValue extends ParameterMaterialValue, ParameterTilesetValue {
|
|
114
|
+
}
|
|
115
|
+
export interface ResolvedParameterValue extends ParameterValue {
|
|
116
|
+
versionNumber: number;
|
|
117
|
+
}
|
|
118
|
+
export interface Parameter extends Readonly<Partial<ParameterValue>> {
|
|
119
|
+
}
|
|
120
|
+
export declare class Parameter {
|
|
121
|
+
static createDefault(): Required<ParameterValue>;
|
|
122
|
+
static resolveValueTo(target: Partial<ResolvedParameterValue>, ...parameterValues: Partial<ParameterValue>[]): ResolvedParameterValue;
|
|
123
|
+
static resolveValue<K extends keyof ParameterValue>(name: K, ...parameterValues: Partial<ParameterValue>[]): ParameterValue[K];
|
|
124
|
+
static resolveValue(...parameterValues: Partial<ParameterValue>[]): ResolvedParameterValue;
|
|
125
|
+
id: string;
|
|
126
|
+
versionNumber: number;
|
|
127
|
+
private value;
|
|
128
|
+
private unbind;
|
|
129
|
+
constructor(initialValue?: Partial<ParameterValue>);
|
|
130
|
+
resolveValue<K extends keyof ParameterValue>(name: K, ...values: Partial<ParameterValue>[]): ParameterValue[K];
|
|
131
|
+
resolveValue(...baseValues: Partial<ParameterValue>[]): ResolvedParameterValue;
|
|
132
|
+
private assignValue;
|
|
133
|
+
set<T extends keyof ParameterValue>(name: T, value: ParameterValue[T]): this;
|
|
134
|
+
set(values: Partial<ParameterValue>): this;
|
|
135
|
+
reset(...names: (keyof ParameterValue)[]): this;
|
|
136
|
+
resetAll(): this;
|
|
137
|
+
copy(value: Partial<ParameterValue>): this;
|
|
138
|
+
}
|