Friday, October 17, 2008

Week 7: Tracking

Tracking=following 1 thing in your video with a separate element.

Uses:
-Stabilizing
-Matchmoving: change the view out the window, to match a moving shot
-Tracking: stick something to someone.
-Girls gone wild (or
Barbie)
-Big blur spot on COPS
-Horns, fire on hair, wings, clown nose
-Arrows "no smoking campaign"
-or use for rotoscoping by tracking a matte
-info graphics: pointing out areas of the frame that are moving, putting stats to them:
stranger than fiction

Import Ladybeach footage
make new comp
Layer/New/Adjustment Layer
Draw a round mask on this Adj Layer
Apply Fast blur 7

Windows/Tracker Controls (with the adjustmt layer selected!)

-Set Motion Source to "Ladybeach"
-Summons the Layer window
-Keep LadyBeach selected.
-Click the Track Motion button
-brings up a TrackerBox
-3 parts to the trackerbox
1-Target (crosshair)
2-Pattern (innerbox)
3-Search Area (outerbox)
Chose a frame where the pattern was clearest.
Not necessarily the 1st frame.

Set the Trackerbox to her head by dragging between the target and the inner box.
-This drags the entire trackerbox.
-Set the pattern to the size of her head (inner box)
-Set the Target to a corner of where her head and hat meet (remember that Targets love corners)
-Click the play button in the Analyze area.
-Watch carefully for F-ups
-Click play button again to Stop the analyze. Reset the box and target as needed.
-Hit U with my video layer selected, to show all my keyfr, go to the first of those keyfr
-Analyze backwards by clicking the "Backwards play" looking button in the Analyze section.
-Select your 1st layer, hit Apply.
-Creates position keyfr on your layer
-Select all pos keyfr by clicking the word "Position." Make sure your time slider is parked on 1 of those keyframes.
-Use Arrow keys to move her blurry dot over.

To stabilize, select your footage, click Stabilize in the Motion Tracker window.
-for more than 1 tracker point, use position and rotation or scale.
-once it's done analyzing, hit "Apply"

Homework:
Videotape something or someone you can accessorize with Motion Tracking
-Footage
-Accessories
-can be hand-drawn or photos: 360 if your footage features a turning person or object
Bonus points if you use selective color keying for this.
In class we'll assemble the footage and photos, track and work with 3D layers to get the most out of this project.




Adv Post Week 7: Sin City

Keying : selecting part of an image to keep or remove, based on color

Tracking: following the mov't of something on-screen, with another thing. (based on movement)

SinCity: Selective color keying.
Selecting 1 color to keep, and all the rest will be black and white.

1-Matte: everything black except for our color element, which will be white.
-White is our window. Anything white will stay, anything black will go (will show thru to the next layer. Window thru which the colour looks.
2-Colour layer: Enhanced version of our original.
3-BlackAndWhite copy: original with no color.
As if shot on black and white stock.

To use this technique for selective Color Keying instead,
1-Matte: just brightest part of frame, in black-and-white high contrast
2-Darkened/Color-corrected version of original
3-Original

Drag your footage to project window
Drag that from there to comp icon to make a new comp
Isolate the section from 6:04-9:00
6:04 hit B
9:00 hit N
Rt-click the work area, choose "Trim"

Duplicate 2x
(apple D)
rename by hitting Return
-Matte
-Colour
-Black and white

Change the BlackAndWhite layer by turning the other eyeballs off and then applying Hue/Saturation.
-Reduce the Saturation to -100
-Optional: apply Levels effect to increase Contrast

Change the Colour layer by adding the effect Hue/Saturation (and swirling the Hue wheel) or applying Change to Color. Set an original color (green) set an new color (purple), and adjust the controls

Fix up the Matte layer, by applying Linear color key
-Key color is the most important thing
-Pick a mid-range color, not a shadow or a highlight.
-Reduce the Softness value to 5% or so, it always starts off too high.
-Increase the Tolerance: this selects more pixels to key out.
-For finer control, hold the Apple key down while scrubbing a value.
-Changed the View option on the Linear Color key to "Matte Only"
-Apply the Levels effect, slide the white slider toward the black to incr contrast.
-Apply the effect "Invert"
-Change the TrkMat to Luma

If you didn't get enough color selected,

Apply Linear Color Key twice, but instead of View/Matte Only, choose "Final output" on both

Apply the Effect "Invert Alpha"
Apply the effect Shift Channels
Alpha=full on
Red=Alpha
Green=Alpha
Blue=Alpha

And now you have your matte.


Adv Post week 6: Color Keying

Week 6 keying
Color channels: red, green and blue.
in 8-bit color, 256 shades of red green and blue.

combining the 3 colors makes all the others.

computer breaks down each color channel into shades of grey
White=the pixel is at 100% ON of any color.
Black=the pixel shows none of that color
Grey=the pixel kinda shows some of that color.

Keying is a way to avoid excessive roto
-selecting an area of the screen to keep or remove, based on its color.
-Effect/Keying.

Ways avoid roto:
-Shoot well on a well-lit screen
-Screen should not contain any colors that are present in your subject.
-Bad colors: black, cream, white, brown
-Good colors: green (brighter the better), blue, magenta
-Good lighting on your screen.
-As many lamps as you can sign out of checkout.
-And some.
-Bounce cards
-Lotta stands
-Things to diffuse your light
-Help
-Time

Diffuse light that bounces onto your screen
-no hot-spots
space between your actor and the screen
-avoid shadows on the screen
light your actor with his/her own lights when possible.

blondes should be shot on bluescreen.
the shadows from their hair go toward green.

1-shoot it properly
-make sure it's lit well, it's high-res as possible, and the focus is sharp
-do test footage to make sure your setup is good. bring a laptop and proper cables on set to check my key in AE before the shoot.
-if shooting someone tall, turn the camera instead of short-changing your composite
-this allows for possibility to shoot SD output HD
No black or white clothes or accessories.
Grey is ok
shoot as High-Res as possible.
Autofocus OFF. zoom in, focus. turn off auto, zoom out.

2-import it properly.
import it at the size it was shot at.
3-look at it.
-try a simple keyer, like color key or linear color key

-turn on the channels, one at a time.
-see which one gives the highest contrast.
-it might be a channel other than the obvious.

4-create a matte

Draw 3 circles on your screen
-Use the Shape tool set to Ellipse, change stroke value to 0 and these values for each circle:
-Red:255, others 0
-Green 255, others 0
-Blue 255, others 0
-set the blending mode to Add for all of these.

each pixel has 4 values.
Red green blue and alpha
see a b&w picture of each of these in Olympics symbol (located next to resolution below comp window)

the best keys are based on a good matte.
matte is a window thru which we see our footage.
-matte can be black-and-white
-or have alpha.

Color Key: 4 values
key color: eyedropper the color of screen
tolerance: higher the number=more pixels picked.
edge thin: sucks in your edge
feather: makes the edge so Soft.

Always do the following when keying:
-change the BG color to Yellow, Hot Pink
-Look at it thru the Alpha channel
-View it in High Res and 100% zoom
-look around your image with the Hand tool
this way you stay at 100% and you can see each part of pic.

Don't scale footage up more than 115%
-edges and pixels will go to crap otherwise

Edges of your matte should be sharp when dealing with solid stuff, soft when dealing with fluff, hair, fur.

Linear color key (LCK): has more settings than regular color key.
-Turn off the little Fx in the effect controls for LCK
-Click eyedropper and click the background
-For an average of pixel values, hold apple-key while clickdragging in your screen color.
-Default matching softness is 10%: too high.
-2-3%
-Change matching tolerance up from default value of 0%
(Apple-scrub on any slider to change the value to something in the 10ths, or click change the value by typing in numbers.

After Effects Studio Techniques by Mark Christiansen

Creating a matte:
-drag our footage from proj win to below proj window (comp icon)
-draw garbage masks using pen tool to get rid of bluescreen stands
-Set the Mask mode to Subtract

wineglass: channel keying
Photoshop Channel Chops
-Duplicate your layer
-remove all effects: Ap Shift E
-delete other masks
-rough roto of wineglass, 2 sec min
-look at channels indiv.
-apply the effect Shift Channels
-Alpha=alpha
-all others=blue (or which is high-con)
-levels, move sliders to ends of mtns,
move grey till you like what your matte looks like.
(red giant software Composite Wizard)
-add blurs as needed

Name this layer "glass matte"
Edit/Duplicate
-layer 2: call it glass. remove all effects (apple shift E) but keep masks
Rt-click the column heading and choose Modes
Set the TrkMat column of layer 2 (glass)
to Luma Inverted Matte the top layer (glass matte)
-uses the b&w info of the top layer as a window for the bottom layer.
-inverts that.

delete mask off of top layer if you're getting a line

Apply the effect "spill suppressor" to the glass and the girl.

precomp glass and glass matte, then add
simple choker
channel blur

homework:
shoot something with green
keying footage available here if you don't want to be clever:
http://antidotefx.com/afx_hdtestftg.zip

Friday, October 3, 2008

Adv Post Week 5 Notes

Review of Masks
Masks are best worked with in Layer window
-Composition/New Comp
-NTSC/DV, 5:00 duration
-Layer/New/Solid
-Doubleclick the Solid: this opens the layer window.
-Why is Layer window Best?
-This way we don't accidentally re-position or rotate or scale
our layer.
-All we want to do is create Mask Shape keyframes
.


The rules of masks & mask animation
-
mask keyframe: is the diamond-shaped thingy in the timeline
-
mask point: is the dot that the curved line connects.
-
handles are the lines that come off of curved mask points.
-mask point 1 on this mask keyframe stays consistent with point 1
on next mask keyframe.
-
Never remove (as in delete) mask points over time. 
You can add them though.
-Removing mask points later in timeline removes them from
earlier mask shapes as well. Example: instead of deleting
mask points from an ear you don't see anymore, smush the
mask points against the side of her face.
-Avoid using too many points. Create shapes with as few mask
points as possible. Fewer points=fewer chances of error.

Pen Tool Actions
-Clicking creates a sharp mask point
-Click-dragging creates a rounded mask point
-You can change a rounded point to a sharp
one by using the Convert tool <. 
-This lives at the basement of the Mask Drawing Pen. 

On your New Solid, create 4 mask path keyframes. 
-Square to a triangle to a circle to marshmallow 

Creating the square:
-Dbl-click solid to open in layer window 
-Click to start the square, move mouse (not clicking) to Right 
hold shift and click again, move down (not clicking) 
hold shift and click, move Left (not clicking) 
shift and click, 
-Close the shape by going back to the 1st point we made. 
This gives you a circle next to your pen tool. 
Click to close when you see that circle. 
-Hit M for Mask Path. 
Hit stopwatch to enable animation on Mask Path Property. 

-Under Layer window, turn off Render box. 
This way you see your whole layer, not just the part you masked off. 

Creating the triangle: 
-Go to time 1:00 
-Select the top 2 mask points. 
Click the first, hold shift to select the second with it. 
Release shift. 
-Double-click them to get a Transform box 

Creating the circle:
-Go to time 2:00 
-Select the 1st keyframe Copy, Paste 
-Go to Convert Tool, located under Pen. (or hit G till you get it) 

Convert tool is only for changing the nature of a mask point.
Continue moving the handles with your Black Arrow tool.

Creating the marshmallow:
-Go to time 3:00, with Black Arrow deselect all your points. 
And then click on one. 
-Select the Convert tool. 
Use it to break the handle of your Mask Points 

Tools: Pen tool for everything. 
Pen on its own -creates new points when clicked on a path. 

Pen when clicked on a point -Deletes points (yikes!) . 
DON'T DELETE POINTS. 

Pen+Apple: changes it to Black Arrow tool. 
use this to move mask points and their handles, 
as well as to select points (shift click to select more than one or draw-a-box) 

Pen+Option: changes it to Convert tool. 
use this to change a sharp point to a rounded one, 
or to change the nature of a rounded one 
so that each handle can move a different way. 

Rotoscoping basics. 
1. Visually analyze your footage. 
-To start: analyze your footage. 
With your eyes. The ones in your head. 

-Seeing where I should start roto. 
   -Probably not 1st or Last frame. 
   -Pick a frame where all her bodyparts 
   that will ever be roto'd are visible. 

2. Enhance your footage, if needed. 
-Apply color-correction effects so you see your actor more clearly. 
   -You can Remove these after you're done roto-ing. 

IF you apply effects to enhance your footage: 
-Apply brightness/contrast, curves, levels and/or hue/saturation 
to your footage layer in order to see the edges of your actor better.

-Select your Layer & go to Layer/Precompose. 
-Choose "Move All attributes to new comp" 
-Draw your masks on this new layer. 

3. Draw your first frame. 
-Go to Layer view, make sure "View: Masks" is chosen from pulldown. 
turn off "Render" checkbox, so you can see what you're masking. 
-Carefully draw your first mask. 
Make sure it's closed, by re-clicking your first point 
with your pen tool after the shape is made. 
This gives your pen tool a little circle by it, 
so you can close your mask. 
4. Make sure the first frame is perfect. 
-Go to the Composition view by hitting the \ key 
that's below the Delete key on the keyboard. 
-Turn off the Mask View button at the bottom 
of the Comp window. it's to the left of the timecode. 

5.Start animating, by keyframing 10 frames at a time. 

-At the frame where you started the animation, 
keyframe the Mask Path. (turn on stopwatches in timeline) 

-If you don't see mask Path property hit M on keyboard. 

-Hit Shift Pg Dn to go fwd 10 frames. 
-Use the black arrow tool to draw a box around your mask shapes. 
And move it over. 

-Use your black arrow to draw a box around areas of mask points, 
double-click one of those points and you get your transform box. 

-Move areas of points as much as possible 
-To move them together, you can also use your arrow keys on the keyboard. 
Adding Shift to an arrow key moves 10 pixels at a time. 
-Zooming in more means smaller "pixel" movement when using arrow keys. 

6. After you've done 10 frames at a time, do 4 frames at a time. 
    Then 2 frames. Then 1 frame. 

-If you like the way AE did your inbetweens, click the DIP between the 2 arrows 
(in the "sound" column of timeline) to add a keyframe at the current value. 

-otherwise, changing the mask shape will automatically make a new 
Mask Path keyframe 

After you've done 10 frames at a time, do 4 frames at a time. 
Then 2 frames. Then 1 frame. Why this funky way of working?

1) it's more accurate than going frame by frame
2) it's faster.

Your Homework:
Rotoscope 30 frames. My footage or yours. as long as it's big enough and Live-Action.

If using my footage: 
-all of it 90% perfect=A
-head and neck 95% perfect=A
-Also make a rough shape around her hair.
we'll use that for color- keying in class.