Jump to content

Arena Breakout: Infinite

Hipfire is added, aims coming soon!
Read more...

Project L33T

See the game notes for instructions on how to disable smoothing.
Read more...

Twilight Town: A Cyberpunk FPS

Just added.
Read more...

Contain

See the game notes for instructions on how to disable smoothing.
Read more...

Vomitoreum

Just added.
Read more...

What is the formula of fov scaling?(or how it works since idk if there is a formula or no))


Recommended Posts

@DPI Wizard When I try to calculate degree/count, I realized it will be the same 360 distance from game to game no matter the fov, so I wanted to know how it works.

How is the pixel ratio the same on lower fov (higher scopes) as the hipfire even that they took more distance to perform a 360?

Edited by Wheaks
Link to comment
  • Wheaks changed the title to What is the formula of fov scaling?(or how it works since idk if there is a formula or no))

There is less degrees on the screen (lower degree/pixel), so if you continue to rotate the same degree/count then you will rotate more pixels. You have to reduce the degree/count to rotate the same degree/pixels, and end up with a longer distance to rotate 360 degrees.

 

Degree/pixels only uses the middle pixels. If you know there is a total of 103 degrees horizontally (Overwatch), which is across 1920 pixels, then you can scale that down to find how many there is in 1 pixel.

2 * atan(1/1920 * tan(103/2 * pi/180)) * 180/pi = ~0.075032

 

If you drop to 30 degrees vertically (Overwatch Widowmaker), then you end up with less degree/pixel.

2 * atan(1/1080 * tan(30/2 * pi/180)) * 180/pi = ~0.02843

 

Since the game rotates a fixed amount of degrees/count for each unit of sensitivity, you will want to reduce the sensitivity when you scope in (by ~0.028/0.075) to keep the same pixel ratio. When scoped, you will have to rotate ~38% of the original amount to preserve the sensitivity of the mouse, but you will end up with the inconvenience of a larger distance to turn 360 degrees.

(2 * atan(1/1080 * tan(30/2 * pi/180)) * 180/pi) / (2 * atan(1/1920 * tan(103/2 * pi/180)) * 180/pi) = ~0.378909

 

Edited by Drimzi
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...