OpenXcom Forum
Contributions => Programming => Topic started by: mewse on July 29, 2010, 07:34:13 pm
-
this is some pretty terrible code that adds a new parameter to the setScale method of the Screen class. it uses some hardcoded values so is probably not suitable for trunk
for reference: https://doom.wikia.com/wiki/Aspect_ratio
-
Can you give screenshots from before & after?
-
Simple 2x scale:
(https://i184.photobucket.com/albums/x22/mewse_bucket/openxcom%20aspect%20ratio%20correction/1-basic_scale.png)
2x scale, aspect corrected:
(https://i184.photobucket.com/albums/x22/mewse_bucket/openxcom%20aspect%20ratio%20correction/1-corrected_scale.png)
Simple 2x scale:
(https://i184.photobucket.com/albums/x22/mewse_bucket/openxcom%20aspect%20ratio%20correction/2-basic_scale.png)
2x scale, aspect corrected:
(https://i184.photobucket.com/albums/x22/mewse_bucket/openxcom%20aspect%20ratio%20correction/2-corrected_scale.png)
-
Maybe it's only me, but i think that without aspect correction, it looks better.
IMHO with aspect correction text looks worse, and also earth looks too oval.
-
@michal:
It will on a physically square screen. The idea behind it is you run a 4:3 (Square) resolution on a 16:9 (Widescreen) display. You vertically stretch it in software so the hardware horizontal stretch cancels out, leaving you the correct display.
In fact, my windows mobile is 400x240 (in landscape), so I'd need edge cropping code to maintain the square image on that.
-
Fancy aspect ratio talk aside, all you did was resize the screen to 640x480, which well fair enough, you can scale it however you want, I just never implemented it because it's an 8bpp game so any kind of decimal resize will not be smoothed and probably look like ass, but if some people like it, I'll throw it in at some point.
And I'm not sure X-Com was designed for 4:3 anyways since the PSX version is 640x480 and it just letterboxes the 640x400 graphics.
-
X-Com has a native resolution of 320x200, which is effectively 8:5 aspect ratio. Thus if you apply any (dosbox, or handmade) aspect "correction" - if will look squeezed. Personally, I see no point in doing this, unless you intend to rewrite the correction mechanism with this peculiarity in mind 8)
-
Yeah, integer scaling, and black borders to fill any remaining space ;D
-
And I'm not sure X-Com was designed for 4:3 anyways
All DOS games of this era did 320x200 on a 4:3 monitor, so each pixel was 1 unit wide and 1.2 units tall. If the Amiga version was different, I don't know, but the psx port came later