Nikhila Ravi
d07307a451
Non square image rasterization for meshes
...
Summary:
There are a couple of options for supporting non square images:
1) NDC stays at [-1, 1] in both directions with the distance calculations all modified by (W/H). There are a lot of distance based calculations (e.g. triangle areas for barycentric coordinates etc) so this requires changes in many places.
2) NDC is scaled by (W/H) so the smallest side has [-1, 1]. In this case none of the distance calculations need to be updated and only the pixel to NDC calculation needs to be modified.
I decided to go with option 2 after trying option 1!
API Changes:
- Image size can now be specified optionally as a tuple
TODO:
- add a benchmark test for the non square case.
Reviewed By: jcjohnson
Differential Revision: D24404975
fbshipit-source-id: 545efb67c822d748ec35999b35762bce58db2cf4
2020-12-09 09:18:11 -08:00
..
2020-01-23 11:53:46 -08:00
2020-10-07 12:54:01 -07:00
2020-11-18 14:07:12 -08:00
2020-08-25 11:28:40 -07:00
2020-04-20 14:54:16 -07:00
2020-12-09 09:18:11 -08:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-25 11:28:40 -07:00
2020-06-09 08:33:23 -07:00
2020-06-09 08:33:23 -07:00
2020-06-09 08:33:23 -07:00
2020-08-25 11:28:40 -07:00
2020-08-25 11:28:40 -07:00
2020-08-25 11:28:40 -07:00
2020-08-25 11:28:40 -07:00
2020-08-25 11:28:40 -07:00
2020-08-25 11:28:40 -07:00
2020-08-25 11:28:40 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-11-03 13:06:35 -08:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-08-07 13:22:26 -07:00
2020-08-07 13:22:26 -07:00
2020-08-07 13:22:26 -07:00
2020-08-07 13:22:26 -07:00
2020-08-07 13:22:26 -07:00
2020-01-23 11:53:46 -08:00
2020-01-23 11:53:46 -08:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-07-14 14:53:58 -07:00
2020-04-20 14:54:16 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-08-20 22:22:06 -07:00
2020-09-09 13:22:25 -07:00
2020-09-09 13:22:25 -07:00
2020-07-29 16:11:23 -07:00
2020-08-25 11:28:40 -07:00
2020-08-25 11:28:40 -07:00