ovr_GetRenderDesc vs ovr_GetFovTextureSize
Hi,
I am running some tests and getting inconsistent numbers with values returned from ovr_GetRenderDesc vs ovr_GetFovTextureSize. So for the default parameters, these are the following values returned:
Fov Tan Up: 0.889498, Down 1.110925, Left 0.964926, Right 0.715264
I am running some tests and getting inconsistent numbers with values returned from ovr_GetRenderDesc vs ovr_GetFovTextureSize. So for the default parameters, these are the following values returned:
Fov Tan Up: 0.889498, Down 1.110925, Left 0.964926, Right 0.715264
Fov Angles Up: 41.653038, Down 48.008022, Left 43.977371, Right 35.574772
Texture Size w: 1332, h 1586
ovr_GetRenderDesc then returns PixelsPerTanAngleAtCenter value of (792.760132, 792.760254). So given that PixelsPerTanAngleAtCenter is for a FOV of 45/45 based on the comments, the texture size for the values above should be (792.760132 * (43.977371 + 35.574772) / 45, 792.760254 * (41.653038 + 48.008022) / 45) = (1401, 1580) instead of (1332, 1586). Any idea why this is the case?
As a test, I tried (fov_tan_left + fov_tan_right) * PixelsPerTanAngleAtCenter, so (0.964926+0.715264) * 792.760132 and that does equate to 1332, which if that is the equation, it doesn't quite make sense suming tangent of angles, does it? (I actually tried this with another set of fov angles, and that behavior seems consistent). Is this intentional or an error?
Thanks
ovr_GetRenderDesc then returns PixelsPerTanAngleAtCenter value of (792.760132, 792.760254). So given that PixelsPerTanAngleAtCenter is for a FOV of 45/45 based on the comments, the texture size for the values above should be (792.760132 * (43.977371 + 35.574772) / 45, 792.760254 * (41.653038 + 48.008022) / 45) = (1401, 1580) instead of (1332, 1586). Any idea why this is the case?
As a test, I tried (fov_tan_left + fov_tan_right) * PixelsPerTanAngleAtCenter, so (0.964926+0.715264) * 792.760132 and that does equate to 1332, which if that is the equation, it doesn't quite make sense suming tangent of angles, does it? (I actually tried this with another set of fov angles, and that behavior seems consistent). Is this intentional or an error?
Thanks
