Library and GUI tool for calculating optimal first-person 3D view parameters from monitor size and distance.
The “portal-like” mode will perform the necessary trigonometry and output the configuration for the camera which will allow the screen to appear as if it is a portal into the rendered 3D world, improving perception of depth and realism.
The “focused” mode will output an FOV for the camera which will represent an accurate scale of objects at a given distance in the 3D world from the camera.
The code itself is dual-licensed under the MIT or Apache 2.0 licenses, at your option.
Measurements of the monitor dimensions and position.
The dimensions of a monitor.
A list of commonly used monitor aspect ratios.
Finds a common aspect ratio for the given single-number ratio, considering the ratio close enough if the difference is less than the given rounding.