Join David Andrade for an in-depth discussion in this video Camera tracking like a pro, part of Blender: Tips, Tricks and Techniques.
- [Instructor] Camera tracking in Blender is actually incredibly easy. It just takes a little bit of patience. And this week's Blender's Tips, Tricks and Techniques, we're going to show you how to take some footage shot on an iPhone and add a monkey to it. Let's get started. Now, the first thing you want to do is make sure you have motion tracking on as your layout. Add in your video, and again, you can shoot this on a smartphone, right here. And then make sure that whatever video you do end up shooting has a lot of high-contrast corners.
In this case, like this brick pattern. You only need eight points to track throughout the whole video footage, or Blender won't work. Okay, so let's get started. Now, one of the first things I like to do is to raise my search size, and I'm going to describe that here in a second. Let me open my track, and let's just zoom in and find a really high-contrast area and control click. Now, if I lower my search size, you can see what that does. It makes a smaller box that goes around my tracking point.
That's not good, because if the footage is moving really quickly, it'll move outside of the search size and we'll lose the track. So let's delete it, and use a higher search size, like, say, 100. Now go ahead and add a couple of tracks, and be mindful of tracking corners with lots of high contrasts. Why don't you take a few minutes and add as many as you can. Okay, cool. Now we've added a whole bunch of tracking markers, but we're not ready to start solving this jut yet.
The next thing you need to do is to go down to your camera and set what kind of camera you shot this on. Now, since I used an iPhone, I'm going to pick iPhone 5. That's going to change the sensor size, but if you don't find your own camera in here, you can just type in your own sensor size. Okay, now let's scroll down a little bit on the tracking side and make sure I click on Normalize. That's going to account for any slight shifts in illumination, lighting, maybe exposure changes on the phone, you never know.
Turning on Normalize will solve many of those problems. The next thing you want to do is to make sure that you have your little search marker display up. You could also turn on some other things if you really want to see everything, but I'm just going to leave it on those. And finally, go to the first frame and hit this Play button to start tracking. Now, if you're watching this track happen, you'll note all of these little red dots. They indicate where the tracking point came from. You also might've saw a few dots fly across the screen.
Don't worry, we can quickly clean those up. Also, did you notice how your footage played back a little choppy? Well, one thing you could try to do is click on Clip and go to Pre-Fetch Frames. If for some reason it doesn't fill up the entire bar with this nice little purple, that means it's running out of RAM. So go up to File, User Preferences, go to your System tab, and raise up your memory cache limit. I put mine up to eight gigs, because my machine has 16. Okay, click on Save User Settings, and let's get back to it.
Now, as I said earlier, some of the tracks are actually pretty good. Some of these are awful, like this one right here. Look what's going on. I'm just going to quickly delete it. See if you can eyeball any other weird tracks that are happening and just get rid of it really quick. Here's one right here that instantly just pops out of nowhere, so let's just get rid of that too. Now let's go to the Solve tab and click Solve Camera Motion. Blender's going to give you a score. In my case, it's 10.852.
The higher the number, the worse the track. It's all rather relative, though, and don't worry, there's ways to clean it up. But I encourage you to try to get it below 10. Now, to clean up your tracks, you're going to want to open up this little cleanup area, and I'm going to say that anything that lasts about 10 frames that's over, say, 20, we'll start with a high number, should be deleted. So with these two settings on, click on Clean Tracks. And Blender selected three tracks that are not so good, so let's delete them.
And then solve for camera motion again. Because everything is relative, deleting the higher numbers will actually make all of the others much better. Now, it's still a little high, right off the bat I can see that this track has a score of almost 14, so let's just delete it really quick. And let's scroll down. Do we see any other higher numbers? There's another 14, let's get rid of that one. 24 is way too high, let's kill that.
And everything else looks actually pretty good. So let's click Solve Camera Motion one more time. Whoa, my score is 3.5, that's really, really good. So let's go with that. Okay, now we need a solve for the floor. So I like to start at the end here, we're going to scroll down a little bit and find a couple of tracks that survived the entire film footage here. So I need three points that make a 90 degree angle on the ground. So I'm going to select this guy, this one right here, and this one over here.
So let's see, are they pretty good? Yeah, they look pretty good. And you can see how they make a nice little 90 degree triangle. So with these three points selected, I'm going to click on Floor, I'm going to select this middle one and say Set Origin. This top one will be Set Y Axis, and this one over here will be Set X Axis. Okay, now with all of this set up, click on Set Up Tracking Scene. Now once in a while you'll get a weird error here and there.
Blender is still a little wonky when it comes to tracking scenes. Now let's go back to my default view, delete this cube, and see what I get. Not bad. It is a little jittery, but a little bit of cleanup in the motion tracking could actually help us out. But for the most part, it works pretty good. You can see here there are some tracks that are pretty far out there, though, so we'll definitely have to consider cleaning it up.
The next thing you want to do is add a plane, so let's do that really fast. And make this plane a shadow catcher. So let's go down to Blender Render, switch it to cycles. Go to Cycle Settings way at the bottom of the properties, and click on Shadow Catcher. Now let's go into my camera view, hit N, scroll down, go to my background images, and switch this to front. Now let's just play and see what we get.
Okay, cool. As you can see, it looks like my empties are tracking to my footage pretty well, and minus a few oddballs that decide to fly around, it's working pretty well. So why don't we add a monkey? Let's go ahead and hit Shift A, go to Mesh, Monkey, scale Suzanne in a little bit, raise him up, go back to my camera view, and let's put it right about here and then go to Rendered Mode and make sure that this is on back with my render settings of transparent turned on.
And for good measure, let's go to Suzanne, and give him a nice material. And I can even kick up this lamp a little bit and make it a little stronger. There we go. Now if I scrub through my timeline, my monkey will stick to the floor and act as if I've actually had it there the whole time. Pretty cool. Camera tracking in Blender is actually really easy. The hard part is refining it and making sure it doesn't slip and getting that score as close to zero as you can.
Why don't you go ahead and play a little bit more with the motion tracking settings and see how close you can get this monkey sticking to the ground. Good luck.
Author
Updated
4/14/2021Released
6/28/2017Note: Because this is an ongoing series, viewers will not receive a certificate of completion.
Skill Level Intermediate
Duration
Views
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.
Related Courses
-
New This Week
-
Welcome
-
Series welcome41s
-
-
Blender: Tips, Tricks, & Techniques
-
PBR workflow for Blender3m 51s
-
Light it on fire!5m 23s
-
Filmic and HDR in Blender3m 33s
-
Camera tracking like a pro8m 20s
-
Rig a character with Rigify10m 44s
-
Let's make clouds!4m 59s
-
Quick compositing tricks5m 18s
-
Rig a mouth using Shape Keys7m 32s
-
Ignite a fiery tornado4m 11s
-
An in-depth eye rig8m 12s
-
DupliFaces3m 5s
-
Particle armies6m 9s
-
Let's make grass13m 4s
-
Make it rain5m 49s
-
Cloth simulation: Flag4m 46s
-
A quick ocean8m 20s
-
Dynamic painting7m 24s
-
UV like a pro10m 37s
-
Camera tricks8m 53s
-
Shrink wrap your life6m 10s
-
Alembics and offsets7m 51s
-
Work with modeling tools5m 33s
-
Orphan data7m 6s
-
Sculpting in Blender6m 29s
-
Lattices4m 43s
-
3D printing13m 31s
-
New add-ons for Dynamic Sky5m 48s
-
Magic UV4m 4s
-
Import Images as Planes3m 49s
-
Projections in camera6m 50s
-
How to data transfer5m 57s
-
UV without UVs6m 55s
-
Work with the Grease Pencil8m 10s
-
Random color nodes5m 48s
-
Tile textures6m 48s
-
Wood floor textures10m 47s
-
Pointiness in cycles5m 27s
-
Box mapping in cycles6m 4s
-
Undo History4m 12s
-
Forming fog and mist7m 31s
-
Create glare streaks8m 31s
-
Create rays of light5m 1s
-
Unique selection tools7m 20s
-
Bridge edge loops5m 54s
-
Hide geometry with masks7m 2s
-
Create cutouts6m 55s
-
Create a 3D text object5m 2s
-
Quick Fluid6m 11s
-
Simplify AO7m 54s
-
Python: Quick renaming6m 14s
-
Face rigging with Rigify6m 51s
-
Quick tree making6m 58s
-
Advanced freestyle lines7m 13s
-
Modeling hair using Curves8m 42s
-
Making quick fur8m 22s
-
Using the Hair BSDF node5m 35s
-
Making fire out of nodes10m 58s
-
Combining multiple UV maps7m 59s
-
Workflows: Using NLA Editor8m 29s
-
Workflows: Sharing animation7m 25s
-
Groups are now collections4m 34s
-
Subdividing beautifully4m 12s
-
EEVEE for beginners: Volumes4m 44s
-
Quick tip: Clipping plane4m 36s
-
Library Overrides6m 43s
-
Mantaflow guides4m 5s
-
Blender and UDIM5m 59s
-
Remeshing sculpts in Blender5m 41s
-
Animating animals in Blender7m 28s
-
Grease pencil to 3D mesh4m 17s
- Mark as unwatched
- Mark all as unwatched
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.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Camera tracking like a pro