Join Ben Brownlee for an in-depth discussion in this video Choosing the right place to track, part of mocha 3 Essential Training.
Choosing the right place to track with a planar tracker might not be immediately obvious at the start. But pretty soon, it's going to become second nature. So let's take a look at our next piece of footage, which is the steamboat. And this is another JPEG sequence. So I can just select any of these images, hit OK. And we'll just make sure Mocha has the right setup. We're taking the whole frame range from one to 202. Frame rate is 25 frames a second, pixel aspect ratio is HD, so square pixels and no fields.
So, let's hit OK on that and take a quick look at our footage. So we have our boat happily making it's way across the water here. Mocha has a planar tracker, so it tracks planes. That doesn't mean we can't track boats as well, It means we have to track geometric planes. So a geometric plane there's an infinitely flat 2D surface. Probably the easiest way for me to explain is to actually show you what I mean. So I'm going to come up to my new x spline layer tool, click on that.
And let's create a new x spline. And I'm going to create it around this wooden area here. Now up at the top I'm going to turn off Show Transform Tool and I'm going to turn off my layer outlines as well and turn on the surface. We will talk about what all of these things are in more detail, but this just gives me the four corners that make up our planar surface. So, I can just sort of drag those around. Then I'll turn the grid on as well, here. So, by placing my four corner points where I have here, I've actually defined a plane.
A planar surface. And, that planar surface is the top of this boat. So the great thing about this is that we can stretch it out, either way I'm just dragging the ends of the surface over here. Now you see that extending out and fitting still across the boat. So that is one plane that we have going on our boat. So this top area here counts as a plane. What we could also do if I turn my grid off for a second up at the top here, what I could also do is, is define the side of the boat as well, so I drag my four points over here, and we'll define a completely different plane on this boat here.
And now I turn my grid on. And that is now a plane that describes the the side of the boat. Likewise, if I wanted to describe the chimney, going up here, let's turn off my grid, so we can see what's going on. And just place my points down here. Turn my grid back on. Make sure that's all lining up. That's now a plane that describes my chimney. So now if we turn back on that shape that I've got, that shape that I defined here in the first place is not in the same plane as our chimney here.
We would call these non-coplanar surfaces, because they won't share the same sort of movement. Whereas if I was to track this area here but want to use my tracking data over on this area at the back of the boat. Because those two areas actually share the same plane, they're co-planar. So we can do that we can track one area and use that data on a completely different place there. If I turn my grid and my surface off here, I'll show you something that's not good. This would be a good shape to track.
And if I want to track the chimney, let's add another x-spline up the top here. If I wanted to track the chimney, I could take that area there. And that would be a decent shape to to track the chimney there. because this area here is a planar surface. So that makes a lot of sense, do that. What would be a bad place to track, though, add another x spline layer over here. What would be a bad place to track, is to do something like this. Let's just color code this up, so you can see that a bit better.
Probably with a bright yellow. Because this area here takes on two different types of movement. It's got the movement of the side of the boat, and also the movement on the top of the boat here. So if the boat starts to twist and turn, Mocha's tracker is going to get quite confused about what's actually going on in this shape, because these are two non-coplanar surfaces. To fix this, we would either track the top plane of the boat here or we would track the side of the boat here.
Both of those are valid options. Whereas that is not. And let's try and track those through. I'm not even going to look at changing any of the tracking parameters beyond their default. I'm just going to track these through as is. Let's come back to our first tracked frame. You can see that it's tracked through the chimney quite nicely. It's tracked on the the top of the boat quite nicely as well. It's got a little bit confused as I thought it would do. With the that sort of side in top of the boat. But even there, Mocha's tracker is quite resillient but when that boat starts to starts to, to tip over a little bit.
Its not quite knowing what to do. It's sort of taking half the movement from, half the movement from the top and half the movement from the side. And it's ending up with something that's a little bit confused. So in choosing your tracking areas, the most important thing is that the shape you're choosing is a planar shape and pretty much everything in it is going to be co-planar. So, instead of taking a shape that which goes across multiple planes, bringing that down to choose just the one plane if that's what you're trying to track. Another thing we want to do is we want to avoid areas where there's a lot of movement going in and out if we possibly can.
We do have techniques for dealing with that but you want to try and make your life simple as possible. So if one of the sailors was to walk in front of our chimney here, instead of describing the whole shape up here, what I would then decide to do. I try and choose a small area here where the sailor wouldn't go through or where it wouldn't be as disruptive. But a lot of things that would often be troublesome for irregular point trackers, so things like noise or motion blur, or smoke or, or sudden light changes, you know these aren't going to be as troublesome.
When we start diving down into some of these other parameters. So the most important rule for us is actually just to find something that is coplanar with the area that you want to get tracking data from.
This course was created and produced by Ben Brownlee. We are honored to host this content in our library.
- Setting up preferences
- Understanding the planar tracker
- Creating your first project and first track
- Tracking rotation
- Tracking objects that move off-screen
- Using the Shear and Perspective tools
- Exporting tracking data to After Effects, Motion, or Final Cut Pro
- Creating a fast rotospline
- Creating complex mask shapes efficiently
- Correcting for lens distortion in your footage
- Generating a 3D camera solve