Mafia 2 is one of the best story driven "open world" games from that era IMO, and the graphichs is still beatifull...
The game is 3D "ready" with locked convergence, and that spoils all the fun..
With Chiri's tool it's easely unlocked, and during cutscenes and night sessions it looks stunning, it really brings the town to life :)
But.. in dayligt shadows are borked outdoors :/
There seems to be only 2 responsible VS shaders present, disabling them is easy but it completely ruins the beautifull enviroment..
So down to buisness :)
So I hope that one of our great shaderhackers could point me in the right direction, the shadows is stereo but breaks into two when convergence is raised !
This is the shadows for enviroment, cars, npc's and so on..
[code] vs_3_0
def c0, 1, 0, 0, 0
dcl_position v0
dcl_normal v1
dcl_texcoord v2
dcl_position o0
dcl_texcoord o1.xy
dcl_texcoord1 o2.xyz
dcl_texcoord2 o3
dcl_texcoord3 o4
dcl_texcoord4 o5
dcl_texcoord5 o6
mad o0, v0.xyzx, c0.xxxy, c0.yyyx
mov o1.xy, v2
mov o2.xyz, v1
mov o3, c108
mov o4, c109
mov o5, c110
mov o6, c111
// approximately 7 instruction slots used
[/code]
This one is Vito's and close up npc's shadow..
[code] vs_3_0
def c0, 1, 0, 0, 0
dcl_position v0
dcl_normal v1
dcl_texcoord v2
dcl_texcoord2 v3
dcl_texcoord3 v4
dcl_texcoord4 v5
dcl_texcoord5 v6
dcl_position o0
dcl_texcoord o1.xyz
dcl_texcoord1 o2.xyz
dcl_texcoord2 o3
dcl_texcoord3 o4
dcl_texcoord4 o5
dcl_texcoord5 o6
mad o0, v0.xyzx, c0.xxxy, c0.yyyx
mov o1.xyz, v2
mov o2.xyz, v1
mov o3, v3
mov o4, v4
mov o5, v5
mov o6, v6
// approximately 7 instruction slots used
[/code]
Edit: Look at this beaty at night !!!
[img]https://forums.geforce.com/cmd/default/download-comment-attachment/73240/[/img]
Mafia 2 is one of the best story driven "open world" games from that era IMO, and the graphichs is still beatifull...
The game is 3D "ready" with locked convergence, and that spoils all the fun..
With Chiri's tool it's easely unlocked, and during cutscenes and night sessions it looks stunning, it really brings the town to life :)
But.. in dayligt shadows are borked outdoors :/
There seems to be only 2 responsible VS shaders present, disabling them is easy but it completely ruins the beautifull enviroment..
So down to buisness :)
So I hope that one of our great shaderhackers could point me in the right direction, the shadows is stereo but breaks into two when convergence is raised !
This is the shadows for enviroment, cars, npc's and so on..
Try Mortal Kombat X profile. Also use nvapi.dll from http://helixmod.blogspot.fr/2012/11/dx9-11-custom-convergencedepth-bindings.html and lastest HELIXMOD DEBUGGER d3d9.dll. My depth is 44, and it's not perfect but playable.
Thanks for the suggestions harisukro !
But there are no profiles that can fix these shadows !
So I'll settle with it as it is now, I've disabled the 2 VS shaders, and it's very playable with 100% depht and pretty much convergence ( which is the way I like third person games :)
Outdoor nights, indoor and cutscenes is untouched and flawless, outdoor daytime is now playable !
If some of you still hasn't played it, I can only say go for it, it's a great game !!
[img]https://forums.geforce.com/cmd/default/download-comment-attachment/73274/[/img]
[img]https://forums.geforce.com/cmd/default/download-comment-attachment/73275/[/img]
[img]https://forums.geforce.com/cmd/default/download-comment-attachment/73276/[/img]
But there are no profiles that can fix these shadows !
So I'll settle with it as it is now, I've disabled the 2 VS shaders, and it's very playable with 100% depht and pretty much convergence ( which is the way I like third person games :)
Outdoor nights, indoor and cutscenes is untouched and flawless, outdoor daytime is now playable !
If some of you still hasn't played it, I can only say go for it, it's a great game !!
Win7 64bit Pro
CPU: 4790K 4.8 GHZ
GPU: Aurus 1080 TI 2.08 GHZ - 100% Watercooled !
Monitor: Asus PG278QR
And lots of ram and HD's ;)
The game is 3D "ready" with locked convergence, and that spoils all the fun..
With Chiri's tool it's easely unlocked, and during cutscenes and night sessions it looks stunning, it really brings the town to life :)
But.. in dayligt shadows are borked outdoors :/
There seems to be only 2 responsible VS shaders present, disabling them is easy but it completely ruins the beautifull enviroment..
So down to buisness :)
So I hope that one of our great shaderhackers could point me in the right direction, the shadows is stereo but breaks into two when convergence is raised !
This is the shadows for enviroment, cars, npc's and so on..
This one is Vito's and close up npc's shadow..
Edit: Look at this beaty at night !!!
Win7 64bit Pro
CPU: 4790K 4.8 GHZ
GPU: Aurus 1080 TI 2.08 GHZ - 100% Watercooled !
Monitor: Asus PG278QR
And lots of ram and HD's ;)
I'm also interested in seeing how this can be fixed, to have a reference for other DX9 games.
CPU: Intel Core i7 7700K @ 4.9GHz
Motherboard: Gigabyte Aorus GA-Z270X-Gaming 5
RAM: GSKILL Ripjaws Z 16GB 3866MHz CL18
GPU: Gainward Phoenix 1080 GLH
Monitor: Asus PG278QR
Speakers: Logitech Z506
Donations account: masterotakusuko@gmail.com
There's no pixel shaders that disables shadows directly, but this one disables all sunlight and also the shadows...
Win7 64bit Pro
CPU: 4790K 4.8 GHZ
GPU: Aurus 1080 TI 2.08 GHZ - 100% Watercooled !
Monitor: Asus PG278QR
And lots of ram and HD's ;)
It may not be this, but this was my only idea.
CPU: Intel Core i7 7700K @ 4.9GHz
Motherboard: Gigabyte Aorus GA-Z270X-Gaming 5
RAM: GSKILL Ripjaws Z 16GB 3866MHz CL18
GPU: Gainward Phoenix 1080 GLH
Monitor: Asus PG278QR
Speakers: Logitech Z506
Donations account: masterotakusuko@gmail.com
But it didn't make any visual difference, assuming I did it correct !
Win7 64bit Pro
CPU: 4790K 4.8 GHZ
GPU: Aurus 1080 TI 2.08 GHZ - 100% Watercooled !
Monitor: Asus PG278QR
And lots of ram and HD's ;)
But there are no profiles that can fix these shadows !
So I'll settle with it as it is now, I've disabled the 2 VS shaders, and it's very playable with 100% depht and pretty much convergence ( which is the way I like third person games :)
Outdoor nights, indoor and cutscenes is untouched and flawless, outdoor daytime is now playable !
If some of you still hasn't played it, I can only say go for it, it's a great game !!
Win7 64bit Pro
CPU: 4790K 4.8 GHZ
GPU: Aurus 1080 TI 2.08 GHZ - 100% Watercooled !
Monitor: Asus PG278QR
And lots of ram and HD's ;)