Settings and Macros/SubtractBGColor Description

From VFXPedia

< Settings and Macros
Revision as of 13:46, 14 March 2012 by Gringo (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
SubtractBGColor Description

[ Main Manual Page ]



SubtractBGColor_v01-1 Download

Sometimes 3D objects you get are rendered with the Alpha channel against a non-black background (colored or textured) for some reason. Even if you post-multiply the image, some background texture will remain around the edges and in semi-transparent areas. Using the rendered object plate and the clean background plate, the macro completely removes unwanted background artefacts.

Another case when the SubtractBGColor can help is if you need to replace the background behind a practically shot motion blurred, defocused or semi-transparent object. The issue is the same: blurred edges and semi-transparent areas contain details from the background, so you have to shrink the masks to get rid of the artefacts. Sometimes the shrunk objects get significantly thinner which is undesirable. This tool resolves the problem.

The macro requires the Alpha channel embedded in the input image and the clean background. The input image should not be premultiplied.

Image:SubtractBGColor_Original.jpg Image:SubtractBGColor_Multiplied.jpg Image:SubtractBGColor_SubtractedColor.jpg



External Inputs

The following inputs appear on the tool's tile in the Flow Editor:

Input Image:Node_Input_Gold.gif
Source image. Required.
Background Color Image:Node_Input_Green.gif‎
Clean background without the foreground objects. Required.
Effect Mask Image:Node_Input_Lavender.gif‎
Defines the areas where the background color is subtracted. Optional.





Controls Tab


Red, Green, Blue

Checkbox controls. Define which channels to affect. Typically should be checked.




SubtractBGColor_Example.comp - an example of using the AlphaEdgeCCv macro

Download SubtractBGColor_v01-1

Development History and Discussion on PigsFly



Gregory Chalenko

www.compositing.tv