Eduardo Henrique Arnold d0cec028c7 Fix look_at_view_transform when object location is not (0,0,0) (#230)
Summary:
The look_at_view_transform did not give the correct results when the object location `at` was not (0,0,0).

The problem was on computing the cameras' location in world's coordinate `C`. It only took into account the camera position from spherical angles, but ignored the object location in the world's coordinate system. I simply modified the C tensor to take into account the object's location which is not necessarily in the origin.

I ran unit tests and all but 4 failed with the same error message: `RuntimeError: CUDA error: invalid device ordinal`. However the same happens before this patch, so I believe these errors are unrelated.

Pull Request resolved: https://github.com/facebookresearch/pytorch3d/pull/230

Reviewed By: gkioxari

Differential Revision: D23278126

Pulled By: nikhilaravi

fbshipit-source-id: c06e891bc46de8222325ee7b37aa43cde44648e8
2020-08-21 23:43:47 -07:00
..
2020-08-20 22:22:06 -07:00
2020-01-23 11:53:46 -08:00
2020-08-20 22:22:06 -07:00
2020-04-24 09:11:04 -07:00
2020-04-14 17:22:56 -07:00
2020-04-17 07:44:16 -07:00
2020-04-11 00:21:24 -07:00
2020-04-17 07:44:16 -07:00
2020-04-16 14:02:16 -07:00
2020-08-17 11:59:53 -07:00
2020-04-20 12:19:45 -07:00
2020-05-04 09:56:44 -07:00
2020-04-17 07:44:16 -07:00
2020-04-24 09:11:04 -07:00
2020-05-05 11:09:45 -07:00
2020-04-24 09:11:04 -07:00
2020-08-07 01:59:58 -07:00
2020-07-29 05:01:07 -07:00
2020-05-04 09:56:44 -07:00
2020-07-29 16:11:23 -07:00
2020-04-06 06:41:00 -07:00
2020-04-24 09:11:04 -07:00
2020-05-04 09:56:44 -07:00
2020-05-04 09:56:44 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-05-04 09:56:44 -07:00
2020-01-23 11:53:46 -08:00