Jeremy Reizenstein bf3bc6f8e3 screen cameras lose -1
Summary:
All the renderers in PyTorch3D (pointclouds including pulsar, meshes, raysampling) use align_corners=False style. NDC space goes between the edges of the outer pixels. For a non square image with W>H, the vertical NDC space goes from -1 to 1 and the horizontal from -W/H to W/H.

However it was recently pointed out that functionality which deals with screen space inside the camera classes is inconsistent with this. It unintentionally uses align_corners=True. This fixes that.

This would change behaviour of the following:
- If you create a camera in screen coordinates, i.e. setting in_ndc=False, then anything you do with the camera which touches NDC space may be affected, including trying to use renderers. The transform_points_screen function will not be affected...
- If you call the function “transform_points_screen” on a camera defined in NDC space results will be different. I have illustrated in the diff how to get the old results from the new results but this probably isn’t the right long-term solution..

Reviewed By: gkioxari

Differential Revision: D32536305

fbshipit-source-id: 377325a9137282971dcb7ca11a6cba3fc700c9ce
2021-12-07 15:04:20 -08:00
..
2021-09-29 19:15:19 -07:00
2021-08-16 04:06:53 -07:00
2021-12-07 15:04:20 -08:00
2021-08-16 04:06:53 -07:00
2021-08-16 04:06:53 -07:00
2021-05-26 04:54:19 -07:00
2021-10-03 17:17:47 -07:00
2021-04-09 09:58:54 -07:00
2020-11-03 13:06:35 -08:00
2021-06-22 03:45:27 -07:00