UnknownException / SubTitans

Unofficial Submarine Titans patch
MIT License
51 stars 1 forks source link

[idea] native resolution, with virtual (stretched) resolution #15

Open atesin opened 2 years ago

atesin commented 2 years ago

hi... i liked this game... i remember played a little when i was younger, now i can fully enjoy it thanks to you

.... old games with fixed 4:3 low resolutions (from 320x200 to 1024x768) have problems in modern computers computers with widescreen hd, full hd and 4k resolutions

i remember for system shock 2 systemshock.org guys though a clever solution... native physical resolution (configurable) with virtual resolution inside (also configurable), suporting aspect ratio handling, stretching algorithms (nearest neighbour, linear filters, scanlines, hq2x, etc), etc... powered by sdl i guess (all configurable).... maybe can be also done with opengl, directx, software or other layer

i don't know how internally this subtitans patch works but i found a little confusing... i think it lacks some configurations and sometimes it governs itself in certain aspects, sometimes resolution changes suddenly between screens and sometimes it gets a little rebel (or confused) to configurate... i would like to have more control using my native physical resolution on my monitor, but the game still thinks is running in 640x480 so no centered videos or rogue resolution changes, hardware stretched but not pixelated, in full widescreen.... for this subtitans.ini could add these configurations

NativeWidth    (a number... or 'desktop', 'max', 'auto', 'detected' or whatever... superseeds 'NativeResolution')
NativeHeight   (a number... or 'desktop', 'max', 'auto', 'detected' or whatever... superseeds 'NativeResolution')
KeepAspect     ('true' to keep aspect ratio by adding black borders, or 'false' to stretch the image filling borders but distorting the image)
ScalingFilter  ('nearest', 'scanlines', 'scanlines2', 'bilineal', trilineal', 'bicubic', 'hq2x', 'hq3x', 'hqXx' or whatever you imagine)
MainDisplay    (.... or whatever...  intended for use with multiple monitor setups (for who have it, i don't))

so what do you think about that?? --> configure physical resolution + virtual resolution?

eierfrucht commented 3 months ago

This will be possible with cnc-ddraw once this issue is resolved:

https://github.com/UnknownException/SubTitans/issues/19#issue-2385445380