Reply 20 of 34, by masterotaku
- Rank
- Newbie
How about this?:
- The user runs a ".bat" script (that we could make).
- It asks the user for their desired width resolution, the user types it and presses enter.
- It asks the user for their desired height resolution, the user types it and presses enter.
- That resolution is written into the registry (https://docs.microsoft.com/en-us/windows-serv … mands/reg-query) (https://www.computing.net/answers/programming … bles/28873.html). "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LucasArts Entertainment Company LLC\Star Wars: Episode I Racer\v1.0", "Display Width" and "Display Height" but converted into hexadecimal.
- The aspect ratio of that resolution is saved into a variable, and then multiplied by 0.75. The resulting value is then used to patch "SWEP1RCR.EXE" (what would you use to do this?).
- If you want to go even further, the script could open my "d3dx.ini" if it exists and change the line starting by "z1=" into "z1=" plus the result of 1.333333/resolution aspect ratio. For example, for 2560x1440 it's 0.75, for 2560x720 it's 0.375, and for 2560x480 it's 0.25.
Testing those super wide resolutions made me notice two problems with the sun and lens flares:
1- My correction in the shader doesn't fix the occlusion caused by the sun being originally at a lower position at that aspect ratio. Meaning that if the sun is (wrongly) supposed to disappear because of some geometry, you may see it disappear in the sky for no reason. In triple monitor it's actually hard to see the sun at all in the first track.
2- With the fix I made to correct its Y axis position, I actually make the sun bigger than it should. Not very noticeable at 16:9, but it's very big at 48:9. If I correct the X axis instead, it has the correct size but it has a lower position as you know. Maybe I can correct its aspect ratio in the X axis (edit: I don't think so. It behaved in a weird way horizontally) and then move the effect up, but we still have problem number 1.
Other than these problems, the game looks nice at a very wide aspect ratio.