@realsee/five 6.8.0-alpha.9 → 6.8.0
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 +6 -1
- package/AI_CONTEXT.md +6 -1
- package/README.md +10 -3
- package/ai_guides/README.md +29 -0
- package/ai_guides/api.md +92 -21
- package/ai_guides/features/3dtile.md +1 -1
- package/ai_guides/features/camera-animation.md +18 -1
- package/ai_guides/features/clipper.md +2 -2
- package/ai_guides/features/coordinate-system.md +20 -2
- package/ai_guides/features/event.md +106 -10
- package/ai_guides/features/five.md +17 -17
- package/ai_guides/features/flowing-light-2d-pass.md +11 -7
- package/ai_guides/features/flowing-light-3d-pass.md +12 -7
- package/ai_guides/features/gaussian-blur-pass.md +1 -1
- package/ai_guides/features/gesture.md +2 -1
- package/ai_guides/features/get-screen-pixels.md +2 -2
- package/ai_guides/features/image-options.md +2 -2
- package/ai_guides/features/load-external-model.md +6 -2
- package/ai_guides/features/load-progress.md +1 -1
- package/ai_guides/features/material.md +20 -12
- package/ai_guides/features/mode.md +1 -1
- package/ai_guides/features/model.md +1 -1
- package/ai_guides/features/move-pano-effect.md +1 -1
- package/ai_guides/features/multi-work.md +1 -1
- package/ai_guides/features/pano-filter.md +149 -0
- package/ai_guides/features/pano-tile.md +1 -1
- package/ai_guides/features/pano-uv.md +1 -1
- package/ai_guides/features/parameter.md +26 -2
- package/ai_guides/features/plugin.md +1 -1
- package/ai_guides/features/postprocessing.md +1 -1
- package/ai_guides/features/raycast.md +5 -2
- package/ai_guides/features/request-proxy.md +1 -1
- package/ai_guides/features/screen-project.md +2 -1
- package/ai_guides/features/state.md +23 -3
- package/ai_guides/features/view-layer.md +1 -1
- package/ai_guides/features/work.md +1 -1
- package/ai_guides/glossary.md +4 -4
- package/ai_guides/release_notes/6.8.md +190 -58
- package/ai_guides/template.md +11 -0
- package/docs/00_FOR_AI_AGENTS.md +3 -2
- package/docs/README.md +3 -2
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/main.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/five.AdaptiveLuminancePass.html +7 -6
- package/docs/classes/five.AnimationFrameLoop.html +1 -1
- package/docs/classes/five.BoundingMesh.html +2 -2
- package/docs/classes/five.Camera.html +3 -3
- package/docs/classes/five.EyeDomeLightingPass.html +1 -1
- package/docs/classes/five.Five.html +77 -76
- package/docs/classes/five.FivePass.html +1 -1
- package/docs/classes/five.Histogram.html +19 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +8 -8
- package/docs/classes/five.ModelScene.html +1 -1
- package/docs/classes/five.NetworkSubscribe.html +5 -5
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMCustomShader.html +42 -3
- package/docs/classes/five.PBMGSObject.html +5 -3
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +7 -7
- package/docs/classes/five.PBMPanoFilter.html +61 -0
- package/docs/classes/five.PBMPointCloud.html +1 -1
- package/docs/classes/five.PBMPointCloudMaterial.html +5 -6
- package/docs/classes/five.PBMSkinnedMesh.html +1 -1
- package/docs/classes/five.PBMUpdateable.html +41 -0
- package/docs/classes/five.PanoCircleMesh.html +1 -1
- package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
- package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/five.Parameter.html +57 -55
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +5 -5
- package/docs/classes/five.Tile.html +1 -1
- package/docs/classes/five.Tile3D.html +24 -24
- package/docs/classes/five.TileNode.html +1 -1
- package/docs/classes/five.Tileset.html +3 -2
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.Work.html +16 -16
- package/docs/classes/five.WorkResolvedObserver.html +22 -22
- package/docs/classes/gltf-loader.DDSLoader.html +1 -1
- package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
- package/docs/classes/gltf-loader.GLTFLoader.html +2 -2
- package/docs/classes/gltf-loader.GLTFObject.html +1 -1
- package/docs/classes/gltf-loader.GLTFParser.html +1 -1
- package/docs/classes/gltf-loader.THREEGLTFLoader.html +2 -2
- package/docs/classes/line.Line.html +1 -1
- package/docs/classes/line.LineGeometry.html +1 -1
- package/docs/classes/line.LineMaterial.html +1 -1
- package/docs/classes/line.LineSegmentsGeometry.html +1 -1
- package/docs/classes/line.THREE_Line2.html +1 -1
- package/docs/classes/line.THREE_LineSegments2.html +1 -1
- package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
- package/docs/classes/plugins.CSS3DObject.html +9 -0
- package/docs/classes/plugins.CSS3DRenderer.html +4 -2
- package/docs/classes/plugins.CSS3DSprite.html +11 -0
- package/docs/classes/plugins.Object3DHelperController.html +43 -0
- package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
- package/docs/classes/sticker.Sticker.html +1 -1
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +6 -6
- package/docs/classes/vfx.ParticleGPU.html +3 -3
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/documents/README.html +122 -1
- package/docs/documents/api.html +163 -35
- package/docs/documents/features_3dtile.html +1 -1
- package/docs/documents/features_camera-animation.html +18 -2
- package/docs/documents/features_clipper.html +2 -2
- package/docs/documents/features_coordinate-system.html +52 -3
- package/docs/documents/features_event.html +44 -8
- package/docs/documents/features_five.html +17 -17
- package/docs/documents/features_flowing-light-2d-pass.html +19 -116
- package/docs/documents/features_flowing-light-3d-pass.html +22 -124
- package/docs/documents/features_gaussian-blur-pass.html +6 -6
- package/docs/documents/features_gesture.html +2 -1
- package/docs/documents/features_get-screen-pixels.html +2 -2
- package/docs/documents/features_image-options.html +2 -2
- package/docs/documents/features_load-external-model.html +6 -2
- package/docs/documents/features_load-progress.html +1 -1
- package/docs/documents/features_material.html +11 -4
- package/docs/documents/features_mode.html +1 -1
- package/docs/documents/features_model.html +1 -1
- package/docs/documents/features_move-pano-effect.html +1 -1
- package/docs/documents/features_multi-work.html +1 -1
- package/docs/documents/features_pano-filter.html +123 -0
- package/docs/documents/features_pano-tile.html +1 -1
- package/docs/documents/features_pano-uv.html +1 -1
- package/docs/documents/features_parameter.html +11 -3
- package/docs/documents/features_plugin.html +1 -1
- package/docs/documents/features_postprocessing.html +1 -1
- package/docs/documents/features_raycast.html +5 -2
- package/docs/documents/features_request-proxy.html +1 -1
- package/docs/documents/features_screen-project.html +2 -1
- package/docs/documents/features_state.html +9 -2
- package/docs/documents/features_view-layer.html +1 -1
- package/docs/documents/features_work.html +1 -1
- package/docs/documents/glossary.html +5 -5
- package/docs/documents/release_notes_6.8.html +164 -64
- package/docs/documents/template.html +9 -0
- package/docs/functions/five.createDebugBoundingMesh.html +1 -1
- package/docs/functions/five.parseWork.html +1 -1
- package/docs/functions/plugins.CSS3DPlugin.html +1 -0
- package/docs/functions/plugins.GaussianSplattingEntranceAnimationPlugin.html +1 -0
- package/docs/functions/plugins.Object3DHelperPlugin.html +1 -0
- package/docs/functions/react.useFiveCurrentObserver.html +2 -2
- package/docs/functions/react.useFiveFloor.html +2 -2
- package/docs/functions/react.useFiveProject2d.html +2 -2
- package/docs/functions/vue.useFiveCurrentObserver.html +2 -2
- package/docs/functions/vue.useFiveFloor.html +2 -2
- package/docs/functions/vue.useFiveWorks.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +122 -1
- package/docs/interfaces/five.AddableObject.html +1 -1
- package/docs/interfaces/five.AjaxOptions.html +1 -1
- package/docs/interfaces/five.BaseEvent.html +7 -2
- package/docs/interfaces/five.BaseExtendableEvent.html +11 -0
- package/docs/interfaces/five.EventCallback.html +58 -54
- package/docs/interfaces/five.FiveInitArgs.html +2 -2
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.GestureEvent.html +21 -2
- package/docs/interfaces/five.GesturePointer.html +20 -0
- package/docs/interfaces/five.ImageOptions.html +1 -1
- package/docs/interfaces/five.IntersectEvent.html +10 -2
- package/docs/interfaces/five.IntersectMesh.html +1 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +1 -1
- package/docs/interfaces/five.LooseWorkObserver.html +2 -2
- package/docs/interfaces/five.LooseWorkPanorama.html +2 -2
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +6 -6
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +10 -10
- package/docs/interfaces/five.ModeChangeEvent.html +9 -2
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEvent.html +7 -2
- package/docs/interfaces/five.ModelSceneEvent.html +7 -2
- package/docs/interfaces/five.ModelTileEvent.html +7 -2
- package/docs/interfaces/five.MovePanoOptions.html +8 -8
- package/docs/interfaces/five.NetworkAbortError.html +1 -1
- package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/five.NetworkOptions.html +1 -1
- package/docs/interfaces/five.NetworkProxyError.html +1 -1
- package/docs/interfaces/five.NetworkResourceEvent.html +7 -2
- package/docs/interfaces/five.NetworkResponseError.html +1 -1
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/five.ObjectEvent.html +7 -2
- package/docs/interfaces/five.PBMClipperParameter.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderInitArgs.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderSlots.html +2 -2
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +5 -3
- package/docs/interfaces/five.PBMPanoDepth.html +5 -5
- package/docs/interfaces/five.PBMPanoFilterValue.html +6 -0
- package/docs/interfaces/five.PBMPanoPicture.html +8 -6
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
- package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
- package/docs/interfaces/five.PanoCircleMeshInterface.html +2 -2
- package/docs/interfaces/five.PanoEvent.html +15 -2
- package/docs/interfaces/five.PanoPrepareEvent.html +15 -0
- package/docs/interfaces/five.PanoTextureEvent.html +11 -2
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ParameterMaterialValue.html +40 -38
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +54 -52
- package/docs/interfaces/five.Pose.html +1 -1
- package/docs/interfaces/five.RenderEvent.html +7 -2
- package/docs/interfaces/five.ResolvedParameterValue.html +55 -54
- package/docs/interfaces/five.RgbaData.html +7 -0
- package/docs/interfaces/five.SplatData.html +2 -2
- package/docs/interfaces/five.State.html +1 -1
- package/docs/interfaces/five.StateEvent.html +9 -2
- package/docs/interfaces/five.TextureOptions.html +1 -1
- package/docs/interfaces/five.Tile3DOptions.html +2 -2
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ViewLayer.html +24 -24
- package/docs/interfaces/five.WorkCubeImage.html +3 -2
- package/docs/interfaces/five.WorkImage.html +6 -5
- package/docs/interfaces/five.WorkInitial.html +8 -8
- package/docs/interfaces/five.WorkModel.html +8 -8
- package/docs/interfaces/five.WorkModelLayer.html +6 -6
- package/docs/interfaces/five.WorkObserver.html +29 -29
- package/docs/interfaces/five.WorkObserverJson.html +2 -2
- package/docs/interfaces/five.WorkObserverProto.html +26 -0
- package/docs/interfaces/five.WorkPanoramaJson.html +2 -2
- package/docs/interfaces/five.WorkTile.html +6 -5
- package/docs/interfaces/five.WorkVideo.html +4 -4
- package/docs/interfaces/five.WorksEvent.html +7 -2
- package/docs/interfaces/five.XRControllerEvent.html +10 -2
- package/docs/interfaces/five.XRControllerState.html +8 -0
- package/docs/interfaces/five.XRGestureEvent.html +13 -2
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.XRSessionEvent.html +9 -2
- package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
- package/docs/interfaces/plugins.CSS3DPluginController.html +52 -0
- package/docs/interfaces/plugins.CSS3DPluginType.Config.html +2 -0
- package/docs/interfaces/plugins.CSS3DPluginType.CreateCSS3DObjectType.html +10 -0
- package/docs/interfaces/plugins.CSS3DPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.CSS3DPluginType.Params.html +4 -0
- package/docs/interfaces/plugins.CSS3DPluginType.State.html +8 -0
- package/docs/interfaces/plugins.CSS3DRendererParameters.html +2 -0
- package/docs/interfaces/plugins.DynamicPathLinePluginController.html +3 -3
- package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationController.html +44 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.BoundingAABB2D.html +3 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.Config.html +8 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.Keyframe.html +3 -0
- package/docs/interfaces/plugins.GaussianSplattingEntranceAnimationPluginType.State.html +8 -0
- package/docs/interfaces/plugins.ItemMaskController.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +2 -2
- package/docs/interfaces/plugins.Object3DHelperPluginType.BaseController.html +30 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.BaseHelper.html +22 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.BoundingBoxController.html +30 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.HelperOffset.html +4 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.MoveController.html +36 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.MoveHelperAbstract.html +32 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelper.html +12 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelperPluginState.html +4 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Object3DHelperState.html +4 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.ObjectHelperControllers.html +4 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.RotateController.html +36 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.RotateHelperAbstract.html +28 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Scissor.html +5 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Vector2Position.html +3 -0
- package/docs/interfaces/plugins.Object3DHelperPluginType.Vector3Position.html +4 -0
- package/docs/interfaces/plugins.OrientationPluginController.html +6 -6
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
- package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
- package/docs/interfaces/plugins.PlayingState.html +2 -2
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
- package/docs/interfaces/plugins.TrajectoryController.html +8 -8
- package/docs/interfaces/react.FiveInjectionTypes.html +21 -21
- package/docs/interfaces/sticker.IntersectionLike.html +2 -2
- package/docs/interfaces/vfx.ParticleArgs.html +4 -4
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +3 -3
- package/docs/modules/five.html +1 -1
- package/docs/modules/plugins.CSS3DPluginType.html +1 -0
- package/docs/modules/plugins.GaussianSplattingEntranceAnimationPluginType.html +1 -0
- package/docs/modules/plugins.Object3DHelperPluginType.html +1 -0
- package/docs/modules/plugins.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/five.ControllerEventTypes.html +30 -26
- package/docs/types/five.EasingFunction.html +1 -0
- package/docs/types/five.EventTypes.html +26 -26
- package/docs/types/five.LegacyEventType.html +7 -7
- package/docs/types/five.PBMAlphaMode.html +1 -1
- package/docs/types/five.PBMColorStyle.html +1 -1
- package/docs/types/five.PBMFloorStyle.html +1 -1
- package/docs/types/five.PBMMeshShaderType.html +1 -1
- package/docs/types/five.PBMPointBack.html +1 -1
- package/docs/types/five.PBMPointCloudShaderType.html +1 -1
- package/docs/types/five.PBMPointShape.html +1 -1
- package/docs/types/five.PBMPointSize.html +1 -1
- package/docs/types/five.PBMTransition.html +1 -1
- package/docs/types/five.ParseOptions.html +6 -6
- package/docs/types/five.Works.html +1 -1
- package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
- package/docs/types/plugins.CSS3DPluginType.PluginData.html +1 -0
- package/docs/types/plugins.CSS3DPluginType.ServerData.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.AddObject3DHelperConfig.html +13 -0
- package/docs/types/plugins.Object3DHelperPluginType.Circle.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Color.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Direction.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Direction4.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.HelperConfig.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.HelperEventMap.html +17 -0
- package/docs/types/plugins.Object3DHelperPluginType.InternalHelperEventMap.html +8 -0
- package/docs/types/plugins.Object3DHelperPluginType.Object3DHelperEventMap.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Object3DHelperPluginEventMap.html +7 -0
- package/docs/types/plugins.Object3DHelperPluginType.PositionFrom.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.ScaleCallback.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.ScalePosition.html +4 -0
- package/docs/types/plugins.Object3DHelperPluginType.UseFaceNormalInterface.html +4 -0
- package/docs/types/plugins.Object3DHelperPluginType.Vector2WithArray.html +1 -0
- package/docs/types/plugins.Object3DHelperPluginType.Vector3WithArray.html +1 -0
- package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/five/application/events.d.ts +1 -1
- package/five/application/five.d.ts +6 -5
- package/five/bvh/bvhObject.d.ts +2 -2
- package/five/controllers/base.d.ts +1 -0
- package/five/controllers/events.d.ts +5 -1
- package/five/controllers/mapview.d.ts +1 -0
- package/five/controllers/model.d.ts +2 -2
- package/five/controllers/panorama.d.ts +3 -2
- package/five/controllers/xrPanorama.d.ts +1 -1
- package/five/core/camera.d.ts +1 -1
- package/five/gaussian-splatting/util/renderData.d.ts +66 -0
- package/five/index.d.ts +4 -1
- package/five/index.js +272 -782
- package/five/index.mjs +26894 -32056
- package/five/meshes/boundingMesh.d.ts +1 -0
- package/five/model/index.d.ts +2 -2
- package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +1 -1
- 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 +7 -5
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +13 -0
- package/five/model/loaders/glTF-helpers/extensions/base.d.ts +2 -1
- package/five/model/loaders/glTF-helpers/index.d.ts +4 -0
- package/five/model/loaders/glTF-helpers/parser.d.ts +2 -1
- package/five/model/loaders/spz.d.ts +2 -2
- package/five/model/materials/pbmMaterial.d.ts +54 -4
- package/five/model/materials/pbmMeshMaterial.d.ts +5 -3
- package/five/model/materials/pbmPointCloudMaterial.d.ts +0 -2
- package/five/model/objects/{pbmGSObject.d.ts → pbmGaussianSplattingObject.d.ts} +4 -1
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +59 -0
- package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
- package/five/model/parameter.d.ts +11 -6
- package/five/model/tile3d/index.d.ts +5 -3
- package/five/model/tile3d/tile-node.d.ts +2 -2
- package/five/model/tile3d/tileset.d.ts +1 -0
- package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +9 -7
- package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
- package/five/renderer/tools/render-full-screen.d.ts +1 -1
- package/five/texture/histogram.d.ts +54 -0
- package/five/texture/loader.d.ts +1 -1
- package/five/texture/textureData.d.ts +11 -0
- package/five/thirdparty/hammer.d.ts +371 -255
- package/five/thirdparty/jsrsasign.d.ts +5 -20
- package/five/types/movePanoOptions.d.ts +4 -3
- package/five/utils/error.d.ts +1 -0
- package/five/utils/event.d.ts +98 -37
- package/five/utils/imageURL.d.ts +1 -1
- package/five/utils/memoryUsage.d.ts +2 -2
- package/five/utils/subscribe.d.ts +2 -2
- package/five/webxr/motionHelper.d.ts +1 -1
- package/five/work/index.d.ts +1 -0
- package/five/work/looseWorkType.d.ts +2 -2
- package/five/work/work.d.ts +5 -35
- package/five/work/workJsonType.d.ts +2 -2
- package/five/work/workObserverProto.d.ts +39 -0
- package/gltf-loader/index.js +9 -9
- package/gltf-loader/index.mjs +1351 -1451
- package/line/index.js +4 -4
- package/line/index.mjs +334 -513
- package/llms.txt +37 -1
- package/package.json +4 -4
- package/plugins/CSS3DPlugin/Controller.d.ts +64 -0
- package/plugins/CSS3DPlugin/index.d.ts +5 -0
- package/plugins/CSS3DPlugin/typing.d.ts +32 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +30 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.d.ts +5 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/typing.d.ts +28 -0
- package/plugins/Object3DHelperPlugin/Controller.d.ts +99 -0
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.d.ts +142 -0
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.d.ts +16 -0
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.d.ts +66 -0
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.d.ts +61 -0
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.d.ts +17 -0
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.d.ts +97 -0
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.d.ts +16 -0
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.d.ts +37 -0
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.d.ts +93 -0
- package/plugins/Object3DHelperPlugin/constant.d.ts +27 -0
- package/plugins/Object3DHelperPlugin/index.d.ts +6 -0
- package/plugins/Object3DHelperPlugin/typing.d.ts +143 -0
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.d.ts +22 -0
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.d.ts +23 -0
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.d.ts +19 -0
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.d.ts +2 -0
- package/plugins/Object3DHelperPlugin/utils/direction.d.ts +14 -0
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.d.ts +5 -0
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.d.ts +8 -0
- package/plugins/Object3DHelperPlugin/utils/solidGuide.d.ts +27 -0
- package/plugins/Object3DHelperPlugin/utils/tipsDom.d.ts +8 -0
- package/plugins/TrajectoryPlugin/Controller.d.ts +1 -1
- package/plugins/index.d.ts +4 -1
- package/plugins/index.js +35 -21
- package/plugins/index.mjs +5418 -4238
- package/plugins/thirdParty/CSS3DRenderer.d.ts +16 -3
- package/plugins/thirdParty/domevents.d.ts +36 -0
- package/plugins/utils/uuid.d.ts +1 -4
- package/react/context.d.ts +3 -2
- package/react/createProvider.d.ts +4 -4
- package/react/createStore.d.ts +3 -3
- package/react/hooks/useFiveProject2d.d.ts +1 -1
- package/react/index.js +3 -3
- package/react/index.mjs +572 -783
- package/react/rendererPool.d.ts +2 -2
- package/shader-lib/index.js +13 -14
- package/shader-lib/index.mjs +424 -824
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +102 -142
- package/umd/five-gltf-loader.js +9 -9
- package/umd/five-line.js +4 -4
- package/umd/five-plugins.js +35 -21
- package/umd/five-react.js +3 -3
- package/umd/five-shader-lib.js +13 -14
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +21 -21
- package/umd/five-vue.js +3 -3
- package/umd/five.js +267 -777
- package/vfx/index.js +21 -21
- package/vfx/index.mjs +454 -910
- package/vue/index.js +3 -3
- package/vue/index.mjs +309 -301
- package/vue/rendererPool.d.ts +5 -5
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +339 -556
- package/five/gs/util/renderData.d.ts +0 -32
- package/five/model/objects/pbmGSRenderMesh.d.ts +0 -29
- package/five/work/workObserverUtils.d.ts +0 -36
- /package/five/assets/{realsee-pmg-data-url.d.ts → realsee-png-data-url.d.ts} +0 -0
- /package/five/{gs → gaussian-splatting}/wasm/data.d.ts +0 -0
- /package/five/{gs → gaussian-splatting}/wasm/sort.d.ts +0 -0
- /package/five/{gs → gaussian-splatting}/worker/dataWorker.d.ts +0 -0
- /package/five/{gs → gaussian-splatting}/worker/sortWorker.d.ts +0 -0
package/five/model/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ export { PBMGroup } from "./objects/pbmGroup";
|
|
|
2
2
|
export { PBMContainer } from "./objects/pbmContainer";
|
|
3
3
|
export { PBMMesh, PBMSkinnedMesh } from "./objects/pbmMesh";
|
|
4
4
|
export { PBMPointCloud } from "./objects/pbmPointCloud";
|
|
5
|
-
export { PBMGSObject, type SplatData, } from "./objects/
|
|
6
|
-
export { PBMCustomShader,
|
|
5
|
+
export { PBMGaussianSplattingObject as PBMGSObject, type SplatData, } from "./objects/pbmGaussianSplattingObject";
|
|
6
|
+
export { PBMUpdateable, PBMPanoFilter, type PBMPanoFilterValue, PBMCustomShader,
|
|
7
7
|
/**
|
|
8
8
|
* @deprecated
|
|
9
9
|
* use PBMCustomShader instead
|
|
@@ -20,6 +20,6 @@ export declare class KHR_binary_glTF extends BaseExtension {
|
|
|
20
20
|
body: ArrayBuffer | null;
|
|
21
21
|
constructor();
|
|
22
22
|
loadGlbBinary(data: ArrayBuffer): void;
|
|
23
|
-
loadBuffer(index: number, parser: Parser): Promise<ArrayBuffer
|
|
23
|
+
loadBuffer(index: number, parser: Parser): Promise<ArrayBuffer> | null;
|
|
24
24
|
clear(): void;
|
|
25
25
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { Mesh, MeshPrimitive } from '../glTF';
|
|
5
|
+
import type { GaussianSplattingExtensionSpz2 } from './KHR_gaussian_splatting_compression_spz_2';
|
|
6
|
+
export interface GaussianSplattingExtensionOld {
|
|
7
|
+
antialiased: boolean;
|
|
8
|
+
bufferView: number;
|
|
9
|
+
compression: {
|
|
10
|
+
extension: "KHR_gaussian_splatting_compression_spz";
|
|
11
|
+
};
|
|
12
|
+
count: number;
|
|
13
|
+
}
|
|
14
|
+
export interface GaussianSplattingExtension {
|
|
15
|
+
colorSpace: "srgb_rec709_display" | "lin_rec709_display";
|
|
16
|
+
kernel: "ellipse";
|
|
17
|
+
sortingMethod: "cameraDistance";
|
|
18
|
+
projection: "perspective";
|
|
19
|
+
extensions: {
|
|
20
|
+
KHR_gaussian_splatting_compression_spz_2?: GaussianSplattingExtensionSpz2;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare class KHR_gaussian_splatting extends BaseExtension {
|
|
24
|
+
loadMeshPrimitive(meshDef: Mesh, primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.Points | THREE.Line | THREE.Mesh>;
|
|
25
|
+
private loadGaussianSplating;
|
|
26
|
+
}
|
package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
1
2
|
import { BaseExtension } from './base';
|
|
2
3
|
import type { Parser } from '../parser';
|
|
3
|
-
import {
|
|
4
|
+
import { PBMGaussianSplattingObject } from '../../../objects/pbmGaussianSplattingObject';
|
|
5
|
+
export declare const EXTENSION_NAME = "KHR_gaussian_splatting_compression_spz";
|
|
4
6
|
export declare class KHR_gaussian_splatting_compression_spz extends BaseExtension {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
load(gaussianSplattingExtension: {
|
|
8
|
+
bufferView: number;
|
|
9
|
+
}, parser: Parser): Promise<THREE.Points>;
|
|
10
|
+
loadSpz(buffer: Uint8Array): Promise<PBMGaussianSplattingObject>;
|
|
9
11
|
}
|
package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { BaseExtension } from './base';
|
|
3
|
+
import type { Parser } from '../parser';
|
|
4
|
+
import { PBMGaussianSplattingObject } from '../../../objects/pbmGaussianSplattingObject';
|
|
5
|
+
export interface GaussianSplattingExtensionSpz2 {
|
|
6
|
+
bufferView: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const EXTENSION_NAME = "KHR_gaussian_splatting_compression_spz_2";
|
|
9
|
+
export declare class KHR_gaussian_splatting_compression_spz_2 extends BaseExtension {
|
|
10
|
+
constructor();
|
|
11
|
+
load(gaussianSplattingExtension: GaussianSplattingExtensionSpz2, parser: Parser): Promise<THREE.Points>;
|
|
12
|
+
loadSpz(buffer: Uint8Array): Promise<PBMGaussianSplattingObject>;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import type { MeshPrimitive, TextureInfo, Node } from '../glTF';
|
|
2
|
+
import type { Mesh, MeshPrimitive, TextureInfo, Node } from '../glTF';
|
|
3
3
|
import type { Parser } from '../parser';
|
|
4
4
|
import type { GlTFResult } from '../type';
|
|
5
5
|
import type { ImageBitmapLike } from '../../../../texture/imageBitmap';
|
|
@@ -15,6 +15,7 @@ export declare class BaseExtension {
|
|
|
15
15
|
loadTexture(index: number, parser: Parser): null | Promise<THREE.Texture>;
|
|
16
16
|
loadGeometry(primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.BufferGeometry>;
|
|
17
17
|
loadMaterial(primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.Material>;
|
|
18
|
+
loadMeshPrimitive(meshDef: Mesh, primitiveDef: MeshPrimitive, parser: Parser): null | Promise<THREE.Points | THREE.Line | THREE.Mesh>;
|
|
18
19
|
extendMaterial(material: THREE.Material, primitiveDef: MeshPrimitive, parser: Parser): Promise<void>;
|
|
19
20
|
loadMesh(index: number, parser: Parser): null | Promise<THREE.Object3D>;
|
|
20
21
|
extendNode(node: THREE.Object3D, nodeDef: Node, parser: Parser): Promise<void>;
|
|
@@ -17,7 +17,9 @@ import { EXT_meshopt_compression } from './extensions/EXT_meshopt_compression';
|
|
|
17
17
|
import { EXT_texture_webp } from './extensions/EXT_texture_webp';
|
|
18
18
|
import { CESIUM_RTC } from './extensions/CESIUM_RTC';
|
|
19
19
|
import { REALSEE_materials_lightmap } from './extensions/REALSEE_materials_lightmap';
|
|
20
|
+
import { KHR_gaussian_splatting } from './extensions/KHR_gaussian_splatting';
|
|
20
21
|
import { KHR_gaussian_splatting_compression_spz } from './extensions/KHR_gaussian_splatting_compression_spz';
|
|
22
|
+
import { KHR_gaussian_splatting_compression_spz_2 } from './extensions/KHR_gaussian_splatting_compression_spz_2';
|
|
21
23
|
export declare const EXTENSIONS: {
|
|
22
24
|
KHR_binary_glTF: typeof KHR_binary_glTF;
|
|
23
25
|
KHR_draco_mesh_compression: typeof KHR_draco_mesh_compression;
|
|
@@ -35,7 +37,9 @@ export declare const EXTENSIONS: {
|
|
|
35
37
|
EXT_texture_webp: typeof EXT_texture_webp;
|
|
36
38
|
CESIUM_RTC: typeof CESIUM_RTC;
|
|
37
39
|
REALSEE_materials_lightmap: typeof REALSEE_materials_lightmap;
|
|
40
|
+
KHR_gaussian_splatting: typeof KHR_gaussian_splatting;
|
|
38
41
|
KHR_gaussian_splatting_compression_spz: typeof KHR_gaussian_splatting_compression_spz;
|
|
42
|
+
KHR_gaussian_splatting_compression_spz_2: typeof KHR_gaussian_splatting_compression_spz_2;
|
|
39
43
|
};
|
|
40
44
|
export { GlTFResult };
|
|
41
45
|
export declare function parseGltf(data: ArrayBuffer | string, options: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import { GlTF, TextureInfo, MeshPrimitive } from './glTF';
|
|
2
|
+
import { GlTF, TextureInfo, Mesh, MeshPrimitive } from './glTF';
|
|
3
3
|
import type { GlTFResult } from './type';
|
|
4
4
|
import { BaseExtension } from './extensions/base';
|
|
5
5
|
import { Fetcher } from '../../../utils/ajax';
|
|
@@ -72,6 +72,7 @@ export declare class Parser {
|
|
|
72
72
|
*/
|
|
73
73
|
loadGeometry(primitiveDef: MeshPrimitive): Promise<THREE.BufferGeometry>;
|
|
74
74
|
loadImage(index: number): Promise<ImageBitmapLike>;
|
|
75
|
+
loadMeshPrimitive(meshDef: Mesh, primitiveDef: MeshPrimitive): Promise<THREE.Points | THREE.Line | THREE.Mesh>;
|
|
75
76
|
/**
|
|
76
77
|
* Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#meshes
|
|
77
78
|
* @param index
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Fetcher } from "../../utils/ajax";
|
|
2
|
-
import {
|
|
2
|
+
import { PBMGaussianSplattingObject } from '../objects/pbmGaussianSplattingObject';
|
|
3
3
|
import { LoadResultType } from './shared';
|
|
4
4
|
/**
|
|
5
5
|
* 加载spz格式的数据
|
|
6
6
|
* @returns Promise<PBMGSObject>
|
|
7
7
|
*/
|
|
8
|
-
export declare function parseSpz(fileBytes: Uint8Array | ArrayBuffer): Promise<
|
|
8
|
+
export declare function parseSpz(fileBytes: Uint8Array | ArrayBuffer): Promise<PBMGaussianSplattingObject>;
|
|
9
9
|
export declare function loadSpz(url: string, options?: {
|
|
10
10
|
modelUpAxis?: 'Y' | 'Z';
|
|
11
11
|
upAxis?: 'Y' | 'Z';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as THREE from "three";
|
|
2
|
-
import {
|
|
2
|
+
import { Subscribe } from '../../utils/subscribe';
|
|
3
|
+
import type { PanoId } from '../../utils/pano';
|
|
3
4
|
export type PBMMeshShaderType = 'none' | 'basic' | 'phong' | 'standard';
|
|
4
5
|
export type PBMPointCloudShaderType = 'pointcloud';
|
|
5
6
|
export type PBMAlphaMode = 'OPAQUE' | 'MASK' | 'BLEND';
|
|
@@ -9,6 +10,10 @@ export type PBMColorStyle = 'RGB' | 'ALTITUDE' | 'CONSTANT';
|
|
|
9
10
|
export type PBMPointShape = 'SQUARE' | 'CIRCLE';
|
|
10
11
|
export type PBMPointSize = 'FIXED' | 'ATTENUATION';
|
|
11
12
|
export type PBMPointBack = 'VISIBLE' | 'HIDDEN' | 'DARK';
|
|
13
|
+
export declare class PBMUpdateable extends Subscribe<{
|
|
14
|
+
"update": () => void;
|
|
15
|
+
}> {
|
|
16
|
+
}
|
|
12
17
|
export interface PBMCustomShaderSlots {
|
|
13
18
|
vertex: {
|
|
14
19
|
mainBefore: string;
|
|
@@ -19,6 +24,7 @@ export interface PBMCustomShaderSlots {
|
|
|
19
24
|
mainBefore: string;
|
|
20
25
|
mainStart: string;
|
|
21
26
|
mainModelColor: string;
|
|
27
|
+
mainPanoColor: string;
|
|
22
28
|
mainEnd: string;
|
|
23
29
|
};
|
|
24
30
|
}
|
|
@@ -27,17 +33,17 @@ export interface PBMCustomShaderInitArgs {
|
|
|
27
33
|
vertex?: Partial<PBMCustomShaderSlots['vertex']>;
|
|
28
34
|
fragment?: Partial<PBMCustomShaderSlots['fragment']>;
|
|
29
35
|
uniforms?: {
|
|
30
|
-
[key: string]: THREE.
|
|
36
|
+
[key: string]: THREE.IUniform;
|
|
31
37
|
};
|
|
32
38
|
defines?: {
|
|
33
39
|
[key: string]: any;
|
|
34
40
|
};
|
|
35
41
|
}
|
|
36
|
-
export declare class PBMCustomShader {
|
|
42
|
+
export declare class PBMCustomShader extends PBMUpdateable {
|
|
37
43
|
id: string;
|
|
38
44
|
version: number;
|
|
39
45
|
uniforms: {
|
|
40
|
-
[key: string]: THREE.
|
|
46
|
+
[key: string]: THREE.IUniform;
|
|
41
47
|
};
|
|
42
48
|
defines: {
|
|
43
49
|
[key: string]: any;
|
|
@@ -50,6 +56,48 @@ export declare class PBMCustomShader {
|
|
|
50
56
|
set needsUpdate(value: boolean);
|
|
51
57
|
onBeforeCompile(shader: THREE.Shader, renderer: THREE.WebGLRenderer): void;
|
|
52
58
|
}
|
|
59
|
+
export interface PBMPanoFilterValue {
|
|
60
|
+
saturationSaturationBias: number;
|
|
61
|
+
contrastContrastBias: number;
|
|
62
|
+
highlightShadowLutMap: THREE.Texture;
|
|
63
|
+
colorTemperatureBias: number;
|
|
64
|
+
colorTintBias: number;
|
|
65
|
+
}
|
|
66
|
+
export declare class PBMPanoFilter extends PBMUpdateable {
|
|
67
|
+
readonly id: string;
|
|
68
|
+
/** 对比度 */
|
|
69
|
+
readonly contrast: {
|
|
70
|
+
/** 对比偏移 [-1, 1] */
|
|
71
|
+
contrastBias: number;
|
|
72
|
+
};
|
|
73
|
+
/** 饱和度 */
|
|
74
|
+
readonly saturation: {
|
|
75
|
+
/** 饱和偏移 [-1, 1] */
|
|
76
|
+
saturationBias: number;
|
|
77
|
+
};
|
|
78
|
+
/** 颜色 */
|
|
79
|
+
readonly color: {
|
|
80
|
+
/** 色温偏移 [-100, 100] */
|
|
81
|
+
temperatureBias: number;
|
|
82
|
+
/** 色調偏移 [-100, 100] */
|
|
83
|
+
tintBias: number;
|
|
84
|
+
};
|
|
85
|
+
/** 高光阴影 */
|
|
86
|
+
readonly highlightShadow: {
|
|
87
|
+
/** 高光偏移 [-255, 255] */
|
|
88
|
+
highlightBias: number;
|
|
89
|
+
/** 阴影偏移 [-255, 255] */
|
|
90
|
+
shadowBias: number;
|
|
91
|
+
/** 全局亮度偏移 [-255, 255] */
|
|
92
|
+
globalBias: number;
|
|
93
|
+
/** 高光阴影的颜色对照表 */
|
|
94
|
+
readonly lutMap: THREE.Texture;
|
|
95
|
+
};
|
|
96
|
+
/** 计算调色 LUT */
|
|
97
|
+
static computeLut(highlightBias: number, shadowBias: number, globalBias: number, width?: number, itemSize?: number, target?: Float32Array, offset?: number): Float32Array;
|
|
98
|
+
constructor();
|
|
99
|
+
toValue(): PBMPanoFilterValue;
|
|
100
|
+
}
|
|
53
101
|
export interface PBMClipperParameter {
|
|
54
102
|
clippingBoxMatrix: THREE.Matrix4;
|
|
55
103
|
floorIndex?: number;
|
|
@@ -59,6 +107,8 @@ export interface PBMPanoPicture {
|
|
|
59
107
|
panoId: PanoId;
|
|
60
108
|
/** 全景图 */
|
|
61
109
|
map: THREE.CubeTexture;
|
|
110
|
+
/** 图片直方图 peak mean min max */
|
|
111
|
+
mapHistogram: THREE.Vector4;
|
|
62
112
|
/** 图片尺寸 */
|
|
63
113
|
mapSize: number;
|
|
64
114
|
/** 全景图变换矩阵 4x4 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from "three";
|
|
2
|
-
import { PBMMaterial, PBMMeshShaderType, PBMPanoPicture, PBMPanoDepth, PBMRefinedScreen, PBMClipperParameter, PBMCustomShader, PBMAlphaMode, PBMTransition, PBMColorStyle, PBMFloorStyle } from "./pbmMaterial";
|
|
2
|
+
import { PBMMaterial, PBMMeshShaderType, PBMPanoPicture, PBMPanoFilterValue, PBMPanoDepth, PBMRefinedScreen, PBMClipperParameter, PBMCustomShader, PBMAlphaMode, PBMTransition, PBMColorStyle, PBMFloorStyle } from "./pbmMaterial";
|
|
3
3
|
export interface PBMMeshMaterialParameters extends THREE.MaterialParameters, THREE.MaterialParameters, THREE.MeshBasicMaterialParameters, THREE.MeshPhongMaterialParameters, THREE.MeshStandardMaterialParameters {
|
|
4
4
|
shaderType?: PBMMeshShaderType;
|
|
5
5
|
vertexMarks?: boolean;
|
|
@@ -7,6 +7,9 @@ export interface PBMMeshMaterialParameters extends THREE.MaterialParameters, THR
|
|
|
7
7
|
alphaMode?: PBMAlphaMode;
|
|
8
8
|
pano0?: PBMPanoPicture | null;
|
|
9
9
|
pano1?: PBMPanoPicture | null;
|
|
10
|
+
pano0Depth?: PBMPanoDepth | null;
|
|
11
|
+
pano1Depth?: PBMPanoDepth | null;
|
|
12
|
+
panoFilter?: PBMPanoFilterValue | null;
|
|
10
13
|
refinedScreen?: PBMRefinedScreen | null;
|
|
11
14
|
modelAlpha?: number;
|
|
12
15
|
progress?: number;
|
|
@@ -20,7 +23,6 @@ export interface PBMMeshMaterialParameters extends THREE.MaterialParameters, THR
|
|
|
20
23
|
brightness?: number;
|
|
21
24
|
colorSaturation?: number;
|
|
22
25
|
colorBrightness?: number;
|
|
23
|
-
useEDL?: boolean;
|
|
24
26
|
useHQWeight?: boolean;
|
|
25
27
|
useHQDepth?: boolean;
|
|
26
28
|
modelBoundingMin?: THREE.Vector3;
|
|
@@ -90,6 +92,7 @@ declare class PBMMeshMaterial extends PBMMaterial implements THREE.MeshBasicMate
|
|
|
90
92
|
pano1: PBMPanoPicture | null;
|
|
91
93
|
pano0Depth: PBMPanoDepth | null;
|
|
92
94
|
pano1Depth: PBMPanoDepth | null;
|
|
95
|
+
panoFilter: PBMPanoFilterValue | null;
|
|
93
96
|
refinedScreen: PBMRefinedScreen | null;
|
|
94
97
|
modelAlpha: number;
|
|
95
98
|
progress: number;
|
|
@@ -103,7 +106,6 @@ declare class PBMMeshMaterial extends PBMMaterial implements THREE.MeshBasicMate
|
|
|
103
106
|
brightness: number;
|
|
104
107
|
colorSaturation: number;
|
|
105
108
|
colorBrightness: number;
|
|
106
|
-
useEDL: boolean;
|
|
107
109
|
useHQWeight: boolean;
|
|
108
110
|
useHQDepth: boolean;
|
|
109
111
|
modelBoundingMin: THREE.Vector3;
|
|
@@ -20,7 +20,6 @@ export interface PBMPointCloudMaterialParameters extends THREE.MaterialParameter
|
|
|
20
20
|
colorBrightness?: number;
|
|
21
21
|
outlineGain?: number;
|
|
22
22
|
distanceGain?: number;
|
|
23
|
-
useEDL?: boolean;
|
|
24
23
|
useHQWeight?: boolean;
|
|
25
24
|
useHQDepth?: boolean;
|
|
26
25
|
modelBoundingMin?: THREE.Vector3;
|
|
@@ -51,7 +50,6 @@ declare class PBMPointCloudMaterial extends PBMMaterial {
|
|
|
51
50
|
colorBrightness: number;
|
|
52
51
|
outlineGain: number;
|
|
53
52
|
distanceGain: number;
|
|
54
|
-
useEDL: boolean;
|
|
55
53
|
useHQWeight: boolean;
|
|
56
54
|
useHQDepth: boolean;
|
|
57
55
|
modelBoundingMin: THREE.Vector3;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as THREE from "three";
|
|
2
|
+
import type { PBMClipperParameter } from "../materials/pbmMaterial";
|
|
2
3
|
export interface SplatData {
|
|
3
4
|
numPoints: number;
|
|
4
5
|
positions: Float32Array;
|
|
@@ -10,7 +11,7 @@ export interface SplatData {
|
|
|
10
11
|
sh3?: Float32Array;
|
|
11
12
|
shDegree?: number;
|
|
12
13
|
}
|
|
13
|
-
export declare class
|
|
14
|
+
export declare class PBMGaussianSplattingObject extends THREE.Points<THREE.BufferGeometry, THREE.ShaderMaterial> {
|
|
14
15
|
static RowLength: number;
|
|
15
16
|
transformChanged: boolean;
|
|
16
17
|
selectedChanged: boolean;
|
|
@@ -18,6 +19,8 @@ export declare class PBMGSObject extends THREE.Points<THREE.BufferGeometry, THRE
|
|
|
18
19
|
numPoints: number;
|
|
19
20
|
maxSHDegree: number;
|
|
20
21
|
usedSHDegree: number;
|
|
22
|
+
gsViewLayerKey: string;
|
|
23
|
+
gsClippers: readonly PBMClipperParameter[];
|
|
21
24
|
private _selected;
|
|
22
25
|
private _boundingBox;
|
|
23
26
|
lastMatrixWorld: THREE.Matrix4 | null;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { RenderData } from '../../gaussian-splatting/util/renderData';
|
|
3
|
+
declare class PBMGaussianSplattingRenderMesh extends THREE.Mesh<THREE.InstancedBufferGeometry, THREE.ShaderMaterial> {
|
|
4
|
+
private gsSceneState;
|
|
5
|
+
renderData: RenderData | null;
|
|
6
|
+
needsRender: boolean;
|
|
7
|
+
private sortWorker;
|
|
8
|
+
private depthIndex;
|
|
9
|
+
private splatIndexCapacity;
|
|
10
|
+
private activeSlot;
|
|
11
|
+
private pendingSlot;
|
|
12
|
+
private rebuildGeneration;
|
|
13
|
+
private forceClipperUniformRefresh;
|
|
14
|
+
private incrementalUpdateInFlight;
|
|
15
|
+
private freeSlotPool;
|
|
16
|
+
private dataTexture;
|
|
17
|
+
private transformsTexture;
|
|
18
|
+
private transformIndicesTexture;
|
|
19
|
+
private layerIndicesTexture;
|
|
20
|
+
private shTexture;
|
|
21
|
+
private usedSHDegree;
|
|
22
|
+
constructor();
|
|
23
|
+
private ensureSplatIndexCapacity;
|
|
24
|
+
private getExpandedCapacity;
|
|
25
|
+
private createGeometry;
|
|
26
|
+
private createMaterial;
|
|
27
|
+
private createDefaultLayerClipperRanges;
|
|
28
|
+
private createDefaultClipperMatrices;
|
|
29
|
+
private createTextures;
|
|
30
|
+
private createSHTexture;
|
|
31
|
+
/**
|
|
32
|
+
* 设置球谐阶数
|
|
33
|
+
* @param degree SH 阶数 (0, 1, 或 2),0 表示禁用 SH
|
|
34
|
+
*/
|
|
35
|
+
private setMaxShDegree;
|
|
36
|
+
private bindSlotTextures;
|
|
37
|
+
private disposeSlot;
|
|
38
|
+
/** 回收 slot 到池中复用,而非直接销毁 */
|
|
39
|
+
private recycleSlot;
|
|
40
|
+
private disposeTextures;
|
|
41
|
+
private applyDepthIndex;
|
|
42
|
+
private swapPendingToActive;
|
|
43
|
+
private createSlot;
|
|
44
|
+
private updateSlotTextures;
|
|
45
|
+
private postSortData;
|
|
46
|
+
private sortDataRebuilding;
|
|
47
|
+
private requestSort;
|
|
48
|
+
private syncTransformsForSlot;
|
|
49
|
+
private collectObjects;
|
|
50
|
+
private isSceneNeedsRebuild;
|
|
51
|
+
private getClipperHash;
|
|
52
|
+
private updateClipperCounts;
|
|
53
|
+
private updateClipperUniforms;
|
|
54
|
+
private startPendingRebuild;
|
|
55
|
+
private tryStartIncrementalUpdate;
|
|
56
|
+
onBeforeRender: (renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera) => void;
|
|
57
|
+
dispose(): void;
|
|
58
|
+
}
|
|
59
|
+
export { PBMGaussianSplattingRenderMesh };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
declare class PBMGaussianSplattingTestMesh extends THREE.Mesh<THREE.InstancedBufferGeometry, THREE.ShaderMaterial> {
|
|
3
|
+
constructor();
|
|
4
|
+
private collectObjects;
|
|
5
|
+
onBeforeRender: (renderer: THREE.WebGLRenderer, scene: THREE.Scene, camera: THREE.Camera) => void;
|
|
6
|
+
}
|
|
7
|
+
export { PBMGaussianSplattingTestMesh };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import type
|
|
2
|
+
import { type PBMCustomShader, 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
3
|
import type { TileRequestOrder } from './tile3d/types';
|
|
4
4
|
import type { Camera } from '../core/camera';
|
|
5
5
|
export interface ParameterMaterialValue {
|
|
@@ -19,6 +19,8 @@ export interface ParameterMaterialValue {
|
|
|
19
19
|
pano0Depth: PBMPanoDepth | null;
|
|
20
20
|
/** 结束点深度 */
|
|
21
21
|
pano1Depth: PBMPanoDepth | null;
|
|
22
|
+
/** 全景图滤镜 */
|
|
23
|
+
panoFilter: PBMPanoFilter | null;
|
|
22
24
|
/** 细化瓦片的屏幕渲染 */
|
|
23
25
|
refinedScreen: PBMRefinedScreen | null;
|
|
24
26
|
/** 模型贴图和全景图的混合程度 [0-1] */
|
|
@@ -78,7 +80,7 @@ export interface ParameterMaterialValue {
|
|
|
78
80
|
/** 包围盒 */
|
|
79
81
|
boundingBox: THREE.Box3;
|
|
80
82
|
/** 3dgs球谐阶数*/
|
|
81
|
-
|
|
83
|
+
gaussianSplattingSHDegree: number;
|
|
82
84
|
}
|
|
83
85
|
export interface ParameterTilesetValue {
|
|
84
86
|
/** 模型显示最小细化层级 */
|
|
@@ -114,20 +116,23 @@ export interface ParameterTilesetValue {
|
|
|
114
116
|
export interface ParameterValue extends ParameterMaterialValue, ParameterTilesetValue {
|
|
115
117
|
}
|
|
116
118
|
export interface ResolvedParameterValue extends ParameterValue {
|
|
117
|
-
|
|
118
|
-
version: string;
|
|
119
|
+
versionNumber: number;
|
|
119
120
|
}
|
|
120
121
|
export interface Parameter extends Readonly<Partial<ParameterValue>> {
|
|
121
122
|
}
|
|
122
123
|
export declare class Parameter {
|
|
123
124
|
static createDefault(): Required<ParameterValue>;
|
|
124
|
-
static
|
|
125
|
+
static resolveValueTo(target: Partial<ResolvedParameterValue>, ...parameterValues: Partial<ParameterValue>[]): ResolvedParameterValue;
|
|
126
|
+
static resolveValue<T extends keyof ParameterValue>(name: T, ...parameterValues: Partial<ParameterValue>[]): ParameterValue[T];
|
|
127
|
+
static resolveValue(...parameterValues: Partial<ParameterValue>[]): ResolvedParameterValue;
|
|
125
128
|
id: string;
|
|
126
129
|
versionNumber: number;
|
|
127
130
|
private value;
|
|
131
|
+
private unbind;
|
|
128
132
|
constructor(initialValue?: Partial<ParameterValue>);
|
|
129
|
-
|
|
133
|
+
resolveValue<T extends keyof ParameterValue>(name: T, ...values: Partial<ParameterValue>[]): ParameterValue[T];
|
|
130
134
|
resolveValue(...baseValues: Partial<ParameterValue>[]): ResolvedParameterValue;
|
|
135
|
+
private assignValue;
|
|
131
136
|
set<T extends keyof ParameterValue>(name: T, value: ParameterValue[T]): this;
|
|
132
137
|
set(values: Partial<ParameterValue>): this;
|
|
133
138
|
reset(...names: (keyof ParameterValue)[]): this;
|
|
@@ -5,6 +5,7 @@ import { Tile } from './tile';
|
|
|
5
5
|
import { Trajectory } from './trajectory';
|
|
6
6
|
import { TilesetHeader } from './header';
|
|
7
7
|
import { Intersection } from '../intersection';
|
|
8
|
+
import { type BoundingVolume } from '../../utils/volume';
|
|
8
9
|
import { Fetcher } from '../../utils/ajax';
|
|
9
10
|
import { Parameter } from '../parameter';
|
|
10
11
|
import type { ModelScene } from '../model-scene';
|
|
@@ -57,9 +58,10 @@ export declare class Tile3D extends THREE.Object3D {
|
|
|
57
58
|
private renderObjects;
|
|
58
59
|
private backfaceObjects;
|
|
59
60
|
private tileObjects;
|
|
61
|
+
private currentResolvedParameterValue;
|
|
60
62
|
constructor(tilesetHeader: TilesetHeader, options: Tile3DOptions);
|
|
61
|
-
get viewerRequestVolume():
|
|
62
|
-
set viewerRequestVolume(value:
|
|
63
|
+
get viewerRequestVolume(): BoundingVolume | undefined;
|
|
64
|
+
set viewerRequestVolume(value: BoundingVolume | undefined);
|
|
63
65
|
get tiles(): Tile[];
|
|
64
66
|
get trajectories(): Trajectory[];
|
|
65
67
|
getRecommendProps(options?: {
|
|
@@ -81,7 +83,7 @@ export declare class Tile3D extends THREE.Object3D {
|
|
|
81
83
|
* @deprecated
|
|
82
84
|
* use this.parent instead.
|
|
83
85
|
*/
|
|
84
|
-
get model(): Model;
|
|
86
|
+
get model(): Model | null;
|
|
85
87
|
/**
|
|
86
88
|
* @deprecated
|
|
87
89
|
* it's self
|
|
@@ -4,14 +4,14 @@ import type { Camera } from '../../core/camera';
|
|
|
4
4
|
import type { Tile } from './tile';
|
|
5
5
|
import { PBMMesh, PBMSkinnedMesh } from '../objects/pbmMesh';
|
|
6
6
|
import { PBMPointCloud } from '../objects/pbmPointCloud';
|
|
7
|
-
import {
|
|
7
|
+
import { PBMGaussianSplattingObject } from '../objects/pbmGaussianSplattingObject';
|
|
8
8
|
import type { ResolvedParameterValue } from '../parameter';
|
|
9
9
|
import type { ModelScene } from '../model-scene';
|
|
10
10
|
import type { Tile3D } from './index';
|
|
11
11
|
export declare class TileNode extends THREE.Object3D {
|
|
12
12
|
materials: THREE.Material[];
|
|
13
13
|
animations: THREE.AnimationClip[];
|
|
14
|
-
pbmObjects: (PBMMesh | PBMSkinnedMesh | PBMPointCloud |
|
|
14
|
+
pbmObjects: (PBMMesh | PBMSkinnedMesh | PBMPointCloud | PBMGaussianSplattingObject)[];
|
|
15
15
|
private contentObject;
|
|
16
16
|
private appearMotion;
|
|
17
17
|
private disposers;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
2
|
import { FivePass } from './pass';
|
|
3
3
|
export declare class AdaptiveLuminancePass extends FivePass {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
4
|
+
maxMinValue: number;
|
|
5
|
+
minMaxValue: number;
|
|
6
|
+
valueStep: number;
|
|
7
|
+
sampleTestScale: number;
|
|
8
|
+
private histogram;
|
|
9
|
+
private minValue;
|
|
10
|
+
private maxValue;
|
|
11
|
+
private luminanceSampleTarget?;
|
|
12
|
+
private luminanceSampleBuffer?;
|
|
11
13
|
constructor();
|
|
12
14
|
render(renderer: THREE.WebGLRenderer, writeBuffer: THREE.WebGLRenderTarget, readBuffer: THREE.WebGLRenderTarget, deltaTime: number, maskActive?: boolean): void;
|
|
13
15
|
clearBuffer(): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
/**
|
|
3
|
+
* 将 立方体投影图 渲染成 圆柱投影图
|
|
4
|
+
* @param renderer - THREE.WebGLRenderer
|
|
5
|
+
* @param cubemap - 立方体投影图
|
|
6
|
+
*/
|
|
7
|
+
export declare function renderCubeToEquirectangular(renderer: THREE.WebGLRenderer, cubemap: THREE.CubeTexture, flipY: boolean): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
export declare function renderFullScreen(renderer: THREE.WebGLRenderer, source: THREE.Texture | THREE.Color, opacity?: number): void;
|
|
2
|
+
export declare function renderFullScreen(renderer: THREE.WebGLRenderer, source: THREE.Texture | THREE.Color, flipY?: boolean, opacity?: number): void;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { RgbaData } from './textureData';
|
|
2
|
+
type HistogramData = {
|
|
3
|
+
/** 峰值 */
|
|
4
|
+
peak: number;
|
|
5
|
+
/** 平均值 */
|
|
6
|
+
mean: number;
|
|
7
|
+
/** 最小值 */
|
|
8
|
+
min: number;
|
|
9
|
+
/** 最大值 */
|
|
10
|
+
max: number;
|
|
11
|
+
};
|
|
12
|
+
export declare const sharedHistogramRgbaData: RgbaData;
|
|
13
|
+
/**
|
|
14
|
+
* 计算直方图
|
|
15
|
+
* @param images - 图片的像素 / 像素长度(rgba: 4, rgb: 3)
|
|
16
|
+
* @param target - 输出对象
|
|
17
|
+
* @returns
|
|
18
|
+
*/
|
|
19
|
+
export declare function computeHistogram(images: {
|
|
20
|
+
data: Uint8Array | Uint8ClampedArray;
|
|
21
|
+
type?: 'rgba' | 'rgb';
|
|
22
|
+
}[], target?: HistogramData): HistogramData;
|
|
23
|
+
/** 直方图 */
|
|
24
|
+
export declare class Histogram {
|
|
25
|
+
/** 峰值 */
|
|
26
|
+
peak: number;
|
|
27
|
+
/** 平均值 */
|
|
28
|
+
mean: number;
|
|
29
|
+
/** 最小值 */
|
|
30
|
+
min: number;
|
|
31
|
+
/** 最大值 */
|
|
32
|
+
max: number;
|
|
33
|
+
constructor(peak?: number, mean?: number, min?: number, max?: number);
|
|
34
|
+
/**
|
|
35
|
+
* 从图像获取直方图
|
|
36
|
+
* @param rgbaArray - 像素数组,像素 rgba 排列
|
|
37
|
+
*/
|
|
38
|
+
formPixels(...rgbaArray: (Uint8Array | Uint8ClampedArray)[]): this;
|
|
39
|
+
toJSON(): {
|
|
40
|
+
peak: number;
|
|
41
|
+
mean: number;
|
|
42
|
+
min: number;
|
|
43
|
+
max: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 导出直方图参数为数组 [peak, mean, min, max]
|
|
47
|
+
*/
|
|
48
|
+
toArray(): number[];
|
|
49
|
+
/**
|
|
50
|
+
* 导出直方图参数为字符串 peak mean min max
|
|
51
|
+
*/
|
|
52
|
+
toString(): string;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
package/five/texture/loader.d.ts
CHANGED
|
@@ -35,5 +35,5 @@ export declare class TextureLoader {
|
|
|
35
35
|
viaAjax?: boolean;
|
|
36
36
|
timeout?: number;
|
|
37
37
|
fetcher: Fetcher;
|
|
38
|
-
}, onLoad: (response: NetworkResponse<THREE.CubeTexture, NetWorkMeta[]>) => void, onError: (error: Error) => void, onProgress: (percent: number) => void, renderer: THREE.WebGLRenderer): Promise<NetworkResponse<THREE.CubeTexture, NetWorkMeta[]>>;
|
|
38
|
+
}, onLoad: ((response: NetworkResponse<THREE.CubeTexture, NetWorkMeta[]>) => void) | undefined, onError: ((error: Error) => void) | undefined, onProgress: ((percent: number) => void) | undefined, renderer: THREE.WebGLRenderer): Promise<NetworkResponse<THREE.CubeTexture, NetWorkMeta[]>>;
|
|
39
39
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export interface RgbaData {
|
|
3
|
+
/** 宽,单位px */
|
|
4
|
+
width: number;
|
|
5
|
+
/** 高,单位px */
|
|
6
|
+
height: number;
|
|
7
|
+
/** 像素值 */
|
|
8
|
+
data: Uint8ClampedArray<ArrayBuffer>;
|
|
9
|
+
}
|
|
10
|
+
export declare function getRgbaDataFromCubeTexture(renderer: THREE.WebGLRenderer, cubemap: THREE.CubeTexture, flipY: boolean, rgbaData: RgbaData): RgbaData;
|
|
11
|
+
export declare function getRgbaDataFromTexture(renderer: THREE.WebGLRenderer, map: THREE.Texture, flipY: boolean, rgbaData: RgbaData): RgbaData;
|