Thanks for your response Moiker. I saw the discussion further up the thread but wasn't sure if you had made any progress.
I have zero experience with this stuff, just some basic coding knowledge. Can you perhaps explain how the shader determines the distance an object is from the camera?
Just bouncing ideas around in my head. Maybe there is a filter that can be applied post DoF effect that removes the effect on the lower half of the screen(where most of the cockpit menus are). This would work but would leave a visible line where the DoF effect was on and off. Maybe use some kind of interpolation between the full "on" value and "off" value over a percentage of screen space to blur this visible boundary?
Just throwing ideas around.
All right maybe you can help to solve this, I appreciate your efforts.
The DOF effect have some basic parameter setting, take a look, and if you want to tweak, first the basics:
1) Before you start tweak this, just to clarify, without the autofocus enable (AUTOFOCUS), you can setup a infinite focus distance (INFINITEFOCUS) and a manual focus distance (MANUALFOCUSDEPTH), those two settings will define focal plane and what objects (to far or to close) gets blurred or not. Besides you can setup the settings bellow, they also are relevant:
2) More basic parameters:
#define DOF_METHOD 4 -
Here the best one is Marty McFly Advanced DOF (5), I had to setup the Matso method only to minimize the UI panels issue.
#define DOF_AUTOFOCUS 1 //[0:1] -
Autofocus makes the DOF became focused, changing as the camera moves toward any direction, better enable this one to have a nice looking effect.
#define DOF_FOCUSRADIUS 0.02 //[0.02:0.20] -
Radius of samples around the focus point.
#define DOF_NEARBLURCURVE 10.0 //[0.50:1000.00] -
This may fix the problem, because change the amount of blur closer than focal plane. Higher means less blur.
#define DOF_FARBLURCURVE 1.0 //[0.05:5.00] -
This I think only deal with far objects, because change the amount of blur behind the focal plane. Curve of blur behind focal plane. Higher means less blur.
#define DOF_BLURRADIUS 2.0 //[2.0:100.0] -
This change the amount of blur , high values , more blur.
Tips:
*** To set up every parameter, always the first number is the amount or enable/disable (after #define DOF_parameter
number) and the other numbers inside brackets are the range.
**** Also, each type of method has a fine setup.
Thanks !!![yesnod]