» DOF
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

DOF

effect
Credits: technique adapted fromGPU Gems 3 book Chapter 28. "Practical Post-Process Depth of Field". Earl Hammon Jr. Infinity Ward

about

New technique for Depth of Field. Works better on foreground objects.
more info:http://http.developer.nvidia.com/GPUGems3/gpugems3_ch28.html

Change log:

  • DOF 2.0

Technique developped by Infinity Ward for Call of Duty 4: Modern Warfare that provides depth of field's key qualitative features in both the foreground and the background with minimal impact on total system performance or engine architecture. Requires Shader Model 2.0 hardware.

  • DOF 1.1

new blur technique: gaussian blur (modified to blur correctly non square textures). better blur quality and also improved performances.

  • DOF 1.0

Technique for rendering depth-of-field effects in realtime using image processing and compositing techniques with Poisson disc filtering. The use of a pre-blurred image in the post-processing step improves image quality by reducing aliasing artifacts. There are user friendly parameters for plane distance controls.

download

DOF 1.0.zip
10.07.10 [15:26 UTC] by dottore | 1881 downloads
Show 2 older revisions

Older Revisions

DOF 1.1.zip
18.07.10 [11:31 UTC] by dottore | 1412 downloads
DOF 2.0.zip
11.04.11 [03:44 UTC] by dottore | 1843 downloads

xd_nitro 23/07/2010 - 03:25

WOW and many thanks+++++++++

dottore 23/07/2010 - 13:12

no prob,
hope to find a way to improve this technique (should be easier with dx10/11), DOF is amazing...

dottore 23/07/2010 - 13:29

this seems to be almost perfect:
http://developer.amd.com/samples/demos/pages/ATIRadeonHD5800SeriesRealTimeDemos.aspx?cmpid=DevBanner_5800Demos
look at the "Ladybug" section

rosenfranz 20/09/2010 - 17:58

this looks great!
Unfortunately i can't get it to work. When i open your help patch the big rendering window stays black except for the perfmeter. I only can see the color and depth pre-renderings. Tried it with 40beta23 and 45beta24. Same results.
Do you have an idea why that could be wrong?

john 21/09/2010 - 03:41

Hi,
I have the same problem as rosenfranz no image in larger render window.
Could it be our graphic cards not supporting some of the functions ?
John

dottore 24/09/2010 - 15:16

Hello, sorry for the late reply...
@john and rosenfranz:
what's your graphic card?

frostpfote 25/09/2010 - 16:39

great work!

i just tried it on my ati 4950 and had to change the vertex shader-version to 3_0 to get it to work. happens all the time, always gets things working.
VertexShader = compile vs_3_0 VSDOF();

john 26/09/2010 - 07:23

Yo dottore,
my laptop GPU is "ATI Mobility Radeon HD 3650"

john 27/09/2010 - 06:04

the help patches are working now after following the suggestion of frostpfote:
changing the version from 1 to 3 at the end of the code for 'DOF-combine.fx'

frostpfote said
VertexShader = compile vs_3_0 VSDOF();

Can someone explain the need for this change ?
Is it specific to my hardware ?
and why don't I have to change the version in some of the other fx used in this module ?

john 27/09/2010 - 06:07

Really great effect dottore ! Thankyou so much for sharing !

rosenfranz 27/09/2010 - 10:42

ahh. just saw that something happened here. cool.
Also tried to change the vertex shader version. still no effect.
@dottore: my gfx card is a radeon x800gt. Read somewhere that this card uses pixelshader version 2.0. maybe that is the problem?
i also tried to change the PS version from 3.0 to 2.0. Didn't change anything. Besides I think that your shader needs version 3.0 right?

john 04/03/2011 - 05:43

I was just having probs with this effect again as described in the top post ,curiously version 1.1 is not working for me but v1.0 works fine after the suggested change of pixel shader version.

lightizm 11/04/2011 - 06:29

thanks for update. :)

Noir 11/04/2011 - 15:31

bravo natan

Meierhans 11/04/2011 - 23:00

thx!

antokhio 12/04/2011 - 01:17

fckin bravo!

lasal 13/04/2011 - 14:45

looks great ;)

anonymous user login

Shoutbox

~1d ago

joreg: Workshop on 20 06: All about Raymarching with FUSE, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-all-about-raymarching-with-fuse/

~5d ago

joreg: vvvv gamma 6.5 is out, see changelog: https://thegraybook.vvvv.org/changelog/6.x.html

~9d ago

joreg: Workshop on 13 06: All about signed distance fields in FUSE, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-all-about-signed-distance-fields-with-fuse/

~16d ago

joreg: Workshop on 06 06: All about noise Functions with FUSE, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-all-about-noise-functions-with-fuse/

~22d ago

joreg: Workshop on 29 05: Introduction to the core FUSE principles, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-introduction-to-core-fuse-principles/

~28d ago

joreg: Workshop on 23 05: Integrating Rhino 3D with vvvv, Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-integrating-rhino-3d-with-vvvv/

~1mth ago

joreg: Workshop on 16 05: Introduction to Shaders. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-introduction-to-shaders-in-vvvv/

~1mth ago

bjoern: hello, I am looking for a job / project starting june. get in touch via vvvv specialists available for hire

~1mth ago

joreg: Workshop on 09 05: Deepdive into the Stride 3D Engine. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-advanced-3d-rendering-in-vvvv-with-stride/