@realsee/five 6.8.0-alpha.0 → 6.8.0-alpha.10

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.
Files changed (775) hide show
  1. package/AGENTS_READ_ME.md +4 -0
  2. package/AI_CONTEXT.md +4 -0
  3. package/README.md +50 -389
  4. package/ai_guides/README.md +122 -0
  5. package/ai_guides/ai-doc-guidelines.md +102 -0
  6. package/ai_guides/api.md +274 -0
  7. package/ai_guides/features/3dtile.md +172 -0
  8. package/ai_guides/features/camera-animation.md +205 -0
  9. package/ai_guides/features/clipper.md +135 -0
  10. package/ai_guides/features/coordinate-system.md +128 -0
  11. package/ai_guides/features/event.md +154 -0
  12. package/ai_guides/features/five.md +184 -0
  13. package/ai_guides/features/flowing-light-2d-pass.md +438 -0
  14. package/ai_guides/features/flowing-light-3d-pass.md +420 -0
  15. package/ai_guides/features/gaussian-blur-pass.md +202 -0
  16. package/ai_guides/features/gesture.md +180 -0
  17. package/ai_guides/features/get-screen-pixels.md +182 -0
  18. package/ai_guides/features/image-options.md +164 -0
  19. package/ai_guides/features/load-external-model.md +350 -0
  20. package/ai_guides/features/load-progress.md +140 -0
  21. package/ai_guides/features/material.md +151 -0
  22. package/ai_guides/features/mode.md +269 -0
  23. package/ai_guides/features/model.md +186 -0
  24. package/ai_guides/features/move-pano-effect.md +145 -0
  25. package/ai_guides/features/multi-work.md +146 -0
  26. package/ai_guides/features/pano-tile.md +132 -0
  27. package/ai_guides/features/pano-uv.md +131 -0
  28. package/ai_guides/features/parameter.md +153 -0
  29. package/ai_guides/features/plugin.md +210 -0
  30. package/ai_guides/features/postprocessing.md +259 -0
  31. package/ai_guides/features/raycast.md +175 -0
  32. package/ai_guides/features/request-proxy.md +112 -0
  33. package/ai_guides/features/screen-project.md +165 -0
  34. package/ai_guides/features/state.md +101 -0
  35. package/ai_guides/features/view-layer.md +187 -0
  36. package/ai_guides/features/work.md +303 -0
  37. package/ai_guides/glossary.md +93 -0
  38. package/ai_guides/intro.md +23 -0
  39. package/ai_guides/quick-start.md +69 -0
  40. package/ai_guides/release_notes/6.6.md +86 -0
  41. package/ai_guides/release_notes/6.7.md +401 -0
  42. package/ai_guides/release_notes/6.8.md +90 -0
  43. package/ai_guides/support.md +23 -0
  44. package/ai_guides/template.md +70 -0
  45. package/docs/00_FOR_AI_AGENTS.md +11 -0
  46. package/docs/README.md +11 -0
  47. package/docs/assets/hierarchy.js +1 -1
  48. package/docs/assets/highlight.css +29 -29
  49. package/docs/assets/icons.js +1 -1
  50. package/docs/assets/icons.svg +1 -1
  51. package/docs/assets/main.js +2 -2
  52. package/docs/assets/navigation.js +1 -1
  53. package/docs/assets/search.js +1 -1
  54. package/docs/assets/style.css +3 -3
  55. package/docs/classes/five.AdaptiveLuminancePass.html +2 -2
  56. package/docs/classes/five.AnimationFrameLoop.html +5 -5
  57. package/docs/classes/five.BoundingMesh.html +1 -1
  58. package/docs/classes/five.Camera.html +5 -5
  59. package/docs/classes/five.EffectComposer.html +1 -1
  60. package/docs/classes/five.EyeDomeLightingPass.html +2 -2
  61. package/docs/classes/five.Five.html +134 -134
  62. package/docs/classes/five.FivePass.html +2 -2
  63. package/docs/classes/five.FullScreenQuad.html +2 -2
  64. package/docs/classes/five.InternalWebGLRenderer.html +1 -1
  65. package/docs/classes/five.Model.html +36 -36
  66. package/docs/classes/five.ModelScene.html +12 -12
  67. package/docs/classes/five.Motion.html +1 -1
  68. package/docs/classes/five.NetworkSubscribe.html +23 -23
  69. package/docs/classes/five.PBMContainer.html +3 -3
  70. package/docs/classes/five.PBMGSObject.html +24 -0
  71. package/docs/classes/five.PBMGroup.html +1 -1
  72. package/docs/classes/five.PBMMesh.html +1 -1
  73. package/docs/classes/five.PBMMeshMaterial.html +15 -6
  74. package/docs/classes/five.PBMPointCloud.html +1 -1
  75. package/docs/classes/five.PBMPointCloudMaterial.html +3 -3
  76. package/docs/classes/five.PBMSkinnedMesh.html +1 -1
  77. package/docs/classes/five.PanoCircleMesh.html +4 -4
  78. package/docs/classes/five.PanoCircleMeshCustom.html +4 -4
  79. package/docs/classes/five.PanoCircleMeshSolid.html +4 -4
  80. package/docs/classes/five.Parameter.html +55 -51
  81. package/docs/classes/five.Scene.html +3 -3
  82. package/docs/classes/five.Subscribe.html +26 -25
  83. package/docs/classes/five.Tile.html +1 -1
  84. package/docs/classes/five.Tile3D.html +30 -26
  85. package/docs/classes/five.TileNode.html +2 -2
  86. package/docs/classes/five.Tileset.html +11 -11
  87. package/docs/classes/five.Trajectory.html +1 -1
  88. package/docs/classes/five.TrajectoryNode.html +1 -1
  89. package/docs/classes/five.Work.html +19 -19
  90. package/docs/classes/five.WorkResolvedObserver.html +41 -16
  91. package/docs/classes/gltf-loader.DDSLoader.html +1 -1
  92. package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
  93. package/docs/classes/gltf-loader.GLTFLoader.html +6 -6
  94. package/docs/classes/gltf-loader.GLTFObject.html +1 -1
  95. package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
  96. package/docs/classes/line.Line.html +1 -1
  97. package/docs/classes/line.LineGeometry.html +4 -4
  98. package/docs/classes/line.LineMaterial.html +1 -1
  99. package/docs/classes/line.LineSegmentsGeometry.html +4 -4
  100. package/docs/classes/line.THREE_Line2.html +1 -1
  101. package/docs/classes/line.THREE_LineSegments2.html +1 -1
  102. package/docs/classes/plugins.BasePlugin.Controller.html +16 -16
  103. package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
  104. package/docs/classes/react.Store.html +12 -11
  105. package/docs/classes/sticker.Sticker.html +11 -11
  106. package/docs/classes/vfx.Airflow.html +1 -1
  107. package/docs/classes/vfx.Flame.html +1 -1
  108. package/docs/classes/vfx.Particle.html +31 -31
  109. package/docs/classes/vfx.ParticleGPU.html +7 -7
  110. package/docs/classes/vfx.SpotLight.html +1 -1
  111. package/docs/documents/README.html +138 -0
  112. package/docs/documents/ai-doc-guidelines.html +117 -0
  113. package/docs/documents/api.html +337 -0
  114. package/docs/documents/features_3dtile.html +216 -0
  115. package/docs/documents/features_camera-animation.html +157 -0
  116. package/docs/documents/features_clipper.html +80 -0
  117. package/docs/documents/features_coordinate-system.html +127 -0
  118. package/docs/documents/features_event.html +104 -0
  119. package/docs/documents/features_five.html +147 -0
  120. package/docs/documents/features_flowing-light-2d-pass.html +356 -0
  121. package/docs/documents/features_flowing-light-3d-pass.html +351 -0
  122. package/docs/documents/features_gaussian-blur-pass.html +182 -0
  123. package/docs/documents/features_gesture.html +120 -0
  124. package/docs/documents/features_get-screen-pixels.html +88 -0
  125. package/docs/documents/features_image-options.html +108 -0
  126. package/docs/documents/features_load-external-model.html +600 -0
  127. package/docs/documents/features_load-progress.html +110 -0
  128. package/docs/documents/features_material.html +334 -0
  129. package/docs/documents/features_mode.html +114 -0
  130. package/docs/documents/features_model.html +141 -0
  131. package/docs/documents/features_move-pano-effect.html +110 -0
  132. package/docs/documents/features_multi-work.html +97 -0
  133. package/docs/documents/features_pano-tile.html +100 -0
  134. package/docs/documents/features_pano-uv.html +82 -0
  135. package/docs/documents/features_parameter.html +101 -0
  136. package/docs/documents/features_plugin.html +105 -0
  137. package/docs/documents/features_postprocessing.html +109 -0
  138. package/docs/documents/features_raycast.html +98 -0
  139. package/docs/documents/features_request-proxy.html +78 -0
  140. package/docs/documents/features_screen-project.html +112 -0
  141. package/docs/documents/features_state.html +71 -0
  142. package/docs/documents/features_view-layer.html +158 -0
  143. package/docs/documents/features_work.html +129 -0
  144. package/docs/documents/glossary.html +94 -0
  145. package/docs/documents/intro.html +24 -0
  146. package/docs/documents/quick-start.html +32 -0
  147. package/docs/documents/release_notes_6.6.html +79 -0
  148. package/docs/documents/release_notes_6.7.html +209 -0
  149. package/docs/documents/release_notes_6.8.html +103 -0
  150. package/docs/documents/support.html +49 -0
  151. package/docs/documents/template.html +80 -0
  152. package/docs/functions/five.coordinatesToVector.html +1 -1
  153. package/docs/functions/five.defaultImageURLTransform.html +3 -3
  154. package/docs/functions/five.headingToLongitude.html +1 -1
  155. package/docs/functions/five.loadAt3d.html +1 -1
  156. package/docs/functions/five.loadB3dm.html +1 -1
  157. package/docs/functions/five.loadDome.html +1 -1
  158. package/docs/functions/five.loadDomez.html +1 -1
  159. package/docs/functions/five.loadFbx.html +1 -1
  160. package/docs/functions/five.loadGltf.html +1 -1
  161. package/docs/functions/five.loadPbm.html +1 -1
  162. package/docs/functions/five.loadPly.html +1 -1
  163. package/docs/functions/five.loadPnts.html +1 -1
  164. package/docs/functions/five.loadSplat.html +1 -0
  165. package/docs/functions/five.loadSpz.html +1 -0
  166. package/docs/functions/five.loadX3p.html +1 -1
  167. package/docs/functions/five.longitudeToHeading.html +1 -1
  168. package/docs/functions/five.parseWork.html +3 -3
  169. package/docs/functions/five.vectorToCoordinates.html +1 -1
  170. package/docs/functions/react.createFiveProvider.html +2 -2
  171. package/docs/functions/react.createStore.html +8 -8
  172. package/docs/functions/react.useFiveAction.html +6 -6
  173. package/docs/functions/react.useFiveCameraDirection.html +1 -1
  174. package/docs/functions/react.useFiveCameraRaycaster.html +1 -1
  175. package/docs/functions/react.useFiveCurrentObserver.html +1 -1
  176. package/docs/functions/react.useFiveCurrentState.html +1 -1
  177. package/docs/functions/react.useFiveEventCallback.html +1 -1
  178. package/docs/functions/react.useFiveFloor.html +1 -1
  179. package/docs/functions/react.useFiveHelper.html +1 -1
  180. package/docs/functions/react.useFiveModelIntersectRaycaster.html +2 -2
  181. package/docs/functions/react.useFiveModelReadyState.html +1 -1
  182. package/docs/functions/react.useFiveProject2d.html +2 -2
  183. package/docs/functions/react.useFiveSceneEffect.html +1 -1
  184. package/docs/functions/react.useFiveWork.html +2 -2
  185. package/docs/functions/vue.useFiveAction.html +8 -8
  186. package/docs/functions/vue.useFiveCameraDirection.html +1 -1
  187. package/docs/functions/vue.useFiveCameraRaycaster.html +1 -1
  188. package/docs/functions/vue.useFiveCurrentObserver.html +1 -1
  189. package/docs/functions/vue.useFiveCurrentState.html +1 -1
  190. package/docs/functions/vue.useFiveEventCallback.html +1 -1
  191. package/docs/functions/vue.useFiveFloor.html +1 -1
  192. package/docs/functions/vue.useFiveHelper.html +1 -1
  193. package/docs/functions/vue.useFiveModel.html +1 -1
  194. package/docs/functions/vue.useFiveModelBounding.html +1 -1
  195. package/docs/functions/vue.useFiveModelIntersectRaycaster.html +2 -2
  196. package/docs/functions/vue.useFiveModelReadyState.html +1 -1
  197. package/docs/functions/vue.useFiveProject2d.html +2 -2
  198. package/docs/functions/vue.useFiveScene.html +1 -1
  199. package/docs/functions/vue.useFiveState.html +1 -1
  200. package/docs/functions/vue.useFiveWorks.html +4 -4
  201. package/docs/hierarchy.html +1 -1
  202. package/docs/index.html +115 -187
  203. package/docs/interfaces/five.AddableObject.html +5 -5
  204. package/docs/interfaces/five.AjaxOptions.html +5 -5
  205. package/docs/interfaces/five.BaseEvent.html +2 -2
  206. package/docs/interfaces/five.EventCallback.html +198 -194
  207. package/docs/interfaces/five.FiveInitArgs.html +18 -18
  208. package/docs/interfaces/five.FiveLoadOptions.html +3 -3
  209. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +8 -8
  210. package/docs/interfaces/five.GestureEvent.html +2 -2
  211. package/docs/interfaces/five.ImageOptions.html +11 -11
  212. package/docs/interfaces/five.ImageURLOptions.html +8 -8
  213. package/docs/interfaces/five.IntersectEvent.html +2 -2
  214. package/docs/interfaces/five.IntersectMesh.html +1 -1
  215. package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
  216. package/docs/interfaces/five.Intersection.html +4 -3
  217. package/docs/interfaces/five.LooseWorkWithExtrinsics.html +7 -7
  218. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +8 -8
  219. package/docs/interfaces/five.ModeChangeEvent.html +2 -2
  220. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +9 -9
  221. package/docs/interfaces/five.ModelEvent.html +2 -2
  222. package/docs/interfaces/five.ModelOptions.html +3 -3
  223. package/docs/interfaces/five.ModelSceneEvent.html +2 -2
  224. package/docs/interfaces/five.ModelTileEvent.html +8 -0
  225. package/docs/interfaces/five.MovePanoOptions.html +10 -10
  226. package/docs/interfaces/five.NetworkAbortError.html +1 -1
  227. package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
  228. package/docs/interfaces/five.NetworkOptions.html +4 -4
  229. package/docs/interfaces/five.NetworkProxyError.html +1 -1
  230. package/docs/interfaces/five.NetworkResourceEvent.html +2 -2
  231. package/docs/interfaces/five.NetworkResponseError.html +1 -1
  232. package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
  233. package/docs/interfaces/five.ObjectEvent.html +2 -2
  234. package/docs/interfaces/five.PBMMaterial.html +1 -1
  235. package/docs/interfaces/five.PBMMeshMaterialParameters.html +1 -1
  236. package/docs/interfaces/five.PBMPanoDepth.html +4 -4
  237. package/docs/interfaces/five.PBMPanoPicture.html +5 -5
  238. package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +1 -1
  239. package/docs/interfaces/five.PanoCircleMeshInterface.html +4 -4
  240. package/docs/interfaces/five.PanoEvent.html +2 -2
  241. package/docs/interfaces/five.PanoTextureEvent.html +2 -2
  242. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +15 -15
  243. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +9 -9
  244. package/docs/interfaces/five.ParameterMaterialValue.html +40 -36
  245. package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
  246. package/docs/interfaces/five.ParameterValue.html +54 -50
  247. package/docs/interfaces/five.Pass.html +1 -1
  248. package/docs/interfaces/five.Pose.html +6 -7
  249. package/docs/interfaces/five.RenderEvent.html +2 -2
  250. package/docs/interfaces/five.ResolvedParameterValue.html +54 -50
  251. package/docs/interfaces/five.SplatData.html +10 -0
  252. package/docs/interfaces/five.State.html +9 -9
  253. package/docs/interfaces/five.StateEvent.html +2 -2
  254. package/docs/interfaces/five.TextureOptions.html +12 -12
  255. package/docs/interfaces/five.Tile3DOptions.html +2 -2
  256. package/docs/interfaces/five.TileCoordinateSystem.html +2 -2
  257. package/docs/interfaces/five.TilesetHeader.html +12 -12
  258. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
  259. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +13 -13
  260. package/docs/interfaces/five.ViewLayer.html +30 -26
  261. package/docs/interfaces/five.Viewport.html +4 -4
  262. package/docs/interfaces/five.WorkCubeImage.html +1 -1
  263. package/docs/interfaces/five.WorkImage.html +4 -4
  264. package/docs/interfaces/five.WorkInitial.html +8 -8
  265. package/docs/interfaces/five.WorkModel.html +8 -8
  266. package/docs/interfaces/five.WorkModelLayer.html +6 -6
  267. package/docs/interfaces/five.WorkObserver.html +41 -16
  268. package/docs/interfaces/five.WorkTile.html +4 -4
  269. package/docs/interfaces/five.WorkVideo.html +4 -4
  270. package/docs/interfaces/five.WorksEvent.html +2 -2
  271. package/docs/interfaces/five.XRControllerEvent.html +2 -2
  272. package/docs/interfaces/five.XRGestureEvent.html +2 -2
  273. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +13 -13
  274. package/docs/interfaces/five.XRSessionEvent.html +2 -2
  275. package/docs/interfaces/plugins.BackgroundPluginController.html +11 -11
  276. package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +8 -8
  277. package/docs/interfaces/plugins.BasePlugin.BaseOptions.html +1 -1
  278. package/docs/interfaces/plugins.BasePlugin.Config.html +2 -2
  279. package/docs/interfaces/plugins.BasePlugin.State.html +4 -4
  280. package/docs/interfaces/plugins.BasePlugin.StateChangeParams.html +3 -3
  281. package/docs/interfaces/plugins.DynamicPathLinePluginController.html +45 -45
  282. package/docs/interfaces/plugins.DynamicPathLinePluginType.Config.html +18 -18
  283. package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +13 -13
  284. package/docs/interfaces/plugins.DynamicPathLinePluginType.Params.html +2 -2
  285. package/docs/interfaces/plugins.DynamicPathLinePluginType.PathConfig.html +14 -14
  286. package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +5 -5
  287. package/docs/interfaces/plugins.ItemMaskController.html +12 -12
  288. package/docs/interfaces/plugins.ItemMaskPluginType.Config.html +1 -1
  289. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +5 -5
  290. package/docs/interfaces/plugins.ItemMaskPluginType.Params.html +1 -1
  291. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +7 -7
  292. package/docs/interfaces/plugins.OrientationPluginController.html +12 -12
  293. package/docs/interfaces/plugins.OrientationPluginType.Config.html +1 -1
  294. package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +5 -5
  295. package/docs/interfaces/plugins.OrientationPluginType.Params.html +1 -1
  296. package/docs/interfaces/plugins.OrientationPluginType.State.html +5 -5
  297. package/docs/interfaces/plugins.PanoAnimeController.html +14 -14
  298. package/docs/interfaces/plugins.PanoAnimePluginType.Config.html +1 -1
  299. package/docs/interfaces/plugins.PanoAnimePluginType.ConfigChangeEvent.html +3 -3
  300. package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +6 -6
  301. package/docs/interfaces/plugins.PanoAnimePluginType.Params.html +1 -1
  302. package/docs/interfaces/plugins.PanoAnimePluginType.State.html +4 -4
  303. package/docs/interfaces/plugins.PluginTemplateType.Config.html +1 -1
  304. package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +5 -5
  305. package/docs/interfaces/plugins.PluginTemplateType.Params.html +1 -1
  306. package/docs/interfaces/plugins.PluginTemplateType.State.html +4 -4
  307. package/docs/interfaces/plugins.TrajectoryController.html +30 -15
  308. package/docs/interfaces/react.FiveActionReactCallbacks.html +23 -23
  309. package/docs/interfaces/react.FiveCanvasProps.html +2 -2
  310. package/docs/interfaces/react.FiveInjectionTypes.html +76 -76
  311. package/docs/interfaces/sticker.IntersectionLike.html +2 -2
  312. package/docs/interfaces/vfx.ParticleArgs.html +26 -26
  313. package/docs/interfaces/vfx.ParticleGPUArgs.html +30 -30
  314. package/docs/interfaces/vue.FiveActionVueCallbacks.html +23 -23
  315. package/docs/modules/five.html +1 -1
  316. package/docs/modules.html +1 -1
  317. package/docs/types/five.ControllerEventTypes.html +32 -32
  318. package/docs/types/five.EventTypes.html +26 -24
  319. package/docs/types/five.FivePlugin.html +2 -2
  320. package/docs/types/five.FivePluginInit.html +1 -1
  321. package/docs/types/five.FivePluginInstance.html +1 -1
  322. package/docs/types/five.LegacyEventType.html +142 -142
  323. package/docs/types/five.LoadResultType.html +2 -2
  324. package/docs/types/five.Mode.html +1 -1
  325. package/docs/types/five.MotionCircle.html +1 -1
  326. package/docs/types/five.NetworkProgressCallback.html +1 -1
  327. package/docs/types/five.ParseOptions.html +6 -6
  328. package/docs/types/plugins.BasePlugin.EventMap.html +5 -5
  329. package/docs/types/plugins.DynamicPathLinePluginType.PluginData.html +1 -1
  330. package/docs/types/plugins.DynamicPathLinePluginType.ServerData.html +1 -1
  331. package/docs/variables/react.FiveCanvas.html +1 -1
  332. package/docs/variables/react.useFiveScene.html +1 -1
  333. package/docs/variables/vue.FiveCanvas.html +1 -1
  334. package/docs/variables/vue.FiveProvider.html +1 -1
  335. package/five/application/analysis.d.ts +40 -0
  336. package/five/application/controllers.d.ts +41 -0
  337. package/five/application/events-legacy.d.ts +454 -0
  338. package/five/application/events.d.ts +69 -0
  339. package/five/application/five.d.ts +518 -0
  340. package/five/application/fiveInitArgs.d.ts +176 -0
  341. package/five/application/fiveLoadOptions.d.ts +21 -0
  342. package/five/application/generateDefaultVideoElement.d.ts +2 -0
  343. package/five/application/getViewportScale.d.ts +2 -0
  344. package/five/application/initLights.d.ts +3 -0
  345. package/five/application/mode.d.ts +28 -0
  346. package/five/application/renderPoweredByRealsee.d.ts +3 -0
  347. package/five/assets/cardboard-png-data-url.d.ts +2 -0
  348. package/five/assets/gradient-png-data-url.d.ts +2 -0
  349. package/five/assets/loading-png-data-url.d.ts +2 -0
  350. package/five/assets/phone-png-data-url.d.ts +2 -0
  351. package/five/assets/realsee-pmg-data-url.d.ts +2 -0
  352. package/five/bvh/bvhMath.d.ts +33 -0
  353. package/five/bvh/bvhMesh.d.ts +7 -0
  354. package/five/bvh/bvhNode.d.ts +29 -0
  355. package/five/bvh/bvhObject.d.ts +18 -0
  356. package/five/bvh/bvhPoints.d.ts +6 -0
  357. package/five/bvh/index.d.ts +10 -0
  358. package/five/bvh/worker.d.ts +35 -0
  359. package/five/cardboard/helper.d.ts +2 -0
  360. package/five/cardboard/index.d.ts +13 -0
  361. package/five/cardboard/sensor.d.ts +158 -0
  362. package/five/certificates/hardware.d.ts +1 -0
  363. package/five/controllers/base.d.ts +166 -0
  364. package/five/controllers/events.d.ts +69 -0
  365. package/five/controllers/floorplan.d.ts +119 -0
  366. package/five/controllers/mapview.d.ts +138 -0
  367. package/five/controllers/model.d.ts +57 -0
  368. package/five/controllers/panorama.d.ts +143 -0
  369. package/five/controllers/panoramaLike.d.ts +87 -0
  370. package/five/controllers/topview.d.ts +42 -0
  371. package/five/controllers/vrPanorama.d.ts +56 -0
  372. package/five/controllers/xrPanorama.d.ts +81 -0
  373. package/five/core/camera.d.ts +65 -0
  374. package/five/core/internalWebGLRenderer.d.ts +14 -0
  375. package/five/core/panoVideo.d.ts +18 -0
  376. package/five/core/scene.d.ts +10 -0
  377. package/five/core/tiling.d.ts +43 -0
  378. package/five/declare.d.ts +2 -1
  379. package/five/gs/util/renderData.d.ts +32 -0
  380. package/five/gs/wasm/data.d.ts +20 -0
  381. package/five/gs/wasm/sort.d.ts +18 -0
  382. package/five/gs/worker/dataWorker.d.ts +1 -0
  383. package/five/gs/worker/sortWorker.d.ts +1 -0
  384. package/five/index.d.ts +57 -4582
  385. package/five/index.js +605 -92
  386. package/five/index.mjs +9661 -7537
  387. package/five/meshes/boundingMesh.d.ts +12 -0
  388. package/five/meshes/intersectMesh.d.ts +8 -0
  389. package/five/meshes/panoCircleMesh.d.ts +35 -0
  390. package/five/meshes/panoCircleMeshCustom.d.ts +40 -0
  391. package/five/meshes/panoCircleMeshSolid.d.ts +34 -0
  392. package/five/meshes/panoSphereMesh.d.ts +27 -0
  393. package/five/model/helpers/coordinate-transform.d.ts +3 -0
  394. package/five/model/helpers/ellipsoid-coordinates.d.ts +14 -0
  395. package/five/model/helpers/get-edges-by-sphere.d.ts +8 -0
  396. package/five/model/helpers/get-recommend-tile3d-parameters.d.ts +8 -0
  397. package/five/model/index.d.ts +70 -0
  398. package/five/model/intersection.d.ts +18 -0
  399. package/five/model/loaders/at3d.d.ts +12 -0
  400. package/five/model/loaders/b3dm.d.ts +9 -0
  401. package/five/model/loaders/dome.d.ts +22 -0
  402. package/five/model/loaders/domez.d.ts +11 -0
  403. package/five/model/loaders/fbx.d.ts +8 -0
  404. package/five/model/loaders/glTF-helpers/extensions/CESIUM_RTC.d.ts +9 -0
  405. package/five/model/loaders/glTF-helpers/extensions/EXT_meshopt_compression.d.ts +8 -0
  406. package/five/model/loaders/glTF-helpers/extensions/EXT_texture_webp.d.ts +11 -0
  407. package/five/model/loaders/glTF-helpers/extensions/KHR_animation_pointer.d.ts +6 -0
  408. package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +25 -0
  409. package/five/model/loaders/glTF-helpers/extensions/KHR_draco_mesh_compression.d.ts +11 -0
  410. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +9 -0
  411. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_clearcoat.d.ts +10 -0
  412. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_emissive_strength.d.ts +10 -0
  413. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_sheen.d.ts +10 -0
  414. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_transmission.d.ts +10 -0
  415. package/five/model/loaders/glTF-helpers/extensions/KHR_materials_unlit.d.ts +10 -0
  416. package/five/model/loaders/glTF-helpers/extensions/KHR_mesh_quantization.d.ts +6 -0
  417. package/five/model/loaders/glTF-helpers/extensions/KHR_node_visibility.d.ts +10 -0
  418. package/five/model/loaders/glTF-helpers/extensions/KHR_texture_basisu.d.ts +9 -0
  419. package/five/model/loaders/glTF-helpers/extensions/KHR_texture_transform.d.ts +10 -0
  420. package/five/model/loaders/glTF-helpers/extensions/REALSEE_materials_lightmap.d.ts +7 -0
  421. package/five/model/loaders/glTF-helpers/extensions/base.d.ts +24 -0
  422. package/five/model/loaders/glTF-helpers/glTF.d.ts +713 -0
  423. package/five/model/loaders/glTF-helpers/index.d.ts +47 -0
  424. package/five/model/loaders/glTF-helpers/parser.d.ts +114 -0
  425. package/five/model/loaders/glTF-helpers/type.d.ts +14 -0
  426. package/five/model/loaders/gltf.d.ts +10 -0
  427. package/five/model/loaders/obj.d.ts +9 -0
  428. package/five/model/loaders/pbm.d.ts +26 -0
  429. package/five/model/loaders/ply.d.ts +24 -0
  430. package/five/model/loaders/pnts.d.ts +8 -0
  431. package/five/model/loaders/protobuf/dome.d.ts +540 -0
  432. package/five/model/loaders/protobuf/pbm.d.ts +203 -0
  433. package/five/model/loaders/shared.d.ts +16 -0
  434. package/five/model/loaders/splat.d.ts +8 -0
  435. package/five/model/loaders/spz.d.ts +14 -0
  436. package/five/model/loaders/tile3d-helpers/feature-table.d.ts +15 -0
  437. package/five/model/loaders/tile3d-helpers/gl-type.d.ts +20 -0
  438. package/five/model/loaders/tile3d-helpers/parse-gltf-array-buffer.d.ts +2 -0
  439. package/five/model/loaders/tile3d-helpers/parse-header.d.ts +2 -0
  440. package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.d.ts +2 -0
  441. package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.worker.d.ts +6 -0
  442. package/five/model/loaders/tile3d-helpers/parse-table.d.ts +3 -0
  443. package/five/model/loaders/tile3d-helpers/tile3d-type.d.ts +35 -0
  444. package/five/model/loaders/x3p.d.ts +22 -0
  445. package/five/model/materials/pbmMaterial.d.ts +87 -0
  446. package/five/model/materials/pbmMeshMaterial.d.ts +124 -0
  447. package/five/model/materials/pbmPointCloudMaterial.d.ts +72 -0
  448. package/five/model/model-scene.d.ts +172 -0
  449. package/five/model/model.d.ts +209 -0
  450. package/five/model/objects/pbmContainer.d.ts +28 -0
  451. package/five/model/objects/pbmGSObject.d.ts +40 -0
  452. package/five/model/objects/pbmGSRenderMesh.d.ts +32 -0
  453. package/five/model/objects/pbmGroup.d.ts +8 -0
  454. package/five/model/objects/pbmMesh.d.ts +10 -0
  455. package/five/model/objects/pbmPointCloud.d.ts +7 -0
  456. package/five/model/parameter.d.ts +136 -0
  457. package/five/model/shaders/pbm_gaussian_splatting/fragment.d.ts +2 -0
  458. package/five/model/shaders/pbm_gaussian_splatting/vertex.d.ts +2 -0
  459. package/five/model/shaders/pbm_mesh_basic/fragment.d.ts +2 -0
  460. package/five/model/shaders/pbm_mesh_basic/vertex.d.ts +2 -0
  461. package/five/model/shaders/pbm_mesh_none/fragment.d.ts +2 -0
  462. package/five/model/shaders/pbm_mesh_none/vertex.d.ts +2 -0
  463. package/five/model/shaders/pbm_mesh_phong/fragment.d.ts +2 -0
  464. package/five/model/shaders/pbm_mesh_phong/vertex.d.ts +2 -0
  465. package/five/model/shaders/pbm_mesh_standard/fragment.d.ts +2 -0
  466. package/five/model/shaders/pbm_mesh_standard/vertex.d.ts +2 -0
  467. package/five/model/shaders/pbm_pointcloud/fragment.d.ts +2 -0
  468. package/five/model/shaders/pbm_pointcloud/vertex.d.ts +2 -0
  469. package/five/model/tile3d/header.d.ts +88 -0
  470. package/five/model/tile3d/index.d.ts +214 -0
  471. package/five/model/tile3d/tile-cache.d.ts +18 -0
  472. package/five/model/tile3d/tile-content.d.ts +10 -0
  473. package/five/model/tile3d/tile-node.d.ts +24 -0
  474. package/five/model/tile3d/tile-request-scheduler.d.ts +17 -0
  475. package/five/model/tile3d/tile.d.ts +79 -0
  476. package/five/model/tile3d/tileset-base-traverser.d.ts +59 -0
  477. package/five/model/tile3d/tileset-most-detail-traverser.d.ts +14 -0
  478. package/five/model/tile3d/tileset-normal-traverser.d.ts +15 -0
  479. package/five/model/tile3d/tileset-skip-traverser.d.ts +60 -0
  480. package/five/model/tile3d/tileset.d.ts +69 -0
  481. package/five/model/tile3d/trajectory-content.d.ts +9 -0
  482. package/five/model/tile3d/trajectory-node.d.ts +15 -0
  483. package/five/model/tile3d/trajectory.d.ts +30 -0
  484. package/five/model/tile3d/types.d.ts +33 -0
  485. package/five/model/view-layer.d.ts +20 -0
  486. package/five/renderer/five-renderer.d.ts +17 -0
  487. package/five/renderer/index.d.ts +3 -0
  488. package/five/renderer/postprocessing/composer.d.ts +37 -0
  489. package/five/renderer/postprocessing/index.d.ts +7 -0
  490. package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +15 -0
  491. package/five/renderer/postprocessing/passes/eye-dome-lighting-pass.d.ts +14 -0
  492. package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +36 -0
  493. package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +36 -0
  494. package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +12 -0
  495. package/five/renderer/postprocessing/passes/pass.d.ts +38 -0
  496. package/five/renderer/scene-renderers/point-cloud-high-quality-scene-renderer.d.ts +11 -0
  497. package/five/renderer/scene-renderers/scene-renderer.d.ts +9 -0
  498. package/five/renderer/scene-renderers/ssaa-scene-renderer.d.ts +15 -0
  499. package/five/renderer/tools/full-screen-quad.d.ts +15 -0
  500. package/five/renderer/tools/render-full-screen-depth.d.ts +2 -0
  501. package/five/renderer/tools/render-full-screen.d.ts +2 -0
  502. package/five/texture/imageBitmap.d.ts +13 -0
  503. package/five/texture/initTexture.d.ts +3 -0
  504. package/five/texture/loader.d.ts +39 -0
  505. package/five/thirdparty/fflate.d.ts +1407 -0
  506. package/five/thirdparty/hammer.d.ts +259 -0
  507. package/five/thirdparty/jsrsasign.d.ts +768 -0
  508. package/five/thirdparty/meshopt_decoder.d.ts +15 -0
  509. package/five/three-version-check.d.ts +1 -0
  510. package/five/types/addableObject.d.ts +12 -0
  511. package/five/types/cube.d.ts +1 -0
  512. package/five/types/gestureInput.d.ts +24 -0
  513. package/five/types/imageOptions.d.ts +20 -0
  514. package/five/types/intersectMeshInterface.d.ts +8 -0
  515. package/five/types/movePanoEffect.d.ts +13 -0
  516. package/five/types/movePanoOptions.d.ts +35 -0
  517. package/five/types/panoCircleMeshInterface.d.ts +34 -0
  518. package/five/types/plugin.d.ts +25 -0
  519. package/five/types/pose.d.ts +17 -0
  520. package/five/types/state.d.ts +20 -0
  521. package/five/types/viewport.d.ts +22 -0
  522. package/five/utils/ajax.d.ts +66 -0
  523. package/five/utils/animationFrameLoop.d.ts +45 -0
  524. package/five/utils/array.d.ts +31 -0
  525. package/five/utils/asyncTaskQueue.d.ts +8 -0
  526. package/five/utils/bufferGeometry.d.ts +33 -0
  527. package/five/utils/calculateProgress.d.ts +39 -0
  528. package/five/utils/calculateThreeMouse.d.ts +13 -0
  529. package/five/utils/canplayVideo.d.ts +2 -0
  530. package/five/utils/clamp.d.ts +2 -0
  531. package/five/utils/clock.d.ts +17 -0
  532. package/five/utils/createSymbol.d.ts +5 -0
  533. package/five/utils/decodeText.d.ts +2 -0
  534. package/five/utils/deepEqual.d.ts +2 -0
  535. package/five/utils/deepFreeze.d.ts +2 -0
  536. package/five/utils/defineProperty.d.ts +9 -0
  537. package/five/utils/detector.d.ts +14 -0
  538. package/five/utils/distance.d.ts +10 -0
  539. package/five/utils/draco.d.ts +26 -0
  540. package/five/utils/easing.d.ts +63 -0
  541. package/five/utils/event.d.ts +149 -0
  542. package/five/utils/formatRad.d.ts +7 -0
  543. package/five/utils/imageSupport.d.ts +6 -0
  544. package/five/utils/imageURL.d.ts +42 -0
  545. package/five/utils/isEmptyObject.d.ts +2 -0
  546. package/five/utils/isNil.d.ts +6 -0
  547. package/five/utils/isNumber.d.ts +2 -0
  548. package/five/utils/isPowerOfTwo.d.ts +2 -0
  549. package/five/utils/isPromise.d.ts +2 -0
  550. package/five/utils/isSimilar.d.ts +6 -0
  551. package/five/utils/json.d.ts +7 -0
  552. package/five/utils/ktx2.d.ts +30 -0
  553. package/five/utils/lzma/index.d.ts +2 -0
  554. package/five/utils/lzma/lzma.d.ts +3 -0
  555. package/five/utils/lzma/lzmaWASM.d.ts +2 -0
  556. package/five/utils/lzma/lzmaWorker.d.ts +14 -0
  557. package/five/utils/memoryUsage.d.ts +29 -0
  558. package/five/utils/motion.d.ts +38 -0
  559. package/five/utils/noop.d.ts +6 -0
  560. package/five/utils/now.d.ts +7 -0
  561. package/five/utils/pano.d.ts +9 -0
  562. package/five/utils/pick.d.ts +3 -0
  563. package/five/utils/poseUtils.d.ts +5 -0
  564. package/five/utils/renderCubeTextureToCubeRenderTarget.d.ts +3 -0
  565. package/five/utils/renderDepth.d.ts +2 -0
  566. package/five/utils/renderTexturesToCubeRenderTarget.d.ts +10 -0
  567. package/five/utils/requestPermission.d.ts +3 -0
  568. package/five/utils/shaderContentFix.d.ts +7 -0
  569. package/five/utils/shaderMaterial.d.ts +20 -0
  570. package/five/utils/stateUtils.d.ts +5 -0
  571. package/five/utils/string-pattern.d.ts +8 -0
  572. package/five/utils/subscribe.d.ts +67 -0
  573. package/five/utils/tileCube.d.ts +19 -0
  574. package/five/utils/toFastProperties.d.ts +1 -0
  575. package/five/utils/typedCache.d.ts +10 -0
  576. package/five/utils/uniform.d.ts +15 -0
  577. package/five/utils/url.d.ts +35 -0
  578. package/five/utils/uuid.d.ts +5 -0
  579. package/five/utils/values.d.ts +2 -0
  580. package/five/utils/vectorCoordinates.d.ts +29 -0
  581. package/five/utils/volume.d.ts +111 -0
  582. package/five/utils/webglError.d.ts +7 -0
  583. package/five/utils/worker.d.ts +26 -0
  584. package/five/webxr/XRControllerModelFactory.d.ts +28 -0
  585. package/five/webxr/motionHelper.d.ts +68 -0
  586. package/five/webxr/xrButton.d.ts +4 -0
  587. package/five/webxr/xrController.d.ts +24 -0
  588. package/five/webxr/xrManager.d.ts +84 -0
  589. package/five/work/_ALLOW_HOST.d.ts +2 -0
  590. package/five/work/index.d.ts +6 -0
  591. package/five/work/keychain.d.ts +5 -0
  592. package/five/work/looseWorkType.d.ts +121 -0
  593. package/five/work/verify.d.ts +7 -0
  594. package/five/work/work.d.ts +236 -0
  595. package/five/work/workFetcher.d.ts +4 -0
  596. package/five/work/workJson.d.ts +3 -0
  597. package/five/work/workJsonType.d.ts +73 -0
  598. package/five/work/workObserverUtils.d.ts +36 -0
  599. package/five/work/workParser.d.ts +6 -0
  600. package/five/work/workResolvedObserver.d.ts +12 -0
  601. package/five/work/workVerify.d.ts +2 -0
  602. package/five/work/works.d.ts +10 -0
  603. package/gltf-loader/gltf-object.d.ts +17 -0
  604. package/gltf-loader/index.d.ts +60 -160
  605. package/gltf-loader/index.js +3 -3
  606. package/gltf-loader/index.mjs +3 -3
  607. package/gltf-loader/thirdparty/DDSLoader.d.ts +23 -0
  608. package/gltf-loader/thirdparty/DRACOLoader.d.ts +18 -0
  609. package/gltf-loader/thirdparty/GLTFLoader.d.ts +59 -0
  610. package/line/circle_png.d.ts +1 -0
  611. package/line/index.d.ts +19 -69
  612. package/line/index.js +3 -3
  613. package/line/index.mjs +3 -3
  614. package/line/utils/Line2.d.ts +7 -0
  615. package/line/utils/LineGeometry.d.ts +10 -0
  616. package/line/utils/LineMaterial.d.ts +20 -0
  617. package/line/utils/LineSegments2.d.ts +11 -0
  618. package/line/utils/LineSegmentsGeometry.d.ts +15 -0
  619. package/llms.txt +65 -0
  620. package/package.json +10 -1
  621. package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
  622. package/plugins/BackgroundPlugin/index.d.ts +5 -0
  623. package/plugins/BackgroundPlugin/typings.d.ts +44 -0
  624. package/plugins/BasePlugin/index.d.ts +119 -0
  625. package/plugins/DynamicPathLinePlugin/Controller.d.ts +167 -0
  626. package/plugins/DynamicPathLinePlugin/index.d.ts +5 -0
  627. package/plugins/DynamicPathLinePlugin/line2/Line2.d.ts +7 -0
  628. package/plugins/DynamicPathLinePlugin/line2/LineGeometry.d.ts +10 -0
  629. package/plugins/DynamicPathLinePlugin/line2/LineMaterial.d.ts +17 -0
  630. package/plugins/DynamicPathLinePlugin/line2/LineSegments2.d.ts +11 -0
  631. package/plugins/DynamicPathLinePlugin/line2/LineSegmentsGeometry.d.ts +15 -0
  632. package/plugins/DynamicPathLinePlugin/typing.d.ts +129 -0
  633. package/plugins/DynamicPathLinePlugin/typings.d.ts +72 -0
  634. package/plugins/ItemMaskPlugin/Controller.d.ts +48 -0
  635. package/plugins/ItemMaskPlugin/index.d.ts +5 -0
  636. package/plugins/ItemMaskPlugin/typing.d.ts +58 -0
  637. package/plugins/OrientationPlugin/Controller.d.ts +82 -0
  638. package/plugins/OrientationPlugin/RoundedBoxGeometry.d.ts +11 -0
  639. package/plugins/OrientationPlugin/index.d.ts +6 -0
  640. package/plugins/OrientationPlugin/typing.d.ts +25 -0
  641. package/plugins/PanoAnimePlugin/Controller.d.ts +46 -0
  642. package/plugins/PanoAnimePlugin/index.d.ts +5 -0
  643. package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
  644. package/plugins/PluginTemplate/Controller.d.ts +27 -0
  645. package/plugins/PluginTemplate/index.d.ts +5 -0
  646. package/plugins/PluginTemplate/typing.d.ts +21 -0
  647. package/plugins/TrajectoryPlugin/Controller.d.ts +85 -0
  648. package/plugins/TrajectoryPlugin/index.d.ts +6 -0
  649. package/plugins/TrajectoryPlugin/typing.d.ts +25 -0
  650. package/plugins/index.d.ts +9 -1078
  651. package/plugins/index.js +17 -17
  652. package/plugins/index.mjs +1518 -1370
  653. package/plugins/thirdParty/CSS3DRenderer.d.ts +32 -0
  654. package/plugins/thirdParty/OrbitControls.d.ts +78 -0
  655. package/plugins/utils/absoluteUrl.d.ts +5 -0
  656. package/plugins/utils/clamp.d.ts +2 -0
  657. package/plugins/utils/loadImage.d.ts +1 -0
  658. package/plugins/utils/motion.d.ts +38 -0
  659. package/plugins/utils/now.d.ts +6 -0
  660. package/plugins/utils/uuid.d.ts +5 -0
  661. package/react/canvas.d.ts +19 -0
  662. package/react/context.d.ts +11 -0
  663. package/react/createProvider.d.ts +95 -0
  664. package/react/createStore.d.ts +144 -0
  665. package/react/hooks/unsafe__useFiveInstance.d.ts +9 -0
  666. package/react/hooks/useFiveAction.d.ts +147 -0
  667. package/react/hooks/useFiveCameraDirection.d.ts +7 -0
  668. package/react/hooks/useFiveCameraRaycaster.d.ts +7 -0
  669. package/react/hooks/useFiveCurrentObserver.d.ts +11 -0
  670. package/react/hooks/useFiveCurrentState.d.ts +15 -0
  671. package/react/hooks/useFiveEventCallback.d.ts +12 -0
  672. package/react/hooks/useFiveFloor.d.ts +15 -0
  673. package/react/hooks/useFiveHelper.d.ts +14 -0
  674. package/react/hooks/useFiveModelBounding.d.ts +5 -0
  675. package/react/hooks/useFiveModelEffect.d.ts +14 -0
  676. package/react/hooks/useFiveModelIntersectRaycaster.d.ts +22 -0
  677. package/react/hooks/useFiveModelReadyState.d.ts +8 -0
  678. package/react/hooks/useFiveProject2d.d.ts +20 -0
  679. package/react/hooks/useFiveSceneEffect.d.ts +21 -0
  680. package/react/hooks/useFiveState.d.ts +6 -0
  681. package/react/hooks/useFiveWork.d.ts +29 -0
  682. package/react/index.d.ts +24 -830
  683. package/react/index.js +2 -2
  684. package/react/index.mjs +2 -2
  685. package/react/rendererPool.d.ts +7 -0
  686. package/react/withFive.d.ts +213 -0
  687. package/shader-lib/EvenessPlane/index.d.ts +10 -0
  688. package/shader-lib/PointCloudExpand/index.d.ts +59 -0
  689. package/shader-lib/PolygonCuter/index.d.ts +52 -0
  690. package/shader-lib/PolygonCuter/worker.d.ts +14 -0
  691. package/shader-lib/ShineModel/index.d.ts +7 -0
  692. package/shader-lib/SweepModel/index.d.ts +7 -0
  693. package/shader-lib/index.d.ts +5 -86
  694. package/shader-lib/index.js +2 -2
  695. package/shader-lib/index.mjs +2 -2
  696. package/sticker/geometry.d.ts +3 -0
  697. package/sticker/index.d.ts +68 -71
  698. package/sticker/index.js +3 -3
  699. package/sticker/index.mjs +3 -3
  700. package/umd/five-gltf-loader.js +3 -3
  701. package/umd/five-line.js +3 -3
  702. package/umd/five-plugins.js +16 -16
  703. package/umd/five-react.js +2 -2
  704. package/umd/five-shader-lib.js +2 -2
  705. package/umd/five-sticker.js +3 -3
  706. package/umd/five-vfx.js +2 -2
  707. package/umd/five-vue.js +2 -2
  708. package/umd/five.js +605 -92
  709. package/vfx/airflow/airflow.d.ts +18 -0
  710. package/vfx/airflow/fragment-shader.d.ts +2 -0
  711. package/vfx/airflow/vertex-shader.d.ts +2 -0
  712. package/vfx/common/scale-shader.d.ts +2 -0
  713. package/vfx/common/simplex-noise-shader.d.ts +2 -0
  714. package/vfx/frame/fragment-shader.d.ts +2 -0
  715. package/vfx/frame/frame.d.ts +22 -0
  716. package/vfx/frame/vertex-shader.d.ts +2 -0
  717. package/vfx/index.d.ts +7 -363
  718. package/vfx/index.js +2 -2
  719. package/vfx/index.mjs +2 -2
  720. package/vfx/particle/fragment-shader.d.ts +2 -0
  721. package/vfx/particle/instance.d.ts +36 -0
  722. package/vfx/particle/particle.d.ts +205 -0
  723. package/vfx/particle/utils.d.ts +11 -0
  724. package/vfx/particle/vertex-shader.d.ts +2 -0
  725. package/vfx/particle-gpu/fragment-shader.d.ts +2 -0
  726. package/vfx/particle-gpu/instance.d.ts +36 -0
  727. package/vfx/particle-gpu/particle.d.ts +95 -0
  728. package/vfx/particle-gpu/utils.d.ts +11 -0
  729. package/vfx/particle-gpu/vertex-shader.d.ts +2 -0
  730. package/vfx/spotLight/fragment-shader.d.ts +2 -0
  731. package/vfx/spotLight/spotLight.d.ts +15 -0
  732. package/vfx/spotLight/vertex-shader.d.ts +2 -0
  733. package/vue/context.d.ts +7 -0
  734. package/vue/hooks/FiveCanvas.d.ts +36 -0
  735. package/vue/hooks/FiveProvider.d.ts +35 -0
  736. package/vue/hooks/unsafe__useFiveInject.d.ts +9 -0
  737. package/vue/hooks/useFiveAction.d.ts +178 -0
  738. package/vue/hooks/useFiveCameraDirection.d.ts +8 -0
  739. package/vue/hooks/useFiveCameraRaycaster.d.ts +8 -0
  740. package/vue/hooks/useFiveCurrentObserver.d.ts +12 -0
  741. package/vue/hooks/useFiveCurrentState.d.ts +16 -0
  742. package/vue/hooks/useFiveEventCallback.d.ts +11 -0
  743. package/vue/hooks/useFiveFloor.d.ts +16 -0
  744. package/vue/hooks/useFiveHelper.d.ts +15 -0
  745. package/vue/hooks/useFiveModel.d.ts +7 -0
  746. package/vue/hooks/useFiveModelBounding.d.ts +7 -0
  747. package/vue/hooks/useFiveModelIntersectRaycaster.d.ts +23 -0
  748. package/vue/hooks/useFiveModelReadyState.d.ts +9 -0
  749. package/vue/hooks/useFiveProject2d.d.ts +26 -0
  750. package/vue/hooks/useFiveScene.d.ts +6 -0
  751. package/vue/hooks/useFiveState.d.ts +16 -0
  752. package/vue/hooks/useFiveWork.d.ts +30 -0
  753. package/vue/index.d.ts +23 -467
  754. package/vue/index.js +2 -2
  755. package/vue/index.mjs +2 -2
  756. package/vue/rendererPool.d.ts +10 -0
  757. package/work-downloader/components/model-3d-tile.d.ts +2 -0
  758. package/work-downloader/components/model.d.ts +3 -0
  759. package/work-downloader/components/observer.d.ts +7 -0
  760. package/work-downloader/download.d.ts +16 -0
  761. package/work-downloader/index.d.ts +2 -33
  762. package/work-downloader/index.js +2 -2
  763. package/work-downloader/index.mjs +2 -2
  764. package/work-downloader/type.d.ts +28 -0
  765. package/work-downloader/utils/download-to-file.d.ts +1 -0
  766. package/work-downloader/utils/image-processing.d.ts +7 -0
  767. package/work-downloader/utils/join-url.d.ts +2 -0
  768. package/work-downloader/utils/log.d.ts +1 -0
  769. package/work-downloader/utils/relative-url.d.ts +1 -0
  770. package/docs/documents/coordinate.html +0 -9
  771. package/docs/documents/five.FivePlugin.plugins.html +0 -77
  772. package/docs/documents/five.Pose.coordinate.html +0 -9
  773. package/docs/documents/plugins.html +0 -77
  774. package/docs/documents/react-component.html +0 -32
  775. package/docs/media/coordinate.jpg +0 -0
@@ -0,0 +1,350 @@
1
+ # 加载外部模型 (Load External Models)
2
+
3
+ - **Summary**: 提供了一系列独立的加载函数 (`loadGltf`, `loadPly`, `loadFbx` 等),用于加载各种格式的外部 3D 模型(如 .glb, .ply, .splat, .fbx),并将其转换为 Three.js 对象以便添加到 Five 场景中。
4
+ - **Schema**: 涉及 `LoadResultType` 返回结构及各加载器的配置项 (`LoaderOptions`)。
5
+ - **Concepts**: 独立加载函数、坐标系转换 (UpAxis)、资源销毁 (Dispose)、Fetcher。
6
+ - **Configuration**: `modelUpAxis`, `upAxis`, `fetcher` 等通用及特定配置。
7
+ - **Examples**: 加载 GLTF 模型、加载高斯泼溅 (Gaussian Splat)、加载点云。
8
+
9
+ ## Schema
10
+
11
+ > **Definition**: [LoadResultType](../../five/model/loaders/shared.d.ts)
12
+
13
+ 所有加载函数均返回 `Promise<LoadResultType>`。
14
+
15
+ ```typescript
16
+ // 通用返回类型
17
+ export type LoadResultType<Scene = THREE.Object3D> = {
18
+ type: 'gltf' | 'obj' | 'ply' | 'fbx' | 'pbm' | 'splat' | 'spz' | 'b3dm' | 'pnts' | 'at3d' | 'dome' | 'domez' | 'x3p'; // 模型类型
19
+ modelUpAxis: 'Y' | 'Z'; // 原始模型的上轴
20
+ upAxis: 'Y' | 'Z'; // 输出模型的上轴 (通常为 Z)
21
+ byteLength: number; // 文件字节大小
22
+ memoryUsage: number; // 显存/内存占用估算
23
+ uri: string; // 模型地址
24
+ scene: Scene; // Three.js 对象 (Group 或 Object3D),可直接添加到场景
25
+ textures: THREE.Texture[]; // 加载的纹理列表
26
+ animations: THREE.AnimationClip[]; // 动画剪辑列表
27
+ rtcCenter?: THREE.Vector3; // 若存在 RTC (Relative To Center) 坐标偏移
28
+ dispose: () => void; // 销毁资源函数
29
+ }
30
+
31
+ // 通用配置项接口
32
+ interface BaseLoaderOptions {
33
+ upAxis?: 'Y' | 'Z'; // 期望输出的上轴,默认为 'Z' (Five 坐标系)
34
+ modelUpAxis?: 'Y' | 'Z'; // (部分加载器支持) 原始模型的上轴,用于自动旋转修正
35
+ fetcher?: Fetcher; // 自定义网络请求 Fetcher
36
+ light?: boolean; // 是否使用简化/无光照材质 (取决于加载器实现)
37
+ onDownloadProgress?: (progress: { loaded: number, total: number }) => void; // 下载进度回调
38
+ }
39
+ ```
40
+
41
+ ## Concepts
42
+
43
+ ### 独立加载函数 (Standalone Functions)
44
+ 这些加载函数(如 `loadGltf`, `loadPly`)是 `@realsee/five` 包导出的**独立函数**,而非 `Five` 实例的方法。你需要单独引入它们使用。
45
+
46
+ ### 坐标系转换 (Up-Axis Conversion)
47
+ Five 使用 **Z-up** (Z 轴向上) 的右手坐标系。
48
+ 许多外部模型(如 standard GLTF, FBX)通常是 **Y-up** 的。
49
+ 加载器提供了 `upAxis` 和 `modelUpAxis` 选项来自动处理旋转:
50
+ - `upAxis`: 你期望得到的结果坐标系上轴(通常保持默认 'Z')。
51
+ - `modelUpAxis`: 原始文件的上轴(如 GLTF 默认为 'Y',PLY 默认为 'Z')。
52
+ 如果不指定,加载器会尝试使用合理的默认值将模型旋转到 Z 轴向上。
53
+
54
+ ### 资源销毁 (Disposal)
55
+ 加载的模型包含 Geometry、Material 和 Texture 等 WebGL 资源。当你不再需要该模型时(例如切换场景或移除物体),**必须**调用返回结果中的 `dispose()` 方法来释放内存,否则会导致内存泄漏。
56
+
57
+ ### Fetcher
58
+ 所有加载器支持传入自定义 `fetcher`。这在需要鉴权、自定义 Header 或处理特定 CDN 逻辑时非常有用。如果不传,默认使用内部的 `internalFetcher`。
59
+
60
+ ## Configuration
61
+
62
+ ### loadGltf
63
+ 加载 `.gltf` 或 `.glb` 文件。支持 Draco 压缩。
64
+ 支持扩展:
65
+ * `KHR_binary_glTF`
66
+ * `KHR_draco_mesh_compression`
67
+ * `KHR_texture_basisu`
68
+ * `KHR_texture_transform`
69
+ * `KHR_mesh_quantization`
70
+ * `KHR_materials_unlit`
71
+ * `KHR_node_visibility`
72
+ * `KHR_animation_pointer`
73
+ * `EXT_meshopt_compression`
74
+ * `KHR_materials_clearcoat`
75
+ * `KHR_materials_sheen`
76
+ * `KHR_materials_transmission`
77
+ * `KHR_materials_emissive_strength`
78
+ * `EXT_texture_webp`
79
+ * `CESIUM_RTC`
80
+ * `REALSEE_materials_lightmap`
81
+ * `KHR_gaussian_splatting_compression_spz`
82
+
83
+ | 参数 | 类型 | 默认值 | 说明 |
84
+ | --- | --- | --- | --- |
85
+ | `modelUpAxis` | `'Y' | 'Z'` | `'Y'` | 原始模型的上轴。GLTF 标准通常为 Y。 |
86
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
87
+ | `light` | `boolean` | `undefined` | 是否强制使用 Unlit 材质或移除光照扩展。 |
88
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
89
+
90
+ ### loadPly
91
+ 加载 `.ply` 文件。支持网格、线框、点云及 PBM 扩展格式。
92
+
93
+ | 参数 | 类型 | 默认值 | 说明 |
94
+ | --- | --- | --- | --- |
95
+ | `type` | `'geometry' | 'line' | 'pbmMesh' | 'pbmPointCloud'` | 自动推断 | 指定解析类型。 |
96
+ | `customPropertyMapping` | `Object` | - | 自定义属性映射(用于解析非标准 PLY 属性)。 |
97
+ | `propertyNameMapping` | `Object` | - | 属性名重映射 (e.g. `{'diffuse_red': 'red'}`)。 |
98
+ | `modelUpAxis` | `'Y' | 'Z'` | `'Z'` | PLY 通常为 Z-up。 |
99
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
100
+ | `light` | `boolean` | `undefined` | 是否使用简化材质。 |
101
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
102
+
103
+ ### loadSplat
104
+ 加载 `.splat` 格式的高斯泼溅 (Gaussian Splat) 模型。
105
+
106
+ | 参数 | 类型 | 默认值 | 说明 |
107
+ | --- | --- | --- | --- |
108
+ | `modelUpAxis` | `'Y' | 'Z'` | `'Y'` | Splat 模型通常为 Y-up。 |
109
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
110
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
111
+
112
+ ### loadSpz
113
+ 加载 `.spz` 格式的高斯泼溅 (Gaussian Splat) 模型。`.spz` 是对 `.splat` 的压缩格式。
114
+
115
+ | 参数 | 类型 | 默认值 | 说明 |
116
+ | --- | --- | --- | --- |
117
+ | `modelUpAxis` | `'Y' | 'Z'` | `'Y'` | 原始模型的上轴。 |
118
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
119
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
120
+
121
+ ### loadFbx
122
+ 加载 `.fbx` 文件。
123
+
124
+ | 参数 | 类型 | 默认值 | 说明 |
125
+ | --- | --- | --- | --- |
126
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出上轴。 |
127
+ | `light` | `boolean` | `undefined` | 是否使用简化材质。 |
128
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
129
+
130
+ ### loadObj
131
+ 加载 `.obj` 文件。会自动尝试加载同目录下的 `.mtl` 材质文件。
132
+
133
+ | 参数 | 类型 | 默认值 | 说明 |
134
+ | --- | --- | --- | --- |
135
+ | `modelUpAxis` | `'Y' | 'Z'` | `'Z'` | 原始模型的上轴。 |
136
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
137
+ | `light` | `boolean` | `undefined` | 是否使用简化材质。 |
138
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
139
+
140
+ ### loadPbm
141
+ 加载 Realsee 私有 PBM 格式。
142
+
143
+ | 参数 | 类型 | 默认值 | 说明 |
144
+ | --- | --- | --- | --- |
145
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
146
+ | `light` | `boolean` | `false` | 是否使用简化材质。 |
147
+ | `textureBaseUri` | `string` | 自动推断 | 纹理的基础路径。 |
148
+ | `textureArray` | `string[]` | - | 纹理路径列表。 |
149
+ | `textureOptions` | `TextureOptions` | - | 纹理加载配置 (size, quality 等)。 |
150
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
151
+
152
+ ### loadDome / loadDomez
153
+ 加载 Dome 全景模型 (`.dome` 或 `.domez` 压缩格式)。
154
+
155
+ | 参数 | 类型 | 默认值 | 说明 |
156
+ | --- | --- | --- | --- |
157
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
158
+ | `light` | `boolean` | `true` | 是否使用简化材质。 |
159
+ | `textureBaseUri` | `string` | - | 纹理基础路径。 |
160
+ | `textureOptions` | `TextureOptions` | - | 纹理加载配置。 |
161
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
162
+
163
+ ### loadAt3d
164
+ 加载 `.at3d` 格式模型。
165
+
166
+ | 参数 | 类型 | 默认值 | 说明 |
167
+ | --- | --- | --- | --- |
168
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
169
+ | `light` | `boolean` | `false` | 是否使用简化材质。 |
170
+ | `textureBaseUri` | `string` | 自动推断 | 纹理基础路径。 |
171
+ | `textureArray` | `string[]` | - | 纹理路径列表。 |
172
+ | `textureOptions` | `TextureOptions` | - | 纹理加载配置。 |
173
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
174
+
175
+ ### loadB3dm
176
+ 加载 `.b3dm` (Batched 3D Model) 格式。
177
+
178
+ | 参数 | 类型 | 默认值 | 说明 |
179
+ | --- | --- | --- | --- |
180
+ | `modelUpAxis` | `'Y' | 'Z'` | `'Y'` | 原始模型的上轴。 |
181
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
182
+ | `light` | `boolean` | `undefined` | 是否使用简化材质。 |
183
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
184
+
185
+ ### loadPnts
186
+ 加载 `.pnts` (Point Cloud) 格式。
187
+
188
+ | 参数 | 类型 | 默认值 | 说明 |
189
+ | --- | --- | --- | --- |
190
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
191
+ | `computeBoundingBox` | `boolean` | `true` | 是否计算包围盒。 |
192
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
193
+
194
+ ### loadX3p
195
+ 加载 `.x3p` 格式。
196
+
197
+ | 参数 | 类型 | 默认值 | 说明 |
198
+ | --- | --- | --- | --- |
199
+ | `upAxis` | `'Y' | 'Z'` | `'Z'` | 输出模型的上轴。 |
200
+ | `color` | `THREE.Color` | - | 指定颜色。 |
201
+ | `light` | `boolean` | `true` | 是否使用简化材质。 |
202
+ | `fetcher` | `Fetcher` | - | 自定义 Fetcher。 |
203
+
204
+ ## Examples
205
+
206
+ ### 基础用法:加载 GLTF 模型 (Basic Usage)
207
+
208
+ ```typescript
209
+ import { Five, FivePlugin } from '@realsee/five';
210
+ import { loadGltf } from '@realsee/five';
211
+ import * as THREE from 'three';
212
+
213
+ const five = new Five({/*...*/});
214
+
215
+ // 加载 GLB 模型
216
+ loadGltf('https://example.com/model.glb').then((result) => {
217
+ // 1. 获取模型对象
218
+ const model = result.scene;
219
+
220
+ // 2. 设置位置和大小
221
+ model.position.set(0, 0, 0);
222
+ model.scale.set(1, 1, 1);
223
+
224
+ // 3. 添加到 Five 场景
225
+ five.scene.add(model);
226
+
227
+ // 4. (可选) 渲染一帧以确保显示
228
+ five.needsRender = true;
229
+
230
+ // 保存 result 用于后续销毁
231
+ // result.dispose();
232
+ }).catch(err => {
233
+ console.error('加载失败', err);
234
+ });
235
+ ```
236
+
237
+ ### 进阶用法:加载高斯泼溅 (Gaussian Splat)
238
+
239
+ ```typescript
240
+ import { loadSplat } from '@realsee/five';
241
+
242
+ loadSplat('https://example.com/scene.splat', {
243
+ modelUpAxis: 'Y', // 假设原始数据是 Y-up
244
+ upAxis: 'Z', // 转换到 Five 的 Z-up
245
+ }).then((result) => {
246
+ const splatMesh = result.scene;
247
+ five.scene.add(splatMesh);
248
+ five.needsRender = true;
249
+ });
250
+ ```
251
+
252
+ ### 进阶用法:自定义 PLY 属性映射 (Custom PLY Properties)
253
+
254
+ ```typescript
255
+ import { loadPly } from '@realsee/five';
256
+
257
+ loadPly('https://example.com/data.ply', {
258
+ type: 'pbmPointCloud',
259
+ customPropertyMapping: {
260
+ intensity: {
261
+ itemType: 'float32',
262
+ itemNames: ['intensity'],
263
+ normalized: true
264
+ }
265
+ }
266
+ }).then((result) => {
267
+ // result.scene 是一个 PBMPointCloud 对象
268
+ five.scene.add(result.scene);
269
+ });
270
+ ```
271
+
272
+ ### 基础用法:加载 OBJ 模型 (Basic Usage - OBJ)
273
+
274
+ ```typescript
275
+ import { loadObj } from '@realsee/five';
276
+
277
+ loadObj('https://example.com/model.obj', {
278
+ modelUpAxis: 'Z', // OBJ 默认通常是 Z-up (或根据实际情况调整)
279
+ }).then((result) => {
280
+ five.scene.add(result.scene);
281
+ // OBJ 文件中定义的 .mtl 材质会自动加载
282
+ });
283
+ ```
284
+
285
+ ### 基础用法:加载 FBX 模型
286
+
287
+ ```typescript
288
+ import { loadFbx } from '@realsee/five';
289
+
290
+ loadFbx('https://example.com/model.fbx').then((result) => {
291
+ five.scene.add(result.scene);
292
+ // 动画会自动解析到 result.animations
293
+ });
294
+ ```
295
+
296
+ ### 进阶用法:加载 Dome 全景 (Panorama)
297
+
298
+ ```typescript
299
+ import { loadDome } from '@realsee/five';
300
+
301
+ // 加载 .dome 或 .domez 格式
302
+ loadDome('https://example.com/panorama.domez', {
303
+ light: false, // 全景模型通常不需要光照计算
304
+ textureOptions: {
305
+ size: 4096, // 限制最大纹理尺寸
306
+ }
307
+ }).then((result) => {
308
+ result.scene.position.set(0, 0, 0);
309
+ five.scene.add(result.scene);
310
+ });
311
+ ```
312
+
313
+ ### 进阶用法:加载压缩模型 (AT3D)
314
+
315
+ ```typescript
316
+ import { loadAt3d } from '@realsee/five';
317
+
318
+ loadAt3d('https://example.com/model.at3d', {
319
+ light: false,
320
+ }).then((result) => {
321
+ five.scene.add(result.scene);
322
+ });
323
+ ```
324
+
325
+ ## Debugging
326
+
327
+ - **查看网络请求**: 检查 Network 面板,确认模型文件是否成功下载 (200 OK)。
328
+ - **检查模型位置**: 如果加载成功但看不到,尝试 `console.log(result.scene)` 检查其 `position` 和 `scale`。模型可能太小、太大或位置偏离相机视野。
329
+ - **坐标轴辅助**: 在模型上添加 `new THREE.AxesHelper(1)` 来确认其自身的坐标轴方向。
330
+
331
+ ## Common Pitfalls
332
+
333
+ 1. **坐标轴方向错误**: 模型“躺着”或“倒立”。
334
+ - **解决**: 调整 `modelUpAxis` 参数。如果是 GLTF 试着改为 'Z' 或 'Y';如果是 PLY 试着改为 'Y'。
335
+ 2. **内存泄漏**: 频繁加载/卸载模型但未调用 `dispose()`。
336
+ - **解决**: 务必保存 `load` 返回的 result,并在移除模型时调用 `result.dispose()`。单纯 `scene.remove(object)` 不会释放 GPU 内存。
337
+ 3. **纹理路径错误**: 加载 OBJ/PBM 等带外部纹理的文件时,纹理 404。
338
+ - **解决**: 确保模型文件内的纹理引用是相对路径,或者通过 `resourcePath` / `textureBaseUri` (视具体 loader 而定) 指定纹理目录。
339
+ 4. **Draco 解码器缺失**: 加载压缩的 GLTF 失败。
340
+ - **解决**: `loadGltf` 内部集成了 DracoLoader,通常不需要额外配置。如果报错,检查构建配置或网络是否拦截了 wasm 文件。
341
+
342
+ ## Related
343
+
344
+ * [model.md](./model.md): 关于 Five 内部模型加载机制的说明。
345
+
346
+ ---
347
+
348
+ ```yaml
349
+ tags: [loader, gltf, ply, splat, fbx, external-model]
350
+ ```
@@ -0,0 +1,140 @@
1
+ # Resource Loading Progress (资源加载进度)
2
+
3
+ - **Summary**: 监控 3D 模型与全景图的加载状态和实时进度。
4
+ - **Schema**: `Model`, `Tile`, `PanoTextureEvent`
5
+ - **Concepts**: Loaded vs Refined, Level of Detail (LOD), Panorama Lifecycle
6
+ - **Configuration**: `minLevelOfDetail`, `maxScreenSpaceError`
7
+ - **Examples**: 状态检查、进度监听、生命周期事件
8
+
9
+ ## Schema
10
+
11
+ > **Definition**: [Model](../../five/model/index.d.ts), [Tile](../../five/model/tile3d/tile.d.ts), [PanoTextureEvent](../../five/controllers/events.d.ts)
12
+
13
+ ## Concepts
14
+
15
+ 在 3D Tiles 模型(如 Five 的 Work 模型)中,"加载" 分为两个阶段:
16
+
17
+ 1. **Loaded (初步加载完成)**:
18
+ * 表示模型已经加载了足够用于显示的**基础**数据。
19
+ * 受 `minLevelOfDetail` 参数影响。只有当满足最小 LOD 要求的 Tile 加载完毕后,`loaded` 才会变为 `true`。
20
+ * 通常作为 "首屏加载完成" 的标志,此时模型可能还比较模糊。
21
+
22
+ 2. **Refined (细化完成)**:
23
+ * 表示模型在当前视角下,已经加载了所有必要的**高清**数据,达到了最佳渲染效果。
24
+ * 受 `maxScreenSpaceError` 参数影响。该值越小,需要的 Tile 精度越高,细化完成所需的时间越长。
25
+ * 这是一个动态状态。当相机移动时,可能会因为需要加载新的高清分块而从 `refined: true` 变为 `false`。
26
+
27
+ ## Instance Properties
28
+
29
+ ### Model Status
30
+
31
+ | Property | Type | Description |
32
+ | :--- | :--- | :--- |
33
+ | `five.model.loaded` | `boolean` | 检查模型是否已完成初步加载 (Loaded)。 |
34
+ | `five.model.refined` | `boolean` | 检查模型是否已完成细化 (Refined)。 |
35
+ | `five.model.refineProgress` | `[number, number]` | 细化进度元组 `[current, total]` (已加载/总需加载)。 |
36
+
37
+ ## Examples
38
+
39
+ ### 1. Model Loading (模型加载)
40
+
41
+ #### 检查当前状态 (State Checking)
42
+
43
+ ```ts
44
+ if (five.model.loaded) {
45
+ console.log("Model is ready (basic data loaded)!");
46
+ }
47
+
48
+ if (five.model.refined) {
49
+ console.log("Model is fully refined (high-res data loaded)!");
50
+ }
51
+ ```
52
+
53
+ #### 监控细化进度 (Refine Progress)
54
+
55
+ `five.model.refineProgress` 提供了当前视图下模型细化的整体进度。
56
+
57
+ ```ts
58
+ const [current, total] = five.model.refineProgress;
59
+ console.log(`Model Refine Progress: ${current} / ${total}`);
60
+
61
+ if (current === total && total > 0) {
62
+ console.log("Model is fully refined for current view.");
63
+ }
64
+ ```
65
+
66
+ #### 监听加载完成事件
67
+
68
+ ```ts
69
+ five.on("modelLoaded", () => {
70
+ console.log("Model has been loaded.");
71
+ });
72
+ ```
73
+
74
+ #### (Advanced) Tile 级别进度
75
+
76
+ 对于 `3dtiles` 类型的模型,你可以访问具体的 Tile 对象来查看进度。
77
+
78
+ ```ts
79
+ // 仅示例,通常在调试或特定渲染逻辑中使用
80
+ const progress = tile.content.loadProgress; // [0, 1]
81
+ ```
82
+
83
+ #### Tile Lifecycle Monitoring (Tile 生命周期监控)
84
+
85
+ 监控单个 Tile 的加载与卸载事件,用于更精细的调试或资源统计。
86
+
87
+ ```ts
88
+ five.on("model.tileLoad", (tile) => {
89
+ console.log(`Tile loaded: ${tile.debugLabel}, Size: ${tile.content.byteLength}`);
90
+ });
91
+
92
+ five.on("model.tileUnload", (tile) => {
93
+ console.log(`Tile unloaded: ${tile.debugLabel}`);
94
+ });
95
+ ```
96
+
97
+ ### 2. Panorama Loading (全景图加载)
98
+
99
+ 全景图通常在用户移动到某个点位时按需加载。
100
+
101
+ #### 监听加载进度
102
+
103
+ 使用 `pano.texture.progress` 事件获取当前全景图的加载进度。
104
+
105
+ ```ts
106
+ five.on("pano.texture.progress", (event) => {
107
+ const { progress, pano } = event;
108
+ console.log(`Pano ${pano.panoIndex} loading: ${(progress * 100).toFixed(1)}%`);
109
+ });
110
+ ```
111
+
112
+ #### 生命周期事件
113
+
114
+ * **`pano.texture.load`**: 开始加载。
115
+ * **`pano.texture.success`**: 加载完成。
116
+ * **`pano.texture.error`**: 加载失败。
117
+
118
+ ```ts
119
+ five.on("pano.texture.load", (event) => {
120
+ console.log(`Started loading pano ${event.pano.panoIndex}`);
121
+ });
122
+
123
+ five.on("pano.texture.success", (event) => {
124
+ console.log(`Finished loading pano ${event.pano.panoIndex}`);
125
+ });
126
+
127
+ five.on("pano.texture.error", (event) => {
128
+ console.error(`Failed to load pano ${event.pano.panoIndex}`, event.error);
129
+ });
130
+ ```
131
+
132
+ ## Related
133
+
134
+ * [Five Class](../api.md): Five 核心类 API 索引。
135
+
136
+ ---
137
+
138
+ ```yaml
139
+ tags: [loading, progress, refined, loaded, event]
140
+ ```
@@ -0,0 +1,151 @@
1
+ # Material Parameters (材质参数)
2
+
3
+ - **Summary**: 配置 3D 模型与全景图过渡的视觉表现、渲染样式及特效。
4
+ - **Schema**: 对应 `ParameterMaterialValue` 接口,定义了材质、点云、楼层等外观属性。
5
+ - **Concepts**: Transparency (透明度), Point Cloud (点云), Floor Style (楼层样式), PBR (物理渲染)。
6
+ - **Configuration**: 包含透明度、混合模式、点云大小/形状、阴影设置等详细参数。
7
+ - **Examples**: 模型透明度调整、点云样式定制。
8
+
9
+ ## Schema
10
+
11
+ > **Definition**: [ParameterMaterialValue](../../five/model/parameter.d.ts)
12
+
13
+ 以下是 `ParameterMaterialValue` 的 TypeScript 定义摘要:
14
+
15
+ ```typescript
16
+ export interface ParameterMaterialValue {
17
+ /** 模型整体透明度 [0, 1] */
18
+ opacity: number;
19
+ /** 点云基础缩放比例 */
20
+ pointScale: number;
21
+ /** 点云大小绘制方式 ('ATTENUATION' | 'FIXED') */
22
+ pointSize: PBMPointSize;
23
+ /** 楼层显示样式 ('OPACITY' | 'VISIBILITY') */
24
+ floorStyle: PBMFloorStyle;
25
+ // ... 更多字段见下方配置表
26
+ }
27
+ ```
28
+
29
+ ## Concepts
30
+
31
+ ### 1. Transparency & Blending (透明度与混合)
32
+
33
+ 材质系统提供了两种维度的透明度控制:
34
+ * **Opacity (`opacity`)**: 控制模型整体的不透明度 (0-1)。
35
+ * **Model Alpha (`modelAlpha`)**: 控制纹理混合的权重。
36
+ * `0`: 仅显示模型自带的 UV 纹理(通常是颜色单一的白模或人工烘焙的纹理)。
37
+ * `1`: 仅显示从全景图投影到模型上的纹理(真实感强,但可能存在投影误差)。
38
+ * `0.5`: 两者混合。
39
+
40
+ ### 2. Point Cloud Rendering (点云渲染)
41
+
42
+ Five 支持高性能的点云渲染(PBM),并提供灵活的样式配置:
43
+ * **Size Attenuation**: 通过 `pointSize: 'ATTENUATION'` 开启近大远小的透视效果,增强空间感。
44
+ * **Pixel Limits**: 通过 `pointMinPixel` 和 `pointMaxPixel` 限制点在屏幕上的最小/最大像素尺寸,防止远处点消失或近处点过大遮挡视线。
45
+
46
+ ### 3. Floor Management (楼层管理)
47
+
48
+ 对于多楼层场景,可以通过参数控制楼层的显示策略:
49
+ * **Floor Style (`floorStyle`)**: 控制非当前楼层的显示方式(如 `OPACITY` 半透明、`VISIBILITY` 隐藏等)。
50
+ * **Shown Floor (`shownFloorIndex`)**: 指定当前高亮显示的楼层索引。
51
+
52
+ ### 4. Vertex Marks & Semantic Filtering (顶点标记与语义过滤)
53
+
54
+ `vertexMarks` 是一个**全局开关**,用于控制是否启用模型顶点上的语义标记(`_feature_id_rsmask`)逻辑。
55
+
56
+ * **机制**: 模型顶点预置了 `_feature_id_rsmask` 属性,不同的值代表不同的语义部分。
57
+ * **当前支持**: 目前主要支持 `_feature_id_rsmask=1`(通常标记为天花板/房顶)。
58
+ * 当 `vertexMarks` 开启时,标记为 `1` 的顶点部分会在特定视角(如俯视)下自动隐藏,实现“开盖”效果,优化室内布局观测体验。
59
+ * **未来扩展**: 该机制设计支持更多标记值,未来可能用于控制其他特定模型部件的显示效果。
60
+
61
+ ## Configuration
62
+
63
+ 以下表格列出了控制材质与外观的可用参数,按使用频率和场景分类。
64
+
65
+ ### Common Configuration (常用配置)
66
+
67
+ | Parameter | Type | Default | Description |
68
+ | :--- | :--- | :--- | :--- |
69
+ | `opacity` | `number` | `1.0` | 模型整体透明度 [0, 1]。0 为完全透明,1 为完全不透明。 |
70
+ | `pointScale` | `number` | `0.02` | 点的基础缩放比例(控制点的大小)。 |
71
+ | `pointSize` | `PBMPointSize` | `'ATTENUATION'` | 点云大小绘制方式。<br>`'ATTENUATION'`: 随距离衰减(近大远小);<br>`'FIXED'`: 固定像素大小。 |
72
+ | `pointShape` | `PBMPointShape` | `'CIRCLE'` | 点云形状。<br>`'CIRCLE'`: 圆形;<br>`'SQUARE'`:方形。 |
73
+ | `pointBack` | `PBMPointBack` | `'DARK'` | 点云背面绘制方式。 |
74
+ | `pointMinPixel` | `number` | `0` | 点云最小像素尺寸。 |
75
+ | `pointMaxPixel` | `number` | `40` | 点云最大像素尺寸。 |
76
+ | `pointAppearAnimation` | `boolean` | `true` | 是否开启点云出现动画。 |
77
+ | `vertexMarks` | `boolean` | `true` | 是否显示/生效标注。 |
78
+ | `brightness` | `number` | `1.0` | 场景亮度倍数。 |
79
+ | `floorStyle` | `PBMFloorStyle` | `'OPACITY'` | 楼层显示样式。 |
80
+ | `shownFloorIndex` | `number` | `-1` | 当前显示的楼层索引。`-1` 表示显示所有楼层。 |
81
+ | `castShadow` | `boolean` | `false` | 模型是否产生阴影。 |
82
+ | `receiveShadow` | `boolean` | `false` | 模型是否接收阴影。 |
83
+ | `useAddBlend` | `boolean` | `false` | 是否使用半透明叠加渲染。 |
84
+ | `customShaders` | `PBMCustomShader[]` | `[]` | 自定义 Shader 配置。 |
85
+ | `clippers` | `PBMClipperParameter[]` | `[]` | 模型裁切参数。 |
86
+ | `boundingBox` | `THREE.Box3` | `Infinity` | 模型包围盒。 |
87
+
88
+ ### Advanced Appearance (进阶外观配置)
89
+
90
+ > 这些参数较少使用,仅在需要精细调整特殊视觉效果时修改。
91
+
92
+ | Parameter | Type | Default | Description |
93
+ | :--- | :--- | :--- | :--- |
94
+ | `colorSaturation` | `number` | `0.0` | 饱和度调整值。 |
95
+ | `colorBrightness` | `number` | `0.0` | 亮度调整值(与 `brightness` 叠加)。 |
96
+ | `colorStyle` | `PBMColorStyle` | `'RGB'` | 颜色显示样式。 |
97
+ | `constantColor` | `THREE.Vector3` | `(0.6, 0.6, 0.6)` | 模型纯色模式下的颜色值。 |
98
+ | `outlineGain` | `number` | `0.0` | 轮廓线增益。 |
99
+ | `distanceGain` | `number` | `0.0` | 距离增益。 |
100
+ | `gsSHDegree` | `number` | `0` | 3D Gaussian Splatting 的球谐阶数。 |
101
+
102
+ ### Internal & Low-Level (内部与底层配置)
103
+
104
+ > **注意**: 以下参数主要用于引擎内部状态同步或特定底层逻辑,**不建议开发者手动修改**,以免引起渲染异常。
105
+
106
+ | Parameter | Type | Default | Description |
107
+ | :--- | :--- | :--- | :--- |
108
+ | `modelAlpha` | `number` | `1.0` | 模型纹理混合系数。通常由 Five 内部模式切换控制。 |
109
+ | `useHQWeight` | `boolean` | `false` | 是否使用高质量权重计算(影响渲染质量)。 |
110
+ | `useHQDepth` | `boolean` | `false` | 是否使用高质量深度遮罩。 |
111
+ | `progress` | `number` | `0` | 全景图混合进度。 |
112
+ | `transition` | `PBMTransition` | `'FADE'` | 全景图过渡混合模式。 |
113
+ | `gradientTexture` | `THREE.Texture` | `default` | 高程着色材质纹理。 |
114
+ | `pano0` | `PBMPanoPicture` | `null` | 起始点全景图信息。 |
115
+ | `pano1` | `PBMPanoPicture` | `null` | 结束点全景图信息。 |
116
+ | `pano0Depth` | `PBMPanoDepth` | `null` | 起始点深度信息。 |
117
+ | `pano1Depth` | `PBMPanoDepth` | `null` | 结束点深度信息。 |
118
+ | `refinedScreen` | `PBMRefinedScreen` | `null` | 细化瓦片的屏幕渲染配置。 |
119
+
120
+ ## Examples
121
+
122
+ ### 1. Adjusting Model Transparency and Style (调整模型透明度与样式)
123
+
124
+ ```typescript
125
+ five.model.set({
126
+ opacity: 0.5, // Make model semi-transparent (半透明)
127
+ modelAlpha: 0.0, // Show original UV texture only (仅显示原始UV贴图)
128
+ floorStyle: 'wireframe' // Wireframe mode (线框模式)
129
+ });
130
+ ```
131
+
132
+ ### 2. Configuring Point Cloud Appearance (配置点云外观)
133
+
134
+ ```typescript
135
+ five.model.set({
136
+ pointSize: 'ATTENUATION', // 大小随距离衰减
137
+ pointScale: 0.05, // 基础大小
138
+ pointMaxPixel: 20 // 最大像素限制
139
+ });
140
+ ```
141
+
142
+ ## Related
143
+
144
+ * [Parameter](./parameter.md): 配置系统入口与继承逻辑。
145
+ * [3DTile Params](./3dtile.md): 性能与加载相关参数。
146
+
147
+ ---
148
+
149
+ ```yaml
150
+ tags: [material, appearance, pointcloud, parameter, roof, ceiling, config]
151
+ ```