https://github.com/calinou/fov
CLI utility for calculating horizontal/vertical FOV values
https://github.com/calinou/fov
aspect-ratio cli command-line field-of-view fov fov-calculations vertical-fov-values widescreen
Last synced: over 1 year ago
JSON representation
CLI utility for calculating horizontal/vertical FOV values
- Host: GitHub
- URL: https://github.com/calinou/fov
- Owner: Calinou
- License: mit
- Created: 2018-04-13T15:33:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-13T01:16:33.000Z (over 3 years ago)
- Last Synced: 2025-03-08T11:34:19.494Z (over 1 year ago)
- Topics: aspect-ratio, cli, command-line, field-of-view, fov, fov-calculations, vertical-fov-values, widescreen
- Language: Go
- Homepage:
- Size: 64.5 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fov
A command-line utility for calculating horizontal or vertical FOV values for a
given aspect ratio. This is especially useful when tweaking the field of view
value in various 3D applications, such as games.
## Usage
### Examples
#### Determine the vertical FOV from an horizontal FOV
```text
$ fov 90h 4:3
Horizontal FOV 90.00°
Vertical FOV 73.74°
Aspect ratio 4:3
```
#### Determine the horizontal FOV from a vertical FOV
```text
$ fov 70v 16:9
Horizontal FOV 102.45°
Vertical FOV 70.00°
Aspect ratio 16:9
```
#### Convert an horizontal FOV to a wider aspect ratio
```text
$ fov 90h 4:3 16:9
Orig. Converted
Horizontal FOV 90.00° 106.26°
Vertical FOV 73.74° 73.74°
Aspect ratio 4:3 16:9
```
### Reference
```text
NAME:
fov - Calculate horizontal or vertical FOV values for a given aspect ratio
USAGE:
fov [new aspect ratio]
VERSION:
0.0.1
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```
## Resources
- [Explanation of common FOV scaling modes such as Hor+, Vert-, …](http://www.wsgf.org/article/screen-change)
- [*Field of view in video games* on Wikipedia](https://en.wikipedia.org/wiki/Field_of_view_in_video_games)
## License
Copyright © 2018-2020 Hugo Locurcio and contributors
Unless otherwise specified, files in this repository are licensed under the
MIT license, see [LICENSE.md](LICENSE.md) for more information.