Welcome, Guest.
Username: Password: Remember me

TOPIC: Cinematic DOF Near Plane issues

Cinematic DOF Near Plane issues 7 months 2 weeks ago #1

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
The administrator has disabled public write access.

Cinematic DOF Near Plane issues 7 months 2 weeks ago #2

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 administrator has disabled public write access.
The following user(s) said Thank You: Oatpunter

Cinematic DOF Near Plane issues 7 months 2 weeks ago #3

Looking forward to it. Thanks!
The administrator has disabled public write access.