Easy Screen Replacement with Masks
Welcome to a new section of the After effects course in this section we're going to learn how to do screen replacements like this one that I recently did for a short film and we're going to be using three different ways to do it. We're going to be doing one way and easy mask. The next way is with a mask as well but it's a little bit more difficult. It's actually going to be this shot And we're going to be using 3D rotations and adding reflections to make sure it looks proper. And then lastly we're going to be replacing a screen. It's actually this screen right here, a phone. We're going to be using Mocha, which is another add on tool that you can use in after effects, which is great when you have a moving phone replacement like this and you need to quickly and easily replace a screen that's moving in your frame. So first let's start out with our TV replacement one. All of these shots can be found in the video folder of the project. So we've got tv replacement one to the screen replacem...
ent minute clip and then I'm going to use this ocean clip as what's going to be on the screen itself. So for this first one, take TV replacement one, add it to a new composition. Next we're going to add the ocean and let's just add it there and we're going to put it behind our screens. So starting out we can put it above, we can actually kind of place it where we want but it doesn't really matter much right now because let's just put it below. Now I'm going to take my pen tool and I'm going to cut out this screen and this screen is rather simple but it's a little bit more difficult than a modern screen because it has these rounded corners. So let me zoom in just a little bit so I can see more detail and then I'm just going to select this tv layer and then go around the edge. So clicking here in the corner once dragging a little, going around the corner and dragging a lot so we get this curve going here and I can adjust these curves later. So basically what I'm doing though is clicking twice around each corner to create this curve. We want to try to make sure that the curves match around every corner. Cool. So what happens when I complete this mask? It selects the inside of the mask. So let's go under our mask and choose subtract. So now this is quickly replacing this screen but it's not perfect and it doesn't look very natural. So first let me actually turn off the ocean so we get a better sense of what our mask actually looks like. And then just click the tv replacement layer to go into our different points and see I'm going to add more curve, you can see the top of the screen up here. So I want to make sure we don't see that. Then when I do that I got to kind of adjust back this curve on the left, I can use both of these to affect it. Make sure this one is going out and this one I might actually just bring all the way to the right, there's this sort of edge that isn't part of the tv necessarily. But I do want to get rid of it, something like that and then down here drag it down, drag it down. Okay so that's a quick at it. I also want to add a little bit of feathering. Not much but just a little bit because the edges might be a little bit blurry. Now let's close this down and bring back our ocean. So if we play through this and let me just zoom out to fit to see what this actually looks like. This is your basic screen replacement but it doesn't look very natural, it doesn't match what it would actually look like on a tv screen. So there's a couple of things we can do to make this look better first let's add a little bit of darkness to the screen which we can do using the original screen itself. So if I duplicate this top layer and then I reverse the mask or just set it to what it used to be by changing the mask from. Subtract to add. Now we get this screen itself. Now let's play with the blend mode to see what looks good. So pressing, shift and then the plus or minus button on your keyboard next to your delete key, you can go through all of your different blend modes. What I want to do is make it a little bit darker and have a little bit of that reflection coming from the screen. So something like hard light actually looks a little bit more natural. So let me show you this on off, on off. So with it on that looks pretty good. I might want to add a little bit more feathering to this, something like that and maybe expand just a little bit. So we're not getting some weird funky hard edges around the mask so that looks a lot better to me. So that's one thing we can do. Another thing we can do is with these old TVs. The screen actually had a little bit of a bulge coming out so we have a bulge effect in the effects and presets panel. So typing bulge, it's under distort and drag that onto our ocean. You can't see it at first but these are your settings and if you increase the radius you'll see that this is the part that's affecting the bulge. So let's increase it until it's about the size of the screen. But of course we're going to have to move it. So with the bulge center just click this little target button and now we can go over to our image and click right in the center of the tv itself. And then we can click and move this around and then we can adjust how big this bulges. So bulge height, you can increase it and you can see that's a lot, we don't want that and you can actually decrease it if you want. That can give you a cool effect. I think a little bit less than what it was originally, which was that? One would be good. So maybe like point five or so. We'll test that and we can turn on and off effects by just clicking this little effects button next to any effect and that allows you to see you know what it looks like And when I do that, I can really compare the before and after. So I still think that's a little too much. So let me just put down 2.3. That's pretty good. Also the radius will also affect how big it looks or not. So maybe increasing the radius a bit might make it look a little bit better. So playing through this, I think this is starting to look a lot more natural with these old tv sets though, it's it doesn't come in clear that often. So we can add a bad tv effect which is under one of your animation presets. So if you just type in bad, you have these three bad tv effects. So if I drag that onto our ocean, you can see what is applied. You get all of these different effects in our effects and presets and you can actually turn these on and off, see if maybe some are what you want, some maybe you don't want, maybe some are too much and you can adjust those. So that's the bad tv one which adds some grain noise and grain and adds a little bit of banding. Let me undo that. Let's take tv too. So you can see that, this adds a little bit more. Warp, adds some saturation which actually might look good for this tv itself. Then lastly bad TV three this one, it's even worse. So it's de saturated, you get a lot of noise. This is, you know, bad a weak signal coming through so you can play around with those to see if you want one other thing you can do if you want to be able to adjust this is added to an adjustment layer, so go up to layer, new adjustment layer, put that between the tv replacement and the ocean. So just on top of the ocean because whatever you apply to this adjustment layer will apply to the layers beneath it. Now if we add this bad tv to to this layer, it still applies to the T. V. But instead of adjusting all of these effects, we can just adjust the opacity of this layer. So say we bring this down to like for example, it decreases the overall effect. That was added with this bad tv to, without having to go in and decrease each of these effects individually. We can quickly do that with opacity even with 16 gigabytes of RAM, adding all these effects. Can slow down your computer as you can see, I'm trying to play this out but it does take it a while to render out all of the frames so you gotta be patient or you got to get a better system. I'm using an imac that's a little bit older to record these videos. It's from 2013, I think it's an Intel I seven processor. I have a newer Macbook Pro laptop which still has 16 gigabytes of RAM but it has a better processor and it does work a little bit faster. So when I'm adding a lot of effects like this, I tend to use that. So anyways, that was just a little side tangent only, I just want to play this through for you so you can see what it looks like so that I think looks pretty darn cool. Pretty darn realistic, of course this is very simple. This shot is still, there's no motion so we don't have to actually move the screen itself, we're gonna be showing you how to do that in a couple of lessons when we use mocha but in the next lesson we're going to still use this set up. It's the other shot though and I'm going to show you how to basically create a replacement for this screen right here, which is rotated. It's a little bit more tricky and so we'll get into that in the next lesson.