← All ideas
  • Published 8 Sep 2025

Optical ZDefocus?

Something that would be a big draw for people wanting to use Blender as a compositing tool would be a very good Optical Defocus tool.

Coming in as a Nuke compositor the way Nuke's ZDefocus handles edges in depth maps hasn't been replicated anywhere else. No system for this is perfect but if Blender would be able to replicate somehow Nuke's ZDefocus node that would be amazing.

On top of this in Nuke there is the PixelFudger tool set which has a node called pxf_ZDefocus which allows you to emulate physically accurate lens data which drives the defocus.

I've created my own node group which does this but the issue is that with the current Defocus node the edges are always a bit broken. I can mitigate it in ways but it's never amazing and isn't comparable to Nuke's system.

It's quite a setup: 2025-09-08_17-38.png

It achieves the right outcome. Sharp edges end up slightly blurry and there is a hard line in edges that should be soft: 2025-09-08_17-40.png

Nuke output for comparison: 2025-09-08_17-42.png

It's very nitpicky and there are ways to mitigate this further which would result in more work. But if Blender could improve the current system and somehow replicate what Nuke's ZDefocus node is somehow able to achieve it would be a big leap forward!

100%

Development Status: Open

Upvote 7 Downvote 0
mitchell4
8 Sep 2025

2 Comments

FynnG

Hoped to see that for along time now, algorithms for taht are comlex to develop but would be very beneficial

mitchell4 Author

Yea I completely agree. I have no idea how Nuke's works so well. I think this feature alone would get a lot of people talking about the compositor in Blender!