[SLE / SSE / FO4] Depth of Field

share shaders here
  • Author
  • Message
Offline
User avatar
*blah-blah-blah maniac*
Posts: 530
Joined: 30 Jan 2012, 13:18

Re: Skyrim SE Advanced Depth of Field

Who is GPC? I know kingeric's, gp65cj042's and Matso's DoF for Skyrim but that's all.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Re: Skyrim SE Advanced Depth of Field

I meant gp65. Sorry.
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop

Offline
User avatar
*blah-blah-blah maniac*
Posts: 530
Joined: 30 Jan 2012, 13:18

Re: Skyrim SE Advanced Depth of Field

As far as I know, his tilt shift overrides the focusing but I can check again.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Re: Skyrim SE Advanced Depth of Field

I don't think so, if not mistaken.

His works like this : (rewriting only related parts and vars)

float2 coord=IN.txcoord.xy;

float scenedepth=tex2D(SamplerDepth, IN.txcoord.xy).x;
float scenefocus=tex2D(SamplerFocus, 0.5).x;
float focalPlaneDepth=scenefocus;
float farBlurDepth=scenefocus*pow(4.0, fFarBlurCurve);

#if (USE_TILT_SHIFT == 1)
float shiftAngle=(frac(fTiltShiftAngle / 90.0) == 0) ? 0.0 : fTiltShiftAngle;
float depthShift=1.0 + (0.5 - coord.x)*tan(-shiftAngle * 0.017453292);
focalPlaneDepth*=depthShift;
farBlurDepth*=depthShift;
#endif

Seems acting as an additional multiplier, if I read that well.
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop

Offline
User avatar
*master*
Posts: 125
Joined: 09 Jul 2015, 16:13

Re: Skyrim SE Advanced Depth of Field

Hey Obama, just noticed your PM. I'll send that code to you this afternoon.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 530
Joined: 30 Jan 2012, 13:18

Re: Skyrim SE Advanced Depth of Field

^Obama lol

Ah that explains why the tilt shift acts so weirdly. Hmm are you sure you want that behavior and not how TS works in actual cameras?

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Re: Skyrim SE Advanced Depth of Field

TreyM
All right, and thank you ;) . But call me Barack please :lol:

Marty
Fact is I want both ;)
I mean, yours as a toggle, as already implemented, and that one as a toggleable addtion to main focus.
I know, I'm being weird myself and quite sterile, huh ? :D
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop

Offline
User avatar
*blah-blah-blah maniac*
Posts: 530
Joined: 30 Jan 2012, 13:18

Re: Skyrim SE Advanced Depth of Field

Not at all, it's just more things in the shader, more parameters and all. Thing is, in ReShade you have this tooltip feature so you can do lengthy explanations, but in ENB you have to pack that into a 3-4 words max. So the more complex a feature is (see InfiniteDepth), the more difficult is to put it in ENB.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 1498
Joined: 31 Mar 2012, 15:06
Location: France

Re: Skyrim SE Advanced Depth of Field

Understood. Do what you think is good, Marty.
_________________
Lian Li PC011 Dynamic, Corsair AX 1500i PSU, i9 10850K @5.0 Ghz, Aorus Z490 Ultra, RTX3090 MSI Gaming X Trio, 32GB Corsair Vengeance Pro RGB RAM@3600, Corsair MP600 1TB NVME System Drive, 10 TB Storage, W10 Pro 64, Custom Hard Tubing Watercooling Loop

Offline
User avatar
*master*
Posts: 125
Joined: 09 Jul 2015, 16:13

Re: Skyrim SE Advanced Depth of Field

Oyama wrote:TreyM
All right, and thank you ;) . But call me Barack please :lol:
LMAO that was a cell phone auto correct typo.
Post Reply