(sl)Edge Hammer to treat light wrap

Written by Rich Frazer on .

The original version of this article can be viewed here

Here’s a quick tip to help integrate composites where light wrap is causing a problem. I have Traian Constantinescu at MPC to thank for showing me the trick - he calls it the “(sl)Edge Hammer”, because using a clamp node to a colour correct is a pretty brutal technique and “like using a sledge hammer to crack a nut”.

THE PROBLEM

If you are digitally modifying exterior landscapes, you may find that an actor who was originally shot against a sky may end up in front of a darker background. This can result in the rear lighting from the sky in the original plate leaving a halo that wraps around the actors – a sure giveaway that the background had been altered. There are many ways of approaching how to fix this and this certainly won’t work in all cases, but this was a trick that I have found useful on a number of shots.
Let’s start by comping something that roughly shows what I mean.

As you can see – the edges are very bright, but there is no lighting in the background that justifies the light wrap.

THE SOLUTION

Now, where there are areas with a consistent colour, we can isolate the edges and treat them. The first thing to do is create an edge mask that matches the falloff of the light wrap. I’ve used a gizmo called FineEdgeDetect, as it allows for separate control of the inside and outside feathering of your edge detect. Here is the result.

The subjects jacket is an ideal area to treat, as its a fairly consistent tone of red. I add a Clamp node and for the “maximum” value I will use the colour picker to select a value that is close to the edge area of the jacket, but not so close that it is effected by the light wrap. You should spend some time adjusting this colour, as its a balancing act to get a value that isn’t to dark or light. You will also want to keyframe this value over time, as the colour of the jacket will change as the subject moves.

The result is pretty ugly looking, but we now matte that through our edge mask.

If I Merge this back over the comp it gives us a nice consistent tone of jacket colour right up to the edges. As the Clamp uses a single value, it won’t match the entire outline, so I also use a roto to restrict  the areas where it is applied.

I then repeat this process several more times for the rest of her jacket, each time sampling a new colour to Clamp to, and using a roto to restrict the edge treatment area.

The end result shows a considerable reduction in the light wrap, and the foreground and background sit together a lot better. The obvious restrictions are that her face and hair not easily treated using the same technique (it works best on areas with little texture).

ADDITIONAL CONSIDERATIONS

Using a Clamp is a very destructive technique, as all colour values lower than those sampled will be lost. Use this treatment sparingly! It is also a very quick way of destroying your grain, so be sure to re-grain your treated edges.

You can download the Nuke script and images here to see how I set up the nodes for this demo.

All images are taken from Flickr and used under the Creative Commons licence.

Comments   

 
+2 # Daniel Gonzalez S 2012-06-04 16:55
Nice. Glad you are using my GIZMO :D thanks for your comment
 
 
0 # cho sungku 2012-06-13 20:37
Thanks. very helpful gizmo
 
 
0 # Ambar Narkar 2012-08-24 04:47
very nice TIP and Info,

i am not able to download fineedgeDetect
 
 
0 # Marty Blumen 2012-09-19 00:45
Nice - maybe also using FilterErode instead of Clamp can give localised consistent colour

FilterErode: Positive values 'grow' darker colours, negative values 'grow' lighter colours.

You can stack them if you need; i.e to remove brighter areas before growing darker ones. And maybe a grade node after to slightly tweak the colour post-FilterErod e-growth.
 
 
+1 # Daniel Gonzalez S 2012-11-01 19:57
they changed the path to the FineEdgeDetect gizmo , you can find it here http://www.nukepedia.com/gizmos/other/fineedgedetect/
 

You have no rights to post comments

We have 4762 guests and 29 members online