Cinematic DOF Near Plane issues

  • Oatpunter
  • Topic Author
More
5 years 3 months ago #1 by Oatpunter Cinematic DOF Near Plane issues was created by Oatpunter
So I've been working on a preset for a bit for Far Cry 3, and it's the first time I've really tried to use Cinematic DOF. I noticed that if I set the near plane blur to zero, there is still blurring on the near plane, as seen below. Note that RESHADE_DEPTH_INPUT_IS_REVERSED=0

imgur.com/OmL8r8B

[CinematicDOF.fx]
UseAutoFocus=1
ManualFocusPlane=1.000000
UseMouseDrivenAutoFocus=0
AutoFocusPoint=0.500000,0.496000
AutoFocusTransitionSpeed=0.200000
FNumber=8.000000
FocalLength=100.000000
ShowOutOfFocusPlaneOnMouseDown=0
OutOfFocusPlaneColor=0.800000,0.800000,0.800000
HighlightType=1
OutOfFocusPlaneColorTransparency=0.700000
FocusPlaneColor=0.000000,0.000000,1.000000
FocusCrosshairColor=1.000000,0.000000,1.000000,1.000000
FarPlaneMaxBlur=1.000000
NearPlaneMaxBlur=0.000000
BlurQuality=2.000000
PostBlurSmoothing=0.000000
HighlightEdgeBias=0.000000
HighlightThresholdFarPlane=0.500000
HighlightGainFarPlane=0.000000
HighlightGainNearPlane=0.000000
HighlightThresholdNearPlane=0.500000
ShowCoCValues=0


So now, if I set RESHADE_DEPTH_INPUT_IS_REVERSED=1, and reverse the plane blur settings, my near plane is clean, but I also get a lot of edge bleed, as seen below:

imgur.com/uxnDr9X

[CinematicDOF.fx]
UseAutoFocus=1
ManualFocusPlane=1.000000
UseMouseDrivenAutoFocus=0
AutoFocusPoint=0.500000,0.496000
AutoFocusTransitionSpeed=0.200000
FNumber=8.000000
FocalLength=100.000000
ShowOutOfFocusPlaneOnMouseDown=0
OutOfFocusPlaneColor=0.800000,0.800000,0.800000
HighlightType=1
OutOfFocusPlaneColorTransparency=0.700000
FocusPlaneColor=0.000000,0.000000,1.000000
FocusCrosshairColor=1.000000,0.000000,1.000000,1.000000
FarPlaneMaxBlur=0.000000
NearPlaneMaxBlur=.3000000
BlurQuality=2.000000
PostBlurSmoothing=0.000000
HighlightEdgeBias=0.000000
HighlightThresholdFarPlane=0.500000
HighlightGainFarPlane=0.000000
HighlightGainNearPlane=0.000000
HighlightThresholdNearPlane=0.500000
ShowCoCValues=0

I was curious if there was a fix, either to remove edge blur in the reversed preset, or the near blur in the regular preset

Thanks

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

  • OtisInf
More
5 years 3 months ago #2 by OtisInf Replied by OtisInf on topic Cinematic DOF Near Plane issues
I fixed that this week :) It's still only in my own repo: github.com/FransBouma/OtisFX/blob/master...ders/CinematicDOF.fx

It has some other small improvements as well. When things are working OK (they seem so), I'll send a PR to the main reshade repo.
The following user(s) said Thank You: Oatpunter

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

  • Oatpunter
  • Topic Author
More
5 years 3 months ago #3 by Oatpunter Replied by Oatpunter on topic Cinematic DOF Near Plane issues
Looking forward to it. Thanks!

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.