Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Subtracting shapes

From: mocha 2.6 Essential Training

Video: Subtracting shapes

When a tracking target is partially obscured by something moving in font, the offending object can be subtracted from the tracking mask to restore a clean track. I am using the coffee cup clip from the Lesson_03_Midea folder. First, let me give you a demo to see how it works, then we will work it on a real example. I am gong to start by drawing a simple shape around this coffee mug. I will turn on the Mattes so we can watch the action while we track it.

Subtracting shapes

When a tracking target is partially obscured by something moving in font, the offending object can be subtracted from the tracking mask to restore a clean track. I am using the coffee cup clip from the Lesson_03_Midea folder. First, let me give you a demo to see how it works, then we will work it on a real example. I am gong to start by drawing a simple shape around this coffee mug. I will turn on the Mattes so we can watch the action while we track it.

And even though it's not a planar surface, the Planar Tracker does a pretty darn good job at locking on. Well done. And we have some tracking data here that we can play with. So I will rename this, cup track. Next, I will draw a new shape up here in the chest and I am going to turn off the tracking cog so the tracker doesn't accidentally track it. The two key points are the new layer is above my cup track in the list and second of all it's right in the path of my tracking.

So let's watch what happens. I will select the cup and retrack it. I'll stop the track here to show you how the cup track shape has been erased for the Layer 2 above it in the Layers list. Coming up here to the Mattes overlay pop-up I will be enable these selected track Mattes options, which reveals how track mattes are subtracting from each other. You can see that the top of the coffee cup shape has been erased. I'll set the Mattes overlay back to Selected matte, then come down here to resume tracking to see how far it gets.

It only gets -- bummer! All right! So because Layer 2 was above the cup track it was subtracted from the cup track below. So when the tracker got behind the Layer 2 mask it broke track. So let's go back to frame one and now we will delete the cup track data. The way to delete tracking data for our layer is first make sure the layer is selected and then come down and click on manual track and there is all your tracking data keyframes.

Go over here to the Delete All, confirm Yes. Now all the tracking data is gone. Be sure to put the tracker back to large emotion. I will show you it's gone by moving the playhead and my tracker shape goes nowhere. Now if I go up to Layer 2 and deactivated it, it essentially disappears from the universe. So now I can reselect my cup track and retract it and I'll get a good track, even the Layer 2 is above it in the list it's interactive. No harm.

But let's see what happens backing frame one. If I active Layer 2 and make it invisible. Now let's see what happens. So I'll select my cup tracker and retrack the shot and sure enough it was invisible my cup track broke lock. So it's not a question of visibility. It's a question of being an active or an inactive layer.

So if your tracking layer passes over a layer that's above and active it's going to block the tracker from seeing it. Let's see a real example. So with the cup track selected we will put that in the trash and also delete Layer 2. So I need to do a track on the chest and unfortunately this arm and cup are just swinging right through the middle of my target. So I need to subtract that out. So first I am going to draw a roto around my coffee mug and arm.

I'll track forward from here. I chose that frame because it kind of gave me a good view of the arm and the mug. My tracker went a little bit off the target right here, but that's no problem. The planar tracker is very forgiving of problems like that. So we will go back here where I started and I'll track it backwards. Again, a little exposed coffee mug isn't going to hurt us. So we now have a tracked mask.

So I'll rename this arm mask. I will turn off the tracking cog so we don't actually track it again later. In fact, I will even lock it. Now I will draw my body tracking mask here. I will rename it body tracker and I am going to set all of the overlay masks to be on so that we can see what's going on. I will set the arm mask at the top of the stack so it's above it.

Now I am going to set the arm layer blend mode to Subtract. Now you can see how the arm mask is being subtracted from the body track. So this subtracts arm mask from the body tracker so the tracker won't even see the arm and the coffee cup. The only part that tracker will see is the green overlay area. We will set the playhead back to frame one. Make sure the body track is selected, and we will track that.

Now the coffee cup and the arm are being subtracted and the tracker doesn't get confused. Okay, tracking is done. Put the playhead back to frame one. I am going to turn of those Mattes, turn on the planar surface body tracker. We don't need the splines. We will hide those. So here is my planar surface for the body track and that shows that we've got some decent tracking data that we can use to do some rotos on the body. We will stop that.

I will turn off the Planar Tracker, turn on the Mattes. Now let's look at the white mattes, the alpha channel, if you will. You can see the arm mask is being subtracted from the body tracker, and that's because the blend mode for the arm mask here was Subtract. If I put it to the default of Add, the two are put together. So when layer is a tracker they're going to be subtracted automatically, but the layer is a roto, then you will need to turn on Subtract if you really want the output masks to be contracted from each other.

So remember any acting layers below tracking layers will be subtracted from them. So always keep the current tracking later at the top of the stack to avoid subtraction.

Show transcript

This video is part of

Image for mocha 2.6 Essential Training
mocha 2.6 Essential Training

49 video lessons · 7845 viewers

Steve Wright
Author

 
Expand all | Collapse all
  1. 5m 23s
    1. Welcome
      1m 40s
    2. Getting to know the user interface
      3m 43s
  2. 1h 7m
    1. Drawing X-splines
      8m 2s
    2. Drawing B-splines
      5m 4s
    3. Editing splines
      3m 52s
    4. Keyframing splines
      6m 33s
    5. Discovering the timeline controls
      5m 52s
    6. Walking through the New Project window
      4m 23s
    7. Working with interlaced clips
      8m 19s
    8. Setting the color space
      4m 46s
    9. Defining mocha preferences
      3m 46s
    10. Walking through the Layer Control panel
      3m 22s
    11. Walking through the Layer Properties panel
      3m 29s
    12. Viewing mattes
      3m 41s
    13. Walking through the Edge Properties panel
      6m 24s
  3. 1h 8m
    1. A planar tracking demo
      6m 36s
    2. Setting motion options
      13m 12s
    3. Adjusting the tracking spline
      8m 51s
    4. Tracking awkward surfaces
      6m 3s
    5. Understanding the planar grid
      6m 50s
    6. Dealing with lens distortion
      7m 43s
    7. An AdjustTrack demo
      5m 49s
    8. Keyframing the AdjustTrack
      7m 48s
    9. Offsetting reference points
      5m 49s
  4. 1h 8m
    1. Strategizing shape distribution
      11m 21s
    2. Working with large areas
      2m 44s
    3. Selecting a start frame
      10m 38s
    4. Replacing a shape
      2m 54s
    5. Keyframing: Bifurcation
      4m 38s
    6. Keyframing: Straight ahead
      5m 17s
    7. Keyframing: Extremes
      9m 22s
    8. Keyframing: Maximum digression
      6m 45s
    9. Converting to stereo
      2m 54s
    10. Inspecting your rotos
      4m 43s
    11. Rendering mattes
      4m 45s
    12. Exporting shapes
      2m 54s
  5. 1h 30m
    1. Moving the camera with parallax
      5m 30s
    2. Moving the camera without parallax
      3m 58s
    3. Using multiple splines in a layer
      7m 23s
    4. Subtracting shapes
      7m 6s
    5. Stabilizing the viewer
      5m 46s
    6. Keyframing during tracking
      7m 24s
    7. Unlinking the tracker
      5m 8s
    8. Tracking manually
      12m 35s
    9. Defining corner pinning
      5m 4s
    10. Going further into the Track tab
      6m 53s
    11. Utilizing the more advanced AdjustTrack features
      8m 40s
    12. Working with the Stabilize tab
      6m 11s
    13. Exporting track data
      8m 53s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed mocha 2.6 Essential Training.

Return to your organization's learning portal to continue training, or close this page.


OK
Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Become a member to like this course.

Join today and get unlimited access to the entire library of video courses.

Get started

Already a member?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

The classic layout automatically defaults to the latest Flash Player.

To choose a different player, hold the cursor over your name at the top right of any lynda.com page and choose Site preferences from the dropdown menu.

Continue to classic layout Stay on new layout
Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

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.

Sign up and receive emails about lynda.com and our online training library:

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

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.