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.
@@ -6464,7 +6464,7 @@ declare module BABYLON {
6464
6464
  * @param loadingOptions Options for loading Gaussian Splatting files.
6465
6465
  * @returns A promise resolving to the parsed SPZ data.
6466
6466
  */
6467
- export function ParseSpz(data: ArrayBuffer, scene: Scene, loadingOptions: SPLATLoadingOptions): Promise<IParsedPLY>;
6467
+ export function ParseSpz(data: ArrayBuffer, scene: Scene, loadingOptions: SPLATLoadingOptions): Promise<IParsedSplat>;
6468
6468
 
6469
6469
 
6470
6470
  /**
@@ -6490,6 +6490,10 @@ declare module BABYLON {
6490
6490
  * @example import * as fflate from 'fflate';
6491
6491
  */
6492
6492
  fflate?: unknown;
6493
+ /**
6494
+ * Disable automatic camera limits from being applied if they exist in the splat file
6495
+ */
6496
+ disableAutoCameraLimits?: boolean;
6493
6497
  };
6494
6498
 
6495
6499
 
@@ -6577,6 +6581,12 @@ declare module BABYLON {
6577
6581
  private static _BuildMesh;
6578
6582
  private _unzipWithFFlateAsync;
6579
6583
  private _parseAsync;
6584
+ /**
6585
+ * Applies camera limits based on parsed meta data
6586
+ * @param meta parsed splat meta data
6587
+ * @param scene
6588
+ */
6589
+ private applyAutoCameraLimits;
6580
6590
  /**
6581
6591
  * Load into an asset container.
6582
6592
  * @param scene The scene to load into
@@ -6616,7 +6626,7 @@ declare module BABYLON {
6616
6626
  /**
6617
6627
  * A parsed buffer and how to use it
6618
6628
  */
6619
- export interface IParsedPLY {
6629
+ export interface IParsedSplat {
6620
6630
  data: ArrayBuffer;
6621
6631
  mode: Mode;
6622
6632
  faces?: number[];
@@ -6625,6 +6635,10 @@ declare module BABYLON {
6625
6635
  trainedWithAntialiasing?: boolean;
6626
6636
  compressed?: boolean;
6627
6637
  rawSplat?: boolean;
6638
+ safeOrbitCameraRadiusMin?: number;
6639
+ safeOrbitCameraElevationMinMax?: [number, number];
6640
+ upAxis?: "X" | "Y" | "Z";
6641
+ chirality?: "LeftHanded" | "RightHanded";
6628
6642
  }
6629
6643
 
6630
6644
 
@@ -6709,7 +6723,7 @@ declare module BABYLON {
6709
6723
  * @param scene The Babylon.js scene
6710
6724
  * @returns Parsed data
6711
6725
  */
6712
- export function ParseSogMeta(dataOrFiles: SOGRootData | Map<string, Uint8Array>, rootUrl: string, scene: Scene): Promise<IParsedPLY>;
6726
+ export function ParseSogMeta(dataOrFiles: SOGRootData | Map<string, Uint8Array>, rootUrl: string, scene: Scene): Promise<IParsedSplat>;
6713
6727
 
6714
6728
 
6715
6729