SuLvXiangXin / zipnerf-pytorch

Unofficial implementation of ZipNeRF
Apache License 2.0
783 stars 85 forks source link

viewdirs vs direction in cast_rays #92

Open bring728 opened 8 months ago

bring728 commented 8 months ago

Hi! Thank you for your wonderful work.

I have a question about https://github.com/SuLvXiangXin/zipnerf-pytorch/blob/4de3d21ebb9e15412d36951b56e2d713fddd812b/internal/render.py#L146 this function. Why do you use the directions vector instead of the normalized vector viewdir? I guess basis_matrix should be a rotation matrix and each column should be a normalized vector. So shouldn't I use viewdir instead of directions?