FRAN KRAUSE

frankrause@gmail.com
PORTFOLIO
Vimeo Animations
YouTube Animations

SUBSCRIBE

RSS

RECENT POSTS

Some Drawings for the Asifa East Art Auction
Shanghai Natural History Museum
CalArts 2011 Open Show Titles
“NOSY BEAR”
Sketchbook, December 2010

TWITTER

follow me on Twitter!

CATEGORIES

After Effects
Animation
Art
Bikes
CalArts
Character Design
Independent Projects
Live Action
Music
New Film in Progress
New York
Portfolio
Puppets
Science
Teaching
Uncategorized
website
weird

ARCHIVES

November 2011
April 2011
February 2011
December 2010
September 2010
July 2010
May 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
September 2008
August 2008

SEARCH



Custom Search
© 2007-2010 Fran Krause
bottom
Franimation! » 2009 » February



February 3, 2009

How Digital Compositing Works

Last week I was biking around Crown Heights and saw a box of books on the side of the road. One turned out to be all about digital compositing, called “The Art and Science of Digital Compositing” by Ron Brinkman. It explains how digital compositing works from a technical viewpoint instead of an artistic standpoint and it’s been a really interesting read so far.

Here’s a quick description of how your computer combines a foreground and background image together. First off, you start with two images. A foreground image (in this case, a puppet) and a background image (in this case, the great pyramids).

puppet

puppet

pyramids

pyramids

Images stored on a computer are broken up into three different images (called “channels”) that each represent a single color – usually red, green, and blue. This is often abbreviated as “RGB”.

Red, green and blue channels of the puppet image

Red, green and blue channels of the puppet image

Now, if you just plop the puppet image on top of the pyramid image, you’ll end up with a picture that only shows the puppet. Part of the puppet image needs to be transparent so the pyramids can show through. In order to do this, a matte channel needs to be created. A matte channel (sometimes called an alpha channel) is a greyscale image in which the opaque areas are shown as white and the transparent areas are shown as black. Matte images can be painted by hand or created inside the computer. In this case, the puppet was photographed against a red background so the background could easily be isolated and used to create a matte. As you can see in the color channel images above, the red background exists mainly on the red channel, while the puppet exists mainly on the blue and green channels.

puppet matte

puppet matte

The puppet image is now made up of four one-color channels of information; red color, green color, blue color, and a matte. Each pixel of each image ranges from dark to light. Usually these pixels are stored in the computer as a number ranging from 0-255, depending on the quality of the image. To simplify, some math is used to get the numbers to all range between 0-1. For instance, if the numbers start off ranging from 0-255, each pixel is multiplied by (1/255). Black pixels would end up 0, midtones would be .5, and so on.

Each pixel in the puppet’s color channels are then multiplied by it’s matte. In places where the matte is white, the image will be unchanged (original color x 1 = original color) while areas where the matte is black will make the puppet image black (original color x 0 = 0)

puppet

puppet

X

puppet matte

puppet matte

=

puppet multiplied by it's matte

puppet multiplied by its matte

Next, the background needs to get a hole punched in it where we can put the puppet. The puppet’s matte is first inverted by a bit of math (1 – matte) so 0=1 and 1=0.

inverted mask

inverted mask

Then the background and inverted mask are combined in the same way the puppet was multiplied by its mask.

pyramids

pyramids

X

inverted mask

inverted mask

=

pyramids multiplied by inverted puppet mask

pyramids multiplied by inverted puppet mask

Now we’re finally ready to put the puppet on the pyramid background. The numbers in the three color channels for the puppet are now added to the numbers in the color channels for the pyramid. Since the puppet ends up on the black area, puppet+0=puppet, and the puppet looks normal. Since the transparent area for the puppet is black, adding it to the background also has no effect.

puppet multiplied by it's matte

puppet multiplied by its matte

+

pyramids multiplied by inverted puppet mask

pyramids multiplied by inverted puppet mask

=

puppet visits the pyramids!

puppet visits the pyramids!

There you have it. This is the process used to combine most foreground and background digital images, whether they be cars flying through explosions in Hollywood blockbusters or the arrow cursor on your desktop.

Filed under: Animation,Art — frankrause @ 8:00 am

February 2, 2009

Happy New Year 4707!

恭喜发财! Happy Chinese New Year! Look what I found in Chinatown!

There's a store in Chinatown, a few doors down from Tasty Dumpling on Bayard Street, where one can buy gifts made of paper. These are burned for the use of one's deceased relatives. I picked this sweater up today, the cutout style is beautiful, particularly on the glove.

There's a store in Chinatown, a few doors down from Tasty Dumpling on Bayard Street, where you can buy paper offerings to burn for your dead relatives. This sweater reminded me of cutout animation, so I picked it up. It's made of cable-knit patterned paper, which works great on the red glove.

The paper offerings are made from re-used cardboard wherever possible. This one was mis-printed stock for a safety light and a lion-endorsed snack.

The paper offerings are made from re-used cardboard wherever possible. The box was made from double-printed cardboard for a safety light and lion-endorsed cereal. The little store also had right-hand-drive limos, stacks of cash and cardboard steam-trays with tissue paper chicken feet.

Filed under: Art,New York — frankrause @ 8:00 am
« Newer Posts



RSS

Custom Search

RECENT VISITORS
Visitor map

   admin logon