[SLE / SSE / FO4] Depth of Field
- Author
- Message
-
Offline
- *sensei*
- Posts: 341
- Joined: 27 Dec 2011, 21:33
- Location: Poland, Gdańsk
Re: Skyrim SE Advanced Depth of Field
I've made a quick and dirty port of the weight function, since it's my fav feature of your DOF
- Attachments
-
- enbdepthoffield.fx
- Based on 1.1 version
- (14.42 KiB) Downloaded 465 times
_________________
OS: Windows 10
CPU: AMD R5 3600
RAM: Corsair DDR4 16GB 3200MHz Vengeance
GPU: AMD Radeon 5700 XT
Sound Card: X-FI Titanium HD
Mobo: ASRock X370 Pro4
Monitor: M340CLZ 34" 3440x1440 100HZ AMD FREE Sync Curved Monitor
OS: Windows 10
CPU: AMD R5 3600
RAM: Corsair DDR4 16GB 3200MHz Vengeance
GPU: AMD Radeon 5700 XT
Sound Card: X-FI Titanium HD
Mobo: ASRock X370 Pro4
Monitor: M340CLZ 34" 3440x1440 100HZ AMD FREE Sync Curved Monitor
-
Offline
- *blah-blah-blah maniac*
- Posts: 530
- Joined: 30 Jan 2012, 13:18
Re: Skyrim SE Advanced Depth of Field
Can't you just wait until I do it? :v
-
Offline
- *sensei*
- Posts: 341
- Joined: 27 Dec 2011, 21:33
- Location: Poland, Gdańsk
Re: Skyrim SE Advanced Depth of Field
I'm too excitedMarty McFly wrote:Can't you just wait until I do it? :v
_________________
OS: Windows 10
CPU: AMD R5 3600
RAM: Corsair DDR4 16GB 3200MHz Vengeance
GPU: AMD Radeon 5700 XT
Sound Card: X-FI Titanium HD
Mobo: ASRock X370 Pro4
Monitor: M340CLZ 34" 3440x1440 100HZ AMD FREE Sync Curved Monitor
OS: Windows 10
CPU: AMD R5 3600
RAM: Corsair DDR4 16GB 3200MHz Vengeance
GPU: AMD Radeon 5700 XT
Sound Card: X-FI Titanium HD
Mobo: ASRock X370 Pro4
Monitor: M340CLZ 34" 3440x1440 100HZ AMD FREE Sync Curved Monitor
-
Offline
- *blah-blah-blah maniac*
- Posts: 983
- Joined: 09 Dec 2012, 00:29
Re: Skyrim SE Advanced Depth of Field
Marty -- Out of curiosity, just installed Skyrim SE and ENB 0.310.
Still on Windows 7 and maybe I'm doing something wrong (should I change something in the Skyrim inis ?), but I have encountered some problems when using the 1.1 version of your shader: flickering Bokeh, strange problems with focusing and seems that the autofocus switch works inversely for me.
Still on Windows 7 and maybe I'm doing something wrong (should I change something in the Skyrim inis ?), but I have encountered some problems when using the 1.1 version of your shader: flickering Bokeh, strange problems with focusing and seems that the autofocus switch works inversely for me.
_________________
Rudy ENB for Skyrim, Skyrim SE, for Fallout New Vegas, for Dragon's Dogma
English is not my native language.
AMD Ryzen 9 5900X, Gigabyte B550 AORUS PRO AC, Arctic Liquid Freezer II 280, Nvidia Geforce RTX 2070 Super, 64GB ram
Rudy ENB for Skyrim, Skyrim SE, for Fallout New Vegas, for Dragon's Dogma
English is not my native language.
AMD Ryzen 9 5900X, Gigabyte B550 AORUS PRO AC, Arctic Liquid Freezer II 280, Nvidia Geforce RTX 2070 Super, 64GB ram
-
Offline
- *master*
- Posts: 144
- Joined: 10 May 2015, 04:33
Re: Skyrim SE Advanced Depth of Field
The blinking looks like its just the Boheh intensity to me. If you want that less, you can turn down "DOF: BOKEH INTENSITY" from 5.0 to a lower number. Also, if you want autofocus to work more on objects not completely far away, adjust your near and far blur curve values.... Let me know if that is what you are talking about.
-
Offline
- *blah-blah-blah maniac*
- Posts: 530
- Joined: 30 Jan 2012, 13:18
Re: Skyrim SE Advanced Depth of Field
The switch working in reverse, I gotta admit, I have no clue. For me (and everyone else as it seems) it works correctly. The flickering bokeh, well, in cases where AA fails, some singular pixels have a very high brightness in comparison to what's around, hence creating a bright bokeh shape. When moving, those flicker and hence the bokeh blur amplifies the flicker. I recommend a bokeh curve setting of 3-5.
-
Offline
- *master*
- Posts: 144
- Joined: 10 May 2015, 04:33
Re: Skyrim SE Advanced Depth of Field
@Guzio - Maybe post your enbdepthoffield.fx file for us to look at. I mean, the only way this even remotely makes since is somehow something was changed in the file that flipped the login on the checkmark for autofocus. This is a weird one.
-
Offline
- *master*
- Posts: 112
- Joined: 30 Jan 2016, 11:26
- Location: France
Re: Skyrim SE Advanced Depth of Field
If it can helps (which would really surprise me) I made this changes for PRC to make Wolrajh's manual focus working with your DOF:
GUI:
Quick under the hood settings:
#define bADOF_AutofocusEnable 1
#define fADOF_AutofocusCenter float2(0.5,0.5)
Then for the ReadFocus pixel shader:
Example.
GUI:
Code: Select all
bool bAutoFocus
<
string UIName="Auto Focus On/Off";
> = {true}; // true
#define bADOF_AutofocusEnable 1
#define fADOF_AutofocusCenter float2(0.5,0.5)
Then for the ReadFocus pixel shader:
Code: Select all
{
float scenefocus = fADOF_ManualfocusDepth;
float2 coords = 0.0;
if(bADOF_AutofocusEnable != 0)
{
scenefocus = GetLinearDepth(fADOF_AutofocusCenter.xy);
float2 offsetVector = float2(1.0,0.0) * fADOF_AutofocusRadius;
float Alpha = 6.2831853 / iADOF_AutofocusSamples;
float2x2 rotMatrix = float2x2(cos(Alpha),-sin(Alpha),sin(Alpha),cos(Alpha));
for(int i=0; i<iADOF_AutofocusSamples; i++)
{
float2 currentOffset = fADOF_AutofocusCenter + offsetVector.xy;
scenefocus += GetLinearDepth(currentOffset);
offsetVector = mul(offsetVector,rotMatrix);
}
scenefocus /= iADOF_AutofocusSamples;
}
if (bAutoFocus == false)
{
scenefocus = GetLinearDepth(tempInfo2.xy);
}
scenefocus = saturate(scenefocus);
return scenefocus;
}
-
Offline
- *blah-blah-blah maniac*
- Posts: 530
- Joined: 30 Jan 2012, 13:18
Re: Skyrim SE Advanced Depth of Field
Updated file, see first post for details.
-
Offline
- *blah-blah-blah maniac*
- Posts: 983
- Joined: 09 Dec 2012, 00:29
Re: Skyrim SE Advanced Depth of Field
Marty McFly -- Thanks for the update and sorry for the trouble.
I have checked it more closely. Seems that the new TAA anti aliasing causes bokeh flickering and seems that the rest of these problems was my fault or rather too old Nvidia drivers (I try not to install every new release)
If I can say something in my own defence, I don't encountered any problems with Dof shaders from: Cinematic Film Looks SE, FO4 ELEP-Vanilla Cut and your shader from FO4 PRC.X mod,, even with TAA.
The 1.2 version works like a charm, looks incredibly well, no problems so far, autofocus switch works as it should.
I have checked it more closely. Seems that the new TAA anti aliasing causes bokeh flickering and seems that the rest of these problems was my fault or rather too old Nvidia drivers (I try not to install every new release)
If I can say something in my own defence, I don't encountered any problems with Dof shaders from: Cinematic Film Looks SE, FO4 ELEP-Vanilla Cut and your shader from FO4 PRC.X mod,, even with TAA.
The 1.2 version works like a charm, looks incredibly well, no problems so far, autofocus switch works as it should.
_________________
Rudy ENB for Skyrim, Skyrim SE, for Fallout New Vegas, for Dragon's Dogma
English is not my native language.
AMD Ryzen 9 5900X, Gigabyte B550 AORUS PRO AC, Arctic Liquid Freezer II 280, Nvidia Geforce RTX 2070 Super, 64GB ram
Rudy ENB for Skyrim, Skyrim SE, for Fallout New Vegas, for Dragon's Dogma
English is not my native language.
AMD Ryzen 9 5900X, Gigabyte B550 AORUS PRO AC, Arctic Liquid Freezer II 280, Nvidia Geforce RTX 2070 Super, 64GB ram