Skip to content

Commit

Permalink
these changes currently work for 1 gaussian, but incorrect color
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioMacaronio committed Oct 23, 2024
1 parent 6be64d7 commit e097109
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/viser/_scene_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,7 @@ def _add_gaussian_splats(
# - (768 bits): spherical harmonics
print("sh_coeffs.shape", sh_coeffs.shape)
sh_buffer = (sh_coeffs.astype(onp.float16)).view(onp.uint32)
# sh_buffer = sh_coeffs
print("sh_buffer.shape", sh_buffer.shape) # has shape (num_gaussians, 24), each cell contains 2 spherical coeff.
print(sh_buffer)

Expand Down

0 comments on commit e097109

Please sign in to comment.