OpenXcom Forum

OpenXcom => Open Feedback => Topic started by: JDarthenay on April 03, 2016, 08:05:03 am

Title: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on April 03, 2016, 08:05:03 am
Hello,

I have a 3-years old OpenXCom with those two variables defined. But they don't appear in the config file with my new OpenXCom build. Were those variables removed? Or were they renamed or something like that?
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: Warboy1982 on April 03, 2016, 08:58:04 am
now that's all handled under the battlescape/geoscape scaling options in the menu
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on April 03, 2016, 10:41:18 am
I am afraid this options don't let me do what I was doing before...
I remember I could play with Resolution 1280x1024 and get rid of black bands without reducing image size per setting baseYResolution to a different value, but it seems I cannot do that any more...
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: Warboy1982 on April 03, 2016, 01:38:19 pm
disable letterboxing?
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on April 03, 2016, 05:06:51 pm
We can remove the black bands this way, but the image is stretched. Not what I wanted either...
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: R1dO on April 04, 2016, 12:24:09 am
Geo/Battlescape scale -> full display
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on April 04, 2016, 08:42:19 am
Geo/Battlescape scale -> full display

I said "without reducing image size", maybe that's not very clear.

I mean I was able to set a base resolution of 320x256 and get it scaled to 1280x1024, (which is x4) I don't see how to do that now...
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: Xtendo-com on April 09, 2016, 08:22:42 pm
As I understand you want to get a retro sharp pixelated view instead of using a lower resolution that upscales by videocard because it uses a blurry upscale method. For retro feels you may try a CRT or dot_n_bloom shader and if you don't like a dark view that they provides, you can adjust brightness of shader by editing that shader with a simple text editor (path of shaders .\common\Shaders).
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: Xtendo-com on April 09, 2016, 08:49:02 pm
I said "without reducing image size", maybe that's not very clear.

I mean I was able to set a base resolution of 320x256 and get it scaled to 1280x1024, (which is x4) I don't see how to do that now...
Currently the best you can do is to set 1/3 display. You will get rid of black bands without losing a proportions. But your image will not looks like a retro big sharp pixelated image with a big sharp pixelated UI.
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on April 09, 2016, 09:00:43 pm
Currently the best you can do is to set 1/3 display. You will get rid of black bands without losing a proportions. But your image will not looks like a retro big sharp pixelated image with a big sharp pixelated UI.

Maybe I am gonna work on improving this, once I will have determined what is currently the better way to use MinGW64.
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: Warboy1982 on April 10, 2016, 06:22:09 am
there IS an option for non-square pixels, that may help?
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on April 10, 2016, 07:43:32 am
there IS an option for non-square pixels, that may help?

Sorry, I don't understand, what is this option? Is that a command line option?
And why non-square pixels? I'm trying to see if I can play with a base resolution of 320x256 with a x4 display adjustment...
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: Warboy1982 on April 10, 2016, 07:46:12 am
the base resolution is 320x200, if you want 320x240 (or 256) that means your pixels would be non-square (approximately 20% taller than they are wide)
it's in the config file.
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on April 10, 2016, 07:52:00 am
No, when I was able to change baseXResolution from the config file with an OpenXCom 0.9, I was slightly extending area display. Is that still possible? If it is not, no big deal, I will try to add an option for this.
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: Xtendo-com on April 10, 2016, 07:59:36 am
To be fully clear, since I fully sure what JDarthenay need:
Upscale the lower possible resolution that close to original to 1280x1024:
1) Using nearest-neighbor scaling method in order to get sharp pixelated view
2) Without image distortion caused by upscaling not by a multiple of 100%
3) Without blank bands
4) Without losing proportions by stretching
5) Square aspect ratio.
It's possible by changing base resolution 320x200 to 320x256, so you get extended view and you can upsacle by a multiple of 100% to fully fill 1280x1024.
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on April 10, 2016, 08:14:04 am
Yes, that's exactly what I was doing in the past, with a 0.9 version of OpenXCom. Maybe I will try to see if we can replace the toggle "letterboxing" button by a dropbox with something such as "letterboxing: no", "letterboxing: black bands" and "letterboxing: extend". Would it be fine that way?
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: Xtendo-com on April 10, 2016, 09:20:43 am
"letterboxing" button by a dropbox with something such as "letterboxing: no", "letterboxing: black bands" and "letterboxing: extend". Would it be fine that way?
Is it possible to show hint from dropbox?
letterboxing: no. Hint: fit display resolution by losing proportions, but preserves the original resolution.
letterboxing: with black bands. Hint: may not fit display resolution but saves proportions a by using black bands and preserves the original resolution.
letterboxing: expand view. Hint: fit display resolution by slightly expanding original resolution if necessary. That saves a proportions but may not preserve the original resolution.
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on May 01, 2016, 08:19:31 pm
It does not seem we can add hints for each item in a list. But it is possible to put a hint for the whole list. By the way per definition, letter boxing is always with with black bands, other options have to be named something else, such as stretching or extending...
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: HueponiK on November 06, 2016, 10:57:39 am
I feel your pain

I fixed that for myself once. But changes were rejected :(
https://github.com/SupSuper/OpenXcom/pull/908
Title: Re: baseXResolution and baseYResolution: removed feature?
Post by: JDarthenay on November 06, 2016, 12:14:53 pm
Thanks for this commit, someday I will try to apply it in my own build.