All Topics  
Digital compositing

 

   Email Print
   Bookmark   Link






 

Digital compositing



 
 
Digital compositing is the process of digitally assembling multiple images to make a final image, typically for print, motion pictures
Film

Film encompasses individual motion pictures, the field of film as an art form, and the film industry. Films are produced by recording images from the world with cameras, or by creating images using animation techniques or special effects....
 or screen display. It is the evolution into the digital realm of optical film compositing
Compositing

Compositing is the combining of visual elements from separate sources into single images, often to create the illusion that all those elements are parts of the same scene....
.

basic operation used is known as 'alpha blending
Alpha compositing

In computer graphics, alpha compositing is the process of combining an image with a background to create the appearance of partial transparency....
', where an opacity value, 'a' is used to control the proportions of two input pixel
Pixel

In digital imaging, a pixel is the smallest item of information in an image. Pixels are normally arranged in a 2-dimensional grid, and are often represented using dots, squares, or rectangles....
 values that end up a single output pixel.

Consider three pixels; and

Then, considering all three colour channels, and assuming that the colour channels are expressed in a ?=1 colour space (that is to say, the measured values are proportional to light intensity), we have:

cr = a fr + (1 - a) br
cg = a fg + (1 - a) bg
cb = a fb + (1 - a) bb


Note that if the operations are performed in a colour space where ? is not equal to 1 then the operation will lead to non-linear effects which can potentially be seen as aliasing
Aliasing

In statistics, signal processing, computer graphics and related disciplines, aliasing refers to an effect that causes different continuous signals to become indistinguishable when sampling ....
 artifacts (or 'jaggies
Jaggies

"Jaggies" is the informal name for aliasing artifacts in raster images, often caused by non-linear mixing effects producing high-frequency components and/or missing or poor anti-aliasing filtering prior to sampling....
') along sharp edges in the matte.






Discussion
Ask a question about 'Digital compositing'
Start a new discussion about 'Digital compositing'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Digital compositing is the process of digitally assembling multiple images to make a final image, typically for print, motion pictures
Film

Film encompasses individual motion pictures, the field of film as an art form, and the film industry. Films are produced by recording images from the world with cameras, or by creating images using animation techniques or special effects....
 or screen display. It is the evolution into the digital realm of optical film compositing
Compositing

Compositing is the combining of visual elements from separate sources into single images, often to create the illusion that all those elements are parts of the same scene....
.

Mathematics

The basic operation used is known as 'alpha blending
Alpha compositing

In computer graphics, alpha compositing is the process of combining an image with a background to create the appearance of partial transparency....
', where an opacity value, 'a' is used to control the proportions of two input pixel
Pixel

In digital imaging, a pixel is the smallest item of information in an image. Pixels are normally arranged in a 2-dimensional grid, and are often represented using dots, squares, or rectangles....
 values that end up a single output pixel.

Consider three pixels;
  • a foreground pixel, f
  • a background pixel, b
  • a composited pixel, c
and
  • a, the opacity value of the foreground pixel. (a=1 for opaque foreground, a=0 for a completely transparent foreground). A monochrome raster image where the pixel values are to be interpreted as alpha values is known as a matte
    Matte (filmmaking)

    Mattes are used in photography and special effects filmmaking to combine two or more image elements into a single, final image. Usually, mattes are used to combine a foreground image with a background image ....
    .


Then, considering all three colour channels, and assuming that the colour channels are expressed in a ?=1 colour space (that is to say, the measured values are proportional to light intensity), we have:

cr = a fr + (1 - a) br
cg = a fg + (1 - a) bg
cb = a fb + (1 - a) bb


Note that if the operations are performed in a colour space where ? is not equal to 1 then the operation will lead to non-linear effects which can potentially be seen as aliasing
Aliasing

In statistics, signal processing, computer graphics and related disciplines, aliasing refers to an effect that causes different continuous signals to become indistinguishable when sampling ....
 artifacts (or 'jaggies
Jaggies

"Jaggies" is the informal name for aliasing artifacts in raster images, often caused by non-linear mixing effects producing high-frequency components and/or missing or poor anti-aliasing filtering prior to sampling....
') along sharp edges in the matte. More generally, nonlinear compositing can have effects such as "halos" around composited objects, because the influence of the alpha channel is non-linear. It is possible for a compositing artist to compensate for the effects of compositing in non-linear space.

Performing alpha blending is an expensive operation if performed on an entire image or 3D scene. If this operation has to be done in real time video games there is an easy trick to boost performance.

cout = a fin + (1 - a) bin
cout = a fin + bin - a bin
cout = bin + a (fin - bin)


By simply rewriting the mathematical expression one can save 50% of the multiplications required.

Algebraic properties

When many partially transparent layers need to be composited together, it is worthwhile to consider the algebraic properties of compositing operators used. Specifically, the associativity and commutativity determine when repeated calculation can or cannot be avoided.

Consider the case when we have four layers to blend to produce the final image: F=A*(B*(C*D)) where A, B, C, D are partially transparent image layers and "*" denotes a compositing operator (with the left layer on top of the right layer). If only layer C changes, we should find a way to avoid re-blending all of the layers when computing F. Without any special considerations, four full-image blends would need to occur. For compositing operators that are commutative, such as additive blending, it is safe to re-order the blending operations. In this case, we might compute T=A*(B*D) only once and simply blend T*C to produce F, a single operation. Unfortunately, most operators are not commutative. However, many are associative, suggesting it is safe to re-group operations without changing their order. In this case we may compute S=A*B once and save this result. To form F with an associative operator, we need only do two additional compositing operations to integrate the new layer C: F=S*(C*D). Note that this expression indicates compositing C with all of the layers below it in one step and then blending all of the layers on top of it with the previous result to produce the final image in the second step.

If all layers of an image change regularly but a large number of layer still need to be composited (such as in distributed rendering), the commutativity of a compositing operator can still be exploited to speed up computation through parallelism even when there is no gain from pre-computation. Again, consider the image F=A*(B*(C*D)). Each compositing operation in this expression depends on the next, leading to serial computation. However, commutativity can allow us to rewrite F=(A*B)*(C*D) where there are clearly two operations that do not depend on each other that may be executed in parallel. In general, we can build a tree of pair-wise compositing operations with a height that is logarithmic in the number of layers.

Software


The most historically significant nonlinear compositing system was the Cineon
Cineon

Cineon was the first computer system designed by Eastman Kodak for digital intermediate film production. It included a scanner, tape drives, workstations with digital compositing software, and a film recorder....
, which operated in a logarithmic color space, which more closely mimics the natural light response of film emulsions (the Cineon system, made by Kodak, is no longer in production). Due to the limitations of processing speed and memory, compositing artists did not usually have the luxury of having the system make intermediate conversions to linear space for the compositing steps. Over time, the limitations have become much less significant, and now most compositing is done in a linear color space, even in cases where the source imagery is in a logarithmic color space.

Compositing often also includes scaling, retouching and colour correction of images.

Node-based and layer-based compositing

There are two radically different digital compositing workflows: node-based compositing and layer-based compositing.

Node-based compositing represents an entire composite as a tree graph, linking media objects and effects in a procedural map, intuitively laying out the progression from source input to final output, and is in fact the way all compositing applications internally handle composites. This type of compositing interface allows great flexibility, including the ability to modify the parameters of an earlier image processing step "in context" (while viewing the final composite
Compositing

Compositing is the combining of visual elements from separate sources into single images, often to create the illusion that all those elements are parts of the same scene....
). Node-based compositing packages can often handle keyframing and time effects poorly, as their workflow does not stem directly from a timeline, as do layer-based compositing packages. An example of a node-based compositor is Apple Shake.

Layer-based compositing represents each media object in a composite as a separate layer within a timeline, each with its own time bounds, effects, and keyframes. All the layers are stacked, one above the next, in any desired order; and the bottom layer is rendered first, progressively moving upward until all layers have been rendered into the final composite. Layer-based compositing is very well suited for motion graphics and relatively simple compositing projects, but becomes awkward for more complex composites, often entailing a large number of layers as well as numerous "pre-composites" that together will produce the final composite. An example of a layer-based compositor is Adobe After Effects
Adobe After Effects

Adobe After Effects is a digital motion graphics and compositing software published by Adobe Systems. Its main purpose is for film and video post-production....
.

Digital compositing systems

  • Adobe After Effects
    Adobe After Effects

    Adobe After Effects is a digital motion graphics and compositing software published by Adobe Systems. Its main purpose is for film and video post-production....
  • Apple Shake
  • Autodesk Combustion
  • Autodesk Flint, Flame & Inferno
  • Autodesk Smoke
  • Autodesk Toxik
  • Aviary Peacock
    Aviary (application suite)

    Aviary is a suite of free web-based multi-media applications currently in development from Worth1000, using the proprietary Adobe Flex platform. The individual tools names are bird-themed, hence the suite name....
  • Blender (software)
    Blender (software)

    Blender is a free software 3D computer graphics graphics application. It can be used for 3D modeling, UV mapping unwrapping, texturing, skeletal animation, water simulations, skeletal animation, computer animation, rendering , particle system and other computer simulation, non-linear editing, compositing, and creating interactive 3D applicati...
  • Kodak Cineon
    Cineon

    Cineon was the first computer system designed by Eastman Kodak for digital intermediate film production. It included a scanner, tape drives, workstations with digital compositing software, and a film recorder....
  • CompTime Industrial Light & Magic
  • eyeon Fusion
  • Foundry Nuke
    Nuke (software)

    Nuke is a directed acyclic graph compositor produced by The Foundry, and used for film and television post-production. Nuke is cross-platform, and is available for Microsoft Windows, Mac OS X , and Linux....
  • FXHome CompositeLab Pro
  • Industrial Light & Magic's proprietary Saber
    Industrial Light & Magic's proprietary Saber

    Industrial Light and Magic's proprietary Sabre compositing technology is actually based on Discreet Logic's Inferno and Flame. Several key innovations separate it from the 'Commercial off-the-shelf' versions....
  • Jahshaka
    Jahshaka

    Jahshaka aims to become a cross-platform, open source, free, video editing, effects, and compositing suite. It is currently in Development stage#Alpha, supporting realtime effects rendering, but lacking useful implementations of many features such as the non-linear editing system....
  • Pinnacle Commotion
    Pinnacle Commotion

    Commotion is a visual effects application, originally released by Puffin Designs. Puffin Designs was founded by Scott Squires to market Commotion....
  • SideFX Houdini Halo (Houdini Master)
  • Silicon Grail Rayz and Chalice


See also

  • Chroma key
    Chroma key

    Chroma key is a technique for mixing two images or frames together, in which a color from one is removed , revealing another image behind it....
  • Gamma correction
    Gamma correction

    Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems....
  • Digital cinema
    Digital cinema

    Digital cinema refers to the use of digital technology to distribution and Video projector motion pictures. A movie can be distributed via hard drives, optical disks or satellite and projected using a digital projector instead of a conventional movie projector....


Further reading

  • T. Porter and T. Duff, "Compositing Digital Images", Proceedings of SIGGRAPH '84, 18 (1984).
  • The Art and Science of Digital Compositing (ISBN 0-12-133960-2)