Skip to content
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

Calculation of incident_dir #25

Open
yyzzyy78 opened this issue May 13, 2024 · 0 comments
Open

Calculation of incident_dir #25

yyzzyy78 opened this issue May 13, 2024 · 0 comments

Comments

@yyzzyy78
Copy link

Thanks for the great job!
When reading the calculation of the incident direction in render_equation.cu, I don't understand the following calculation:

https://github.com/NJU-3DV/Relightable3DGaussian/blob/77827626db514d59b390da2474de5d71be61a2e6/r3dg-rasterization/render_equation.cu#L100C1-L114C11

It seems that z_s = {x, y, z} is a sampled point on a unit sphere, an the rotation matrix is computed based on normal vector.
But I can't understand how to calculate the rotation matrix R, which R is used as:
z_s=matmul(R,z_s).

I'm looking forward to your reply!

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

No branches or pull requests

1 participant