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

Weird halo using Lens Blur depth map

Explorer ,
Aug 28, 2023 Aug 28, 2023

Copy link to clipboard

Copied

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

Views

2.8K

Translate

Translate

Report

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

Votes

Translate

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

Copy link to clipboard

Copied

NewtV_0-1693316123478.png

 

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

Copy link to clipboard

Copied

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. 

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 29, 2023 Aug 29, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 30, 2023 Aug 30, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 30, 2023 Aug 30, 2023

Copy link to clipboard

Copied

Using 100 Blur Radius - Lens Blur in Photoshop

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

NewtV_1-1693435781451.png

 



 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community Beginner ,
Sep 06, 2023 Sep 06, 2023

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 07, 2024 Aug 07, 2024

Copy link to clipboard

Copied

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

 

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 09, 2024 Aug 09, 2024

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 12, 2024 Aug 12, 2024

Copy link to clipboard

Copied

100% agree

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Explorer ,
Aug 12, 2024 Aug 12, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report