Viewsize in Games

If you’re making a computer game, you’ll need to render the games content (translate it into 2D graphics). In a 2D game, this happens by drawing many 2D sprites on the screen, while in a 3D game, it most likely happens by doing some calculations based on the 3D environment and objects within the game.

But somehow, the game has to know, how to scale the graphics before drawing them, or what field of view angle to use. This sounds pretty simple, but since your game will very likely run on screens with different aspect ratios, a different approach than using a constant value could be beneficial. Below are different approaches to handle different aspect ratios, but keep in mind: the proper way depends solely on the game. Read More