facebookresearch / pytorch3d

PyTorch3D is FAIR's library of reusable components for deep learning with 3D data
https://pytorch3d.org/
Other
8.79k stars 1.31k forks source link

The rays origins and first sample plane #1520

Open cinamon123 opened 1 year ago

cinamon123 commented 1 year ago

❓ Questions on rays origins and first sample plane

In implicitron, why we need to operate like this below to get origins? image And the near value is smaller than focal length in world space. So the first sample point is obtained before virtual image plane?

bottler commented 1 year ago

If you're asking why not directly use the camera center in calculating the origin, I guess it's because it works and it's convenient for the logic to rely on a minimal part of the camera object's API.

The near value is an input (min_depth) which is yes independent of the focal length.