TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 0915v2

share shaders here
  • Author
  • Message
Offline
Posts: 10
Joined: 11 Jan 2013, 18:22

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

How do i make the DOF to become so dramatic as in the pictures on the first post?

Btw... I am completely new to the ENB making... started to do it couple of weeks ago. So please be nice with me XD

slaq83

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

I'm trying to find out which parameter controls the focal SPEED.

At this moment it takes too much time to focus, I'm assuming this can be sped up or slowed down?

Thx in advance.

Offline
User avatar
*blah-blah-blah maniac*
Posts: 3136
Joined: 27 Jan 2012, 13:42

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

slaq83
Open enbseries.ini and lower FadeTime under [DEPTHOFFIELD] category to speed up focusing.

Offline
Posts: 28
Joined: 12 Jan 2013, 16:50

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

It seems I am having an issue using this preset and the newer ENB's, the dawnbreaker/torch causes the screen to dim almost completely dark due to adaption. I would love to keep using this preset so any ideas on how I could alter it so it functions with these items?

Offline
Posts: 42
Joined: 18 Apr 2012, 06:38

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

"Set DoFDistortionAmount to 0"

Does this mean create:

"float DoFDistortionAmount=0" ?

Because I am unable to find DoFDistortionAmount in your enbeffectsprepass.fx.

Could we gain some clarity on how to enable circular bokeh?

#define POLYGONAL_BOKEH // use polygonal shape bokeh or circular bokeh

This does not provide enough information for a non-shader-programmer to understand what needs to be done.

If it is either #define POLYGONAL_BOKEH or #define CIRCULAR_BOKEH

perhaps you could notate it as such in the code comments to help us understand more clearly. Or do you simply comment out #define POLYGONAL_BOKEH to enable circular bokeh?

The only response to these issues has been from another poster, and his response was "read the first post".

I've read it. These issues are still unclear.

Your work is wonderful, and VERY appreciated. Please help us less-programmatically inclined to leverage this wonderful tool.

VermilionTooth

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

Yeah im in the same boat here, if youre new to this then its all very vague on how to use it. Ive gotten everything else with ENB to work except for this effectsprepass.fx and ive tried everything but i cant get it to work for me

Offline
User avatar
Posts: 80
Joined: 12 Sep 2012, 22:29
Location: US

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

@chidosity If you disable the #define POLYGONAL_BOKEH value , you'll get circular DOF.
_________________
Image

Offline
Posts: 10
Joined: 15 Feb 2013, 22:57

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

gp65cj04, I've played with your effect for a while and created not so eye-candy and tilt shift, but more physically accurate model of the camera focus.

Just moved all calculations to camera image space to get reallistic Circle of Confusion over Depth function.

+ camera can focus to positive infinity
+ Depth of Field depends on distance from camera
+ more realistic focusing process (focus distance changes linearly in image space)

(Effect still neeeds some tweaking to match real world scales)

Here is dropbox link:
[Wait, OW SH- ... New users can't post URLs :( ]

parser-proof version of url (just remove all * symbols):

Code: Select all

ht*tp*:/*/d*l.*dr*op*bo*x.*co*m/*u/*49*73*66*92*/e*nb*ef*fe*ct*pr*ep*as*s.*fx
Ha! I've made it! Parser sucks! 8-)

______________________________________________
Here is some math:

For a thin lens, in the paraxial ray approximation, the object and image distances are related by the equation
1/S + 1/S'=1/f . . . . . . . . (0)
where
S - object distance (in front of the lens)
S' - image distance (behind the lens)
f - lens focal length

this gives us
S = (S' * f) / (S' - f) . . . . . . . . (1)
and
S' = (S * f) / (S * f) . . . . . . . . (2)

Circle of confusion of point object at distance So with camera focused at distance Sf can be found by
C = A * abs(Sf' / So' - 1) . . . . . . . . (3)
where
C - Circle of confusion (CoC) radius for point object in image space (i.e. on the film or camera light sensor matrix)
A - lens Aperture (diameter)
Sf' - focus plane distance in image space (can be found by (2))
So' - object distance in image space

Offline
User avatar
Posts: 80
Joined: 12 Sep 2012, 22:29
Location: US

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

@mindstalker Interesting, will take a look into that.


Hey, gp65cj04, I wonder, is there a way to change in such a way that it doesn't use the tilt-shift or auto-focus feature and is just like regular DOF? Thanks.
_________________
Image

Offline
Posts: 34
Joined: 20 Jan 2013, 21:23

Re: TES Skyrim/Fallout New Vegas : Bokeh Depth of Field - 09

Does not seem to work at all in New Vegas. Just uses built-in ENB DoF and no setting changes (even to ridiculous values that would break DoF completely or produce visual oddity) produce a visible difference.
Post Reply