Depth buffer detection modifications

More
1 year 5 months ago - 1 year 5 months ago #1081 by mirt81
Replied by mirt81 on topic Depth buffer detection modifications
hello . . .

NoManSky 2.06E_51920 works for +ReShade+ Vulkan - MSI Afterburner 4.6.1 - RivaTuner 7.2.2 0verlay - GTX 980M Driver 431.60 Win10x64

0ther then the NMS.exe path wound work for the DefaultPreset.ini cant chose a own path for the DefaultPreset.ini ReShade do @ self the Path for the DefaultPrest.ini

PerformanceMode=1 cause crash

For the ReShade64.log not enough place in the ChatBox and so Tricky = File Compressed TXT to 7zip-Format
www.techinferno.com/applications/core/in...achment.php?id=18865 th@nks TechInferno

DefaultPreset.ini

Techniques=Emboss_Tech,ContrastAdaptiveSharpen,DepthSharpenStaticDof,AdaptiveSharpen
TechniqueSorting=Emboss_Tech,ContrastAdaptiveSharpen,DepthSharpenStaticDof,AdaptiveSharpen
PreprocessorDefinitions=

[Emboss.fx]
fEmbossPower=0.150000
fEmbossOffset=1.150000
iEmbossAngle=90.000000

[CAS.fx]
Sharpness=0.075000

[AdaptiveSharpen.fx]
curve_height=0.075000
L_compr_low=0.167000
D_compr_low=0.250000
curveslope=0.500000
L_overshoot=0.003000
D_overshoot=0.009000
L_compr_high=0.334000
D_compr_high=0.500000
scale_lim=0.100000
scale_cs=0.056000
pm_p=0.700000

[DepthSharpenStaticDof.fx]
pattern=2
contourDepthExponent=2.000000
sharp_strength=1.000000
dofStartDepth=0.700000
contourBlurMinDeltaDepth=0.050000
sharp_clamp=0.035000
offset_bias=1.000000
debug=0
dofTransitionDepth=0.300000
sharpenEndDepth=0.300000
sharpenMaxDeltaDepth=0.002500

ReShade.ini

[GENERAL]
NoFontScaling=1
TextureSearchPaths=.\reshade-shaders\Textures
ScreenshotIncludePreset=0
EffectSearchPaths=.\reshade-shaders\Shaders
ShowClock=0
PerformanceMode=0
ClockFormat=0
CurrentPresetPath=E:\SpieleXplorer\GOG\Spiele\No Man's Sky\Binaries\DefaultPreset.ini
ScreenshotPath=E:\SpieleXplorer\GOG\Spiele\No Man's Sky\Binaries
ShowFPS=0
PreprocessorDefinitions=RESHADE_DEPTH_LINEARIZATION_FAR_PLANE=1000.0,RESHADE_DEPTH_INPUT_IS_UPSIDE_DOWN=0,RESHADE_DEPTH_INPUT_IS_REVERSED=1,RESHADE_DEPTH_INPUT_IS_LOGARITHMIC=0
TutorialProgress=4
ScreenshotFormat=1
ScreenshotSaveBefore=0
NoReloadOnInit=0
ShowFrameTime=0
ShowScreenshotMessage=1
SaveWindowState=0
NewVariableUI=0

[INPUT]
KeyReload=0,0,0,0
KeyEffects=35,0,0,0
KeyScreenshot=44,0,0,0
InputProcessing=2
KeyMenu=36,0,0,0

[VULKAN_BUFFER_DETECTION]
DepthBufferRetrievalMode=0
DepthBufferMoreCopies=0
DepthBufferTextureFormat=0
ExtendedDepthBufferDetection=0
DepthBufferClearingNumber=0

[STYLE]
Alpha=1.000000
GrabRounding=0.000000
FrameRounding=0.000000
FPSScale=1.000000
ChildRounding=0.000000
PopupRounding=0.000000
WindowRounding=0.000000
ScrollbarRounding=0.000000
TabRounding=4.000000
ColFPSText=1.000000,1.000000,0.784314,1.000000
EditorStyleIndex=0
Font=
FontSize=13
EditorFont=
EditorFontSize=13
StyleIndex=2

th@nks all ReShaders for the good great Work0ut :-)
Last edit: 1 year 5 months ago by mirt81.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1082 by thalixte
Replied by thalixte on topic Depth buffer detection modifications

mirt81 wrote: hello . . .

NoManSky 2.06E_51920 works for +ReShade+ Vulkan - MSI Afterburner 4.6.1 - RivaTuner 7.2.2 0verlay - GTX 980M Driver 431.60 Win10x64

0ther then the NMS.exe path wound work for the DefaultPreset.ini cant chose a own path for the DefaultPreset.ini ReShade do @ self the Path for the DefaultPrest.ini

PerformanceMode=1 cause crash

For the ReShade64.log not enough place in the ChatBox and so Tricky = File Compressed TXT to 7zip-Format
www.techinferno.com/applications/core/in...achment.php?id=18865 th@nks TechInferno

DefaultPreset.ini

Techniques=Emboss_Tech,ContrastAdaptiveSharpen,DepthSharpenStaticDof,AdaptiveSharpen
TechniqueSorting=Emboss_Tech,ContrastAdaptiveSharpen,DepthSharpenStaticDof,AdaptiveSharpen
PreprocessorDefinitions=

[Emboss.fx]
fEmbossPower=0.150000
fEmbossOffset=1.150000
iEmbossAngle=90.000000

[CAS.fx]
Sharpness=0.075000

[AdaptiveSharpen.fx]
curve_height=0.075000
L_compr_low=0.167000
D_compr_low=0.250000
curveslope=0.500000
L_overshoot=0.003000
D_overshoot=0.009000
L_compr_high=0.334000
D_compr_high=0.500000
scale_lim=0.100000
scale_cs=0.056000
pm_p=0.700000

[DepthSharpenStaticDof.fx]
pattern=2
contourDepthExponent=2.000000
sharp_strength=1.000000
dofStartDepth=0.700000
contourBlurMinDeltaDepth=0.050000
sharp_clamp=0.035000
offset_bias=1.000000
debug=0
dofTransitionDepth=0.300000
sharpenEndDepth=0.300000
sharpenMaxDeltaDepth=0.002500

ReShade.ini

[GENERAL]
NoFontScaling=1
TextureSearchPaths=.\reshade-shaders\Textures
ScreenshotIncludePreset=0
EffectSearchPaths=.\reshade-shaders\Shaders
ShowClock=0
PerformanceMode=0
ClockFormat=0
CurrentPresetPath=E:\SpieleXplorer\GOG\Spiele\No Man's Sky\Binaries\DefaultPreset.ini
ScreenshotPath=E:\SpieleXplorer\GOG\Spiele\No Man's Sky\Binaries
ShowFPS=0
PreprocessorDefinitions=RESHADE_DEPTH_LINEARIZATION_FAR_PLANE=1000.0,RESHADE_DEPTH_INPUT_IS_UPSIDE_DOWN=0,RESHADE_DEPTH_INPUT_IS_REVERSED=1,RESHADE_DEPTH_INPUT_IS_LOGARITHMIC=0
TutorialProgress=4
ScreenshotFormat=1
ScreenshotSaveBefore=0
NoReloadOnInit=0
ShowFrameTime=0
ShowScreenshotMessage=1
SaveWindowState=0
NewVariableUI=0

[INPUT]
KeyReload=0,0,0,0
KeyEffects=35,0,0,0
KeyScreenshot=44,0,0,0
InputProcessing=2
KeyMenu=36,0,0,0

[VULKAN_BUFFER_DETECTION]
DepthBufferRetrievalMode=0
DepthBufferMoreCopies=0
DepthBufferTextureFormat=0
ExtendedDepthBufferDetection=0
DepthBufferClearingNumber=0

[STYLE]
Alpha=1.000000
GrabRounding=0.000000
FrameRounding=0.000000
FPSScale=1.000000
ChildRounding=0.000000
PopupRounding=0.000000
WindowRounding=0.000000
ScrollbarRounding=0.000000
TabRounding=4.000000
ColFPSText=1.000000,1.000000,0.784314,1.000000
EditorStyleIndex=0
Font=
FontSize=13
EditorFont=
EditorFontSize=13
StyleIndex=2

th@nks all ReShaders for the good great Work0ut :-)


Thks a lot. Yes, the performance mode makes Reshade crash for me too.
Did you see any performance impact ?
The following user(s) said Thank You: mirt81

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1083 by Zireael
Replied by Zireael on topic Depth buffer detection modifications
I've had to set Vulkan games to Administrator in Compatibility of the .exe, then start the .bat file as admin.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1084 by GEEKiDoS
Replied by GEEKiDoS on topic Depth buffer detection modifications
My GPU is RX480, I already Installed the Vulkan SDK.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #1085 by fray_bentos
Replied by fray_bentos on topic Depth buffer detection modifications
Did anyone ever gain access to the depth buffer in Fallout 3? I've seen this video, indicating that someone must have done it:

There is also this mod:

which seems to access the in-game depth buffer. However, I couldn't get any of the directx 9 dlls that were still alive for download on this thread to work. The best I could see in the debug layer of any of the qUINT reshades was an NPC model in 3rd person view, but that never corresponded to the first-person view on the screen at the time. The last mention of Fallout 3 seems to be back at post #61. Can anyone help enhance my first play through of Fallout 3?
Last edit: 1 year 5 months ago by fray_bentos.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #1086 by JBeckman
Replied by JBeckman on topic Depth buffer detection modifications
The DLL files and the installer as of the most recent upload are full compiles of the ReShade source code into these files even if some of them might be pre-named to D3D or DXGI .dll for convenience so I would just try the latest archive and from there use ReShade32.dll as D3D9.dll and see how it goes, MSAA to disabled from memory of what GameBryo and Oblivion, Fallout 3 and New Vegas offered and maybe try with and without HDR(shader effect.) and if that helps.

Pretty sure setting MSAA interfered at least and I am almost certain forcing driver level overrides (NVIDIA) for MSAA for D3D9 will break depth compatibility.

EDIT: The tricky bits then come from if any of the D3D9 specific flags are needed or not for ReShade.

[DX9_BUFFER_DETECTION]
AutoPreserve=0
BruteForceFix=0
DisableINTZ=0
FocusOnBestOriginalDepthstencilSource=0
PreserveDepthBuffer=0
PreserveDepthBufferIndex=0
SourceEngineFix=0

Brute force or preserve perhaps, depends on how it's looking like after the initial test and after MSAA is out of the picture if that is still a compatibility problem.
Last edit: 1 year 5 months ago by JBeckman.
The following user(s) said Thank You: fray_bentos

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #1087 by fray_bentos
Replied by fray_bentos on topic Depth buffer detection modifications
@JBeckman Will give this a shot, I think I have MSAA x2 enabled in the launcher, even though is always indicated as not enabled in reshade. I also have also had HDR disabled from the launcher, but could try enabling it.
Last edit: 1 year 5 months ago by fray_bentos. Reason: Correction

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1088 by mirt81
Replied by mirt81 on topic Depth buffer detection modifications
Yes . . . comparison 0penGL +ReShade+ Vulkan

0penGL Halfs the Frames by set Reshade 0n/0ff 30/60

Vulkan +ReShade+ perform like D3D Frame trop per Used Shader 0n/0ff 30/35

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #1089 by thalixte
Replied by thalixte on topic Depth buffer detection modifications
Can you please test this one ? It should have better perfs. However, i encountered some artefacts in the Reshade UI when scrolling, but it is not too problematic, and could be fixed in the future...

[td
Reshade setup.zip
mega.nz/#!y4wj0QQa!2enHpLKiDw9mi7GcnpuYgvwvo3yBdxhN6v7lst8Swmc[/td]



To test it, you have to use the Reshade installer, which will create a .bat file in the game folder. In order for Reshade to work with the vulkan API, you have to launch the game with this created batch file.
Last edit: 1 year 5 months ago by thalixte.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #1090 by GregTheChief
Replied by GregTheChief on topic Depth buffer detection modifications
Installed it, tried to open it with the .bat file, game starts, but reshade UI not.. any ideas?
Last edit: 1 year 5 months ago by GregTheChief.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1091 by mirt81
Replied by mirt81 on topic Depth buffer detection modifications
New 22.08.2019 +vulkan+ works same as old version i used from 11.08.2019 . . .

Turn 0n +Vulkan+ 0ff a drop of 5-fps is normal for me by using 2 SharpenFilters in my DefaultPreset . . .

Same Performance as DirectX and more realistic compared to 0penGL . . .

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1092 by mirt81
Replied by mirt81 on topic Depth buffer detection modifications
NoManSky worked after an Update / Initial Beyond wond work . . . G0G-Version

Set NoManSky in AdminMode

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1093 by thalixte
Replied by thalixte on topic Depth buffer detection modifications

GregTheChief wrote: Installed it, tried to open it with the .bat file, game starts, but reshade UI not.. any ideas?


If you have the Steam version of No Man's Sky Beyond, you have to remove the keys in the \HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\Vulkan\ImplicitLayers registry folder, and/or in the \HKEY_CURRENT_USER\SOFTWARE\Khronos\Vulkan\ImplicitLayers i order to remove the Steam overlay layer.

The pb is: each time Steam is launched, it will set those keys again...

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #1094 by GregTheChief
Replied by GregTheChief on topic Depth buffer detection modifications
Hmm I deleted the keys in reg-edit like u discribed, but still no reshade UI :(
(Its POS1 or shift + F2 isnt it?)

And yes I use the steam version
Last edit: 1 year 5 months ago by GregTheChief.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago - 1 year 5 months ago #1095 by JBeckman
Replied by JBeckman on topic Depth buffer detection modifications
You can also rename GameOverlay64.dll and kick out the Steam overlay entirely though relaunching Steam will re-validate and add the file back and disabling validation breaks game updating so rename the file back and only use it for testing purposes.

Other functionality goes through that overlay too (64 for 64-bit other one for 32-bit.) so things like the gamepad and input options and more, I keep it disabled for compatibility same as Uplay although neither are as problematic overall as some other software (EA Origin for one.) since I don't really need or use the overlay for anything.

Disabling it in the Steam client just hides the overlay also so that doesn't work it still to hook and inject even if it's no longer drawn just to mention that bit. :)

Registry bit is the layering for VLK and the Steam overlay but renaming or deleting them and relaunching the game should work just as well though you get the overlay but it shouldn't intefere with Vulkan since it doesn't pass through these other .dll files for this feature though there's also the layer Steam uses for the shader cache if you have that setting enabled in the client. :)

VkLayer_steam_fossilize64.dll for "Steam Pipeline Caching Layer",

Haven't gotten around to doing much testing at all and mostly just trying to deal with documentation and getting some understanding but eh it's going to be a slow process, there's also the runtime or the SDK but the display driver should contain a reasonably new runtime so other than some additional extensions that are unlikely to be featured outside of development it shouldn't matter for the runtime. (SDK adds some development and debug features but that's more advanced and not really needed for regular usage.)


Seems Metro Exodus also broke something with it's recent update and DX12, low level API usage is going to be a challenge I presume but for now this is VLK focused and existing API's should mostly continue to function as before though it's worth noting how prone to breaking some things can be. :)
(And that's without software such as game updates or the display drivers thrown around too much.)
Last edit: 1 year 5 months ago by JBeckman.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1096 by thalixte
Replied by thalixte on topic Depth buffer detection modifications
Thks Jonas. Yes some report that clearing the Steam shader cache help in loading Reshade...

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1097 by GregTheChief
Replied by GregTheChief on topic Depth buffer detection modifications
Hmm I deleted the files in \steamapps\common\No Man's Sky\GAMEDATA\SHADERCACHE\
and also the keys in the regedit again.
But still, no UI tried to, start it with POS1 and shift+ F2

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1098 by thalixte
Replied by thalixte on topic Depth buffer detection modifications

GregTheChief wrote: Hmm I deleted the files in \steamapps\common\No Man's Sky\GAMEDATA\SHADERCACHE\
and also the keys in the regedit again.
But still, no UI tried to, start it with POS1 and shift+ F2


The default key is the 'home' key, normally

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1099 by JBeckman
Replied by JBeckman on topic Depth buffer detection modifications
Pos1 = Home though for a German keyboard layout which I think ReShade is unicode aware so these shouldn't interfere other than possibly the key layout differing slightly. :)

On startup the ReShade initializing on-screen display and shader compiler should also pop up in the upper left corner though with 4.0 the shader compile time is very fast so it doesn't stay visible for more than a few seconds at most but that's also a means for seeing that ReShade has initialized assuming the software starts up as usual without any errors.
The following user(s) said Thank You: thalixte

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #1100 by GregTheChief
Replied by GregTheChief on topic Depth buffer detection modifications
Yes POS 1 is HOME :)

Strange... any other ideas what i can try?

Please Log in or Create an account to join the conversation.