DEV Community

ty buser
ty buser

Posted on

did some aspect ratio research!

currently the bounds of the level are generated by reading the viewport size, instead i will feed it specific values of a common resolution type (probably 19:6 or 1.777777777777778).

then in camera setup, I'll get the viewport size, get the ratio value, use 1.777777777777778 as my default ortho width and camera height with a map range unclamped node, with a second value for 19.5:9) then adjust the camera as necessary. probably wont be a linear solution though, so I'm guess I'll really probably just have to test a bunch and make adjustments based on lots of testing

then i can probably strip out a lot of the "GetCameraInfo" calls since most of those were referring to level bounds really rather than camera or viewport.

then i can get back to spawning player pregame pawns.

Top comments (0)