A track matte can be done with alpha or with luminance. Are you familiar with layer masks in Photoshop? It’s a similar principle.
If you go to Digital Juice’s training page for their Compositor’s Toolkit and scroll down about three-quarters of the way, you’ll see some tutorials called Custom Ink. It’s a series on revealing things with track mattes using organic footage.
You could do it yourself without buying stock footage by combining an animated fractal noise effect with ramps and other color corrections over time…but that’s not overly important right now.
Let’s just try it out for ourselves.
Start a new project. Make a new comp. A normal dv sized comp will be fine for this test. Call this comp, “Main”. In this comp create a red solid the same size as your comp. Rename the layer, “Red”. Now create a blue solid the same size as the comp and name it, “Blue”. (Ctrl+Y on the PC or CMD+Y on the Mac is a shortcut key to create a new solid).
Your layer list should now be:
Blue
Red
Thrilling, right?
Now, create another comp the same size as your existing comp. Call this new comp, “Track Matte Comp” or some other creative title. Create a new solid in this new comp the same size as the comp. (it doesn’t matter the color) Apply Effect>Generate>Ramp. You should have a nice black to white gradient.
Back in your Main comp put the Track Matte comp at the top of your layer list which should now look like:
Track Matte Comp
Blue
Red
Cool?
Now, in your timeline window you should have a panel that offers the option to change the layer’s blending modes. (If it’s not there, there will be a panel with lots of switches for the layers. Underneath that there should be a wide button to click on that will switch that panel to what we want)
On the blue layer, under Trk Matt (or whatever it’s called) click that drop down and choose the luma matte option.
WOAH!
Now you’ve got a red and blue gradient. If you go back into your Track Matte Comp and create a new white solid – say, about 200×200 – and a black one the same size and you offset their positions, you’ll be able to see what’s going on when you switch back to your Main comp. What’s white on the track matte layer will be there and the darker the track matte layer gets, the more transparent the layer will be. If you turn off the eyeball for the red layer and click the little button on the bottom of your comp window that switches between the checkerboard and black for the background, you can see the opacity change that way too.
I hope that made sense.
If not, I’ve attached an example project here on the COW (219_trackmattefun.aep.zip just click the disc to download it) that fits what I just went over.
(I also included a “more complicated” part that answers your original question about how to use it on buildings.)
I hope this helps!
– The Great Szalam
(The ‘Great’ stands for ‘Not So Great, in fact, Extremely Humble’)
No trees were harmed in the creation of this message, but several thousand electrons were mildly inconvenienced.
Social Media Profiles