(05-09-2020, 03:52 PM)Fuso90 Wrote: [ -> ]Thank you, @Aced14!
So I think I made a proper aspect ratio fix for both 4:3 and 16:9 for NFS Underground (SLUS-20811). I found why the AR is not correct from the beginning. The game is rendered at 512x444 which is narrower than proper 4:3. The problem is that the geometry's AR is proper at exactly 512x444. So they just stretch the original image to 4:3, and this is the result.
Original out-of-the-box    512x444 aspect ratio
4:3 aspect ratio
    Â
original 4:3 AR Â Â Â Â Â 512x444 ARÂ Â Â Â Â Â Â proper 4:3Â Â Â Â Â Â Â Â proper 16:9
Â
Code:
proper 4:3
patch=1,EE,004ff42c,word,3f400000
patch=1,EE,004ff434,word,3f5d0000
patch=1,EE,004ff628,word,3f140000
patch=1,EE,004ff630,word,3f140000
---------------------------------
---------------------------------
proper 16:9
patch=1,EE,004ff42c,word,3f400000
patch=1,EE,004ff434,word,3f260000
patch=1,EE,004ff628,word,3f460000
patch=1,EE,004ff630,word,3f420000
//FMV's fix
patch=1,EE,00229da8,word,3c01bf2a
patch=1,EE,00229dac,word,44816800
patch=1,EE,00229ddc,word,46007307
patch=1,EE,00229de0,word,46006bc7
NFS Underground 2 also suffers from the same problem. I think I found the aspect ratio address 204D1614, but for me it's complicated because the game already has built-in 16:9 mode.
Â
The trick to NFSU2 is that the game stores the aspect ratio and rendering values separately for full-screen (4:3) and widescreen.
Menu:
4:3 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 16:9
[
attachment=70704] Â Â Â [
attachment=70705]
Gameplay:
Â
4:3 Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 4:3 with fixed aspect and icons
[
attachment=70707] Â Â [
attachment=70706]
16:9               16:9 with fixed icons    16:9 with fixed aspect and icons
[
attachment=70709] Â Â [
attachment=70710] Â Â [
attachment=70708]
Fun fact: The event marker icons are actually unaffected by the built-in widescreen setting so I made a fix for those.
I adjusted the values for the aspect correction to be mathematically correct (they were off).
Code:
Need for Speed Underground NTSC-U:
//proper 4:3
patch=1,EE,004ff434,word,3F5B81D4
patch=1,EE,004ff628,word,3f154000
patch=1,EE,004ff630,word,3f154000
//proper 16:9
patch=1,EE,004ff434,word,3F24A9CF
patch=1,EE,004ff628,word,3f470000
patch=1,EE,004ff630,word,3f470000
//FMV's fix
patch=1,EE,00229da8,word,3c01bf2a
patch=1,EE,00229dac,word,44816800
patch=1,EE,00229ddc,word,46007307
patch=1,EE,00229de0,word,46006bc7
Code:
Need for Speed Underground 2 NTSC-U:
//Aspect Ratio and Icons Fix:
patch=1,EE,001CCAF4,word,0C0ED18B
patch=1,EE,003B462C,word,3C03004C
patch=1,EE,003B4630,word,E474D848
patch=1,EE,003B4634,word,03E00008
patch=1,EE,003B4638,word,2404001A
patch=1,EE,0056FB44,word,3F5B8D14 // Corrected 4:3 aspect
patch=1,EE,0056FB48,word,3F24A9CF // Corrected 16:9 aspect
patch=1,EE,0056FBF4,word,3F154000 // Corrected 4:3 rendering
patch=1,EE,0056FBF8,word,3F470000 // Corrected 16:9 rendering