Add spherical harmonics support for Gaussian splats (new)#736
Draft
AntonioMacaronio wants to merge 1 commit into
Draft
Add spherical harmonics support for Gaussian splats (new)#736AntonioMacaronio wants to merge 1 commit into
AntonioMacaronio wants to merge 1 commit into
Conversation
Port of the 2024 spherical-harmonics-support branch onto current main. `add_gaussian_splats()` accepts an optional `sh_coeffs` argument with (N, K, 3) coefficients in the 3DGS convention (K = 4/9/16 for degrees 1/2/3); colors are then computed per-vertex from the view direction in the shader, using gsplat's recurrence relations. Coefficients travel as float16 packed into a RGBA32UI texture, padded so each Gaussian spans a whole number of texels. Splat groups without harmonics composite correctly with groups that have them: they're promoted to DC-only coefficients derived from their RGBA colors. The 09_gaussian_splats example now reads f_rest_* fields from 3DGS .ply files. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Port of the 2024 spherical-harmonics-support branch onto current main.
add_gaussian_splats()accepts an optionalsh_coeffsargument with (N, K, 3) coefficients in the 3DGS convention (K = 4/9/16 for degrees 1/2/3); colors are then computed per-vertex from the view direction in the shader, using gsplat's recurrence relations.Coefficients travel as float16 packed into a RGBA32UI texture, padded so each Gaussian spans a whole number of texels. Splat groups without harmonics composite correctly with groups that have them: they're promoted to DC-only coefficients derived from their RGBA colors.
The 09_gaussian_splats example now reads f_rest_* fields from 3DGS .ply files.