@d5techs/3dgs-lib 1.4.21 → 1.4.22
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/dist/3dgs-lib.cjs +98 -72
- package/dist/3dgs-lib.cjs.map +1 -1
- package/dist/3dgs-lib.js +98 -72
- package/dist/3dgs-lib.js.map +1 -1
- package/dist/gs/SOGEncoder.d.ts +4 -4
- package/package.json +1 -1
package/dist/gs/SOGEncoder.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* SOGEncoder - 将 CompactSplatData 编码为 SOG v2 格式
|
|
3
3
|
*
|
|
4
|
-
* 完整移植 supersplat 的 SOG 导出流程:
|
|
4
|
+
* 完整移植 supersplat / PlayCanvas splat-transform 的 SOG 导出流程:
|
|
5
5
|
* 0. 坐标系逆变换(含 SH Wigner D-矩阵逆变换)
|
|
6
6
|
* 1. Morton 码空间排序
|
|
7
7
|
* 2. 位置:对称对数变换 → 16-bit 量化 → 拆分为 lower/upper 两张 WebP
|
|
8
|
-
* 3. 缩放:
|
|
8
|
+
* 3. 缩放:DP 最优 256-codebook → 量化 → WebP
|
|
9
9
|
* 4. 四元数:smallest-three 编码 → WebP
|
|
10
|
-
* 5. DC 颜色 + 不透明度:codebook 量化 → WebP
|
|
11
|
-
* 6. 高阶 SH (L1-L3):k-means palette + codebook → centroids/labels WebP
|
|
10
|
+
* 5. DC 颜色 + 不透明度:DP codebook 量化 → WebP
|
|
11
|
+
* 6. 高阶 SH (L1-L3):k-means palette + DP codebook → centroids/labels WebP
|
|
12
12
|
*/
|
|
13
13
|
import type { CompactSplatData, CoordinateSystem } from './PLYLoaderMobile';
|
|
14
14
|
export interface SOGEncodeOptions {
|