aliens

Poll

Please choose image that you like most

Image#1 (square pixel, 1:1)
3 (75%)
Image#2 (non-square pixel, 1:1:2)
1 (25%)

Total Members Voted: 4

Author Topic: Non square pixels  (Read 3704 times)

Offline HueponiK

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Non square pixels
« on: June 15, 2014, 06:01:13 pm »
Excuse me for digging up the aspect ratio question again.
I remember that my old CRT monitor had a 4:3 aspect ratio, and when the game set 320x200 mode (16:10), it stretched the image vertically to 4:3. That means that game had had non-square pixels. 1:1.2 to be exact. (240/200=1.2)
Yes, the Earth looked a bit like an egg, but everything else (IMO) looked correct. Maybe people who designed Earth on geoscape were using monitor which didn’t stretch the image.
I’m running OpenXcom 1.0 with FullHD monitor (1920x1080, 16:9) and trying to get widescreen resolution AND “distorted” image to emulate pixel aspect ratio of 1:1.2 and using 2x base resolution scaling.
So, with square pixels and 16:10, we get base resolution 640x400.

With square pixels and 16:9, we get base resolution 640x360 (image #1, same ratio as letterbox)


With 1:1.2 pixels and 16:9, we get base resolution 640x300 (image #2. that’s 32:15 aspect ratio ;D)


I was able to “emulate oldscool distortion” on battlescape with these settings:
  displayWidth: 1920
  displayHeight: 1080
  keepAspectRatio: false
  baseXBattlescape: 640
  baseYBattlescape: 300
  battlescapeScale: 2
  baseXGeoscape: 640
  baseYGeoscape: 400
  geoscapeScale: 2

These settings reset sometimes (when changing options for example), but I can live with that.
Unfortunately, these settings  do not work for geoscape and keep resetting to closest 16:10 resolution:
  baseXGeoscape: 640
  baseYGeoscape: 400

Is it possible to set the base resolution I want (640x300) not only on battlescape, but also on geo and in menus?
And maybe it's possible to make an option for internal 32:15 ratio for people like me?

Offline HueponiK

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: Non square pixels
« Reply #1 on: July 06, 2014, 10:43:40 pm »
BTW, if anyone interested, this feature was merged in latest nightlies.
Just set this option
nonSquarePixelRatio: true