Depth buffer detection modifications
- thalixte
- Topic Author
BOTLester wrote: Hey, I have problem with depth buffer in several dx9 games (STALKER, Fallout New Vegas). As far as I remember it didn't work in Fallout 4 too so probably it is also problem with dx11. I tried thalixte custom dlls for dx9, but it still doesn't work, the only thing I could find in logs about depth buffer was this : "Failed to retrieve texture from depth surface! HRESULT is '0x80004002'."
Depth buffer is just empty.
ENB does have an access to depth buffer in those games, so i guess it's a problem with ReShade
Found a little time to test Reshade with Stalker (Shadow Of Tchernobyl). There is an AA setting to disable in the advanced graphic settings menu. The display (MSAA is inactive) is not right for this game in the DX9 tab.
With the official Reshade version, as well as with my own versions, Stalker depth buffer is accessible, when the ingame AA is disabled:
- Virtuous.
- thalixte
- Topic Author
Virtuous. wrote: HELP! I'm having a hard time understanding the process of getting the depth buffer to work, specifically in Batman: Arkham Asylum. I'm not familiar with the file modification process for this. If anyone could give me a walk-through (that's easy to understand) of getting the MXAO to work I'd really appreciate it! I don't know what to copy, replace, modify specifically!
First of all, you have to use my own dll:
mega.nz/#!alAXwAzT!WItkhs5WeJr6P0nP4ggl1brW0HBKswACpe9faCoY5Fo
or this one:
mega.nz/#!r5Q2iABJ!KGjxuW45lO_CcklOQ4UXz4sl_gzukZuHWaB6ES4itZU
Secondly, you have to ensure the game is offline, and that the ingame MSAA is not enabled.
Thirdly, in the first Reshade's tab you have to change the preprocessor options (the RESHADE_DEPTH_INPUT_IS_REVERSED option, generally). Take a look at this thread: reshade.me/forum/troubleshooting/4810-ab...s-in-displaydepth-fx .
Then, you have to go to the DX9 tab, and play wit it. I will send you the settings that i use when i have some time...
I suggest you to use the last version of the displaydepth shader, as it show you both the normal and the depth map.
- Virtuous.
Since I was finally able to find that d3d9.dll (thanks to your recent post), I was able to get the depth detection to work.
However, when applying MXAO, the shadow placement is only determined by the roundness of a 3d object, rather than placing shadows inbetween ojects that are close to each other. This is what happens
- thalixte
- Topic Author
Maybe you should ask @MartyMcFly for this MXAO stuff.
- Virtuous.
- Uncle Crassius
Virtuous. wrote: Wow, I thought the whole point of getting the Depth Buffer to work was to make MXAO work. Guess I wasted 2 hours trying to figure it out lol. So it seems like no matter what MXAO won't work with it. Maybe because it's dx9? I dunno.
Nope, looks just like it does when the depth buffer had the wrong direction, so probably no wasted time. Try changing the preprocessor definition "Depth Buffer Reversed" and change it from 1 to 0 or vice versa and see if it helps.
- thalixte
- Topic Author
- Virtuous.
- Uncle Crassius
- Virtuous.
- Uncle Crassius
- Installed ReShade 4.1 and only chose MXAO for testing purposes (I would refrain from using Display Depth altogether, I rather rely on MXAO's debug view option)
- Replaced the dll with thalixte's 32 bit dll he provided above.
- Used these settings (and proof it works): imgur.com/a/T63yfUr
That did the "trick". Works in the game as well, not only the main menu screen.
- thalixte
- Topic Author
Uncle Crassius wrote: Replying here in case others have problems but it worked really straightforward.
- Installed ReShade 4.1 and only chose MXAO for testing purposes (I would refrain from using Display Depth altogether, I rather rely on MXAO's debug view option)
- Replaced the dll with thalixte's 32 bit dll he provided above.
- Used these settings (and proof it works): imgur.com/a/T63yfUr
That did the "trick". Works in the game as well, not only the main menu screen.
Thks a lot !
- Uncle Crassius
- Virtuous.
However, I soon became frustrated by one of the annoyances of MXAO i've seen before - rendering through smoke/fog!
Because this is soo immersion breaking I'm just going to revert to the Nvidia Inspector Ambient Occlusion Compatibility setting since it does not show through smoke/fog.
Maybe one day MXAO will be advanced enough to detect when not to render through sprite effects like fog, smoke, and god rays. Until then, MXAO is only really good for games that have none of that; and that's rare lol!
- Uncle Crassius
[ blog.metaclassofnil.com/?p=821 ]
- Virtuous.
- Virtuous.
- Uncle Crassius
- BlueSkyKnight
Anyways The issue is selecting depth buffers options that work don't really change anything and the ones that do change anything pick the same depth buffer.
Secret of Mana current screen
Secret of Mana Only Depth Buffer available.
Secret of Mana ReShade Log
pastebin.com/aZjWahhm