kwea123 / nerf_pl

NeRF (Neural Radiance Fields) and NeRF in the Wild using pytorch-lightning
https://www.youtube.com/playlist?list=PLDV2CyUo4q-K02pNEyDr7DYpTQuka3mbV
MIT License
2.74k stars 483 forks source link

Why change the axis when create the spherical poses? #133

Open MAYHAOYHN opened 2 years ago

MAYHAOYHN commented 2 years ago

image

In my opinion, rot_phi is to rotate the coordinate around X axis and rot_theta is to rotate the coordinate around Y axis. According to the formation of rotation matrix, the last matrix should be the rotation around Z axis intuitively. But what it does is to change the coordinate from [x,y,z] to [-x,z,y], which makes me confused. Could you explain what this matrix do here and why? Thanks a lot.