Skip to content

Add orthographic camera support to compute GSplat renderers#8545

Merged
mvaligursky merged 1 commit intomainfrom
mv-gsplat-tile-composite
Mar 20, 2026
Merged

Add orthographic camera support to compute GSplat renderers#8545
mvaligursky merged 1 commit intomainfrom
mv-gsplat-tile-composite

Conversation

@mvaligursky
Copy link
Copy Markdown
Contributor

@mvaligursky mvaligursky commented Mar 20, 2026

Add orthographic camera support to the compute-based GSplat renderers (both local and global tile-count passes), matching the existing vertex shader handling in gsplatCorner.js.

Changes:

  • Pass an isOrtho uniform (u32) from the camera projection type through to computeSplatCov in the shared compute shader
  • When orthographic, use a constant view direction (0,0,1) for the Jacobian instead of the per-splat viewCenter, making splat screen-space size depth-independent
  • Skip the near-clip Z clamping for ortho since the constant direction doesn't need it

The compute-based GSplat renderers (local and global) hardcoded
perspective projection in the Jacobian computation, producing incorrect
splat covariance under orthographic cameras. This adds an isOrtho
uniform that switches the Jacobian to use a constant view direction
(0,0,1), matching the existing vertex shader ortho handling in
gsplatCorner.js.

Made-with: Cursor
@mvaligursky mvaligursky force-pushed the mv-gsplat-tile-composite branch from 75d5914 to 9f7a085 Compare March 20, 2026 16:44
@mvaligursky mvaligursky merged commit 93db4ba into main Mar 20, 2026
8 checks passed
@mvaligursky mvaligursky deleted the mv-gsplat-tile-composite branch March 20, 2026 16:47
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.

1 participant