Skip to content

Conversation

@mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Dec 8, 2025

This PR adds a new gaussian splat crop example demonstrating AABB-based spatial cropping with intelligent edge clipping.

New Files:

  • scripts/esm/gsplat/shader-effect-crop.mjs - Crop shader effect for gaussian splats
  • examples/src/examples/gaussian-splatting/crop.example.mjs - Interactive crop example
  • examples/src/examples/gaussian-splatting/crop.controls.mjs - UI controls

Features:

  • AABB Cropping: Drops all splats outside a configurable axis-aligned bounding box
  • Precise Edge Clipping: Optional mode that scales down splats near AABB edges to prevent visual protrusion
    • Uses covariance matrix trace to estimate splat extent (3 standard deviations)
    • Configurable edge scale factor for fine-tuning (default 0.5)
    • Pause/Play button for animation
crop.mov

@mvaligursky mvaligursky merged commit 8677e2d into main Dec 9, 2025
7 checks passed
@mvaligursky mvaligursky deleted the mv-gsplat-crop branch December 9, 2025 10:29
mvaligursky added a commit that referenced this pull request Dec 9, 2025
* Add Gaussian Splat AABB Crop Example with Edge Clipping

* update bounds

* lint

---------

Co-authored-by: Martin Valigursky <[email protected]>
mvaligursky pushed a commit that referenced this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: examples area: graphics Graphics related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants