New DOF for EEVEE

Clement is working on a new Depth of Field for eevee, the patches are in a separate branch:

Can someone build it and test it ?

6 Likes

So i followed a tutorial to build a branch and tested the DOF with a simple scene

new

old

‘Jitter camera’ make the DOF looks very good but it needs a lot of samples, the test are rendered at 128samples
image

Neighbor Rejection set to 0 ( without jitter camera )
image

Neighbor Rejection set to max (40) ( without jitter camera )
image

there’s also ’ Sprite threshold ’ which is a brightness threshold for for using sprite base DOF

Looks really promising !

19 Likes

Good stuff!

looks nice, i just wonder if there is a depthmap available, coudn’t that serve a kind of blur by radius ?.
ea within a radius check for pixel values depending their Z value blur/smear it out

more information from clement https://developer.blender.org/D10238

This document gives a good overview of how this is done:

https://epicgames.ent.box.com/s/s86j70iamxvsuu6j35pilypficznec04

2 Likes

i’ve been looking forwards to this for a while! i submitted a macos build on graphicall: https://blender.community/c/graphicall/Nrbbbc/

2 Likes

Thank you for doing so. I just ran a test with it vs. Blender 2.91.2 and not only does the DoF look considerably more natural, but the render took about half as long with the Experimental new version.

I am impressed!!!

4 Likes

Ok, I am getting my mind blown here. What is going on? I am rendering on an M1 Mac Book Air using both this new Experimental build 2.93 and the official 2.91.2, both running under Rosetta since neither is compiled for ARM.

I wanted to test screen space reflection as well as render in at 4096x2160 resolution as opposed to HD.

Here are the screenshots, sorry that you can’t see the final render time on the Experimental version, but it was 36 seconds. Compare it to the render time in 2.91.2. The new version is almost 4X faster!!!

Could this be only because of Clement’s optimizations or is something else going on here? I am completely blown away by these results!!!

!

3 Likes

dithering the camera position is genius!

2 Likes

Current DoF in Eevee was really slow and heavy for the GPU. Here in the forum there were many open threads about very slow render times with Eevee and in many cases DoF was responsible.

1 Like

The new DoF is really good ! It makes a nice foreground transition and keep the silhouette way more than the old one ! Very nice improvment Clément !
I’m adding my stress test (model by Splatypi), it’s particulary visible on the hand and on the chest where there no more weird blurred color. Also the details on the hair are well preserved :

9 Likes

wow we will love this for interior renderings !

I am going to put you on my ban list now :wink:

1 Like

Was there a mention of when this was going into Master?

Not yet, but I’m hoping it will be added soon, hopefully before it reaches Bcon2 in mid March.

1 Like

It’s being reviewed for 2.93

2 Likes

This is fantastic. From my limited testing, it seems like the results look better than Unreal’s results, and the settings seem less fiddly. So excited to see this in regular builds soon.

1 Like

Just did this today with the new Clement depth of field. Render time was around 20 seconds per frame at 2K resolution. All done on a Mac!

9 Likes

Is that the jittered technique? Really clean!