3dtiles-inspector 0.2.13 → 0.2.15
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/CHANGELOG.md +25 -0
- package/README.md +11 -4
- package/dist/inspector-assets/viewer/app.js +4673 -787
- package/package.json +3 -3
- package/src/server/splatCrop/gaussianPrimitives.js +37 -7
- package/src/server/splatCrop/index.js +10 -2
- package/src/server/splatCrop/normalize.js +43 -6
- package/src/server/splatCrop/traversal.js +162 -0
- package/src/server/splatCrop/worker.js +43 -8
- package/src/server/splatCrop/workerPool.js +2 -0
- package/src/server/viewerHtml.js +54 -10
- package/src/viewer/app.js +16 -1
- package/src/viewer/dom/cropUi.js +50 -0
- package/src/viewer/dom/elements.js +8 -0
- package/src/viewer/dom/events.js +63 -0
- package/src/viewer/scene/cameraController.js +18 -3
- package/src/viewer/screenSelection/cropController.js +578 -6
- package/src/viewer/screenSelection/index.js +15 -2
- package/src/viewer/screenSelection/sdf.js +51 -6
- package/src/viewer/screenSelection/state.js +1 -0
- package/src/viewer/transform/geoCamera.js +1 -1
- package/src/viewer/transform/transformModeController.js +19 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,31 @@ The format is based on Keep a Changelog and this project follows Semantic Versio
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.2.15] - 2026-06-23
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Added a single crop-sphere selection for Gaussian splats, with radius
|
|
14
|
+
adjustment, transform controls, preview highlighting, confirmed outside
|
|
15
|
+
hiding, center-point local-coordinate sphere/transform axes, and save-time
|
|
16
|
+
removal of splats outside the sphere.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Changed camera picking on Gaussian splats to ignore areas hidden by confirmed
|
|
21
|
+
crop regions and crop sphere.
|
|
22
|
+
|
|
23
|
+
## [0.2.14] - 2026-06-19
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- Updated `3d-tiles-rendererjs-3dgs-plugin` from `0.1.11` to `0.1.14`.
|
|
28
|
+
- Updated `3d-tiles-renderer` from `0.4.27` to `0.4.28`.
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Added crop save support for SPZ Gaussian splats with `EXT_splat_opacity` so the opacity accessor data is cropped with the SPZ payload.
|
|
33
|
+
|
|
9
34
|
## [0.2.13] - 2026-06-02
|
|
10
35
|
|
|
11
36
|
### Changed
|
package/README.md
CHANGED
|
@@ -92,14 +92,14 @@ const {
|
|
|
92
92
|
- `Terrain`, off by default, to toggle Cesium World Terrain after entering a Cesium ion token, while keeping satellite imagery
|
|
93
93
|
- `Geometric Error` scaling from `1/16x` to `16x`
|
|
94
94
|
- `Layer Multiplier` scaling from `1/8x` to `8x` for each tile's geometric-error difference from the tileset's global leaf baseline
|
|
95
|
-
- `Crop Regions` for drawing screen-space exclude regions on 3D Gaussian Splat tilesets
|
|
96
|
-
- `Save` to persist root transform edits, geometric-error scaling, and confirmed crop
|
|
95
|
+
- `Crop Regions` for drawing screen-space exclude regions or a crop sphere on 3D Gaussian Splat tilesets
|
|
96
|
+
- `Save` to persist root transform edits, geometric-error scaling, and confirmed crop selections back to disk
|
|
97
97
|
|
|
98
98
|
### Crop Regions
|
|
99
99
|
|
|
100
|
-
`Crop Regions` appears when the loaded tileset contains 3D Gaussian Splat content. It lets you draw one or more screen-space exclude rectangles, preview them in the viewer, then apply the crop when you click `Save`.
|
|
100
|
+
`Crop Regions` appears when the loaded tileset contains 3D Gaussian Splat content. It lets you draw one or more screen-space exclude rectangles or define a single crop sphere, preview them in the viewer, then apply the crop when you click `Save`.
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
For screen regions:
|
|
103
103
|
|
|
104
104
|
1. Click `Draw Region` and drag a rectangle over the splats to remove.
|
|
105
105
|
2. Before moving the camera, drag pending corner points or side handles if the screen region needs adjustment; the pending shape must stay a convex four-sided screen quadrilateral.
|
|
@@ -108,6 +108,13 @@ The basic workflow is:
|
|
|
108
108
|
5. Select a confirmed region row if you need to adjust its 3D far plane with the transform handle.
|
|
109
109
|
6. Click `Save` to persist the root transform and delete splats inside the confirmed crop regions.
|
|
110
110
|
|
|
111
|
+
For the crop sphere:
|
|
112
|
+
|
|
113
|
+
1. Click `Create Sphere` to place one sphere at the current tileset center.
|
|
114
|
+
2. Adjust its radius with the radius track, or select its row and move it with the sphere-center local-coordinate transform handle.
|
|
115
|
+
3. Click `Confirm` to hide splats outside the sphere, or `Cancel` to discard it.
|
|
116
|
+
4. Click `Save` to remove splats outside the confirmed sphere.
|
|
117
|
+
|
|
111
118
|
<img src="https://raw.githubusercontent.com/WilliamLiu-1997/3DTiles-Inspector/main/region.png" alt="Crop Regions" />
|
|
112
119
|
|
|
113
120
|
Crop saving rewrites supported local `.gltf` / `.glb` Gaussian Splat resources that use `KHR_gaussian_splatting_compression_spz_2`. Fully deleted splat primitives are removed from their glTF, and empty tile content can be pruned from the tileset JSON. Remote content and unsupported Gaussian Splat encodings are rejected instead of being modified.
|