-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rotation of Spherical harmonics data #26
Comments
Sorry that not planning yet. Contributions are welcomed!
…On Mon, Apr 29, 2024 at 14:39 Hardik Dava ***@***.***> wrote:
Great work @yzslab <https://github.com/yzslab> , is it possible to add
support for rotation and scalling of spherical harmonics data with the
transformation of 3dgs model?
—
Reply to this email directly, view it on GitHub
<#26>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEJZCPLHIMYFPESFZ3OFEDY7XTLFAVCNFSM6AAAAABG5XGE6WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3DQMRUGM2DGOI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Rotate the first extra degree has been implemented. |
@yzslab thanks a lot. Can you give me the direction how to achieve the rotation for 3 sh degree? I would like to try it out. |
Already provided in the code comment: gaussian-splatting-lightning/utils/gaussian_transform.py Lines 86 to 96 in 098b0b7
|
@yzslab It's not possible to rotate higher degree of spherical harmonics without knowing camera matrix. Am I right? P.S. I want to do it offline. |
The camera matrix isn't required. The |
@yzslab I tried your implementation and it's working perfectly for 1st degree. But still missing implementation for 2nd and higher degree. |
The calculation of the higher SH degrees are far more tedious. |
Just need to modify the rasterizer to accept a rotation matrix |
@yzslab I think there is an error with your formula. It will create dim mismatch error. Can you recheck it once? |
Would you mind providing more details? |
The |
@yzslab I am using modified version of
|
The
NOTE:
|
Besides, you should not rotate SHs and the view direction together. Rotation should be applied either for SHs or view directions. |
@yzslab You are right. I got it working for applying Rotation directly to view direction. How can I achieve rotation without modifying the rasterizer? Is it possible? |
I think rotating the SHs is the only way to achieve this. |
@yzslab can you send me references on how can rotate SH for higher degree if you have it? |
I think the theory is the same as the 1st extra degree. Someone mentioned that it could be done with Wigner D-matrix: graphdeco-inria/gaussian-splatting#176 (comment) |
@yzslab I tried the mentioned method. But It's not yielding good result. |
Thanks to MstXy, this problem has been solved now: graphdeco-inria/gaussian-splatting#176 (comment) |
@yzslab Thanks for the support. I have also verified the result. |
Great work @yzslab , is it possible to add support for rotation and scalling of spherical harmonics data with the transformation of 3dgs model?
The text was updated successfully, but these errors were encountered: