DOF (depth of field) and ReShade

  • KINGPLA
  • Topic Author
More
9 years 3 months ago #1 by KINGPLA DOF (depth of field) and ReShade was created by KINGPLA
Hi All! How can I use DOF in ReShade? Preferably in order, where and what to place and where to download. I would be very grateful to You All!

p.s A Big Thank you to ReShade developer for the work done! This is really cool!

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

  • crosire
More
9 years 3 months ago #2 by crosire Replied by crosire on topic DOF (depth of field) and ReShade
The MasterEffect shader collection by Marty McFly for ReShade has a few DOF shaders to play with.
Be aware however that the required depthbuffer access is a bit buggy currently and not always works yet. Also make sure you disable MSAA in your game, because otherwise depthbuffer access is disabled and DOF won't work at all.

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

  • robgrab
More
9 years 3 months ago #3 by robgrab Replied by robgrab on topic DOF (depth of field) and ReShade
Fantastic work! Right before this was released I was dreaming of the day I could enable DoF in System Shock 2. Lo and behold ReShade drops and my dreams are finally realized. One problem I'm having with it though is whenever a weapon is drawn or my hand is showing it disables the depth buffer for that half of the screen. As soon as I lower my hands (aka remove the weapon) the DoF renders properly for the entire screen. Is this because it's too close to the camera? I don't have this problem with third person view games. Unfortunately I've become very rusty on my knowldege of focus depths and camera lenses since graduating from film school. Any tips would be appreciated.
The following user(s) said Thank You: crosire

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

  • crosire
More
9 years 3 months ago #4 by crosire Replied by crosire on topic DOF (depth of field) and ReShade
Probably a focusing thing, yeah. One other possibility would be that ReShade's depth-detection goes crazy, you can check that by enabling trace logging (change the logfile extension to ".tracelog") and see if it contains a lot of "Switched to depthstencil ..." like messages: check if it generates any of these when your hands get visible, by comparing the timestamp. If not, good, then it's focusing, if yes, bad, then it's ReShade doing strange things =)

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

  • robgrab
More
9 years 3 months ago - 9 years 3 months ago #5 by robgrab Replied by robgrab on topic DOF (depth of field) and ReShade
I'll experiment with SS2 later tonight. I tried Quake 4 and that worked perfectly except the blurring affected the HUD also so I disabled it.
Here are before and after screens of Quake 4 with ReShade using MATSODOF.
Last edit: 9 years 3 months ago by robgrab.

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

  • crosire
More
9 years 3 months ago #6 by crosire Replied by crosire on topic DOF (depth of field) and ReShade
Nice =).
Blurring affecting the HUD is totally normal, as ReShade renders at the end of each frame, when the full frame image is finished. The depthbuffer usually does not contain information about the HUD though, so it is ignored by DOF.

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

  • robgrab
More
9 years 3 months ago - 9 years 3 months ago #7 by robgrab Replied by robgrab on topic DOF (depth of field) and ReShade
Here is a quick video I made showing what happens when I pull a weapon in System Shock 2. Notice everything is fine until I pull out a weapon. Any ideas on what could be causing this?
Last edit: 9 years 3 months ago by robgrab.

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

  • crosire
More
9 years 3 months ago - 9 years 3 months ago #8 by crosire Replied by crosire on topic DOF (depth of field) and ReShade

robgrab wrote: Here is a quick video I made showing what happens when I pull a weapon in System Shock 2. Notice everything is fine until I pull out a weapon. Any ideas on what could be causing this?

I suspect it's the game clearing (parts of) the buffer before rendering the FPS hands. Same happens in other games (although they tend to clear the whole thing, not just parts of it). There's not much to do about it, except preventing that clear, but it's up to impossible to genericly figure out which one is the one before FPS hands are drawn (not every game is a FPS =) ).
Last edit: 9 years 3 months ago by crosire.

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

  • robgrab
More
9 years 3 months ago - 9 years 3 months ago #9 by robgrab Replied by robgrab on topic DOF (depth of field) and ReShade
Thanks for the explanation. It's too bad. In my experience so far third person action games like Resident Evil Revelations and the Dead Space games work so well with DOF you'd swear they were already built into the game. The only drawback is when the HUD blurs. Thankfully Dead Space doesn't have a HUD. :)

You might also want to change System Shock 2 status from Perfect to Issues in the compatibility list because of the depth buffer problem. I've also added some more compatible games to my initial list.
  • Aliens vs Predator (2010): Perfect [d3d9.dll] & [dxgi.dll]
  • Dead Space 3: Perfect [d3d9.dll]
  • Resident Evil Revelations: Perfect (DoF is near perfect) [d3d9.dll]
Last edit: 9 years 3 months ago by robgrab.
The following user(s) said Thank You: crosire

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

We use cookies
We use cookies on our website. Some of them are essential for the operation of the forum. You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.