navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

VFX Techniques: Tracking Objects onto a Face

VFX Techniques: Tracking Objects onto a Face

with Lee Lanier

 


VFX Techniques introduces common yet critical visual effects techniques that are used in film and television shows on a regular basis. This installment shows how to build complex composites with Adobe After Effects and mocha, where motion graphics are mapped to live-action footage of an actor. Author Lee Lanier starts by combining rotoscoping and effects to digitally apply makeup to an actor to disguise motion tracking marks. Then discover how to transfer footage into mocha and generate planar tracking data that you can use to motion track graphics to the moving face of the actor. Plus, learn how to build and adjust motion graphics to create the look of a virtual tattoo and a pair of holographic heads-up glasses.
Topics include:
  • Disguising tracking marks with rotoscoping and effects
  • Preparing footage for motion tracking
  • Planar motion tracking a face in mocha
  • Applying tracking data to artwork in After Effects
  • Fine-tuning motion tracking curves in After Effects
  • Animating text and graphic elements
  • Applying color and light effects
  • Batch rendering the final comp

show more

author
Lee Lanier
subject
Video, Compositing, Visual Effects
software
After Effects CS5.5, CS6
level
Intermediate
duration
2h 42m
released
Jan 28, 2013

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:00(music playing)
00:04Hi! I'm Lee Lanier. Welcome to VFX Techniques:
00:07Tracking Objects onto a Face.
00:09In this course, we'll learn how to build a complex visual effects composite
00:12using video footage and artwork.
00:15We'll use After Effects and mocha.
00:16I'll start by showing you how to use rotoscoping effects to create digital makeup.
00:20Then I'll show you how to transfer footage into mocha, and how to generate
00:24planar tracking data.
00:25We'll use that data to impart camera motion to otherwise static layers.
00:29We'll see how to apply tracking data to artwork in After Effects.
00:32We'll use additional effects and animation to create motion graphics
00:36for a heads-up display.
00:37We'll be covering these features and many other tools and techniques.
00:41Now, let's get started with VFX Techniques:
00:44Tracking Objects onto a Face.
Collapse this transcript
Using the exercise files
00:00If you're a premium member of the lynda.com library, you have access to the
00:04Exercise Files used throughout this title.
00:07The Exercise Files are arranged in several additional folders within the
00:10Exercise Files folder like this one right here.
00:14The files are divided between After Effects files, aesthetic artwork created in
00:21Photoshop, video footage converted to image sequences, Mocha files, and also
00:28some Precomps we'll create during the course.
00:30You will be asked to import various files into After Effects throughout this course.
00:34I'll indicate the file name and which folder it's in.
00:37We'll use the files to build a composition in which we add a heads-up display
00:42and electronic tattoo to the face of an actress.
00:45Now, I do want to mention several things about Mocha.
00:48For one, we're using Mocha for After Effects for version CS6, in which case you
00:54have to launch Mocha from After Effects.
00:55Let me show you how to do that.
00:57I've opened After Effects, and I have a simple composition in which I have a single layer.
01:02What you can do is select a layer, go to Animation > Track in mocha AE.
01:11This opens the program.
01:12Now, it's going to want to create a new project based on that layer you had selected.
01:17However, you can just click Cancel, and it leaves the project empty.
01:20However, you can go up to Open, and open a file, for instance a file in
01:25the Mocha Files folder.
01:26Before I open, I'll mention one other aspect of Mocha, and that's the fact that
01:31it creates automatic backup files.
01:33Here's an example, 3_2.autosave.mocha.
01:36This is nice in case you lose a file by accident.
01:39Now, you don't have to keep these, but they're there just in case.
01:42Now, if you save often on your own, hopefully these won't be necessary.
01:47In any case, I'm just going to open one of these Mocha files so you can see it.
01:52There we go, ready to work!
01:53Another potential problem with Mocha is if you move some of the files around,
01:58you take those Exercise Files and you put them in a new location.
02:01Mocha might get confused in terms of where those files are, or where the folders are.
02:05I'll demonstrate that.
02:06I am going to go to a different drive and open a file.
02:16You may see this, 'Relink clip'.
02:18It's been unable to find where the Exercise Files are, in this case, image sequence.
02:23What you can do is click the Choose button, and go to the folder where
02:27those images reside.
02:29In this case, they're in my Precomps > PrepTrack folder.
02:33Before I select the first frame of the sequence, and I need to select the first
02:37frame, I want to mention the Results folder.
02:40When you create a new Mocha file, you will sometimes get a Results folder close
02:44to the place where the image sequence resides, if you use an image sequence to motion track.
02:49Mocha uses this discretely,
02:51you don't have to use it yourself.
02:53Now, if you make a new project over top of the old project, it's going to
02:56actually want to overwrite this.
02:57Generally, it's okay to say Yes and overwrite.
02:59In any case, I'm going to relink my footage,
03:02I'll click on my first PrepTrack image, and click Open.
03:05Once that's listed, I can click Okay.
03:08It reloads the proper image sequence in the proper location, and then you're ready to work.
03:14Now, if you don't have access to the Exercise Files, you can still apply the
03:18discussed techniques on your own assets.
03:19So, let's get started.
Collapse this transcript
What you need to know about this course
00:00In order to get the most out of this course, it's helpful to have a working
00:04knowledge of After Effects.
00:05If you're new to After Effects, I suggest watching the After Effects CS6
00:09Essential Training available at lynda.com.
Collapse this transcript
1. Getting Started
Breakdown of the final comp
00:00Before we get started, I'd like to show you a preview of the major steps we will
00:03be taking throughout this course.
00:06I'll start by showing you how to use rotoscoping and effects to create digital
00:08makeup. And then, we motion-track the tattoo art and how it follows the face.
00:13Then, I'll show you how to create a heads-up display as if it were a pair of
00:17high-tech virtual glasses of some type.
00:19We'll use additional effects and animation to create the armature and some
00:22light effects, and we'll be doing some color-grading to integrate everything.
00:27The goal is to add a floating heads-up display and electronic tattoo to the
00:31face of an actress.
Collapse this transcript
Review of the image sequences
00:00Image sequences are used throughout this course.
00:03They're different from movies, so I wanted to discuss them.
00:05For example, if we go to the Exercise Files folder and into the Footage folder,
00:10there are several other folders full of image sequences. I'll go to Spy.
00:14What you see is a series of images numbered, in this case, from 000 up to 299.
00:22Each frame is a separate image.
00:23These are often used in the visual effects industry.
00:25They have certain advantages.
00:27For example, they're progressive.
00:29Each frame is whole by itself.
00:32There's no potential for interlacing like you might have on video.
00:36In addition, they're very easy to manage.
00:37If you need to re-render something, you don't have to worry about rendering the
00:41entire movie like QuickTime, you can re-render just a few frames.
00:44Now if you're working with video, you can create your own image sequence from that video.
00:48I'm going to show you that.
00:50Let's go into After Effects.
00:52Here's After Effects.
00:53And just as example, I have one image sequence already loaded into the program.
00:57Great thing about After Effects, it can bring in an entire image sequence, in
01:01this case, with 300 separate frames as a single unit.
01:04But we'll discuss how to import these, and how to use them throughout the course.
01:09Right now, let's go ahead and bring in a movie. File > Import File.
01:13As an example, I have QuickTime prepared on my desktop.
01:16You can use your own movie as a test.
01:19What I can do then is pull this movie down into the timeline.
01:25When I do that, it creates a new composition in its correct size,
01:30duration, and frame rate.
01:32I can just scrub to this.
01:35Take a look at it very quickly.
01:37Now again, this is a movie, it's self-contained,
01:41it's not loose-frames.
01:42It's a single file.
01:43If I want to return this into an image sequence, however, I can do that through the Render Queue.
01:48With this layer selected and this composition active, I can go up to
01:51Composition > Add to Render Queue.
01:56That brings you to the Render Queue tab.
01:57There are two things I need to change before I can render,
02:00the Output Module, and the Output To.
02:02I am going to click on the word Lossless first.
02:06That brings up the Output Module Settings window.
02:08At the very top is the format you're rendering to.
02:11You can't render to another movie format or render a sequence.
02:14I need these options that say Sequence or Produce the Image Sequence.
02:18For example, I can render a PNG Sequence.
02:21Once I have that selected, I can click OK to close the window.
02:25Now, I need to change my Output To.
02:28This is where I choose a name and the location for the files I'm going to write out.
02:32I'm going to create a temporary folder on my desktop, New folder, Test.
02:37I can enter that folder, and then pick a name.
02:41Now the way it works is, you have a name, then brackets, pound signs, another
02:47dot, and then the extension.
02:49I want to name mine 'Test.' but I want to leave the brackets and the pound signs.
02:56Those pound signs represent numeric placeholders.
02:58So, in order to have the first frame named 000, I need three pound signs.
03:04This will work if I render all the way up to 999.
03:07So, in any case, my name is set right now and click Save.
03:10Once I have the output module set and also Output To, I can go ahead and render.
03:15And this will convert the movie into a whole series of still images.
03:21Once the render finishes, the yellow bar goes away, and you'll hear a chime.
03:25Now, if your movie is fairly long, this might take quite some time.
03:29Once it's finished, though, you'll have a folder full of image sequences.
03:32I can view those on the desktop.
03:33There is the folder.
03:36And here are all the image sequences numbered 000 all the way to 299.
03:43So if you only have movies, no image sequence, you can create your own.
Collapse this transcript
Setting up the project in After Effects
00:00We're now ready to set up our project, bring in our first piece of footage, and
00:03create our first composition.
00:04I am going to go to File > Import File, and grab our first image sequence.
00:10Even though it says File, I could bring in the image sequence as a single unit.
00:15First piece I will bring in is called Spy.
00:17So, I'm going to go to the Footage folder, the Spy folder, and click on the very
00:21first Spy frame, which is 000.png.
00:24When I do that, I can see that the PNG sequence is checked down here at the bottom-left.
00:29I do want that to be checked.
00:32What that means is even though I've selected only one frame, I'll bring all
00:36those numbered frames in as a single unit.
00:38So, assuming this is checked, I can go to Open and click that.
00:42And there is the image sequence.
00:44It's 300 frames long, but it's brought in as a single unit right here in the Project Panel.
00:49If it's highlighted, I can see the resolution, the duration, and the frame rate.
00:55Now, the duration looks a little funny.
00:57That's actually time-code where you have numbers with colons, and this is a
01:01video type of reading out the duration.
01:04It would be better to work with frames, which is more suited for visual effects.
01:08So, I'm going to go up to File>Project Settings.
01:11At the top of this window, there is a Time Display Style option.
01:17It says Timecode, but I really want Frames.
01:19So, I'll click Frames, and then click OK.
01:22When I do that, duration is read out in frames, which is easier to imagine
01:27for visual effects.
01:28Now, we need our first composition.
01:30A quick way to make a composition is to simply click+drag the image sequence
01:35down into the Timeline, which was empty.
01:37When I let go, the footage appears down here, a new composition is created,
01:42and that's called Spy.
01:43Now, what's great about this technique is the new composition has the same exact
01:47resolution, the same exact duration, and the same exact frame rate.
01:52I'm going to go back to the footage.
01:54I do want to mention something about the frame rate.
01:56Now, the video was originally shot at 30 frames per second, so this is good, it matches.
02:00However, occasionally, you might bring in footage that doesn't match or just has
02:05a wrong frame rate interpreted right here.
02:06What you can do is go down to the footage, right-mouse click while it's
02:11selected, and go to Interpret Footage > Main.
02:14In this window, there is an Assume This Frame Rate cell.
02:18Now, in our case, it's correct with 30.
02:21But, if you needed to change it, you could change the frame rate right here.
02:24For example, if you're working with 24 frames per second footage, you can
02:27enter 24 right here.
02:29Now, we're good to go.
02:30So, I can just cancel out of this window.
02:32Let's take a look at this footage, and see what's going on.
02:38I'm going to use the RAM Preview button at the far right, click that.
02:42The first time it plays through, it's going to write to disk.
02:47So, it's a little bit slow.
02:48As soon as it reaches the end, however, it will start playing in real-time.
02:53It's now in real-time.
03:01This sequence features an actress who walks towards camera, touches her face.
03:07There are little white tracking marks on her face, which we'll use later
03:10for motion-tracking.
03:11Eventually, we'll place new objects on her face to have them follow her face motion.
03:15One will be a little tattoo, like electronic tattoo, right here on the side.
03:19Another will be a heads-up display, a futuristic display.
03:23The idea is she's some kind of industrial spy, and she's using this technology
03:27to see what's going on in the room.
03:29Well now we have our basic project, we have our first image sequence imported,
03:33we have a composition, and we've taken a look at it. We can now address the
03:38tracking marks on her face and create some digital makeup to hide those.
Collapse this transcript
2. Applying Digital Makeup
Rotoscoping tracking marks
00:00We're now ready to start adding visual effects to this project.
00:03We have our footage with our actress who has tracking marks on her face.
00:07Eventually, we'll use those tracking marks to motion-track artwork.
00:11One will be a tattoo we'll add to her cheek, and the other will be a heads-up display
00:15that will float in front of her eyes.
00:17Before we get to that motion-tracking however, we need to remove these dots.
00:22Eventually, when we put that artwork on, we don't want to see the dots remaining.
00:26So, what we can do in the meantime is create some new layers, and have those
00:31serve as a form of digital makeup that disguises those dots. Let's get started.
00:35I'm going to go ahead and rename my first layer here just so I know what it is.
00:40Let's right-mouse click to rename, I'm going to rename this footage, and then go
00:45ahead and duplicate this up. So Edit > Duplicate.
00:50This becomes our first piece of digital makeup.
00:52I'll rename this CheekMask.
00:56We're going to start on the cheek.
01:02So, I want to start by isolating this area that has four dots here and then
01:06the one dot here by the nose.
01:08So, I'm going to grab the Pen Tool while I am on the first frame, and draw a
01:13mask that encompasses that.
01:14So, starting about here, down below the eye, up to the edge of the nose, down
01:19to the cheek, over to the very edge here right across her hair, where it comes
01:25down beside her ear.
01:26This is going to be the first makeup patch.
01:30Now, just rotoscoping by itself is not going to change anything.
01:33What we're going to do is apply some effects to disguise that.
01:37A great way to approach this is to apply a blur. That's often used to remove
01:42things like wrinkles and shadows.
01:43They'll even work on something like this that's more extreme.
01:46So, let's give that a try.
01:48I'm going to go up to Effect > Blur & Sharpen > Gaussian Blur.
01:52I can try a pretty high value.
01:55I'm going to start with 10 Blurriness.
01:56And you can see that the dots go away.
02:00They're there vaguely, but not too bad.
02:02If I turn on the lower layer, you can see that that area has been cleaned up.
02:07Now, because our actress walks through the frame, we definitely have to animate this over time.
02:12So let me go ahead and go to Mask 1 and then click on the time
02:18icon beside Mask Path.
02:19Now, a good approach for animating this mask is simply to bisect.
02:26So, start on the first frame, then go to the very last frame, and then
02:31reposition the mask, so it's in the correct location.
02:35Now, to move the entire thing as one piece, you can double-click on Align, get
02:39the transform handle, scale it by dragging one of the corners, and then just
02:43moving it by click+dragging on the center.
02:46So, I want to align up to approximately same features as before.
02:49I'll hit Esc to get out of the transform, but then I want to click+drag the
02:55individual points to get them in about the same location they were previously.
03:04Because the actress walks close to the camera, the previous blur looks a little weak.
03:08I can still see some of those circles.
03:10What I could do though is animate the blur over time.
03:12I'll go back to Frame 1.
03:14It looks okay there.
03:16Expand the effects, and look at the blur.
03:18I'm going to go ahead and animate the blurriness, click the time icon.
03:2210 is okay at the start. Now I will go to the very end, and increase the blur by 20, or 220.
03:28There we go.
03:29Now, you might have to play around with the mask position because you might
03:35start to see some of the circles.
03:38If you let this left hand side just touch her hair, that will work pretty good.
03:43Now, there is some leeway on these four dots here, because eventually a tattoo
03:48will go right in that spot right over the top.
03:50After I have the first and last frame, I just bisect and go to the center frame,
03:55150, repeat the process, scale, the mask, move it.
04:01If you have to, you can rotate it by clicking outside like this, hit Esc, get
04:05out the transform handle, move individual points.
04:09Like, match up to the edge of her nose.
04:11I can go right into the shadow here on her cheek like this.
04:20Then, I would have to continue to bisect, around to 225 for example, around 75,
04:26until the mask is following the entire time.
04:28Now, you don't have to have a keyframe every frame, but I will say that you
04:33should have a lot of keyframes towards the beginning, maybe two or three frames
04:36apart, because at the start, she is walking, so there's a lot of movement up and
04:40down, left and right.
04:41So, the first half will require many more keyframes than the last half.
04:45There's no way I can finish this rotoscoping in real-time during this video.
04:48It would take far too long.
04:50But go ahead and continue to keyframe on your own until the mask follows the entire time.
04:54You'll see my final version of the rotoscoping keyframing as we continue
04:58the course.
Collapse this transcript
Disguising marks with grading and noise
00:00We have disguised the tracking mark dots on the actress's cheek by duplicating
00:05the layer, rotoscoping, and applying a blur.
00:09You can all the keyframes I have for the rotoscoping. There are definitely many
00:13more on the left side where she walks in the frame, and fewer on the right side
00:17where she comes to rest.
00:18So, it's working pretty well, but one problem is, if I zoom in, I can see that
00:23the non-blurry part of the frame, there's a lot of video noise and compression
00:26and actually she looks a bit more fuzzy, whereas the blur side is very smooth.
00:32So, that's a problem.
00:32We can disguise this however, if we apply a grain tool.
00:36So, I'm going to pick the CheekMask layer, go to Effect and go to Noise & Grain.
00:42In this case, I'm going to use Match Grain.
00:46When you bring up Match Grain, it gives you a little preview window so you don't
00:50see really see the result right away.
00:52You can click+drag the center of that window and move it over to the part you're working on.
00:56I don't see much of a change, so I have to adjust it.
01:01The first thing I need to do is make sure it's pulling the grain from some other layer.
01:06Initially, the Noise Source Layer is set to None.
01:08I'll switch that to the original Footage.
01:11Also, there's intensity. If you go to Tweaking, expand that, there's an Intensity setting.
01:15If I go really high, you'll see it right away, here's 10.
01:20The Noise Pattern is pulled out of the Footage layer and applied to this layer.
01:24That's way too intense though, so I'm going to try 2 instead, just a little bit of noise.
01:29We also have a Size setting and some other ways to adjust that grain, but those
01:34are good with the defaults in this case.
01:36We're still in the preview mode of this effect, so if I want to see the final version,
01:40I'll go to Viewing Mode and change it from Preview to Final Output, and now that
01:46noise is placed every where.
01:48So, here's without the noise, very smooth, here is with.
01:52What's great about this, Match Grain will take the noise from every single frame
01:56of the source, so this noise will change along with the footage as it goes
02:00across the timeline.
02:01Now, this tool, or this effect, is fairly expensive.
02:04So, occasionally I'm going to ask you to turn off Match Grain just to save time.
02:08You can always turn it back on later.
02:10Now, it's working fairly well, especially with the Match Grain, however, we can
02:16still see a little bit of the dots showing through, not only because of the
02:20color, because there are white dots,
02:22you can see that area where the dots were is a little desaturated, right here,
02:27right here, and so on.
02:28To solve that, or combat that, what we can do is make another layer based on our
02:33current CheekMask layer and do some color adjustment on that.
02:36So, I'm going to select CheekMask, Edit > Duplicate, and I'm going to call this new
02:42layer CheekMask Color.
02:47Now, all the effects were copied over at the same time.
02:49I'm going to add one more though, and that's a Hue/Saturation, Effect > Color
02:54Correction > Hue/Saturation.
02:55Now, instead of using the normal master sliders up here at the top, I'm going to
03:03colorize, and that's a tint, where it tints the entire layer.
03:06So if I spin the Hue to 20, 20 for the Colorized Hue, and increase Saturation to
03:1460, what I'm doing is making sure that entire area is much more brownish red.
03:20Now, it's incredibly intense right now, so to reduce that what I can do is go to
03:24the Layers Opacity and reduce that. Let's try 40.
03:32I'll zoom in.
03:33If I turn it off, here is before.
03:35You can see some of those white areas where the dots were.
03:38If I turn it on, there's more even color with that entire area.
03:44Since I copied CheekMask up, I get the mask for free.
03:47So this new layer is going to be in the right place the entire time.
03:51We've added Noise & Grain and also a Hue/Saturation Effect to a separate layer, to
03:56help improve the quality of our digital makeup patch.
03:58We'll be able to use this technique again to help disguise your remaining dots.
Collapse this transcript
Rotoscoping the foreground
00:00We've disguised the dots on her face fairly well, so now they're pretty much invisible.
00:05This leads to one problem, and that's when she lifts her finger up to press her
00:08face around frame 100 or so, her finger becomes blurry, because those upper
00:15layers are blurring that part of the cheek.
00:18We'll have to rotoscope a piece of the footage to bring her finger back.
00:21Now, this will serve a dual purpose.
00:24We also need to get the tattoo eventually underneath that finger. So, let's do that.
00:28I'm going to go down to the Footage layer and duplicate that.
00:31We'll move that up to the very top and rename that finger.
00:37I'll zoom in so I can see and then grab my Pen Tool and draw a mask.
00:46Let me go down to the second joints, so good coverage of the finger, up across the nail.
00:55I don't want any of the cheek or the shadow.
00:59This should be accurate enough to really separate out the finger.
01:05I'll turn off the other layers, you can see the finger by itself.
01:08I'm going to turn off the blurry layers for now just so I can see the original
01:13footage in this new finger.
01:16Now, the segments between the points by default are linear, they're very hard edged.
01:20I really want a curvy mask to really follow the shape of the finger.
01:24One really good way to do that is to double click one of the lines on the mask,
01:29select the entire thing and go to Layer, > Mask and Shape Path > RotoBezier.
01:34What that does is it places the entire mask in a special mode that allows you
01:39to use another tool, which is called Convert Vertex Tool, looks like a little arrow.
01:45If that point is selected at more than one point, if you click drag over a point,
01:49either round it, as you go to the right, or make it hard and linear as you go
01:55the left. I can also alter individual points.
01:58I can click off, select the points, and with that tool continue to refine it.
02:04For instance, curvier, I can go from one to another to another.
02:08This will work on individual ones or groups of points.
02:11So, I want it nice and round on the tip of the finger there. Here we go.
02:21Now, since we are moving with this video, we definitely need to animate this over time.
02:25So, I'm going to ahead and click on the Mask Path time icon.
02:28Now, I should be more careful about where I place the keyframes.
02:33Instead of just simply bisecting, it's actually better to pick some important
02:36moments in the action.
02:37For example, if I go to Frame 94, this is the frame where the finger presses in
02:45the most deeply on the face.
02:47Now, you'll learn this just by looking at the footage and just making notes.
02:51So, if this is Frame 94, I would make sure to fit it here.
02:55You can scale the entire mask, rotate it, and Escape to get out of the transform,
03:00move individual points, whatever it takes to really fit this.
03:05Another point of frame would be Frame 108, and I'm using the time field over
03:10here to be more accurate.
03:11Another point where there is contact -- this is close to my first keyframe, in fact
03:18I'll get rid of my initial one, because that was a little bit haphazard.
03:22Some of these other places that it would be important, this is the first frame
03:27where the finger starts to cross that field where I want to put the tattoo.
03:32Now, here the shape's significantly different, so I have to spend some time
03:38altering the shape of this mask.
03:39I just want the finger, Frame 115.
03:41This is where the finger finally leaves that area, so this has to be the last keyframe.
03:49So, between 70 and 115, that's a critical area.
03:52So, now that I've established my most important keyframes, what I could do is
03:57then bisect the remaining frames, and I'll have to have a fairly high number
04:01of keyframes here, because the way the finger changes shape, and I want to be
04:07as tight as possible.
04:08Now, the edge of the mask is very hard.
04:11If I turn off the background layer and hide the mask, I can see it's a very hard edge.
04:18We probably want a slight feather to blend this better, so what I can do is set
04:24the Mask Feather to 2.
04:25Now, I can't finish rotoscoping in real- time during this video, but I'll let you
04:32continue to work on it.
04:33Now, one trick for examining your keyframes is to use these arrows right
04:37here beside Mask Path.
04:38This will allow you to jump to the next or previous keyframe.
04:42We've duplicated the Footage layer and rotoscoped it to separate out the finger,
04:48so it becomes in the foreground.
04:49This is a common task in visual effects.
04:51Why is that useful?
04:53Well, to make sure that that foreground element is not occluded by some other
04:57layer, and also so we can place other elements, like the tattoo artwork, behind it.
Collapse this transcript
Removing remaining track marks
00:00We've rotoscoped the finger so that it remains in the foreground.
00:03Let me play it back. There we go.
00:10So you can see there's quite a few keyframes that I wound up with.
00:14If I zoom in here using this bar at the top of the timeline, we can see how far
00:19they are spread apart, and these run from 70 to 115 or so.
00:22Now that we've fixed this area of the face around the cheek, we can move on to other parts.
00:27We can try the forehead next.
00:29What we're going to do is start with something that's already working.
00:33I can copy CheekMask up and go from there.
00:36So, I'll select this layer and go to Edit > Duplicate.
00:39I'm going to move this up to the top and then rename it ForeheadMask.
00:53Now, the mask itself was copied up with this.
00:55I don't need that, it's around part of the face, so I'll delete the old mask
01:00and just temporarily turn off the Effects that were also copied, and then start
01:07with a brand new mask.
01:08I'm going to start on Frame 1 again and draw something like this.
01:16It goes right over the eyebrows, over to the edge of the forehead, across the
01:21top here, and I'll hide the left hand side in this shadow.
01:24I'm going to hide the other layers just to save time and then turn on the
01:29Effects and see what it looks like.
01:33Not too bad, but one problem with this top set of marks is, they are higher
01:37contrast, they tend to show up a little bit more.
01:40Also, there's nothing to disguise these marks once we add the
01:42additional artwork.
01:43What we can do though is add some additional effects to try to reduce the
01:47contrast in this area to disguise these.
01:49We'll turn off Match Grain for now just to save time.
01:54And then I am going to add a Brightness Contrast Effect to this layer,
01:58Effect > Color Correction > Brightness & Contrast.
02:02I'm going to move this effect up to the center, and then we can try to reduce the
02:10intensity of the white splashes there. Let's try -10.
02:17It helps a little bit.
02:19Turn Match Grain back on.
02:21Since I added the Brightness & Contrast Effect, the grain becomes very heavy.
02:26I think it's too heavy for this area.
02:28So, I'm going to down to the Tweaking section of this Match Grain and
02:32reduce that to 1.5.
02:34That's looking better. Okay.
02:39Much like the other masks, this will have to be keyframed over time.
02:42So while I'm on Frame 1, I'll go ahead and click the time icon for Mask Path and
02:47then continue to bisect.
02:48I'm just going to key three times now.
02:50It's going to take way too long to demonstrate in real time, so once again, I'll
02:54let you finish the keyframing on your own.
02:56Let's go ahead and get the last frame here, I'll scale out the mask.
03:00Now, the mask is being a little bit slow.
03:02You can turn off the Effects temporarily and that'll speed things up.
03:10Once again, I wanted to run across right above the eyebrows, across the
03:14center of the forehead and down to the right edge here, and disguise the left
03:17side in this shadow.
03:18I'll go to Frame 150 and do one more.
03:23I'll turn the Effects back on because there is a problem that crops up with
03:32this particular area and that's because this dot over here gets extremely close to the edge.
03:40What I don't want to do is blur the edge to the edge of the forehead.
03:44It looks blurry against the background.
03:45If I turn off the mask here in the view, you could see that might be a problem.
03:50One thing I could do though is try to adjust the blurriness of this layer.
03:54So, instead of having a 20 blur at this point, I could see it up here.
03:58I might reduce that first to 15.
04:00Let me go back to 150 again. Not too bad.
04:09I'll check a few other frames.
04:10Of course, I need to update my mask.
04:18There is another solution.
04:19You can isolate this area to try to reduce contrast just where that dot is.
04:27Again, I don't want to blur the edge of the forehead, so if I do need to pull my
04:32mask back here, that's when it becomes a problem.
04:35If I turn the mask off now, I can see the dot's more apparent.
04:38So again, what we can do is create another layer and address that little area by itself.
04:43So, I can go ahead and Duplicate the forehead mask upwards.
04:46I'll have to delete the old mask.
04:54Turn off the Effects at least temporarily, and then what I can do is draw a
04:59smaller mask up here, and center this mask right where that dot is.
05:03I can turn the blur on, if I want this Feather on the mask to be even softer, so I
05:09can take the Mask Feather and change it from 0 to 20.
05:15And then apply a separate effect to reduce the contrast even further here.
05:19Instead of Brightness & Contrast, what I'll do is add a curve.
05:23I'm going to delete this effect, go and get Effect > Color Correction > Curves.
05:28I'll make a pretty crazy curve
05:31that's going to help us with this.
05:33First, I'm going to pull it upwards to the top, and then I'm going to bow this,
05:39pull the right side down first and bow up the center like this.
05:44That really starts to wash it out.
05:46So, I'll turn off the mask here, and this is afterwards, and this is before, so a big difference.
05:53Now again, it's not going to be perfect.
05:55There's still some trace of the dots here.
05:57If I zoom out, it's not too bad.
05:59The dots will start to look like highlights, especially when the video is in motion.
06:04Again, remember to adjust your mask to make sure that the edges are coming to a good place.
06:09We go back to the forehead mask and turn that on.
06:14I can decide if my points are in good locations.
06:17For instance, I can pull these further back and help disguise the dot here even more.
06:23I'll turn on the other layers.
06:27Now, there's one area left to do.
06:30Let's assume that all the keyframing is done in these first two sections.
06:34I still need to deal with this last dot on this cheek.
06:37What I can do to save time, though, since it's a fairly small part, is draw a
06:41new mask on this CheekMask over here, add a separate mask that will use the same effects.
06:47So, with this layer selected, I'm going to back to the first frame and draw a
06:53brand new separate mask that covers this cheek area.
06:56It will take on the same exact effects, because it's on the same layer as this
07:04original mask over here.
07:05Of course, this has to be keyframed over time.
07:10So, I'm going to let you work on that at your own speed. So, there we go.
07:15Remember to turn on the Layer Effects in case you turned them off, and then we
07:21can proceed forward.
07:22So, we've been able to copy some layers, apply some additional rotoscoping,
07:26applied two new effects, the Curves and also Brightness & Contrast, to help
07:30hide all these original tracking points.
07:32We can now approach the Action Motion Tracking.
Collapse this transcript
3. Planar Tracking with mocha
Preparing the footage for tracking
00:00We've created additional makeup to cover up those tracking marks.
00:04Now we're ready to start Motion Tracking, and we're not going to track in After
00:07Effects, although we could.
00:08I am going to use something that's more appropriate for this style of
00:12tracking, which is mocha.
00:13mocha is a separate program which you can get to by going through an
00:17After Effects menu.
00:18Before we go there though, I want to prepare the footage.
00:21I don't want to use what we have here, in fact, let me play this back.
00:29Using the version where the tracking marks are covered will defeat the
00:32purpose, so I'm going to create a new image sequence that's been adjusted to
00:36maximize the potential quality.
00:37I'm going to make a new composition for this and call this PrepFootage.
00:47This needs to be the same Resolution, Frame Rate, and Duration, so 300 Frame Duration.
00:52I'm going to pull the original footage, the Spy image sequence, down into
00:57this new composition.
00:58I could try to track this as is, but I'd rather try to increase the contrast to
01:05make the dots more visible and to allow the tracker to be more successful.
01:10The other thing I can do is get rid of some of the noise.
01:13It's fairly noisy here from the video.
01:15If I reduce the noise, the tracker will be less confused by what it finds in the footage.
01:21Let's start with that.
01:22I'm going to apply Effect > Noise & Grain > Remove Grain.
01:30This effect has a preview box just like Match Grain.
01:33I'm going to move this over, so I can see it better on the face.
01:37Now you can adjust the degree to which it removes the grain and some other fine tuning.
01:42It's actually good as is, though, so the only thing I'm going to do here is change
01:46the viewing mode from Preview to Final Output.
01:48Now it will remove the grain everywhere, or at least reduce it.
01:52Next, I'll address the overall Contrast and Brightness.
01:55I'm also going to adjust the Saturation, make it much more saturated than normal.
01:59In fact, that's where I'll start, Effect > Color Correction > Hue Saturation.
02:04I'm going to make the Master Saturation extra high, 40.
02:08It's going to turn very red, but that will help distinguish the tracking
02:14marks from her skin tone.
02:16Now this actually helps as contrast too, because increasing the saturation increases
02:21the contrast between different color channels.
02:23And ultimately, it will have more contrast than, say, the blue channel.
02:26I can also go ahead and brighten everything.
02:29I want to make sure these are very easily seen.
02:32So I'm going to grab a Curves Tool > Color Correction > Curves, and just bow up the center a bit.
02:37Now that it's adjusted and I have more contrast overall,
02:43I can render this out.
02:45I want to render an image sequence.
02:46So with this composition selected, I want to go to Composition > Add to Render Queue.
02:51I need to change the Output Module and the Output To.
02:54On the Output Module, I'm going to click the word Lossless and pick a new format.
03:00I don't want to render a movie in this case.
03:02I don't want to render an AVI or a QuickTime.
03:05That may lead to compression, which will interfere with the tracking.
03:08I'd rather do an image sequence.
03:09I'm going to pick PNG Sequence. Then click OK.
03:13Next, I'll pick a place to write this out to.
03:18Now, I have a folder that has this already rendered out.
03:20I'm just going to write over the top of it.
03:23'm going to change the name to PrepTrack, and leave the brackets and the pound signs.
03:29Again, the pound signs determine the number of numeric placeholders,
03:33for instance, .000. or .299.
03:39This is ready to go, now I'll click Save.
03:42Once these two things are set, Output Module and Output To, I can click the
03:46Render button and let it render.
03:48Depending on the speed of your machine, this may take several minutes.
03:56But when the render is done, that yellow bar will disappear and you'll hear a chime.
04:01So this render is now finished.
04:02I'm going to bring it back in.
04:04I'm going to back to the Project tab, go to File > Import > File, and bring this back in.
04:15There we go.
04:16There is a new rendered-out image sequence.
04:18I'm going to go back to PrepFootage and pull this new sequence down on top.
04:22I'm going to turn off Spy.
04:24I don't really need it now.
04:26At this point, I can switch over to mocha.
04:28If you're using CS6, there is a menu item to take your current layer and to
04:32bring it into mocha automatically.
04:35So with this PrepTrack layer selected, I'm going to go to Animation > Track in mocha AE.
04:44When it opens, it's going to set up anew project with that layer that you had selected.
04:49So my PrepTrack pre-render is listed right here in Import Clip.
04:53That also lists the Duration and the Frame Rate.
04:56I'm going to click OK now.
04:58Now if there's any kind of pre- existing mocha data, it's going to ask if you
05:04want to overwrite it.
05:05Now since we're starting out, that's perfectly fine.
05:07I'm going to maximize the window.
05:10So now we're now in mocha.
05:13So we're ready to apply the tracking data.
05:16In preparation for motion tracking, we adjusted the color and the contrast
05:20of our original footage, and then you used the built-in menu to bring it
05:25over to the mocha side.
Collapse this transcript
Setting up a mocha project
00:00We've imported our image sequence into mocha.
00:02Before we begin motion tracking however, I'd like to discuss the interface and go
00:06over the basic parts, briefly.
00:08I'll start at the top.
00:09The main menus are up here, including File for Open and Save.
00:13There are some shortcut icons for that also right here.
00:17To the right are a number of tools used to create various splines to define a
00:22curve which the planar shape will be attached to eventually.
00:25We will discuss these in more detail as we go.
00:28To the left here is the Layer Controls.
00:31Each shape we draw will be on a different layer and we'll use this once we have those shapes.
00:36Now sometimes this gets a little bit crowded with all these menus, so I'm going
00:40to close one of these, just so we have more space to work in.
00:44Under the View menu, there are various panels which you can open or close.
00:47I'm going to go down to Overlay Colors and just click that to close that, to
00:51get myself more room.
00:52It's important to have more room to work with in the Layer Controls Panel.
00:56To the right of this area is the viewer.
00:58You have your range right here and also your current frame here, which you can enter by hand.
01:03You have standard play controls here.
01:08To the right of that are the Track Tools.
01:10These are used for analyzing the motion and the patterns to develop, basically,
01:15motion paths and eventually the planar shape.
01:19In After Effects, these would be similar to the analyze buttons.
01:21To the right of that are various key functions, including Autokey.
01:27At the bottom are several tabs and panels.
01:30The first one is Clip.
01:31It has all the details about the image sequence we're working with.
01:34The next one is Track.
01:36This has settings for the motion tracking, which we'll discuss in more detail.
01:40This also has a place to export the data back to After Effects.
01:45To the right is AdjustTrack tab.
01:48This is used to fine-tune that planar shape and eventually determine where the
01:52tracked item is going to appear in After Effects.
01:54These are all within the Parameters tab.
01:56Below that is the CurveEditor, where you can fine-tune your curves you get from
02:01motion tracking.
02:02When working in mocha, you work with mocha files. Whereas an After Effects
02:08file ends with .aep,
02:11For mocha, it's .mocha.
02:12So now that we know the basics we can begin to motion track.
Collapse this transcript
Planar tracking a face
00:00We have imported our prepared image sequence into mocha.
00:03Now to open up that file or to work in mocha again, we do need to go through
00:08After Effects, at least with mocha for After Effects in CS6.
00:12The trick for doing that is to select a layer.
00:15It doesn't even matter which layer it is.
00:17Go to Animation, and go to Track in mocha AE.
00:23Mocha opens, but we don't necessarily want this.
00:26I can just cancel this New Project.
00:30I'll maximize it here. And then you can go and open the file that you want.
00:34So here is the image sequence again.
00:43Now to make room to see our eventual layers, I want to close the Overlay Colors
00:48down here, View, turn off Overlay Colors. There we go,
00:52lots of room now.
00:53Mocha is a planar tracker, which means you identify a pattern surrounded with
00:59a spline shape, figure out where that goes over time, and then attach a planar surface to it,
01:05as if it was a flat piece of paper.
01:07So let's get started with that.
01:09There are several ways to draw spline shapes inside mocha,
01:12which you have up here in the toolbar.
01:14I find the X-spline the easiest to use,
01:16so we're going to start with that.
01:18I want to zoom in nice and close though,
01:20so I'm going to use the zoom tool right here.
01:22Right-mouse click and just drag to get closer.
01:26It would be good to start in a frame where everything is very visible, in better resolution.
01:30So I'm going to go to a later frame, I think 200 will be good, I'll just type
01:35200 in here, and there we go.
01:38Now in terms of the X-spline, I'll just click this icon and then click in the viewer.
01:43Each time you click, you get a point, and it starts to form a closed spline shape.
01:47Now you don't have to have just four, you can go further, but I just want four
01:51in this case, it makes sense.
01:54In order to finish this shape without putting in additional points, right-mouse
01:58click, and there you go.
02:01As soon as you make this shape, you get a layer that appears up in the Layer
02:06Controls panel, and you can rename it, just click on it, backspace, and type a
02:11new name, like Cheek.
02:12All right, I'm going to go back to my Pick Tool and click on that, so we can edit it.
02:19The goal here is to adjust the X-spline, so it surrounds these dots and so I can
02:24tweak it down the road.
02:25So a good way to do it here is to move these corner points close so they just
02:30touch the edge of the dots.
02:32As I move thess around, you'll notice that there's a little zoom window at the top left.
02:37This will come in handy once we start seeing keyframes to compare current frames
02:41with previous or next keyframes.
02:43So for now I'm going to touch the edge of each dot. Okay, looks good.
02:50And notice that a keyframe gets placed, a little green one, right here when I do that.
02:54Now we're ready to start tracking.
02:56I'm closer to the end so I'm going to track forward, which is this button right here.
03:11Once it stops, you'll see a bluish, purplish bar here that indicates that tracking has occurred.
03:17Now mocha will try its best to follow that pattern.
03:20But it will slip off based on resolution or grain or color, what have you.
03:24What you can do though is adjust this X-spline shape at key junctures to make it fit.
03:31Those become keyframes;
03:32it will help make the tracker more accurate.
03:35So I can just grab these corners again and click-drag, and you'll notice the zoom
03:40windows will show our previous keyframe and the current frame.
03:42This allows you to match up the keys.
03:45All right, that looks pretty good.
03:52I'm going to go back to 200 now and track from this point to the beginning, and
03:57here is that button. Okay, looks good.
04:04All right, that looks pretty good. And there we go.
04:20Now it does slip off, the pattern does slip off, because one thing that
04:24interferes is her touching her face.
04:26Two of the tracking marks were covered up and that confuses the tracker.
04:32It's consistent once the finger leaves, but it slipped off the dots.
04:36What we can do is apply additional keyframes to fix that.
04:40Before I go and do that, I want to mention one thing. I'm going to go back to
04:44200 and show you the hidden planar surface.
04:47This is off by default, but you can show it by pressing this S button right here.
04:52Initially it's just rectangular and square to the camera, but this is the area
04:57where the thing you track in After Effects will eventually be placed, the four
05:02corners of the tracked layer in After Effects will be pulled towards the four
05:05corners of this planar shape.
05:07What we can do at this point is zoom in a little bit and adjust this to
05:13match our tracked dots.
05:16I'm going to pull the corners, and just for now I want to place them at the corners
05:21of the X-spline right here, right here, so I'm overlapping the solid blue line of
05:26this shape or this planar surface with the dotted line of the X-spline.
05:32Now I'll have to adjust this as we go further in the tracking, but just for now
05:36I want to set the shape right here on Frame 200, then I'll hide it.
05:40In any case, now I can go back and set more keyframes to get this planar surface to stick.
05:45Now keyframes disappear unless you have one of these points selected and
05:50then they appear again.
05:51So here I'm on Frame 1 or Frame 0, the first frame.
05:54I could try to get these in the correct position.
05:57Now the resolution is very small here for this section, but I'll try my best. Okay, looks good.
06:05Now you'd approach is like you would in After Effects.
06:08You'd place keys where you think they would produce the best curves.
06:11In this case, it would be good to place additional keyframes where there are
06:15sudden changes in motion or where the X-spline suddenly slips off.
06:17Now it's going to be difficult for me to do this in real time, so I'm going to
06:22give you some frame numbers where it would be good to set additional keys. One is Frame 40.
06:27That's where it starts to slip off a little bit, even after your keyframe 0. There's Frame 70.
06:36Again, a point where it starts to slip off, and this actually is right before
06:40her finger touches her face.
06:4177, when her finger is right over this dot here and the shadow starts to interfere.
06:4988, the finger touches the face, we lose one dot completely.
06:55103, where the finger presses deeply into the skin and starts to distort those
07:05four dots in terms of their planar quality.
07:10And 114, where the finger leaves, and once again, all four dots are visible.
07:15So the idea would be to go to those keyframes and then adjust the X-spline shape
07:19to produce additional keyframes.
07:21If you do those minimal number of keyframes, then it should be sufficient to get
07:25pretty good tracking data.
07:27Now there still is a problem where the finger touches the face, but we'll talk
07:30about that further later on.
07:31We have drawn the X-spline shape and adjusted it over time based on the tracking.
07:36In turn the X-spline will determine where the planar surface goes, and that planar
07:40surface will turn into tracking data inside After Effects.
07:43So you can imagine that the artwork we track in After Effects will be where
07:47the X-spline shape is.
Collapse this transcript
Adjusting planar surfaces
00:00I've completed the keyframing for my X-Spline shape.
00:03If I click on one of the X-Spline points, I can see the keyframes here on the
00:07timeline and each one of the corners has the same keyframes.
00:11Let's play it back. And there you go.
00:24All right, that looks pretty good.
00:29It's following fairly well, except where the finger crosses over the shape.
00:34We're going to have to deal with that separately.
00:36In fact, we'll need to edit that in After Effects.
00:39Unfortunately, that's a very difficult thing to track automatically.
00:42Now we could add additional keyframes here, but too many keyframes too close
00:47together makes for a bad set of motion tracking data.
00:50It's actually easier to edit small areas like this, in this problem area,
00:55inside After Effects.
00:56Now there's other work we can do though, and it has to do with the surface,
01:00the planar surface.
01:01Remember we corrected the surface or placed the surface on Frame 200, so it fits the shape.
01:09Let's see what happens on the other frames.
01:11As I scroll through, it gets confused about the appropriate location.
01:18It tries to make the planar shape relative to the X-Spline, but the program
01:25doesn't quite know how to do it the entire time.
01:27What we can do is go to the AdjustTrack tab and offset that planar surface, so
01:35it gets forced into the correct position.
01:37This is like a different set of keyframes just for the planar surface.
01:40It's important to get the correct shape because we don't want our tracked
01:43artwork eventually to grow and shrink inappropriately.
01:46Before I go to the AdjustTrack tab, I want to briefly mention a few things
01:51about the Track panel.
01:52Now we're using most of this in a default state and that's actually fine.
01:56For example, there's a Motion section that determines what you're tracking.
02:00Now this is similar to After Effects where you can track Translation and also
02:04Rotation, for example.
02:05In this case it's Translation, Scale, Rotation, and Shear by default.
02:09There is an option to turn on Perspective, but in this case we'd get better
02:13results with the default.
02:14There's also an option for what you're tracking in terms of channels.
02:18We're tracking Luminance, which is fine.
02:20Even though we adjusted the Hue and Saturation and the Brightness of our image
02:23sequence, we increased the Contrast because increasing the saturation increases the
02:28contrast between channels.
02:29So this works fine here. And Luminance is simply brightness of the image.
02:33There's also the ability to track different styles in motion in terms of big
02:38movement or small movement.
02:39In this case, large motion works well for us.
02:42In any case, let's go back to the AdjustTrack tab and we can adjust this surface.
02:46I'll zoom in, and if I'm on Frame 200, there'll be big Xs.
02:57In fact, before you go to the AdjustTrack tab, I would suggest going to Frame
03:01200 first and then go to this tab.
03:04The idea is to have these master reference points on Frame 200 where the shape
03:10is appropriate, where the planar surface fits correctly.
03:14These don't affect the quality of the tracking,
03:16they're just reference to say that's the first frame where you placed the surface.
03:19We can click on these points here and you get these big boxes around them,
03:27they're green and pinkish.
03:29You can move these, and every time you move these it gets a new keyframe set for
03:33the planar surface for each corner.
03:35Now since I placed that surface on Frame 200 that's where I get a key.
03:41What I can do now is go to other keyframes where there is slippage of that shape,
03:45like Frame 0, and move that planar surface to get it back to where I want it.
03:53So what happens is when you click on one of the corners there, one of those red
03:57boxes, you get a green dotted line.
04:03You can move it to where you want it.
04:05That will be the new position of that corner, and you let go of the blue surface updates.
04:10You have to be careful.
04:15You might have to zoom in really close.
04:17I'm just going to do it for a second, because you don't want to grab the wrong thing.
04:21You really want to grab the little red boxes.
04:26And then you get that green rubber band dotted line, which represents new edges, basically.
04:31So I'm going to put them back at the corners of my X-Spline.
04:34Each one will get its own keyframe, and that keyframe will appear on the timeline.
04:41So once I move the four corners, now my planar surface is correct.
04:47It's in the correct place.
04:49I wanted to continue to do this across the timeline at critical points.
04:52This will be similar to placing keyframes for the X-Spline, pretty much where
04:56there's a big shift in motion or suddenly the planar surface slips.
04:59So what we can do is use some of the same keyframes as we did previously.
05:04On Frame 40, we could reshape it to keyframe it, on Frame 70, 77, 88, 103, and
05:31114, the key at those frames, then by the end of it, the planar surface will
05:36follow just as well as the X-Spline.
05:39We've adjusted the planar surface to make sure it falls at X-Spline.
05:42And that is very important, because eventually the corners of the planar surface
05:47determines where the corners of the tracked artwork go within After Effects.
05:51So in order to avoid fluctuations in scale or strange rotations, is a very important step.
05:56We've adjusted our planar surface to make sure it fits throughout the timeline.
06:01We did this by going to the AdjustTrack tab and setting more keys in the corners.
06:05Now this is an important step, because the planar surface should really fit
06:09that feature on the face, because eventually that planar surface, at least
06:13where its corners are, will determine where the corners of the tracked artwork
06:17are in After Effects.
06:18So you can imagine that where the planar surface is,
06:21that's where our tattoo will eventually go.
Collapse this transcript
Looking at the Curve Editor
00:00Using the Adjust Track tab, I was able to fine tune the planar surface. It's hidden now,
00:05I'll turn that back on, though.
00:06I do have to make sure Layer is selected also, and there it is.
00:10In terms of the number of keyframes, I click on one of the corners after I zoom in.
00:19They match all the keyframes that the X-Spline had.
00:23So that's set up and good to go now.
00:25I do want to mention one other way to edit, and that's the Curve Editor.
00:29If you go down to the Curve Editor tab and click that, you get a Curve Editor
00:33similar to one you might have in some other program like After Effects.
00:36What you'll see is a list of various things you can edit.
00:39Now in terms of the points, if you click on one of those, like this corner of
00:43the planar surface, and you go down to the layer name, for instance Cheek, expand
00:48that, you'll see various sub- categories, including Track.
00:54Also there's Adjust Track section for what we just did with the planar surface.
00:58Here are the corners here.
01:00What we're doing is an offset Animation, so expand that, you'll see
01:05various qualities like X and Y.
01:10The curves started to appear here in the Curve Editor.
01:12The yellow boxes are keyframes.
01:15You can frame the entire curve if you press Frame all.
01:20You can select a curve by just clicking on it, or deselecting by clicking Off.
01:25When it's selected, it's a bluish color.
01:28You can select keyframes at that point by clicking on the keyframe, it will turn yellow.
01:33To pick multiple keyframes, you can Ctrl+click after the curve is selected.
01:38Now you can move these keyframes around if you want to.
01:40Now anything in between the keyframes is provided by mocha when it tracked.
01:45It's not exactly linear and it's not exactly smooth.
01:47You have some bends in those curves.
01:49If you do want to move a keyframe, you are free to do that, just do it very carefully.
01:54Now whenever you set a keyframe up here on the timeline, let's say interactively,
02:00these curves will update, you don't need to reanalyze, you don't need to
02:04retrack at that point.
02:05What mocha will do is it will update the curves in between those
02:08keyframes automatically.
02:09So as soon as you make an adjustment interactively in the viewer, mocha will
02:13update all the curves in between.
02:16You can view small areas, let's say I pick several keyframes here by clicking
02:20the Frame selected button or go back to Frame all.
02:24For the most part when we're working in mocha, we're going to just use interactive
02:28ways to adjust the X-Spline and the planar surface.
02:31But I wanted to mention this because you could do a lot of very, very fine tuning
02:35in the Curve Editor.
Collapse this transcript
4. Importing and Applying Tracking Data
Importing track data from mocha
00:00We spent some time making sure that our X-Spline follows the shape, the four dots,
00:04as best we can, and also adjusted the planar surface.
00:08We're now ready to export the tracking data and get that into After Effects.
00:13There's an Export Tracking Data button right here in the Track Tab.
00:16I want to make sure I have the correct surface visible, in this case, I'm
00:20working on the cheek layer, so we're good to go there.
00:23Export Tracking Data, I'll click that.
00:25This window comes up, and there are several ways to export the data.
00:28What Mocha does is it exports text data that explains where those four corners
00:33are over time, and also information for transforms like Scale.
00:38We just want the After Effects Corner Pin, which is a .text file.
00:42Now you do have the option to save it to text file and we'll do that later on,
00:47but we take a shortcut by copying to clipboard.
00:49That will copy all the data of that layer to the clipboard. So I'm going to copy the
00:54clipboard, click, closes that window.
00:56Now I can switch over to After Effects.
00:58This is where we left off in After Effects.
01:02I'm going to go back to the Spy composition.
01:04I want to bring in the work that I want to place on the cheek, File > Import > File.
01:12This will be in the Artwork folder, and we have a file called Tattoo.
01:18It's a PNG file, so it has transparency in it. Open that.
01:22I'm going to drop this right on top of the composition.
01:26Now we do have to do a little bit of prep work in order to have this track
01:30correctly. What we really want is this artwork to be in the top left corner.
01:35I'd like to move this corner up to the top left here, at zero, zero in space for After Effects.
01:41That works well when pulling our data from Mocha.
01:44What I can do here is change the anchor point's X to 640, and that pins it over in
01:52this top left corner.
01:53Now we can paste the data, because I copied it to the clipboard of the system, I
01:58can highlight the tattoo layer and paste.
02:02I can go up to Edit > Paste right here, and paste.
02:04Now I do have to make sure I'm on the correct frame.
02:09Actually, I pasted on the last frame, that's not going to help. I'm going to Undo.
02:15Move back to frame zero, make sure Tattoo is highlighted, and then paste again.
02:25And then we'll zoom in and see if we can find it, and there it is.
02:28Now we can see how close it is to the original tracking marks by turning off the other layers.
02:33And it's pretty darn close.
02:35You can see that the corners, from the Corner Pin effect, are basically where the
02:40surface corners were in Mocha.
02:41Let's take a look and see what we got in terms of the layer.
02:45We have a brand new Corner Pin effect,
02:48with the four corners and the keyframes for each of the four corners.
02:53We also have the position, scale, and rotation that have been keyed for us automatically.
02:57We now have the start of our motion track tattoo in After Effects.
03:03I'll play back just a tiny part of it, and there we go.
03:13Now there is an issue with the finger.
03:15Remember the data was not quite good with finger crosses, so we're going to edit
03:20that by hand inside After Effects.
03:22We've exported the data from mocha by copying to the clipboard, then in After
03:26Effects we simply pasted that data onto the layer.
Collapse this transcript
Adjusting corner pin curves
00:00We've successfully imported the Tracking Data from mocha, now we have a tracked
00:04piece of tattoo art.
00:05Now, it's not perfect.
00:07Remember the finger crossing over that area caused some problems with the mocha
00:10Tracking Data, so what we can do though is refine it inside of After Effects.
00:14To get started though, I'm going to pull the tattoo layer down below the finger.
00:18It needs to be below the finger.
00:20Then I want to turn off the other layers, just to save some time.
00:25So I can see through to the tracking dots, I'm going to temporarily turn down
00:30the opacity of that tattoo 50%.
00:38So now, I can see where it is relative to the tracking dots.
00:41Now you noticed that there is a keyframe for every frame for the position,
00:45scale, and rotation.
00:47Now the changes in scale for instance are not that great, as is the rotation, so
00:51you don't necessarily need all these keyframes.
00:54One trick to edit the resulting curves is to simplify these properties.
01:00So for example, let's have our scale.
01:02Let's look at it first inside the graph editor.
01:07Here it is, a lot of keyframes but not much change.
01:10The few places where there's a big change are the places we actually need to edit
01:14because of the finger cross. So let's try simplifying it.
01:17What we can do is highlight Scale and open up the Smoother window, Smoother.
01:26And use this to decimate our curve.
01:28What this tool does is it simplifies a curve based on the tolerance, but tries
01:33to maintain the shape as best possible.
01:35Because there's a very little change on our scale, we can try a fairly high
01:39tolerance of three, and then apply, and that's the number of keyframes we have
01:45left when we're done.
01:46If I look back in the Graph Editor, you can see there's just a few bends here, and
01:50again those are the areas that we have to edit anyway.
01:55We can do the same with rotation.
01:56Now one reason to do this, to simplify the curves is, we're going
02:00to need to edit the curves by hand, particularly where it's bad where the finger crosses.
02:04If we have a super dense set of keys,
02:07it's going to be very difficult to edit those areas.
02:10In any case for rotation, we can try to simplify this with a tolerance of one.
02:17There we go, fewer keyframes, it'll be easier to edit.
02:21But again it's maintained the basic shape.
02:26So we're not losing too much information.
02:31Now while the main problem area is when the finger crosses, there's probably
02:35some slippage, a tiny bit of slippage at the beginning between frame zero and 70.
02:39It's because the resolution of those dots is so small that the tracking is not perfect.
02:44You can see it if you playback that area.
02:47I'm going to zoom in on the timeline so I'm closer to that section.
02:50We'll frame up here and play it back.
02:55It's very subtle but there's some frames where the relationship with the tattoo
03:01to those dots shifts just slightly, like right here.
03:05Right here I can see more of the white dots.
03:08In other words, there not covered as much, whereas earlier, they were covered more.
03:11If I go back to the last keyframe, or even the first, let's go to the first
03:19keyframe, that's how they're covered.
03:21There's a little bit of white on the upper part and to the left of the tattoo,
03:26so I can go across the current keyframes and check the quality.
03:31Looks like it slips a little bit here, and a little bit here, I see more and
03:38more of the white dots.
03:39So in this case what you can do is offset the animation by changing the rotation.
03:44It's not the scale that's really wrong,
03:47it's the rotation in this case.
03:49So you can interactively slide the value, or try to enter values by hand.
03:54But as you do it, it rotates around that key point.
03:57It's a little hard to imagine because there's such slow resolution, but it's
04:06worth a little work in this area.
04:08Let's see what the next keyframe looks like.
04:16Pretty good, here's this keyframe, and here's the first. So you have to compare
04:21keyframes to each other and see if they're relative.
04:24But I would go ahead and examine zero to 70 and make any kind of adjustments
04:29you feel are necessary.
04:30Unfortunately I'm not going to be able to finish all this keyframing in real time,
04:34it'll take too long.
04:35So continue to work on this on your own.
04:37So that's the first section, 0 to 70, is the first part to take a look at,
04:41then of course is the area where the finger crosses.
04:44This is roughly between frame 72, which I'll go to, where the finger just starts to
04:52cross, and frame 113.
04:59Now here's a problem with the shape warping.
05:04If you remember in mocha, the corners were warping and it was changing size.
05:08So in this case, we can go up to the Corner Pin information and adjust that.
05:13Again, that's under the Effects, as a Corner Pin effect.
05:17So in anticipation of that, I'm going to delete some keyframes, and I don't want
05:21to simplify all these curves with the Smoother tool.
05:25I'll lose too much information, but what I can do is cut out the bad section.
05:30So if I zoom in, so I start around 72 and end at about 113.
05:36What I can do is highlight those keyframes for all four corners and delete them out.
05:46So you might want to make sure you know which ones you're deleting first.
05:50So if you're concerned, place your time slider to make sure it's the correct
05:53location, so this is 72 here.
05:55It's where I want to start, the third column over, and then 113 is right here, so
06:03third to second to the last, highlight all of these by drawing a selection
06:07marquee and deleting them.
06:11Now there's quite a gap there, so what you'll have to do is bisect to try to
06:15rebuild the animation in that area.
06:18So let me just start in the center.
06:22And you can move each one of these corners individually.
06:25If you click on one of the corners, like upper left, you'll get an interactive
06:29circle with a little X in it.
06:31You can move these by hand, just like this.
06:39So again, comparing to some other recent frame, like frame 71, see where the
06:44tattoo lies, just visually, for instance, this dot up here peeks through on the left.
06:50This dot here is pretty much mostly covered.
06:53This dot over here is mostly covered with a tiny bit of white on the left, so
06:57make some visual notes and then try to replicate that position.
07:01So I can see on this frame, which is frame 92, I'm seeing much too much white to
07:06this dot, maybe a little bit too much of this.
07:09Now you have to go back and forth, but after a little massaging, you can
07:13replicate the correct position.
07:17Once you get that middle keyframe set, then you can change any of these four
07:21corners, continue to bisect.
07:23I go in the center again.
07:25I definitely see it slipped off here where I'm more on the left side of the dots as
07:30opposed to the right. And then bisect over here, and so on and so forth.
07:38Now you're not necessarily going to need a keyframe on every frame in this gap,
07:42but you do have to continue until there's enough for the shape to follow and not
07:47drastically slip off.
07:49Once again I'm not going to have time to complete this during this video, so
07:53continue to work on this section and keyframe it until that tattoo stays where
07:57it should be where the dots are.
07:59We've taken our tracking data from mocha to determine where it wasn't quite
08:04working and then massaged it by editing keyframes.
08:08With the transforms like Scale and Rotation, in anticipation, we use a smoother
08:12tool to try to simplify it.
08:14And it helps us place new keyframes without having such high density in that area.
08:19In terms of the Corner Pin, we just deleted out the bad section and started to bisect.
08:25So this might be a little tedious, but this is a good way to improve the
08:29most tracking data.
08:30You rarely have data that's perfect, so it's good to know how to go into the
08:35transforms with the Graph Editor and make some changes.
Collapse this transcript
Fine-tuning tracked artwork
00:00We've motion tracked the tattoo art, so now it follows the face.
00:03Let me play back a portion of that.
00:05(video playing)
00:12Now, we don't have to the stop there, we can work on the tattoo to make
00:15it better integrated.
00:16First I want to talk about the actual transforms on that tattoo.
00:19Where we left off previously was editing the transforms by hand and also
00:26updating the Corner Pin keys.
00:29I'll show you my solution here.
00:33Once again the scale and the rotation were decimated so the curves are simpler
00:37and that was thanks to the Smoother tool.
00:40Early on, from frame zero to 70 or so, we spent some time tweaking the rotation
00:45values, so going in and setting some new keyframe values, because the tracking
00:51marks were so small at that point there was a little bit slippage, so I
00:54hand-tuned that area.
00:55Now, in terms of the Corner Pin information, the section where the actress
01:01presses her finger to her face were no good in terms of mocha.
01:05So that bad section was cut out and then some additional keyframes were hand
01:09animated with some simple bisecting.
01:12Now it didn't take a lot of keyframes to get the tattoo back on track, you can
01:16see it right here, just several.
01:18Sometimes, fewer is a little bit better.
01:20If you have too many keyframes that you place by hand or you alter by hand, you
01:25could wind up with jitter.
01:26So this solution works well in this case.
01:28Now, the tattoo is left at 50% opacity just to compare it to the tracking marks.
01:35We can affect that though to make it more integrated.
01:40So I think a nice goal would be to make it look like it's a real tattoo at the
01:44start, and when she presses her finger to it, it hits some kind of futuristic
01:48switch and turns it on, I mean it's electronic or something.
01:51So let's' go to frame 90.
01:54Frame 90 is where she presses her face.
01:56So let's say that's when she just first activates this built-in switch.
02:00I want to set a key on the opacity.
02:02I want the tattoo that starts a little bit more faded, so I'm going to start with
02:13a 25% opacity on that.
02:14Then I'm going to go to frame 100, and this is where it's fully on.
02:18So I'm going to increase the opacity to 55%, it gets darker.
02:21Now, at this point the tattoo has some pretty harsh edges, even though the
02:25artwork is a little bit blurry, because of the way its corner pin track, these
02:29vertical lines get a little bit harsh, there's some sideways stair stepping here.
02:34So one way to help fight that is to put a slight blur on it, so I'm going to
02:38grab the tattoo art, put a Fast Blur on it.
02:41I don't have to go too high.
02:44If I go too high, it's going to become very, very soft.
02:47There's one, that's much too high.
02:49So I am just going to put a slight .3 on that.
02:53Here's without, here's with.
02:55Just to help soften that edge.
02:59Now, since this is a switch, it would be great to get it to interact some other way.
03:03So I have another piece of art that represents little lights that are built in
03:07where these circles are.
03:08I'm going to import that, go to the frame zero first, File > Import > File, and this
03:15one is called tattooCore, it's in the artwork folder, bring that in.
03:19I want to drop that right above the tattoo.
03:21It initially comes in very large in the center. Just like with the tattoo, I want
03:27to change the anchor point first to 640 in the X. That will place this art so it
03:34touches the upper left-hand corner.
03:35Now, if you had your own art and you were tracking it this way, you would
03:39possibly need a different value, but the goal would be to get the artwork up
03:43here at the top left.
03:44All right, now, I don't have to reapply the tracking data the hard way from
03:48mocha. What I can do is go to the tattoo layer and steal it.
03:52First, I'll highlight the Corner Pin effect.
03:54I'll just use the keyboard shortcuts Ctrl+C or Command+C to copy.
03:59Go back up to the tattooCore and paste.
04:02So I fixed here the Corner Pin, it's shrunken down.
04:06It's not in the right place yet, so then I have to go the transforms, Shift+select
04:14each of the transforms while the tattoo layer is selected. Position,
04:18scale, and rotation, copy those, go back up to the core, paste those.
04:23Now, it's in the right place.
04:24Now, it's very heavy and dark.
04:26I really want just the red dots here, so what I can do is go to the blending
04:31mode and switch that to Screen.
04:33Screen will just allow the bright areas to survive.
04:36Now, this is a switch.
04:37I really want it to turn on between frame 90 and 100.
04:40So on frame 90, I want those lights basically to be off, so I'm going to go to the
04:48opacity of tattooCore, key it on and make it zero.
04:51Then on frame 100, I want the lights to be on, so I'll give it a higher opacity, maybe 35.
05:00So now it turns on.
05:03Now, while we're at it, one nice thing might be to turn on Motion Blur.
05:08We have two static artwork layers that are now transformed over time.
05:12What I can do is, with the Toggle Switches button activated, so I can see the
05:16Motion Blur switch, is just turn on the Motion Blur switch right here.
05:20Looks like a bunch of little circles in a row.
05:22What that means is that artwork or those pieces of artwork will have Motion Blur
05:26streaks added based on how far they move over one frame.
05:29So this will better match the actual video footage.
05:32So first you have to turn it on here for the layer, you also have to turn
05:36on that switch for the entire composition. That's a global switch to the composition.
05:39So you need it both here, and down here turned on.
05:42Once it's turned on, it will be blurred based on the motion.
05:45You can see it most heavily near the beginning where the tattoo is moving faster.
05:49If I turn off the Motion Blur, you see it's a slightly different position and it's
05:53a little bit harder edge.
05:54If I turn it on, you get more of that blur.
05:57Now, towards the end you will see less blur because there's less motion.
06:00All right, one last thing we do to the tattoo to jazz it up a bit is maybe put a
06:08glow on these little lights. So I'm going to tattooCore, go to
06:11Effect > Stylize > Glow.
06:15You then need do adjust the Glow options at the top.
06:21I'm going to lower the Threshold, say 35, reduce the Radius, and then most
06:30importantly, increase the Intensity to 3.
06:32Now, we'll spread the Glow out pass where the circles are.
06:37So here's frame 90, where this tattoo is basically at rest, and here's frame 100,
06:45when it's switched on.
06:46We've made the tattoo more complex by bringing in a new piece artwork,
06:53tattooCore, which is serving as a sets of lights.
06:56We still did motion tracking by just copying and pasting newly activated
07:01Motion Blur to integrate it better, and also animated the opacity.
07:04We now have a complex tattoo.
07:06This tattoo is going to serve as a switch that turns on and heads-up display.
07:11So that will be the next step, is to start creating that.
Collapse this transcript
Adding a second tracking layer in mocha
00:00We have the tattoo artwork tracked in After Effects, and that's working well.
00:04We can now move on to the second piece of artwork we're going to track, which
00:08is the heads-up display, which is a set of futuristic glass-like projections over her eyes.
00:14To create that we're going to need to do some additional motion tracking.
00:18In fact, there's a set of tracking marks above and below her eyes for that purpose.
00:22So we're back in mocha now to create a second planar surface and track that.
00:28How do you do that?
00:30Well, I can just make a new X-Spline shape,
00:33and that will create a new layer.
00:34I'm going to go to frame 275 first. I want to see the four dots really easily.
00:41I'm going to zoom out a bit, and then I can go and get my X-Spline tool, once
00:47again up here, and draw another shape around these four dots.
00:53To finish off this shape, I'll just right-mouse click, and there it is.
00:57Now this time, I'm not going to make my shape really tight to the edges of the dots.
01:02You don't have to do that,
01:03you don't have to line this up with some edge.
01:06You're really just defining a pattern within the shape it's going to track.
01:11So I'm going to leave a little gap between the dots and the corners.
01:15If you see the zoom window at the top left there, we can see what kind of gap there is.
01:21So I'll adjust this real quick, bottom left, and bottom right.
01:35Okay, and the goal is to get similar gaps throughout the entire timeline once we start to track.
01:40So I'm on frame 275 now. Because I moved these points, I get a keyframe.
01:46Let's try a track to the end, track forwards.
01:50Now there's very little going on in terms of motion here, so this part of the
01:58tracking is nice and smooth.
02:00Even knows how to deal with the fact she smiles, but it keeps the shape
02:04consistent, which is great.
02:07So let me go back to 275. Now before I forget, I'm going to go up to my layer here,
02:11and this is a new layer for new X-spline, and just double-click to rename it.
02:15I'm going to call this Eyes.
02:20Now if you click of that layer, you can just re select it to see that spline again.
02:25But if I select just one, you'll see that keyframe reappear.
02:28Remember, each corner point has its own set of keyframes.
02:32Okay, let's try to track backwards and see what happens. And there you go.
03:03I'm going to stop now.
03:05You can see that the shape is definitely drifted, so let's look for some places
03:09we can add additional keyframes.
03:10Generally you want to add them when there is a sudden shift in the shape.
03:15And that's usually associated with something like a head turn or some action of
03:20the actor, in this case.
03:23So, if we go to frame 150, you can see that's right before she turns her head.
03:29So that's a good place to place additional keyframe.
03:32I'm going to reshape this X-spline, and using my window's top left, I can see the
03:39current frame, and the next keyframe, and therefore be able to at least make
03:45that gap similar between the two frames.
03:48Now, the top right one is a little bit tricky because the perspective shift on
03:51the dot makes the gap a little hard to estimate.
03:55It's not going to be the same size, it's going to be a little smaller because of
03:58the perspective shift.
03:59So we'll just have to make our best guess there.
04:02So here's the lower right and the lower left.
04:07Lower left is probably one of the easier ones here.
04:09Okay, let say that's good for now, let's try to track some more.
04:15Before I do though, before I go to the beginning, it might be good if to go
04:19into the center between 150 and 275, where we were before.
04:22See how it does in that area.
04:25Now, whenever you set a new keyframe, what happens is mocha automatically
04:29updates all the in-betweens.
04:32The tracking curve will update to reflect the new keyframes.
04:36There's still some drifting and slipping, mainly because she turns her head
04:46right here in this area.
04:49So a couple good places for additional keyframes would be, say, 205.
04:53We could quickly adjust that. You'll have to spend more time, this is just very quickly.
05:04224, and then I'll show you also 235, two more places that need adjustments.
05:15Let's assume we've got that adjusted to a couple more keyframes in that
05:19area. Then we'd go back and finish tracking to the beginning, track backwards.
05:30Right here, there we go.
05:55Okay, definitely some major slippage here, so I do the same thing.
06:01Go to frame zero, adjust this shape.
06:04Again, doing it very rapidly here. And then determine in between zero and, say
06:10150, where would be good places to place additional keyframes.
06:14I'll give you some numbers here just to help out.
06:16For example, frame 139, that's the end of that head turn that starts at 150.
06:24It's also a 90, 74, and 49.
06:33Now your keyframes don't have to be exactly the same as the ones I just listed,
06:40but I found by watching the motion, those are pretty good places to place
06:43the keyframes and get good motion tracking.
06:45Now I'm going to go back to frame 275 here just for a second, because we haven't
06:50looked at our surface, our planar surface.
06:52275 is where we started, so I'm going to go there before I turn the surface on.
06:58And you turn it on right here with this button.
07:00There it is. Oh, it looks like I didn't enter 275 correctly, I'm on 75.
07:04I'm going to turn that off.
07:06Let's go back to 275 again, there we go, and now I'll turn on the surface.
07:12And that's what we would expect is the default square shape in this case.
07:16I'm going to go ahead and shape this to match my initial X-spline shape.
07:22Eventually, I'm going to want to make a more rectangular shape to match the
07:27heads-up display we're eventually going to track.
07:29But that'll be another step.
07:31Just for now, I'm going to follow this practice of just fitting it to the X-spline.
07:35I'm going to turn it off for now because we will have to come back to that later.
07:40We added a second X-spline shape, so we could track these new four tracking marks
07:44above and below the eyes.
07:46That's attached to the planar surface.
07:47The tracking worked pretty well, but we did have to make some adjustments with
07:51some additional keyframes as she turned her head and moved.
07:54Now, I didn't have enough time to finish all those keyframes myself, so I'm
07:58going to let you continue that process.
Collapse this transcript
Offsetting the planar surface
00:00We have our new X-spline shape following the tracking marks above and below of her eyes.
00:05This required some additional keyframing, I'll show you my solution to it.
00:09These are keyframes in all of the keyframe positions we
00:12discussed previously. I'll play it back.
00:16It's starting to follow pretty well.
00:18The tricky part of this is the perspective shift as she moves her head or turns her head.
00:29You can imagine there is a slight gap between this planar surface, which is
00:33perfectly like a piece of paper, and the dots on her cheek.
00:36So you have to imagine what that would look like as she turns her head.
00:40So right here for example, this corner is closer to the dot than it is when she
00:45turns her head towards camera.
00:48So that'll take some experimentation.
00:50This one is working right now so we can move on
00:54and do all the planar surface. If I go to 275, that's where we started, what I can
00:58do is turn on the planar surface and see where we left off.
01:01Here is a button for that, and there it is.
01:03Previously, I simply matched the corners in my planar surface to the X-spline.
01:08Now that's not necessary.
01:09It can actually have a different shape, like a rectangle.
01:12It'll still be associated with the X-spline but it doesn't have to match the corners.
01:16What we want anyway is a more rectangular shape to match the heads-up display
01:20we're going to add as tracked artwork.
01:23That's more in the shape of a pair of sunglasses.
01:24So what we can do now on frame 275 is reshape this.
01:30To help us out, we're going to use a new function, and that's the planar grid.
01:34Here's a shortcut button for that right here, Show Planar Grid.
01:38What this is is a pinkish grid that shows the virtual plain that that planar
01:43surface is sitting in.
01:44Again a planar surface is like a perfectly flat piece of paper, and this is the
01:49plain that would hold it, extending in all these different directions.
01:52If I move the corners of my planar surface the grid changes also.
01:56So the grid is really useful for seeing the perspective shift but also you
02:00can use the grid lines and grid intersections as reference to line up certain
02:04features over time.
02:08For example, if I move the corners here of the planar surface, for one, I can
02:14make it more rectangular, but two, I can line up the dots on the top of the
02:19forehead to a couple of the intersections or a couple of the corners.
02:26So here I've lined up a dot to this corner and another dot to this corner.
02:32I can use that as reference all the way through the timeline to make sure the planar
02:35surface is consistent.
02:37Doing that also places a line down the center, down the center
02:41of her nose to her lips, and that's good reference also.
02:44Now it's more like a trapezoid right now, going off into the distance down there at the bottom.
02:50What I could do next though is straighten up the sides, more perpendicular,
02:53straight up and down, and that would be better for the heads-up display.
02:58Now for the bottom, I can use the blue edge of the planar surface as reference also.
03:03I can line it up to the top of her nose, or I should say the tip of her nose,
03:10right above the nostrils.
03:15So once I'm done adjusting, I have some good reference features, or lines.
03:21So I have my forehead dots lined up to two corners here and here, and the
03:26center is a nice center line of the grid that goes through between her eyebrows
03:31all the way down to the center of her lips.
03:34The bottom edge of the planar surface, this blue line, is just above her nostrils.
03:39So all good reference, and of course, as I said, the sides are more straight up and
03:43down, which I can try to keep consistent throughout the timeline.
03:47So now we have the shape for 275, and what I need to keyframe it, because this is going to slip.
03:52If I go ahead and scrub the timeline, we'll see that it tries to fall but at a
03:57certain point, it gets confused and becomes slanted.
03:59It looks like it's the slope of a mountain.
04:01All right, so what we can do is go to the AdjustTrack tab and set some keyframes
04:09to offset the planar surface.
04:11So back to 275, and go to the AdjustTrack tab and we'll see our master reference points.
04:19The master reference points for the planar surface have the Xs in them.
04:23The Xs are just for reference so you know where you started.
04:27If I click on one of those,
04:28we'll see our first keyframe at 275.
04:30Again, those simply relates where you want the surface as how it compares to
04:37where the X-spline is, or where the corners of the X-spline are, and also where
04:43the planar surface started, in our case.
04:45So let's adjust for other keyframes. And we'll leave the grid on, again to line up
04:50various reference points like the corners compared to these dots.
04:54So much like the X-spline, I want to look for key places where the shape slips
04:59off or starts to slide.
05:01So for example, I can go to the last frame,
05:04make sure that's good, first and last, you always probably want to do anyway.
05:08Then go deeper, say, to 240, and this corresponds to where there is the head turn.
05:15And I can just simply grab my red ends, and if I grab the red dot, so I can see
05:22that green dotted line, if I see that then I'm good because I can know I can
05:26set a keyframe there.
05:29As I drag this like a rubber band, they will update the shape. Let me back up.
05:38Just did a Ctrl+Z there.
05:41As I move that red point and that green rubber band, you see the shapes update,
05:54planar shape updates.
05:57So what I can do is force those dots back into the corners of the grid there.
06:02I'll continue to do this.
06:03Get the sides nice perpendicular and again, and also try to get that bottom blue
06:12line lined up with the tip of the nose, so something like that.
06:19So I can't do this all in real time, but there are some other keyframes that would
06:23be useful, for instance on frame 205.
06:27Again you can see a major slippage there. Frame 150 or 151 corresponds to that
06:34head turn. 140, 90, and the first and last frame as I mentioned previously.
06:45So I can't demonstrate this in real time but I'll let you continue to work on
06:48the keyframes for that shape.
06:50Now it's a little indirect.
06:51Again, you have to move these red dots, get that green rubber band, and that
06:57remotely pushes the planar shape around.
07:02But if you leave the grid on, that'll make it easier to see if everything's lined up.
07:10Okay.
07:11So we used the planar grid as reference to find certain features and therefore
07:15make it easier to give our planar surface a more rectangular shape.
07:20That's going to allow us to better fit the heads-up display we're going to
07:24eventually place in After Effects.
Collapse this transcript
5. Preparing a Motion Graphic Heads-Up Display
Animating an artificial camera
00:00We've created some new planar tracking inside mocha.
00:03Before we can use that tracking data, however, we need something to track in After Effects.
00:07What we're going to do is create a heads-up display that will appear right
00:11in front of her eyes as if it were a pair of high-tech virtual glasses of some type.
00:15Now, let's take a look at the footage first.
00:18I have turned off all the layers except for the Footage layer, so you can see
00:22what her action is, and we'll play it back, because we need to create a heads-up display
00:25that looks like it's her view, what she sees through her eyes, but perhaps enhanced
00:30with computer graphics or technology where she can actually zoom her view in
00:33closer or further back.
00:35Let's see what she does in the action. There it is.
00:43So, we're looking for any kind of head movement or eye movement that would
00:51indicate that she sees something different.
00:53The basic idea is she's some high-tech spy who has this fancy equipment that
00:57allows her to see into a crowd in the room and look her for particular equipment
01:01that's important for her mission.
01:03In any case, let's see what she's doing again in terms of her eyes and head.
01:07I have some numbers.
01:08You might want to write this down or watch this yourself and make your own notes.
01:12At frame 140, she's about to blink and move her eyes, and at 144 she's
01:18finished moving her eyes.
01:19So, 140 to 144, a blink in the eye movement.
01:23She winds up looking further to her left, or screen right.
01:27At 144 to 203, she's pretty much looking in the same direction.
01:33Then 203 to about 209, she looks the opposite direction.
01:38So, quick eye movements, followed by a slow head movement as she looks at
01:42something further to screen left, or her right.
01:46So, those are important movements and frames where we need to replicate that in
01:51the heads-up display.
01:52I'll make a brand new composition.
01:58New Composition, and I'll call this Headsup.
02:05And this time, I'm going to make the resolution half the previous.
02:08So, the previous is 1280x720, like this.
02:14I want half size, 640x360.
02:18So, I'll center that, same frame rate though, and same duration.
02:22I am going to click OK.
02:25Next, we need something for her to look at.
02:27We're assuming she's in a warehouse.
02:29There's a big crowd.
02:31We actually have footage from a different course we can use to present or to
02:35replicate what she sees.
02:37We'll bring that in.
02:40It's actually in two image sequences, File > Import > File.
02:44The first one is called View.
02:45This is her main view of this crowded room.
02:48Let's take a look at that.
02:51It's a crowded warehouse where somebody is speaking.
02:54There is also some high-tech solar panels, which this particular spy is interested in.
02:58There's another piece of footage that matches this, File > Import > File, called Panels.
03:08These are a pair of solar panels that are actually in the other view or
03:12separated out with transparency.
03:13The reason we made these separate is so we can treat them differently and
03:18make them pop out as if she has some type of x-ray vision or something special like that.
03:22Okay. So there's the footage.
03:24Let's go ahead and pull that into this composition.
03:27First the View, and I'll put the panels on top.
03:31Now, the first thing we can see is this is too short.
03:36It's only 200 frames each. That's okay.
03:38I want to Shift+select both of these and move the bars to the end like this,
03:43so it starts in frame 100.
03:44That's going to work for us because, really, the heads-up display is turned on
03:48by that tattoo switch between frame 90 and 100.
03:51So, it mostly fills what we need for the heads-up display.
03:53Let's go ahead and go to frame 100 so we could see what's going on. Here we go.
04:03Now, it matches up with 100.
04:05Another thing we can see if I zoom out is that the resolution of this footage is
04:12much larger -- in fact, twice as large as the composition.
04:15This is intentional.
04:16What I want to do is move this view around to simulate her eyes and head moving.
04:22As long as the footage is larger than the composition, I can slide it around.
04:27So, let's get started with that.
04:28Now, I want the panels to follow the view, so I'm going to go ahead and parent
04:32the panels to the view and just for now, hide the panels.
04:35We'll get back to those later.
04:37So, now I need to use my notes about what she's doing in the footage.
04:40I'm going to animate the position and scale of the view to replicate that point of view.
04:46So, I'm going to start on frame 140, which is right before she moves her
04:51eyes for the first time.
04:52I'm going to click the position scale keyframe, or time icon, to get the keyframes.
04:58We'll start there.
05:00So, at this point, I want the view to center on that person at the podium.
05:04So, I'm just going to move it around, slide it around so he's in the center.
05:09I'm also going to change the scale.
05:11I'm going to pull back virtually a little bit by making it 75% scale.
05:17So, roughly right there for the start.
05:19Now, I'm going to go to 144, when she moves her eyes and looks further to one side.
05:25Then I'll move this view over and also change its scale as if her heads- up
05:30display is able to allow her to zoom in on what she's looking at.
05:35The goal in this case is this solar panel right here.
05:39It's what she's looking at.
05:40That's the piece of technology she's trying to find.
05:43Now, the view doesn't really change for her between 203 and 209.
05:47So I'm going to go to 209.
05:49I should say it doesn't really change between 144 and 203.
05:52I'm on 144 now, so I'm going to go to 203 next.
05:58And then to make the position roughly the same, I'm going to copy these previous
06:03key frames on 144, use the keyboard shortcut,Ctrl+C or Command+C, and then
06:09paste right where I am on the timeline.
06:13That just copies those keyframes over.
06:14So, basically, the view doesn't change or changes very little between 144 and 203.
06:18All right, now on to 209.
06:22This is where she moves her eyes once again.
06:28Here, she looks the opposite direction so I can pull the view over more towards
06:33this side, and that automatically sets in our key.
06:39Now, she turns her head continuously to the very end so what I can do is go to
06:44the end and then slowly pull this over to the right.
06:48So, it's like drifting over at the very end.
06:51And our new subjects of our attention is this other larger solar panel over here.
07:03So, I'm just roughing this in, we'll have to probably adjust this once we go on to later
07:07steps and eventually when we track this to the front of the face.
07:11But this approximates her view through this heads-up display.
07:19One thing that we have to address at this point is the fact that there is
07:23nothing between 90 and 100.
07:24Between 90 and 100 is where we turn on the tattoos,
07:27so we assume that's a switch for this heads-up display.
07:30So we need to fill in this gap somehow.
07:32What we're going to do is just create a solid color, New > Solid, we'll make it
07:38green, make it the Comp size, and we'll assume this is the color of the view when
07:43it's just warming up.
07:44I want to put that at the bottom here and slide this over, so it starts at frame 90.
07:49So now it goes green to the view.
07:52So it looks like it's actually warming up and flickering on, and what I'll do is
07:59then go to the View, key the opacity, I'll have it start at zero, then fluctuate
08:04that opacity from the first few frame as if it's flickering on, just randomly up
08:08and down the opacity for a few frames.
08:11Until it powers up to 100%.
08:12So now, there's some flicker.
08:16If I need to, I can zoom the Comp in so I can see better, and maybe make these closer together.
08:23I may make some of the keys a little bit higher and some lower, so like that.
08:31We've begun a heads-up display by importing footage that represents her point
08:39of view and placed it into a smaller resolution composition.
08:42Having a smaller composition in a larger image sequence allows us to slide that
08:48view around as if it's her point of view, or even a camera.
08:52This is one trick for making an artificial camera.
08:54You can now add additional effects to this to jazz it up and make it even
08:58more high-tech.
Collapse this transcript
Animating text
00:00We've started to construct a heads-up display.
00:02We then made another shot to recreate a view.
00:04I'll show you what we have so far. There you go.
00:20I spent a little more time working with the scale and position animation so
00:25it mimics what she's doing with her eye movements and head turns.
00:29We can now move on and add some more effects to make it more high-tech.
00:34I'm going start by turning on the Panels layer.
00:37Now this layer follows, because it's parented to the View layer.
00:41This is a special view of these solar panels as if she has some type of
00:47computer-assisted display.
00:49Let's make this more interesting.
00:50One way to do that is to experiment with blending modes and also apply different effects.
00:57With Panels selected I'm going to select the Hue/Saturation effect.
01:01I want to colorize it this time.
01:06Click that on and then increase the saturation to a really high value of 75.
01:11That makes the panels intensely red.
01:12I can get an even more unusual result if I change the Blending Mode from Normal
01:17to something else, for example, Classic Color Burn.
01:20It gives that an unusual look, as if you can see through the people.
01:25Now to go one step further I can apply one more effect and that's
01:28Effect > Channel > Invert.
01:29That returns it to blue, but still maintains the unusual mixture of colors.
01:35Okay, now that the panels have an unusual look to them, now let's add some font or some
01:41text as if the computer is typing out messages to the spy.
01:44I'm going to go to the part of the timeline where it zoomed in on this first panel.
01:50I'll start on frame 140 though, or maybe 150, where it zoomed in.
01:59Now I want to use the text tool to type some text. Before I do that though, I'm going
02:04to create two solid layers so the text has something to sit against so it's easier to read.
02:09So, Layer > New > Solid.
02:11I'm going to make this one a cyan color.
02:13I want to start small, 100 by 100, and then adjust it.
02:18Here's the first one.
02:19I'm going to scale up by the corners until it fits this gap on the left. Then
02:25I want to copy this, Edit > Duplicate, and make one more of the same size and move
02:29that over to the right.
02:32Now we can type some text.
02:33The Text Tool is up here.
02:36When you click that, you can click-drag a box in the viewer that represents
02:40where the text is going to appear.
02:42When you let go it turns red on the edges and you have a special text mouse pointer.
02:48You can click on that area and start to type.
02:50I want to give this the name of this device she's looking at.
02:53Maybe something kind of random like XJ36 Prototype, something along that line.
02:59Once you have text typed out you can click-drag from the end of it to the
03:05beginning to highlight it and then alter it.
03:08Once you add text you'll see the Character tab over here to the right.
03:15Also, below that will be the Paragraph tab.
03:17The Paragraph tab takes care of alignments, whereas Character tab has things
03:21like size and color.
03:22I'm going to increase the size on this first font to 39.
03:29Now if the text isn't wrapping properly you can expand the box size by
03:34grabbing these sidebars.
03:35Now that might stretch the text out.
03:38That will give you more room to spread the text out.
03:42You can also move that text layer as a layer, and it comes in as layer. I'll turn
03:48off of the Caps Lock.
03:49And if it's selected as a layer I can just interactively move it around with
03:53the Selection Tool.
03:57In terms of the color, if I highlight it one more time, I can change the
04:00color and the font.
04:02Right now I'm using Microsoft Tai Le.
04:04You might have a different list of fonts in your program but anything that's
04:09similar to Arial should be fine, or anything that looks high-tech.
04:13Again, in terms of the color, there are two places to change the color.
04:16One is the solid core, which is this box right here.
04:19If you click on that, you can choose a different color and you'll see it change.
04:23I'm going to stick with white for now.
04:27You also have the option of an outline, which I have here in red.
04:30This little hollow box is the outline box or what they call the stroke.
04:35Now it can be turned off.
04:36This little off button right here, No Stroke Color.
04:38If I click that it turns off, and there's a little line through it that says off.
04:43If I click it again in that hollow box I can then choose a color and that activates it.
04:47So here's a stroke, and here's the solid core color.
04:54The size of the outline is controlled by this section right here, Set the stroke width.
04:58You can make it really thick or really thin.
05:01I'm going to make mine fairly thin. All right, there's some font.
05:06Now this font is there the entire time.
05:08I'd rather have this font start later. I'd rather have it start once the view
05:12changes to this particular solar panel.
05:14So I'm going to move all of these bars at the top, just Shift+select them, over to 150.
05:20Let's say I want that to start there.
05:22Then I can animate the opacity changing over time.
05:25I'll start with the font itself.
05:27Opacity, keyed on, 0 to start with, maybe go 10 more frames, and then key at a 100.
05:38I can copy that opacity animation to the solid layers, also.
05:43The first one, make it fadeout.
05:45Let's say I'm going to make it fade out once the view changes at about 198.
05:49I want to set one more key at a 100%.
05:55I can just right-mouse key over opacity and choose that keyframe.
05:57Then go a few more frames and fade it out.
06:00Now that I have all these keyframes I can back up to the first keyframe using the Go
06:06to previous keyframe arrow right here.
06:09Select all these keyframes using my keyboard shortcut to copy those.
06:13While I'm on that same frame go to my solid, paste, and then go to the other
06:19solid and paste again.
06:21Now all of these things will fade up.
06:23I would like some more font over here, more text as if it's a computer
06:29readout giving me the stats and qualities of this thing that's being looked
06:32at, like technical readouts.
06:34What I can do is copy this text layer, Edit > Duplicate, move it over as a layer
06:40and then update the text inside.
06:43Just click over the end letter to the beginning to highlight.
06:47You can change the size, like down the 14.
06:49I can choose to have a stroke or not.
06:54I'll definitely have to reduce the stroke, if I keep it that small or even
06:58turn off the stroke.
06:59Maybe I'll just turn it off.
07:00Let's click this red line box and it goes off.
07:02Now I can type into it and update it.
07:06For now I'm just going to type some gibberish, but imagine that you typed some
07:10lines in here and hit the Return key, or Enter key, and that will be the technical
07:16readout of this panel.
07:17I want to spend some time filling this in with more interesting text.
07:24Now if it's not big enough, your text box, what you can do is go back to your
07:29Text Tool, click in it to get the red box, and then change that box size.
07:33Then I have more room to type more lines if I want to.
07:36Before I move it, go back to the Select Tool.
07:41One thing about this, see if I make these fade up and fade out, they're on the
07:47screen all at one time.
07:48What would be cool is if they were more like a typewriter or computer readout
07:52where one letter appears at a type like a printout. We can do that.
07:56There's a special preset inside After Effects.
07:58I'm going to go down to my first text box, go to the frame where it first
08:04appears or starts to fade in.
08:07Then I'm going to go to the Effects & Presets tab right beside Character over here.
08:14There is a special preset called Typewriter.
08:16So if there's nothing there you can type it in and it will find that preset for you.
08:23You have to spell it correctly though.
08:25There we go, and there's the Typewriter preset.
08:31If you double-click this, it will add that preset.
08:33What happens is if I expand the text section on the layer, this adds what's
08:39called an animator, and this is Animator 1.
08:42If I expand that, there's a range selector.
08:45The thing that makes it type on screen is this start property.
08:48If I go through now, it types on the screen.
08:52Now how fast it types is determined by these two keyframes it gives me automatically.
08:58If I want it to type faster I'd move this last keyframe up sooner.
09:01Let's say I move this keyframe to 160.
09:06I'll see where 160 is and move this up.
09:08This will make it type really fast, but it still types.
09:11I can do the same thing on this text layer on the left too.
09:19Same set of steps, I can select it, apply my typewriter preset, which is still
09:24visible here, expand that, Text, Animator 1, Range Selector.
09:32Once again I get two keyframes based on where I had my timeline and I can move
09:38this one, the last one, up closer, and have it type out.
09:41Last thing I want to do on the text is make sure that it's slightly softened.
09:50It's very hard-edged now.
09:51When I shrink it, it might be problematic. It might buzz.
09:54It might have stair-stepped edges.
09:56So I'll pick one of the font layers or text layers.
09:58Go to Effect and apply a Fast Blur.
10:01I can just blur it a little tiny bit, .5 should be sufficient.
10:04I'll copy this effect and paste it onto the other text layer.
10:09We've activated the Panels layer and made it an unusual X-ray type look by
10:14experimenting with the Hue/Saturation and also Blending Modes.
10:17Then we added text to the Text Tool.
10:20We spiced it up a bit and made it look like a computer readout with
10:23the Typewriter preset.
10:25Then we fine-tuned with the Opacity animation.
10:27We're now ready to add additional effects to make it even more high-tech.
Collapse this transcript
Wrapping up the motion graphics
00:00We've added text to the heads-up display to make it more like a computer readout.
00:04I spent more time typing in text to make it look more technical, especially over
00:08here on the left, and then adjusted the opacity animation to work as the camera
00:12zooms in, or the view zooms in.
00:14One other thing I did, too, is on the cyan solid colors, I changed those Blending
00:21Modes to make it more exciting.
00:22Here's the before where it's Normal, and here's the after where it Subtract.
00:28So those are set to Subtract.
00:30I also renamed these layers just to keep track of them.
00:33This part is finished and I'm ready to move on.
00:36And it would be great to get another block of text at the end when the spy zooms in
00:41on the thing she's looking for, which is this other panel.
00:43So I'm going to copy one of these other backgrounds to save time.
00:48I'll just duplicate this one right here and then move it downwards.
00:56Now there is animation on it.
00:58So I'm going to remove the fadeout, the opacity keys at the end.
01:03Then move it over to where I wanted to start.
01:05I want to start on frame 225, when the camera pans over.
01:11So I can move this bar, just click-drag it over to 225.
01:16Then scale the end, just grab the end and drag it.
01:22I'll zoom in my timeline so I can see it better.
01:27There's that copied solid.
01:29I want to move this over and just let it take up a larger section, like this.
01:34I can also steal some fonts or steal one of the text layers.
01:41So I'm going to go to top text layer.
01:43Then I duplicate that.
01:44This has the same issue.
01:47It has opacity information.
01:48So I'm going to remove the end keyframes.
01:51Then it starts at the wrong place.
01:52I'm going to move it over to 225.
01:54Let me make sure I'm on the correct frame.
02:00There we go, and then extend the end of the bar.
02:05Now it still has the typewriter effect.
02:08That's okay for now.
02:09I'm going to readjust the layer to get the text back in this dark area.
02:14I don't want to scale it, but I do want to give it more room.
02:20I do need to go into the Text Tool mode, and once I get this red line, then I
02:23can adjust the sides.
02:26I want to get rid of this old text.
02:28I should probably move to the start of this text, or actually the end so
02:35I can see it all.
02:37There we go, there's the end.
02:39I'll get rid of the old text and type some new text in.
02:44I'll go to my Character tab so I can see the size.
02:50I'm going to increase the size here and type the name of this new high-tech
02:56panel, and you can just make up some name.
02:58I can go ahead and center the text by hitting the Center Align button here. Turn off the caps.
03:15Now if I want to return the stroke, I can turn that back on by clicking the hollow
03:20box and choosing a different color. There we go.
03:26Now the typewriter effect is still there.
03:28So I can decide if that is good enough.
03:30If I want to change how fast that appears, I simply have to move this end
03:34keyframe right here.
03:35But I am going to leave it as is for now. That looks good.
03:39One last piece of text I'd like to get is a flashing bit of text at the bottom
03:43that gives some kind of warning or some kind of important message.
03:46So I'm going to copy this text upwards, duplicate, move that new text box
03:52down so I have some room.
03:55In this case, I don't want the typewriter.
03:57So I'm going to go to Text > Animator 1 and delete that, and now it's permanent.
04:03It'd be kind of cool to have it flash so I can animate the opacity, but let me
04:08go ahead and change the font first and what it says.
04:11Let's say it's a warning message, like target acquired.
04:18Maybe I'll make it a different color to make it more important. Here we go.
04:28Again, to make the opacity change and to make it flicker I just need to
04:32copy some keyframes.
04:33So it starts at 0 and goes to 100.
04:35Then we can go back to 0 now.
04:37I guess it goes up to 90. Let's see.
04:39It goes up to 90. That's fine.
04:43Then back up to 90.
04:44So what I can do is start copying keyframes. I'll copy these two keyframes, 90 and 0,
04:50and then paste, I'm using the keyboard shortcuts.
04:54Move the slider and paste again.
04:56Move the slider and keep doing this, until the entire timeline is filled up,
05:00at least to the end.
05:04Now I'm doing this very quickly.
05:05You can spread these out very evenly or make them more random.
05:11Now I'll play this back.
05:16There's our flickering warning text.
05:21Okay, that wraps up the heads-up display.
05:22Now we're ready to prepare it to eventually motion track it.
05:28Now what I'd like to do is mask in such a way that looks like the shape of a pair of glasses.
05:34So I'll to make a new composition. Same size.
05:38I want to call this HeadsUpMask.
05:45Then nest the HeadsUp in that.
05:48I'm going to do some special color work on this.
05:50So I want to have two copies.
05:52So I'm going to nest it twice.
05:53I move my time slider to a frame where we can see.
05:58Now in the top copy I'm really going to treat the colors quite a bit for
06:02something really futuristic.
06:04So Effect > Color Correction > Colorama.
06:06Now this makes colors really crazy.
06:09What it does is spin the entire color wheel.
06:11Now you can change that by adjusting the phase and some other qualities, but I
06:17think I'm going to leave it at the default right now.
06:20However, to make it even more interesting, I can change the blending mode.
06:23For example, instead of Normal, Saturation.
06:29Some of the areas are still black and I can still read the text, but for
06:33instance the people's clothing and hair is just wild reddish, purplish color.
06:37One thing about this tool is it really exaggerates the grain.
06:40I can see that here at the top. That's okay.
06:43I'm going to fade this layer out a little bit so I can get back some of
06:47my original colors.
06:48So I'm going to change the capacity to 70.
06:50So it mixes with what's below it.
06:53Then on the bottom layer I'm going to add some more noise.
06:56So I have noise on both layers.
06:58Effect > Noise & Grain > Add Grain.
07:03Add Grain is a preview box, but I can go ahead and switch it over to Final Output.
07:08It's going to add grain based on these settings in our tweaking, and also you have presets.
07:13And the presents are set to various kinds of motion picture film.
07:16So if you change this to some other type, you'll get a different style of grain.
07:21Some bigger, some smaller.
07:23But whatever grain you have, you can still adjust the size and the intensity.
07:31This looks pretty good.
07:32It looks like a staticky, noisy computer display.
07:34Now last step we need to apply before we can motion track it is to mask in such
07:38a way that it looks like a pair of virtual sunglasses.
07:41I want that sunglass shape cut out.
07:44So I'm going to turn off the top layer temporarily.
07:47On the bottom layer we are going to draw a mask that has a sunglass-type shape.
07:52Now as a reference I want to turn on the Title/Action Safe just so I have some
07:57lines on here that I can judge.
07:59I'm going to zoom in a bit and then draw a mask that, again, is kind of like
08:04a pair of sunglasses.
08:07Something like this.
08:07It goes up on the nose, and the reason I turned on the Action Safe is so I can
08:13line up the two sides and see where the points fall.
08:19Now we're going to have to adjust these once we track.
08:22So I'm just getting it roughed in. And I'll close that, and it's cut out.
08:28Now it's very linear right now, but I can smooth it if I just double-click one
08:32of the lines and go to Layer > Mask and Shape Path > RotoBezier, and go back to my
08:39Convert Vertex Tool, and slide over the selected points, left or right.
08:44Okay, it looks much smoother.
08:47I could spend some more time making it more symmetrical by moving points around.
08:53Again, we're going to have to adjust this
08:56once we track it, so we can do the fine tuning then.
09:01One important thing is to leave a nice gap for the nose.
09:04This will fit better over the face.
09:06Let's say it's good enough for now.
09:11I'm going to copy this mask up to the top layer, reveal the mask, copy
09:17it, keyboard shortcut.
09:19Turn on the top layer, paste that in, and now it's cut out.
09:22So now we have a heads-up display that's ready to track to the front of the face.
09:28We used some additional color tools to exaggerate the colors, like Colorama.
09:32Also, we added Add Grain to make it more grainy and staticky.
09:36And of course, we added additional text to finish up the display in terms of the readout.
09:42Next step is to bring this layer into the earlier comp and then to apply
09:47the data from mocha.
Collapse this transcript
6. Adjusting Tracked Artwork and 3D Layers
Tracking the heads-up display
00:00We've finished creating our heads-up display.
00:02Now, we're ready to go back into mocha, and retrieve the tracking data.
00:06This is mocha once again.
00:07And where we left off was making sure that the planar surface was tracking with
00:12the face, which it is.
00:14So, as long as this layer is visible, which it is, the Eyes layer, I can go
00:18right down to the Export Tracking Data button, click that and make sure it's set to Format:
00:25After Effects Corner Pin.
00:27Now, instead of saving to the clipboard or copying to the clipboard this time,
00:30I'm going to save to an external text file.
00:33So, I'll click Save, and save it out as a text file.
00:36I already have one called Eyes.txt, but I can always make a new one, like
00:41Eyes2, and click Save.
00:43Now, I can return to After Effects.
00:47Here's where we left off in After Effects.
00:49We had finished the heads-up display and masked it into a rough shape of a
00:53pair of sunglasses.
00:54I'm going back to the Spy composition now, and I'll go ahead and leave
00:58everything off for the moment just to save time.
01:00I'm going to drag the heads-up Mask composition into this one and drop it on top.
01:07Now, it's empty for the first 90 frames, because there was no background there,
01:11because the footage started at frame 100, and we had a green solid at frame 90.
01:16Here it is right here though.
01:17What I need to do though, before I apply tracking data, is make sure that the
01:24top-left corner is positioned in the top-left corner of the frame.
01:28Top-left corner of the frame is 00 in After Effects space.
01:32So, for the tracking data to be applied correctly, I need to push this
01:36artwork up here to the left.
01:37I can do that with anchor points.
01:41In this case, it would be 640 and 360.
01:48There it is at the top-left corner.
01:49I'm going to go back to frame 0, and then retrieve that file I wrote out.
01:55I am going to use Notepad,
01:57but you can use any plain text editor to open the file you saved for mocha. There is Notepad.
02:02I want to select everything, and this is just a very long list of keyframes and
02:08the XY positions of corner points.
02:09So, I'm going to use the Select All option, highlight everything, and go to
02:15Edit > Copy, return to After Effects.
02:19Again, make sure I'm on frame 0, select that layer, HeadsUpMask, and then paste.
02:27All the keyframes come in, for the Transforms, also there's a new Corner Pin effect,
02:31with all the corners animated.
02:33I don't see much now because, again, the first 90 frames are basically empty.
02:38So let's go to a different frame number and check it. There we go.
02:47I am going to go to frame 275 because in mocha, that's where we originally set
02:51the position of the surface, the planar surface, and I'll zoom in.
02:59Now, here's where we can decide if we want to adjust the mask or not, because we
03:02roughed that glass' shape in, we might adjust it to fit the nose better.
03:07Another thing we can do is adjust the scale.
03:09If we select that layer, we can see that its anchor point is basically in
03:14the center there of those glasses, and that's where it's attached to the motion path.
03:19So, we can change the scale without ruining the actual tracking.
03:22They look a little small now, so what I can do is while I'm on frame 275,
03:27is adjust the scale.
03:30I'd say that looks pretty good.
03:33Now again, I mentioned the mask.
03:34It looks like I might need a little bit more room for the nose.
03:38If I go to an earlier frame, I have some issues with the perspective here.
03:42So, if I widen out that bottom area of the sunglasses or glass' display, I
03:46won't have an issue there.
03:48So I can return to the HeadsUpMask, display the mask, and adjust that.
03:53Now remember, there are two masks here,
03:55one on the bottom and one on the top.
03:57So, you'd have to adjust those separately and make sure they match.
04:01So, there is one layer adjusted.
04:05I can adjust this one now, like that.
04:11Let's say that a little bit more room will look better.
04:14I can go back to the Spy composition, and take a look.
04:16And I can also flare out the bottoms too.
04:19I'll go back one more time, and maybe flare it out like this.
04:24This will take some experimentation.
04:32Let's try that for now.
04:35Back to the Spy composition, and there we go, it fits a little bit better.
04:39I'll go to a later frame.
04:43Okay, let's say the scale is good.
04:45You can continue to adjust that if you want to.
04:47I would do it on frame 275.
04:49Now, there is one issue with that and that's if you do adjust the scale directly
04:53right here, it's only going to adjust one keyframe.
04:56It's important to remember.
04:58You really want to adjust the entire row of keyframes.
05:02So let's go into the graph editor and see what happened here.
05:05Well, the one keyframe I adjusted is over here, it's been pulled up way too high.
05:09It's out of line.
05:10In fact, I can just select that little area of keyframes, and frame that area,
05:14and you could tell that I really pulled up too high.
05:18It's not similar to anything around it.
05:20Now, I can get that back down to where it was, right here.
05:26I really would want to offset all the keyframes at once.
05:29So, I framed them all right here, and I'll select them all.
05:35And then, while I'm on frame 275, move them up and down to adjust the scale.
05:39Be careful not to move them left or right if you can help it. There we go.
05:44So now I'm able to scale it up, but keep my overall motion-tracking intact. Okay.
06:00Let's say it looks pretty good.
06:01Close the curve editor.
06:05Now, I probably need to adjust the mask more, but that will be fine for now.
06:08Another thing you have to consider is if your heads-up display and motion
06:12graphics were correctly positioned, you notice that some of my text is being cut
06:16off here, so I could consider going back to my original HeadsUp composition and
06:20adjusting some of the positions, for instance, the text or text boxes.
06:24In the interest of time now, I'm going to move on.
06:30Now, there are some other ways you can make this HeadsUp display look better.
06:34It's very opaque, and it's very hard-edged.
06:37Let's deal with the Opacity first.
06:38What we can do is animate the Opacity changing over time.
06:43Remember that with the tattoo animation, when she presses her finger, the tattoo
06:47turns on between frame 90 and 100.
06:49So, let's do something similar here.
06:51I'm going to go to frame 90.
06:52I'm going to key the Opacity at 0.
06:58Let's say it takes 20 frames to turn on, we'll have it flicker.
07:05I'm going to go to frame 110 and give its maximum opacity.
07:09Now, it would be better to see through this as if it was a midair projection.
07:14So here, I'm going to make it 50% opacity.
07:17So we can see her eyes through that.
07:21And in between I'm going to fluctuate the opacity, so it's just flickering on like
07:25it's warming up, just random values, high to low or low to high. All right.
07:40I'm going to play back this tiny section now.
07:42Okay, here's a little flicker on.
07:53Let's go on to the edge quality.
07:54It's very hard-edged.
07:55If it was a midair projection, we'd probably want a softer edge.
07:59So, let's try a tool that we sometimes use for a green screen.
08:03And that is the Matte Choker.
08:06Matte Choker erodes the edge of a layer in terms of the alpha matte edge, and
08:11can potentially soften it.
08:12One way to do that is to increase the Gray Level Softness. Let's try 50%.
08:20We'll zoom in here closer, and now you can also just move the slider around
08:23to see what you get.
08:29So, there's a little bit softer.
08:31If I turn it off, here's before, and here's after.
08:33Let's wind up with a value of, say, 45. There we go.
08:39Now, since this is a midair display, another thing that would be nice would be
08:42to get a sense of glowy-ness, a sense that it's a light source.
08:45So, let's apply a glow to it.
08:47Effect > Stylize > Glow.
08:52We'll adjust the various settings.
08:53Let's try 30% Threshold, 45 for the Spread, the spread out, the radius, and then
09:02you can make it more intense like this, or less.
09:05Let's try the default one for that. Okay.
09:13There's our heads-up display tracked onto the actress.
09:16We were able to bring the tracking data from mocha by saving the tracking
09:20information out to a text file, opening the text file, copying the text, and
09:24then pasting it onto the new layer.
09:26Now, there were still adjustments to make in terms of the mask in order to get
09:30the glass' shape to fit, and that still needs some more work.
09:33And also, we were able to improve the quality of that heads-up display,
09:37once it's tracked, by affecting the edges through the Matte Choker, and
09:41applying a glow, and also altering the opacity.
09:44Now that we have the heads-up display working, one thing that we can use is some
09:48device that the actress has to project that into midair.
09:51So, we're going to add an armature that comes out from behind her ear, with a little
09:55light projector at the tip.
Collapse this transcript
Fabricating geometry and shadows
00:00We've successfully motion-tracked the heads-up display to the front of the
00:03actress' face, and now it follows along.
00:06I'll play back a little portion of that. There we go.
00:13Now, I did spend some time altering the masks to make sure that the eyeglass
00:18shape fit well over her face.
00:20That required going back to HeadsUpMask, and altering this mask.
00:24So, there's a place for the nose, and then, the two sides taper off, and that
00:29works well in this case.
00:30I also made sure that any kind of text that appears in the heads-up display was
00:35easy to see, that it fit in each lens of this virtual pair of glasses.
00:40To do that, I had to go back to HeadsUp, and just move around the type layers.
00:44Okay, so now we're ready for the next element.
00:49It would be great to get some type of armature that pops out to serve as a
00:53little projector to project this heads-up display in midair.
00:57Now, we don't have any kind of pre- rendered element for this, but we can
01:00fabricate an armature by using Solids, Solid Layers, and Masking.
01:05Let me turn off the heads-up display to save time, and then I'll go back to frame 0.
01:12Let's get started by making a new solid. Layer > New > Solid.
01:16I'm going to make this one white just initially so I can see it, and then
01:21make it say 1200x720. I will click OK.
01:26Initially, it covers up everything, but what I'll do is open it up in a Layer View,
01:30so it's by itself, and draw a rectangular mask over the top.
01:35I can use this Rectangle button up here, just like this.
01:41Now back to the Composition View.
01:42Again, it's just on the top.
01:45What I can do though is borrow some tracking information from a different layer.
01:48If I zoom in, I can choose where I want it to be.
01:52I'd like it to appear over her ear as if it's a Bluetooth device.
01:56Now, this is actually close to where the tattoo is motion-tracked, right here.
02:01So, what I can do is borrow the corner pin, and the transforms from the tattoo layer.
02:05I'll start with the corner pin.
02:07I'll select that Effect, Ctrl or Command+C on the keyboard to copy.
02:14Go back up to the Solid, and paste, Ctrl or Command+V. That distorts it through
02:22the corner pin, so now it's small down here.
02:24The mask is in the same place though.
02:26Next thing I'll do is grab the transforms.
02:30I'll Shift+select Position, Scale, and Rotation, again on the first frame, copy
02:37those, go back up and paste again to the solid layer. There we go.
02:46So, there is a solid.
02:48Now, it's close to the motion path, it's not really where we want it, and that's
02:53because I didn't bother to change the anchor point in advance.
02:56I can do that now though.
02:58If I go up to the Solid, look at the anchor point, I can just slide it over to
03:03where I'd like it to be.
03:05I'm going to go to a different frame, though, where I can see the side of the face better,
03:10frame 200.
03:12There's a better side view, and I'll slide it over, somewhere around here,
03:19so maybe 375 in the Y, and somewhere around 660 or so for the X. Now, it seems a bit short.
03:30There's some perspective shift on it.
03:32But, I'd like it to be longer.
03:34I have to go back further and go out further.
03:36So, I can go back to the Solid Settings and increase the Width. Let's try 1800.
03:45That makes that solid longer.
03:47Now, the anchor point, and the X has changed because we did make it longer, but
03:52we can change that again to get it back where we want it;
03:55somewhere around 980 or so might be good, 970.
03:58The rotation now is a little funny, I'd rather have a point downwards as opposed to
04:02across like it is now.
04:03What we can do there is go to the Rotation, go to the Graph Editor, frame it
04:08all, select all the keyframes and offset the entire curve.
04:13I'll just pull this curve up or down until it feels like a good rotation.
04:17So, I think, when I'm on frame 200, a rotation of around 20 is going to work,
04:23something like that.
04:25That's looking good.
04:26Now, there are still a few issues to deal with.
04:30One is the fact that it overlaps the hair.
04:32I'd rather make it look like it's coming out from beneath the hair.
04:35What I can do there is add another mask to cut out part of this solid.
04:39I can't do it right here, I have to zoom backwards, or zoom out, and find the
04:44mask, which is still up here.
04:45What I can do though is draw a second mask and subtract that mask.
04:50So, I'm going to draw one like this with a bit of a rough edge right here, and close it up.
04:56Then, I'll change its second mask to subtract.
04:59Now, because it's so far away, I have to zoom in to see how that worked, I might
05:04have to go back and forth a few times, but that's the general idea.
05:05I've cut off this end and now it fits underneath, that part of the hair.
05:10Another problem is, because it's a solid that's been shrunk to such a high
05:13degree of its corner pin, there's some kind of bad stair-stepping on the end, it
05:16looks kind of rough.
05:18What I can do there though is just add a blur.
05:20Effect > Blur & Sharpen > Fast Blur, in a small number like 0.5.
05:27That's going to help.
05:28Now, it's very bright right now, and it's extra harsh because it's white, but I
05:32can go back and change this to black, like plastic.
05:35So, Layer > Solid Settings, and make it black.
05:38Let's check the tracking to see how that works.
05:46I'm going to play back a short section. All right.
05:56That looks pretty good. There we go.
06:03So now we have great rotational shifts in that solid, thanks to the
06:07motion-tracking and the corner pin.
06:08So, it looks like it's turning with the face. All right.
06:14It would be great to have some kind of shadow.
06:17There's a definite shadow right here.
06:18So, we'd expect a shadow from the armature.
06:20I can do that by copying the current solid.
06:23I'm going to rename the solid first so I know what it is,
06:26Armature, and then duplicate this layer, pull it down underneath, rename that,
06:35call it Armature Shadow.
06:36It comes in right where the original one is, but I can offset that by
06:44changing the anchor point.
06:45I'm going to push it over to the right a little bit, and down a little bit.
06:52Now, I don't really need the very start of this to be cut off, or least not
06:56from that double mask.
06:57What I could do though is pull out to see the mask, and either alter this
07:02subtractive mask or simply delete it.
07:04I want to delete that second mask.
07:07Mask 2, delete, and that puts it back to its original length.
07:14Now, as a shadow, it's very dark, very opaque.
07:16So, first thing I'll do here is reduce the Opacity to 50%, and then blur it even more.
07:22There's a fast blur here that I got from the copy.
07:24So, I'll set that to 2. That looks better.
07:27Now, the color is not quite right, it looks a little bit blue.
07:31It doesn't look red like the other shadow in the footage, so I'm going to add a Hue/Saturation.
07:35Color Correction > Hue Saturation, I'm going to use Colorize this time.
07:41And the Hue is already set to Red, which is 0 degrees, but I'm going to crank
07:45up the Saturation to 70 and more importantly, the Lightness, so I can see some of that red, to 7.
07:52And there, a reddish tone comes in, it starts to look like a shadow that
07:56might be on the face.
07:57That will also track along, because it's using the same animation that was
08:00originally on the Armature layer.
08:06We've created a virtual piece of geometry by using a solid layer, masking, and
08:10then applying tracking information to that by borrowing it from another layer.
08:14We've also created a shadow by copying the original solid downwards and
08:17adjusting it with color tools like Hue and Saturation, Blur, and then the Opacity.
08:23There are a few more things that would be great to add to this armature.
08:26One would be some type of highlight that looks like it's plastic, like
08:29it's glinting in the light.
08:30The other is some type of light source to make it look like a projector.
Collapse this transcript
Adding highlights and light effects
00:00We've created an armature to serve as a tiny projector to tie into the heads-up display.
00:04Let me play that back.
00:13It works well as a motion tracking, but there are several problems.
00:18One, it appears the entire time, in other words, it doesn't pop out when she
00:22presses a switch on the tattoo.
00:23I think it'd be nice to do that.
00:25Another thing is it's a bit flat.
00:27We can address that with additional layers.
00:30Let's start with the fact that it should appear when the switch is thrown.
00:34We could animate the transforms but an easier way is to affect the mask that is
00:39coming out of that shape.
00:41So let's open up the Armature in the layer view.
00:43What we can do is animate this rectangular mask growing over the frames where
00:48she turns on the switch, so at frame 90, that switch is off so I can key that
00:54mask, Mask 1, down to a small shape.
01:00So I'll pick the end points here and move those so it's basically not visible.
01:04Then I'll go to frame 100 and extend it back out.
01:12So now this will grow over time, just like that.
01:15I do need to do the same thing for the shadow.
01:19Now, since they are based in the same original layer, I can go ahead and just
01:24copy the keyframes here while I'm on frame 90, so Ctrl+C or Command+C down to
01:31the other mask, Mask 1 on the shadow, and then Ctrl+V or Command+V to paste.
01:39If I open up the Armature shadow layer, it's not visible there, but I can go back
01:45to the composition, it's up here at the top, and there it grows.
01:53Okay, that's solves the appearance of this armature.
01:56In fact let me play that short section back, and there it pops out.
02:03Now let's address the fact that it's very flat and very black, very plain.
02:09It's really missing a highlight, if that was plastic, there'd be a highlight.
02:13We can create a highlight by copying the Armature layer and tweaking it. So Edit > Duplicate.
02:19I'm going to call this Highlight. and then I'm going to open this in the layer view also.
02:29It's black now so I'm going to change the color, Layer > Solid Settings, to white
02:35or some type of grey.
02:36Let me make sure it's open, here we go.
02:43It takes up the entire area of the armature.
02:45What I really want to do is make the highlight small, so I can draw another
02:49mask and draw a tiny, skinny, irregular mask right here, kind of where the top
02:53would be, like this.
02:57It doesn't show up immediately.
02:59I need to change the mask's blending mode.
03:01Instead of Add I can switch that to intersect, and I'll get this result, which is perfect.
03:07Now it's very hard on the edge so I can go ahead and feather that to 20.
03:11If I want to erode this and make it even skinnier I can adjust the mask
03:16expansion, like that.
03:18Let's take a look in the composition view and see what it looks like. There it is.
03:23Now, for additional realism, I can tone it down a bit.
03:27For instance, reduce the opacity.
03:29We can also animate this over time.
03:34Let's say that she moves around, that highlight changes intensity, that
03:38would be more realistic.
03:39Let me turn off all the other layers for now to save time, and let's see how she moves.
03:49So it's off at the beginning, you don't have to worry about that.
03:52She moves right here, so let's say that it's dimmer around here, so I'll go
03:58back to the highlight.
03:59One way to animate that intensity would be to animate the mask expansion. So I
04:05can say reduce the expansion to a greater negative number to make it fade away.
04:12And when she turns her head, I can either reduce it or increase it, it maybe goes
04:17into a shadow for a second.
04:18Still in the shadow over here, and then we she turns her head again, it
04:26goes more into the light.
04:27I'll leave that up to you.
04:28But varying the highlight intensity it will make it more realistic.
04:37So that's care of the armature itself.
04:39Now to tie this into the heads-up display, what would be nice is to have sense
04:45the light is streaking from the end of this armature over to the glass area.
04:50What you can do is use an additional copy of the heads-up display, streak it, and
04:54put it in this area right here.
04:56Let's give that a try.
04:57I'm going to pull down another iteration of HeadsUp, pull it down to the top.
05:05It's too big, so I'll scale and move it so it's roughly in the area where the
05:10projection beam would be.
05:18I'm going to reduce the opacity just so I can see through.
05:21Zoom back in here, and then draw a mask on this layer to just make it that
05:34triangular shape, something like this.
05:43That'll also need to be keyed over time so it follows along.
05:46So I'll just set a couple of keys now, and I'll let you finish up the
05:50keyframing on this.
05:53So there's the first frame, move that over for the last frame.
06:02And then we're going to continue to bisect that until it follows the entire time.
06:05Let's go back to this earlier frame.
06:12Now it has a very hard edge also so I'm going to feather that on the mask.
06:19I'm going to borrow the blur from the HeadsUp layer.
06:25I want it to glow in the same fashion, so find the Glow, copy that, Ctrl+C or
06:31Command+C, paste, Ctrl+V or Command+V. Also need to worry about the opacity.
06:37On frame 90 this whole HeadsUp break is off, so I need to go to frame 90 and
06:44animate that with zero opacity, and go to frame 100 and animate it at a higher
06:53value, let's say 15.
06:54I don't want it too be intense.
06:56Now I need to make sure at least on frame 100 this mask is in the correct place.
07:00Let me just key that real quick. Then also frame 90.
07:13Okay, so now it turns on with everything else.
07:15Now one problem at this point is the images within that projected area are very
07:20clear, very easy to see what's going on there.
07:23What would be better is to have that blurred or streaked somehow.
07:27What we can do in this case is add another effect which will do that, which is Radial Blur.
07:35Radial Blur has two modes of operation.
07:37One is spin, where it spins everything around for a blurry result.
07:41The other is zoom, I can change the type to zoom.
07:44The center determines how it's streaking that layer, so if I grab the center
07:48tool and place it near the armature, it'll streak from that outwards with
07:54increased intensity.
07:55Then I can increase the amount to a high number. Let's say 100.
08:02And you'll see the simulation right here.
08:04Now, the Center will also have to be animated to follow the armature, so I'm just
08:13going to quickly place a few keyframes here and I'll let you do the rest of the
08:16keyframing on your own time.
08:26Let me pick one more location for a quick keyframe and we'll take a look.
08:30We'll move the mask first, then make sure I have the center on that blur in the right place.
08:39Here we go, and I'll hide the mask.
08:43So there we have a blurry streaked version of the heads-up display and that will
08:47help tie it in better.
08:48We've improved the quality of the armature by adding the highlights, using some
08:52a similar solid with different masks.
08:54We also animated the mask expansion to make that highlight vary over time.
08:59We then created a blurry streaked projection by dropping an additional HeadsUp
09:04layer, masking it, and applying a radial blur to streak it out.
09:07We can now move on to the final step of this armature process by adding an
09:11integrated light to make it flicker and make it look like a light source.
Collapse this transcript
7. Color Grading and Rendering
Applying color and light effects
00:00We've added some additional realism to the Armature by creating a highlight from a
00:03solid layer, and also creating a streaked projection along the side here.
00:08I spent some more time making sure that the keyframes were set for the mask
00:12on that streaked area, which is now called Projection,
00:16and also adjusting the highlight to make it look like it's changing as she turns her head.
00:23We're now ready for the last step on our Armature, which is to give the sense that
00:26there's a little light bulb in the very end.
00:29We could do this by adding a CC Light Rays Effect.
00:31Before we get that far though, what I'd like to do is cut a hole in the end there, so
00:37there's a place for a virtual light bulb to fit in.
00:40So let's do that, I'm going to open the Armature layer in the layer view and then
00:45draw another mask at the very end to cut out a hole.
00:47I am going to you use the Rectangle tool and draw a little rectangular hole right here.
00:53Now when I say hole, it will be a hole if I go ahead and set that Mask 3 to Subtract.
00:59Now if I return to the Composition, you can see a little a notch cut into that.
01:05Alright, so now we can add the Light Rays Effect.
01:09Now, when using this particular effect, it's actually better to go ahead and
01:12nest the composition because the effect takes into account all the colors below
01:16it, and it's just better to work with a single layer.
01:19Let's make a new composition, and in fact, this new composition, we'll be able to
01:23use for the final color grading also.
01:25So, I'm going to call that ColorGrade.
01:29I want to make sure it's the correct size of the original composition, 1280x720,
01:3330 Frame per second, and also 300 Frames in Duration.
01:37I'm going to nest that first composition in this one, that's Spy, I'll drag that down.
01:43I'm going to go to a layer frame where we can see all the heads-up display material
01:52and zoom way in and add a CC Light Rays.
01:56It's under Generate > CC Light Rays.
01:59It works with a Center Controller, so I'm going to use a Center button, to place
02:05a center, right at the end in that notch.
02:07As soon as its laid down there, you can see a little flare, and the flare is based
02:12on the colors underneath that Center.
02:14This'll be nice because it will flicker over time.
02:16I need to keyframe that Center moving with our Armature.
02:19I don't have enough time to set all the key rays, but I'll set a short section
02:24just so you can see.
02:25I'll do some quick bisect animation here to position that Center.
02:36I can just interactively drag that Center handle.
02:39I need to make sure I do have keyframes at the beginning when that armature
02:47flips out and it's folded out at Frame 100.
02:54And then it first appears at a Frame 90, or starts to slide out.
03:04I don't want the intensity to be at 100 right now, because it's hidden, it's not on yet.
03:09So, at Frame 0, I want to animate the intensity, so at Frame 90 I want the
03:14intensity to be zero.
03:15Then at 100, when it's finally turned on and flipped out, I can increase it to a
03:24higher number like say, somewhere between 200 and 400.
03:29Now, it extends a very far away, if I zoom out that streak is going all the way
03:33past the back of her hair.
03:35So, what I can do then is reduce the radius.
03:38And also adjust the Warp Softness, too.
03:40In terms of the intensity, I want to go ahead and flicker that overtime, so
03:51every few frames I'm going to randomly adjust it between 200 and 400.
03:56As I go, of course, I want to make sure the Center is in the correct place.
04:00So, there's a short section of some variation in intensity, and also making sure the
04:12Center was positioned at the end of that Armature.
04:15Let's play back that short section. There it is.
04:24So, there's the flickering light source at the end.
04:28Now, I do need to finish all the key framing on the intensity and also the Center.
04:33I can't demonstrate that in real time so I will let you finish that on your own.
04:37I do want to mention one thing about the Armature, and anything that makes up the armature.
04:41If I go back to the Spy composition, you'll notice there's a number of motion
04:46blur buttons turned on.
04:48Any artwork that's been tracked is a candidate for having the Motion Blur turned
04:52on, that includes the armature shadow, the armature, and the highlight.
04:55I'll go ahead click those motion blur buttons on, and therefore I'll have it streaked as
05:01it moves across the scene.
05:03Now again, you have to have the button turned on for the layer and also
05:07the entire composition.
05:08Go back to ColorGrade.
05:10So, assuming that the key framing is done on the Intensity and Center, we can
05:15move on to the final step, which is color grading the entire scene.
05:18When we pull back, we can see that the scene is fairly brightly lit and it's
05:23fairly neutral in color.
05:24What would be nice is to, say, have the edges go darker and more blue, and have a
05:30nice, warmer highlight in the center where the actress is. So let's do that.
05:36I'm going to start by just adjusting the overall image to make it warmer,
05:41just on this one layer.
05:42So, I'm going to add a Curves Effect, Color Correction, Curves, and also a Color Balance.
05:50I'm going to make it slightly brighter by bowing up the curve first and then
06:01I'll experiment with the color sliders.
06:03I have some values here to help out.
06:05Let me go into the Highlights section, increase the Red to 38, the Green to 16,
06:13and the Blue to -2, some more Red and Green.
06:20Also, in the Midtone Reds, I'm going to increase those to 25.
06:23That warms it up and makes it much redder.
06:27Now in order to get the blue edges, I'm going to pull another copy of Spy into
06:32this composition, nest that one more time, and draw a mask around the center
06:38that's kind of a soft, curvy mask, something like this.
06:42Pretty much in the area where we see the actress.
06:47Now, I want to invert this so the blue or this part is inverted so it's on the outside.
06:53So, I'm going to the mask and invert it, invert it.
06:57Now, I don't want a harsh transition, so I'm want to make a big feather on this.
07:02We're going to try 400. And then we can color correct this edge that's left.
07:12I'm going to add a Hue Saturation to that top layer.
07:18Go to Colorize and spin the color wheel to -125, increase Saturation, and darken
07:30down that area by reducing the lightness.
07:32We're going to hide the mask, and now we see have a warmer area in the center.
07:39Now, you can continue to play with the feather, and also the size of the mask, to
07:44see what might look appropriate.
07:45Now, this thicker shot moves over time, there's a camera pan.
07:48So it'd be good to animate this mask roughly following.
07:52So, if you line up an element of the mask, like this point right here, to a
07:56feature in the background, like maybe this pipe in the background, we can
08:00animate it over time.
08:01I'm going to key that, go to a different frame, say frame 1, and then roughly
08:07move it over to about where that pipe was right here, and I'll do the same to the last frame.
08:12That way the actress steps into the light and comes into a warmer light.
08:24So, that's the final step.
08:25We have added all the visual effect elements like the heads- up display, the
08:28Armature, and the Tattoo.
08:29We've done some color grading and some light effects to intergrade everything.
08:34We can now render out a movie.
Collapse this transcript
Batch rendering the final comp
00:00We've finished all the visual effects work on this shot, so now we're ready to render.
00:04Let's take a look at the shot first.
00:07(video playing)
00:15So, we have our color grading, we have our heads-up display, our Armature, and our Tattoo tracked in.
00:21So, to render out, I simply need to add this composition and color grade to the render queue.
00:28Composition > Add to Render Queue. That gives me the Render Queue tab.
00:32It's also listed down here.
00:34I need to change my Output Module and my Output to, and then I can render.
00:38So, in terms of Output Module, I'll click the word Lossless, and the Output Module Settings window opens.
00:46In terms of the format, I can choose a movie just for a test.
00:49If I wanted to render out something with a higher quality, I would choose Image Sequence.
00:52But for now, I'm just going to choose a QuickTime movie, QuickTime.
00:56Now, whenever you do pick a movie, you should change the Format Options to maximize your quality.
01:04Click this button. There are a number of choices.
01:08All the different Video Codecs are up here. I'm going to select MPEG-4.
01:11Now, there are several other ones that are good quality too like, H.264, but this will
01:16do for now, MPEG-4. Click OK. This is all good. Click OK.
01:23And then go and pick a place to render this, and also a name for the movie.
01:27I'm going to go to my desktop and just call this one Test. Save that.
01:35Once these two items are set, I can render.
01:43Once the render finishes, the yellow bar will disappear and you'll have a movie on disc
01:47where you chose to write it out.
01:49You can open that movie outside the After Effects.
01:51Now, I want to just import it just to check it.
01:55File > Import > File, go to my desktop, and grab that Test.mov.
02:00I'm going to open it up here, just in the footage viewer and take a look.
02:08And there we go, the final rendered movie. The project is now complete.
Collapse this transcript
Looking at the final scene
00:00Now let's take a look at our finished shot.
00:02(Male speaker: …and you can be proud of the contributions you've made in engineering, developing, and manufacturing the zero-loss system.
00:08(applause)
Collapse this transcript
Conclusion
Next steps
00:00We've reached the end of the course.
00:02We've successfully motion tracked objects into a face.
00:05These include an electronic tattoo and a heads-up display that floats in midair.
00:09These techniques we've discussed can be applied to a wide range of
00:12visual effects work.
00:13If you're interested in learning more about these topics, please visit
00:17the lynda.com site.
00:20Several titles that would be useful include After Effects CS6 Essential
00:24Training, Mocha Essential Training, and my other title, Maya Rendering for
00:32After Effects Composites.
00:33Thank you for joining me on this course.
Collapse this transcript


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,069 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked