Welcome, Guest.
Username: Password: Remember me

TOPIC: DOF (depth of field) and ReShade

DOF (depth of field) and ReShade 1 year 11 months ago #1

  • KINGPLA
  • KINGPLA's Avatar
  • Offline
  • Posts: 2
  • Thank you received: 5
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!
The administrator has disabled public write access.

DOF (depth of field) and ReShade 1 year 11 months ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
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.
Cheers, crosire =)
The administrator has disabled public write access.

DOF (depth of field) and ReShade 1 year 11 months ago #3

  • robgrab
  • robgrab's Avatar
  • Offline
  • Posts: 122
  • Thank you received: 21
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 administrator has disabled public write access.
The following user(s) said Thank You: crosire

DOF (depth of field) and ReShade 1 year 11 months ago #4

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
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 =)
Cheers, crosire =)
The administrator has disabled public write access.

DOF (depth of field) and ReShade 1 year 11 months ago #5

  • robgrab
  • robgrab's Avatar
  • Offline
  • Posts: 122
  • Thank you received: 21
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: 1 year 11 months ago by robgrab.
The administrator has disabled public write access.

DOF (depth of field) and ReShade 1 year 11 months ago #6

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
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.
Cheers, crosire =)
The administrator has disabled public write access.

DOF (depth of field) and ReShade 1 year 10 months ago #7

  • robgrab
  • robgrab's Avatar
  • Offline
  • Posts: 122
  • Thank you received: 21
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: 1 year 10 months ago by robgrab.
The administrator has disabled public write access.

DOF (depth of field) and ReShade 1 year 10 months ago #8

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 2452
  • Thank you received: 1391
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 =) ).
Cheers, crosire =)
Last Edit: 1 year 10 months ago by crosire.
The administrator has disabled public write access.

DOF (depth of field) and ReShade 1 year 10 months ago #9

  • robgrab
  • robgrab's Avatar
  • Offline
  • Posts: 122
  • Thank you received: 21
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: 1 year 10 months ago by robgrab.
The administrator has disabled public write access.
The following user(s) said Thank You: crosire