babylonjs-loaders 8.39.2 → 8.40.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.
@@ -6649,7 +6649,7 @@ export * from "babylonjs-loaders/STL/stlFileLoader";
6649
6649
  declare module "babylonjs-loaders/SPLAT/spz" {
6650
6650
  import { Scene } from "babylonjs/scene";
6651
6651
  import { SPLATLoadingOptions } from "babylonjs-loaders/SPLAT/splatLoadingOptions";
6652
- import { IParsedPLY } from "babylonjs-loaders/SPLAT/splatDefs";
6652
+ import { IParsedSplat } from "babylonjs-loaders/SPLAT/splatDefs";
6653
6653
  /**
6654
6654
  * Parses SPZ data and returns a promise resolving to an IParsedPLY object.
6655
6655
  * @param data The ArrayBuffer containing SPZ data.
@@ -6657,7 +6657,7 @@ import { IParsedPLY } from "babylonjs-loaders/SPLAT/splatDefs";
6657
6657
  * @param loadingOptions Options for loading Gaussian Splatting files.
6658
6658
  * @returns A promise resolving to the parsed SPZ data.
6659
6659
  */
6660
- export function ParseSpz(data: ArrayBuffer, scene: Scene, loadingOptions: SPLATLoadingOptions): Promise<IParsedPLY>;
6660
+ export function ParseSpz(data: ArrayBuffer, scene: Scene, loadingOptions: SPLATLoadingOptions): Promise<IParsedSplat>;
6661
6661
 
6662
6662
  }
6663
6663
  declare module "babylonjs-loaders/SPLAT/splatLoadingOptions" {
@@ -6684,6 +6684,10 @@ export type SPLATLoadingOptions = {
6684
6684
 
6685
6685
  */
6686
6686
  fflate?: unknown;
6687
+ /**
6688
+ * Disable automatic camera limits from being applied if they exist in the splat file
6689
+ */
6690
+ disableAutoCameraLimits?: boolean;
6687
6691
  };
6688
6692
 
6689
6693
  }
@@ -6780,6 +6784,12 @@ export class SPLATFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlu
6780
6784
  private static _BuildMesh;
6781
6785
  private _unzipWithFFlateAsync;
6782
6786
  private _parseAsync;
6787
+ /**
6788
+ * Applies camera limits based on parsed meta data
6789
+ * @param meta parsed splat meta data
6790
+ * @param scene
6791
+ */
6792
+ private applyAutoCameraLimits;
6783
6793
  /**
6784
6794
  * Load into an asset container.
6785
6795
  * @param scene The scene to load into
@@ -6820,7 +6830,7 @@ export enum Mode {
6820
6830
  /**
6821
6831
  * A parsed buffer and how to use it
6822
6832
  */
6823
- export interface IParsedPLY {
6833
+ export interface IParsedSplat {
6824
6834
  data: ArrayBuffer;
6825
6835
  mode: Mode;
6826
6836
  faces?: number[];
@@ -6829,12 +6839,16 @@ export interface IParsedPLY {
6829
6839
  trainedWithAntialiasing?: boolean;
6830
6840
  compressed?: boolean;
6831
6841
  rawSplat?: boolean;
6842
+ safeOrbitCameraRadiusMin?: number;
6843
+ safeOrbitCameraElevationMinMax?: [number, number];
6844
+ upAxis?: "X" | "Y" | "Z";
6845
+ chirality?: "LeftHanded" | "RightHanded";
6832
6846
  }
6833
6847
 
6834
6848
  }
6835
6849
  declare module "babylonjs-loaders/SPLAT/sog" {
6836
6850
  import { Scene } from "babylonjs/scene";
6837
- import { IParsedPLY } from "babylonjs-loaders/SPLAT/splatDefs";
6851
+ import { IParsedSplat } from "babylonjs-loaders/SPLAT/splatDefs";
6838
6852
  /**
6839
6853
  * Definition of a SOG data file
6840
6854
  */
@@ -6916,7 +6930,7 @@ export interface SOGRootData {
6916
6930
  * @param scene The Babylon.js scene
6917
6931
  * @returns Parsed data
6918
6932
  */
6919
- export function ParseSogMeta(dataOrFiles: SOGRootData | Map<string, Uint8Array>, rootUrl: string, scene: Scene): Promise<IParsedPLY>;
6933
+ export function ParseSogMeta(dataOrFiles: SOGRootData | Map<string, Uint8Array>, rootUrl: string, scene: Scene): Promise<IParsedSplat>;
6920
6934
 
6921
6935
  }
6922
6936
  declare module "babylonjs-loaders/SPLAT/index" {
@@ -13990,7 +14004,7 @@ declare module BABYLON {
13990
14004
  * @param loadingOptions Options for loading Gaussian Splatting files.
13991
14005
  * @returns A promise resolving to the parsed SPZ data.
13992
14006
  */
13993
- export function ParseSpz(data: ArrayBuffer, scene: Scene, loadingOptions: SPLATLoadingOptions): Promise<IParsedPLY>;
14007
+ export function ParseSpz(data: ArrayBuffer, scene: Scene, loadingOptions: SPLATLoadingOptions): Promise<IParsedSplat>;
13994
14008
 
13995
14009
 
13996
14010
  /**
@@ -14016,6 +14030,10 @@ declare module BABYLON {
14016
14030
  * @example import * as fflate from 'fflate';
14017
14031
  */
14018
14032
  fflate?: unknown;
14033
+ /**
14034
+ * Disable automatic camera limits from being applied if they exist in the splat file
14035
+ */
14036
+ disableAutoCameraLimits?: boolean;
14019
14037
  };
14020
14038
 
14021
14039
 
@@ -14103,6 +14121,12 @@ declare module BABYLON {
14103
14121
  private static _BuildMesh;
14104
14122
  private _unzipWithFFlateAsync;
14105
14123
  private _parseAsync;
14124
+ /**
14125
+ * Applies camera limits based on parsed meta data
14126
+ * @param meta parsed splat meta data
14127
+ * @param scene
14128
+ */
14129
+ private applyAutoCameraLimits;
14106
14130
  /**
14107
14131
  * Load into an asset container.
14108
14132
  * @param scene The scene to load into
@@ -14142,7 +14166,7 @@ declare module BABYLON {
14142
14166
  /**
14143
14167
  * A parsed buffer and how to use it
14144
14168
  */
14145
- export interface IParsedPLY {
14169
+ export interface IParsedSplat {
14146
14170
  data: ArrayBuffer;
14147
14171
  mode: Mode;
14148
14172
  faces?: number[];
@@ -14151,6 +14175,10 @@ declare module BABYLON {
14151
14175
  trainedWithAntialiasing?: boolean;
14152
14176
  compressed?: boolean;
14153
14177
  rawSplat?: boolean;
14178
+ safeOrbitCameraRadiusMin?: number;
14179
+ safeOrbitCameraElevationMinMax?: [number, number];
14180
+ upAxis?: "X" | "Y" | "Z";
14181
+ chirality?: "LeftHanded" | "RightHanded";
14154
14182
  }
14155
14183
 
14156
14184
 
@@ -14235,7 +14263,7 @@ declare module BABYLON {
14235
14263
  * @param scene The Babylon.js scene
14236
14264
  * @returns Parsed data
14237
14265
  */
14238
- export function ParseSogMeta(dataOrFiles: SOGRootData | Map<string, Uint8Array>, rootUrl: string, scene: Scene): Promise<IParsedPLY>;
14266
+ export function ParseSogMeta(dataOrFiles: SOGRootData | Map<string, Uint8Array>, rootUrl: string, scene: Scene): Promise<IParsedSplat>;
14239
14267
 
14240
14268
 
14241
14269
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "8.39.2",
3
+ "version": "8.40.0",
4
4
  "main": "babylonjs.loaders.min.js",
5
5
  "types": "babylonjs.loaders.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.loaders.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^8.39.2",
19
- "babylonjs-gltf2interface": "^8.39.2"
18
+ "babylonjs": "^8.40.0",
19
+ "babylonjs-gltf2interface": "^8.40.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",