Crate fpvsetup[−][src]
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.
License
The code itself is dual-licensed under the MIT or Apache 2.0 licenses, at your option.
The icon is the eye emoji from Twemoji, licensed under CC-BY 4.0.
Structs
MonitorConfiguration | Measurements of the monitor dimensions and position. |
Enums
MonitorDimensions | The dimensions of a monitor. |
Statics
COMMON_ASPECT_RATIOS | A list of commonly used monitor aspect ratios. |
Functions
find_common_aspect_ratio | 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. |