-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
down right back to right up back conversion in llff.py #58
Comments
This is not specific to NDC, but for all scenes constructed using COLMAP, which is desired behavior. Actually this conversion has relation with this part: Lines 5 to 24 in 20d1670
When we generate camera rays, the current code assumes "right up back" camera coordinate. Take the upper left (0, 0) pixel for example, its ray will have direction in (-x, +y, -z) under this code. That means you can omit the coordinate conversion, but if you do so you have to rewrite the The author mentioned NDC because this conversion is indispensable for the reasons he stated in that post. 360 scenes do not necessary require this conversion, but having the same conversion leads to same code and more conciseness, so I adopted this conversion for both settings. |
Thanks for the clarification. Just to confirm, this repo doesn't actually do the alternate pose conversion for spheric poses detailed in https://github.com/bmild/nerf/blob/55d8b00244d7b5178f4d003526ab6667683c9da9/load_llff.py#L184 (and just calls the same center_poses method for both forward-facing and 360 scenes?) |
Describe the bug
I'm trying to make sure that I understand the purpose of https://github.com/kwea123/nerf_pl/blob/dev/datasets/llff.py#L198. In particular, we're changing the coordinate system of the rotation matrix R but not of the translation vector, which remains in "down right back" coordinates - is that intentional?
Also bmild/nerf#34 suggests that this is mainly intended for forward facing scenes where we're using NDC, but if I'm interpreting the code correctly this transformation still happens for 360 scenes. Is that intentional and desired behavior?
Which branch you use
dev
The text was updated successfully, but these errors were encountered: