Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
3

Weird halo using Lens Blur depth map

Explorer ,
Aug 28, 2023 Aug 28, 2023

Is there a way to get rid of this weird halo that appears when I use Lens Blur Filter with a Depth Map?
The sharp areas should be in focus at the edges, but they show a strange halo, like if I'm using a fog lens.
Even if the Z map has a good contrast between dark an white areas, the halo appears at the edges as if the subject was out if focus.

Bug Investigating
4.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Pinned Reply

Adobe Employee , Sep 06, 2023 Sep 06, 2023

Hi @NewtV,

Thank you for reporting this issue. As noted, this is a long-standing limitation of the Camera Lens Blur effect, but one that we would like to improve. We're tracking this issue and will be investigating an improvement for a future version of After Effects.

 

Cheers,

- John, After Effects Engineering Team 

Status Investigating
Translate
28 Comments
Community Expert ,
Aug 28, 2023 Aug 28, 2023

Can you post a screengrab of the effects control panel with all of the Camera Lens Blur parameters visible?

 

If you precompose the depth map layer and use Levels in the precomp to brighten the main body of the character to pure white, do you still get the halo?

Translate
Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

NewtV_0-1693316123478.png

 

Translate
Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

This is exactly what I do. Precompose, use the Extractor filter to make ZDepth channel visible and setup Black Point and White Point to get the better contrast.

Translate
Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

I've tried many settings, but never get rid of this halo in all of my works. 

Translate
Report
Community Expert ,
Aug 29, 2023 Aug 29, 2023

Not knowing a whole lot about your job, here's some questions:

 

Why is your Blur Focal Distance set to 194?  If you change it to 0 what happens?

What function are Masks playing in your comp? Why are you using masks in the blur effect?

Translate
Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

As usual, when you change the number of Blur Focal Distance, it will set the focus to another area (based on grayscale tone). In this case the focus goes to the background and the character becomes out of focus. 

Translate
Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

The Blur Map is used to tell AE where you want the focus to be, in combination with Blur Focal Distance set. If I don't use a Blur Map, all image becomes out of focus and that's not what I want.

Translate
Report
Explorer ,
Aug 30, 2023 Aug 30, 2023

Everytime I use Lens Blur, using a DOF Map (Blur Map) I get a weird halo around focused objects.  BugAE.jpg
The same files in Photoshop using Lens Blur everything works fine without that annoying halo. 
I've tried a lot of different settings in After Effects, but I can't get the same nice result I get in Photoshop. BugPS.jpg

Translate
Report
Explorer ,
Aug 30, 2023 Aug 30, 2023

Using 100 Blur Radius - Lens Blur in Photoshop

NewtV_0-1693435605650.pngUsing 100 Blur Radius - Lens Blur in After Effects

NewtV_1-1693435781451.png

 



 

Translate
Report
Community Beginner ,
Sep 01, 2023 Sep 01, 2023

Nobody seems to know much about this filter in this community... and even at Adobe. 

Translate
Report
Community Beginner ,
Sep 01, 2023 Sep 01, 2023

Looks like AE team needs to learn some tricks with PS team

Translate
Report
Community Expert ,
Sep 02, 2023 Sep 02, 2023

I tried to reproduce your problem.  I don't have clean versions of your image so I just used Generative Fill to create a crude copy.  I used Photoshop's "Slect subject" to select the bug and create a black/white depth matte.  The results were the same in AE with Lens Camera Blur - a soft fringe around the subject when it's blurred.

Screenshot 2023-09-02 at 4.49.59 pm.png

 

However, if I then used the Depth Matte as a luma matte I was able to remove the fringe altogether, leaving a hard edge (Probably a bit too hard, you lose the sense of the blur.)

Screenshot 2023-09-02 at 4.58.48 pm.png

You could do the same if you're able to render a matte pass of your bug character without any background elements.  

 

But ultimately I think this is just a limitation of the plugin.

Translate
Report
Community Beginner ,
Sep 04, 2023 Sep 04, 2023

I think it's more than a limitation, it's a bug that exists since CS6 version. We could say it's a limitation if no other software could achieve a decent result, but PS can do a very good result using the "same" filter.  It's strange that no one from Adobe has responded about this bug.

Translate
Report
Community Beginner ,
Sep 04, 2023 Sep 04, 2023

Here are the files of this Bug (Beauty and ZDepth images).

Translate
Report
Adobe Employee ,
Sep 06, 2023 Sep 06, 2023

Hi @NewtV,

Thank you for reporting this issue. As noted, this is a long-standing limitation of the Camera Lens Blur effect, but one that we would like to improve. We're tracking this issue and will be investigating an improvement for a future version of After Effects.

 

Cheers,

- John, After Effects Engineering Team 

Status Investigating
Translate
Report
Community Beginner ,
Sep 06, 2023 Sep 06, 2023

Hi John. I'm glad to know it, because  Lens Blur is (or would be) a very useful filter for 3D artists. A good reference to solve the problem is the same filter in PS, that works perfectly fine. And the PS Lens Blur filter the user can click on the point where he wants to focus, this is very useful and lacks in AE as well.

Translate
Report
Community Beginner ,
Nov 14, 2023 Nov 14, 2023

Is there any timeline for when this bug will be fixed? Lens Blur is a very important filter but it's useless as it is now.

Translate
Report
Community Beginner ,
Apr 18, 2024 Apr 18, 2024

8 months later, this bug has not yet been fixed!!!

Translate
Report
Community Beginner ,
Apr 18, 2024 Apr 18, 2024

8 months later after reported, this bug has not yet been fixed!!!

Translate
Report
New Here ,
Jun 25, 2024 Jun 25, 2024

This has been a problem for over 10 years and there still isn't a solution

Translate
Report
Explorer ,
Aug 07, 2024 Aug 07, 2024

Not sure if you've checked this plugin out, but I've used it in the past at a different agency and it worked a lot better than AE's built in filter. Specifically on not giving me that halo effect you described. Personally, I don't think Adobe will ever change this. 

https://www.frischluft.com/lenscare/index.php

 

Translate
Report
Explorer ,
Aug 09, 2024 Aug 09, 2024

Thank you for your answer, but it's outrageous to have to pay $239 to replace a native plugin that should work seamlessly, especially given our existing (not cheap) monthly Adobe subscription.

Translate
Report
Explorer ,
Aug 12, 2024 Aug 12, 2024

100% agree

Translate
Report
New Here ,
Aug 12, 2024 Aug 12, 2024

My workaround for now is to add a fast box blur with a radius of 15 to the depth map layer, sort of softens it up.

Then in the Camera lens blur effect I change the Blur Map layer to Effects & Masks so it's applied.

Translate
Report
Explorer ,
Aug 12, 2024 Aug 12, 2024

Didn't worked for me. In fact, the halo became strongerTemp2.jpg

Translate
Report