Skip to content

GaussianSplatPrimitive Viewspace Fix#12840

Merged
ggetz merged 4 commits intomainfrom
gsplat-viewspace-fix
Aug 29, 2025
Merged

GaussianSplatPrimitive Viewspace Fix#12840
ggetz merged 4 commits intomainfrom
gsplat-viewspace-fix

Conversation

@keyboardspecialist
Copy link
Contributor

@keyboardspecialist keyboardspecialist commented Aug 26, 2025

Description

Fixes issue where tileset.show was true, but tileset._selectedTiles was 0 and the tileset's draw command would still be submitted. The problem is splats are projected into camera space, so regardless of the where the camera was they would appear. This adds an early exit check if the tileset is not showing or has no tiles in the current view space.

This could lead to a "double vision" error if you were zooming or jumping between multiple datasets in different locations on the globe.

Issue number and link

Testing plan

You can load any two or more Gaussian splat assets and jump between them to reproduce.

Viewspace Error Sandcastle

Fixed Sandcastle

Author checklist

  • I have submitted a Contributor License Agreement
  • I have added my name to CONTRIBUTORS.md
  • I have updated CHANGES.md with a short summary of my change
  • I have added or updated unit tests to ensure consistent code coverage
  • I have updated the inline documentation, and included code examples where relevant
  • I have performed a self-review of my code

… are selected.

Fixes issue where show was true, but no tiles were selected, the old draw command would still be submitted.
Since splats are projected in view space, they still appeared whereever the camera was.
@github-actions
Copy link

Thank you for the pull request, @keyboardspecialist!

✅ We can confirm we have a CLA on file for you.

@ggetz
Copy link
Contributor

ggetz commented Aug 29, 2025

Much better! Looks great. Thanks @keyboardspecialist!

@ggetz ggetz enabled auto-merge August 29, 2025 18:44
@ggetz ggetz added this pull request to the merge queue Aug 29, 2025
Merged via the queue into main with commit 4da5e56 Aug 29, 2025
9 checks passed
@ggetz ggetz deleted the gsplat-viewspace-fix branch August 29, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants