Kai-46 / nerfplusplus

improves over nerf in 360 capture of unbounded scenes
BSD 2-Clause "Simplified" License
911 stars 101 forks source link

question on camera position #33

Open ericlormul opened 2 years ago

ericlormul commented 2 years ago

Thanks for open source this great repo!

In my situation, I sample camera positions on the surface of a unit sphere which is centered at the world origin. Sample cameras are distributed along x-axis and looking at the world origin. Object/scene are supposed to be around the world origin. Then, with these camera positions, I use look-at rule to to calculate camera2world transform matrices. My question is that will this camera setting be compatible with the requirements of nerf++, because I noticed that "Opencv camera coordinate system is adopted, i.e., x--->right, y--->down, z--->scene. "? Here's an example of 32 sampled camera positions in x, y, z format.

[[ 0. , 0. , 1. ], [-0.011, 0. , 1. ], [-0.016, 0. , 1. ], [ 0.02 , 0. , 1. ], [ 0.023, 0. , 1. ], [ 0.025, 0. , 1. ], [ 0.028, 0. , 1. ], [-0.03 , 0. , 1. ], [-0.032, 0. , 0.999], [ 0.034, 0. , 0.999], [-0.036, 0. , 0.999], [ 0.038, 0. , 0.999], [-0.039, 0. , 0.999], [-0.041, 0. , 0.999], [-0.042, 0. , 0.999], [ 0.044, 0. , 0.999], [-0.045, 0. , 0.999], [ 0.047, 0. , 0.999], [-0.048, 0. , 0.999], [ 0.049, 0. , 0.999], [ 0.051, 0. , 0.999], [ 0.052, 0. , 0.999], [ 0.053, 0. , 0.999], [ 0.054, 0. , 0.999], [-0.056, 0. , 0.998], [ 0.057, 0. , 0.998], [ 0.058, 0. , 0.998], [ 0.059, 0. , 0.998], [-0.06 , 0. , 0.998], [-0.061, 0. , 0.998], [ 0.062, 0. , 0.998], [ 0.063, 0. , 0.998]]

Thank you so much!

Kai-46 commented 2 years ago

What is your camera coordinate convention?