babylonjs-loaders 9.17.0 → 9.18.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.
|
@@ -8284,9 +8284,9 @@ export function ParseSpz(data: ArrayBuffer, scene: Scene, _loadingOptions: SPLAT
|
|
|
8284
8284
|
* @param url URL to the spz WASM ES module (its default export should be a factory function)
|
|
8285
8285
|
* @returns A promise resolving to the initialized spz WASM module
|
|
8286
8286
|
*/
|
|
8287
|
-
export function GetSpzModule(url: string): Promise<
|
|
8287
|
+
export function GetSpzModule(url: string): Promise<any>;
|
|
8288
8288
|
/**
|
|
8289
|
-
* Converts a
|
|
8289
|
+
* Converts a any object (from the spz WASM module) into the packed 32-byte-per-splat
|
|
8290
8290
|
* ArrayBuffer and SH texture arrays expected by GaussianSplattingMeshBase.updateData.
|
|
8291
8291
|
*
|
|
8292
8292
|
* Packed layout per splat (32 bytes):
|
|
@@ -8298,15 +8298,15 @@ export function GetSpzModule(url: string): Promise<SpzModule>;
|
|
|
8298
8298
|
* SH coefficients from the cloud (Float32, range ~[-1,1]) are encoded to bytes
|
|
8299
8299
|
* using the SPZ convention (load-spz.cc unquantizeSH): byte = coeff * 128 + 128.
|
|
8300
8300
|
*
|
|
8301
|
-
* @param cloud The
|
|
8301
|
+
* @param cloud The any returned by spz.loadSpzFromBuffer
|
|
8302
8302
|
* @param scene The Babylon.js scene (used to query maxTextureSize for SH textures)
|
|
8303
8303
|
* @param useCoroutine If true, yields periodically to avoid blocking the main thread
|
|
8304
8304
|
* @returns A coroutine returning an IParsedSplat ready to be passed to updateData
|
|
8305
8305
|
*/
|
|
8306
|
-
export function ConvertSpzToSplat(cloud:
|
|
8306
|
+
export function ConvertSpzToSplat(cloud: any, scene: Scene, useCoroutine?: boolean): Coroutine<IParsedSplat>;
|
|
8307
8307
|
/**
|
|
8308
8308
|
* Async version of ConvertSpzToSplat that yields periodically to avoid blocking the main thread.
|
|
8309
|
-
* @param cloud The
|
|
8309
|
+
* @param cloud The any returned by spz.loadSpzFromBuffer
|
|
8310
8310
|
* @param scene The Babylon.js scene
|
|
8311
8311
|
* @returns A promise resolving to an IParsedSplat
|
|
8312
8312
|
*/
|
|
@@ -8823,7 +8823,11 @@ export class GaussianSplattingWorkBuffer {
|
|
|
8823
8823
|
*/
|
|
8824
8824
|
constructor(scene: Scene, capacity: number);
|
|
8825
8825
|
/**
|
|
8826
|
-
* Creates a 4-attachment MRT (centers F32 / covA
|
|
8826
|
+
* Creates a 4-attachment MRT (centers F32 / covA / covB / colors U8) sized to the work buffer. covA/covB
|
|
8827
|
+
* use HALF_FLOAT when the engine can render to it, matching the precision the non-streamed
|
|
8828
|
+
* GaussianSplattingMesh path already uses for these same two textures (see
|
|
8829
|
+
* `gaussianSplattingMeshBase.pure.ts`'s `createTextureFromDataF16` covA/covB textures); centers stays F32
|
|
8830
|
+
* and colors stays U8 in both paths.
|
|
8827
8831
|
* @param name MRT and attachment base name
|
|
8828
8832
|
* @param disableClear when true, clearing is suppressed so renders accumulate (the decode buffer); when
|
|
8829
8833
|
* false the MRT clears to zero on each render (the temporary relayout buffer, so gaps stay zeroed)
|
|
@@ -10373,6 +10377,7 @@ export class FBXFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
|
|
|
10373
10377
|
private _setAssetContainer;
|
|
10374
10378
|
private static _computeFBXAxisConversionMatrix;
|
|
10375
10379
|
private _buildModel;
|
|
10380
|
+
private _linkSkeletonsToTransformNodes;
|
|
10376
10381
|
private static _modelSubtreeMatchesNameFilter;
|
|
10377
10382
|
private static _applyModelMetadata;
|
|
10378
10383
|
private _createMesh;
|
|
@@ -19824,9 +19829,9 @@ declare namespace BABYLON {
|
|
|
19824
19829
|
* @param url URL to the spz WASM ES module (its default export should be a factory function)
|
|
19825
19830
|
* @returns A promise resolving to the initialized spz WASM module
|
|
19826
19831
|
*/
|
|
19827
|
-
export function GetSpzModule(url: string): Promise<
|
|
19832
|
+
export function GetSpzModule(url: string): Promise<any>;
|
|
19828
19833
|
/**
|
|
19829
|
-
* Converts a
|
|
19834
|
+
* Converts a any object (from the spz WASM module) into the packed 32-byte-per-splat
|
|
19830
19835
|
* ArrayBuffer and SH texture arrays expected by GaussianSplattingMeshBase.updateData.
|
|
19831
19836
|
*
|
|
19832
19837
|
* Packed layout per splat (32 bytes):
|
|
@@ -19838,15 +19843,15 @@ declare namespace BABYLON {
|
|
|
19838
19843
|
* SH coefficients from the cloud (Float32, range ~[-1,1]) are encoded to bytes
|
|
19839
19844
|
* using the SPZ convention (load-spz.cc unquantizeSH): byte = coeff * 128 + 128.
|
|
19840
19845
|
*
|
|
19841
|
-
* @param cloud The
|
|
19846
|
+
* @param cloud The any returned by spz.loadSpzFromBuffer
|
|
19842
19847
|
* @param scene The Babylon.js scene (used to query maxTextureSize for SH textures)
|
|
19843
19848
|
* @param useCoroutine If true, yields periodically to avoid blocking the main thread
|
|
19844
19849
|
* @returns A coroutine returning an IParsedSplat ready to be passed to updateData
|
|
19845
19850
|
*/
|
|
19846
|
-
export function ConvertSpzToSplat(cloud:
|
|
19851
|
+
export function ConvertSpzToSplat(cloud: any, scene: Scene, useCoroutine?: boolean): Coroutine<IParsedSplat>;
|
|
19847
19852
|
/**
|
|
19848
19853
|
* Async version of ConvertSpzToSplat that yields periodically to avoid blocking the main thread.
|
|
19849
|
-
* @param cloud The
|
|
19854
|
+
* @param cloud The any returned by spz.loadSpzFromBuffer
|
|
19850
19855
|
* @param scene The Babylon.js scene
|
|
19851
19856
|
* @returns A promise resolving to an IParsedSplat
|
|
19852
19857
|
*/
|
|
@@ -20321,7 +20326,11 @@ declare namespace BABYLON {
|
|
|
20321
20326
|
*/
|
|
20322
20327
|
constructor(scene: Scene, capacity: number);
|
|
20323
20328
|
/**
|
|
20324
|
-
* Creates a 4-attachment MRT (centers F32 / covA
|
|
20329
|
+
* Creates a 4-attachment MRT (centers F32 / covA / covB / colors U8) sized to the work buffer. covA/covB
|
|
20330
|
+
* use HALF_FLOAT when the engine can render to it, matching the precision the non-streamed
|
|
20331
|
+
* GaussianSplattingMesh path already uses for these same two textures (see
|
|
20332
|
+
* `gaussianSplattingMeshBase.pure.ts`'s `createTextureFromDataF16` covA/covB textures); centers stays F32
|
|
20333
|
+
* and colors stays U8 in both paths.
|
|
20325
20334
|
* @param name MRT and attachment base name
|
|
20326
20335
|
* @param disableClear when true, clearing is suppressed so renders accumulate (the decode buffer); when
|
|
20327
20336
|
* false the MRT clears to zero on each render (the temporary relayout buffer, so gaps stay zeroed)
|
|
@@ -21803,6 +21812,7 @@ declare namespace BABYLON {
|
|
|
21803
21812
|
private _setAssetContainer;
|
|
21804
21813
|
private static _computeFBXAxisConversionMatrix;
|
|
21805
21814
|
private _buildModel;
|
|
21815
|
+
private _linkSkeletonsToTransformNodes;
|
|
21806
21816
|
private static _modelSubtreeMatchesNameFilter;
|
|
21807
21817
|
private static _applyModelMetadata;
|
|
21808
21818
|
private _createMesh;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-loaders",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.18.0",
|
|
4
4
|
"main": "babylonjs.loaders.min.js",
|
|
5
5
|
"types": "babylonjs.loaders.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"test:escheck": "es-check es6 ./babylonjs.loaders.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"babylonjs": "9.
|
|
20
|
-
"babylonjs-gltf2interface": "9.
|
|
19
|
+
"babylonjs": "9.18.0",
|
|
20
|
+
"babylonjs-gltf2interface": "9.18.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@dev/build-tools": "1.0.0",
|