Jump to content

Aspect ratio issues on ultrawide monitors


oniguy
  • Branch: Live Branch Version: Windows Pending

This has been a long-standing bug of mine - I'm finally reporting it, and I just verified it still reproduces.  I have an ultrawide monitor (3840x1200, 32:10 aspect ratio), and there are a few issues:

1) The in-game tutorial videos are improperly scaled, resulting in the top and bottom portions of the videos being invisible.  I think the issue is that the video is always scaled to the screen width, rather than the best fitting dimension.  I will be attaching a demo program that implements the correct algorithm with test cases.  This is my primary issue.

2) The title screen's (Continue / New Game / Options / etc.) background image has the same issue as #1 where its top and bottom are cut off.  The user interface here (and everywhere in the game) is fine.  The fixed algorithm above would also fix this, but there'd be empty space on the left and right.  There's really nothing that can be fixed with that other than expanding the artwork.

3) The world generation screen, which follows the world trait selection screen, and precedes the duplicant selection screen, has a similar problem in the opposite direction, where the background is scaled to fit the height (perhaps with the fixed algorithm already), leading to empty space on the left and right.  Unlike the other issues, I think this could ideally be resolved by expanding the basic artwork, and failing that, implementing the "wrong" algorithm to force the full screen to be filled, at the expense of cutting off some of the background.  I've also noticed that the random asteroids flying out from the screen will extend beyond the cut-off for the background, but the asteroids will also not make it to the edge of the monitor before being cut-off themselves.

4) Audio effects are centered at the middle of the screen, and the dropoff appears to be scaled to a typical aspect ratio.  In a widescreen setup, actions being performed at the edges of the screen are silent, even things about at the 1/4 and 3/4 width-mark are nearly inaudible.

scaling.py


Steps to Reproduce

Using an ultrawide monitor, launch ONI.

Observe the title screen, where the top and bottom of the background are cut off.

Begin a new game, and after selecting the starting asteroid, observe the world generation screen, which will have empty background on the left and right.  Watch the asteroids flying around, they will fly beyond the background, but not reach the edge of the monitor.

Once in-game, trigger a tutorial video, and hit the play button.  This will display a fullscreen video with the top and bottom cut off.




User Feedback




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

×
  • Create New...