You know the situation when you want to
shoot a scene with a screen inside the shot but it doesn't look quite right because
either there's too much light, or your gear is
reflecting on the screen. Or you could also want to change
the content of the screen with something creative
that needs to be done in post. Well, in this video we'll show you how
to make an advanced screen replacement, using the planner tracker
in DaVinci Resolve. Let's get started. Thank you to everyone who subscribed to the channel.
We really appreciate your support! And if you haven't subscribed already?
Think about doing so. We are making the assets
for this tutorial available to you, This includes : the iPad sequence,
a clip and a special kind of marker That we designed in two aspects ratio
specifically for precise and partial tracking. You can download all these on our Buy me coffee
store page, link in the description. Let's jump into DaVinci Resolve. If you are working with our
assets, the video files are in 4k and you might need to adjust your
project resolution or create proxy files, depending on how
powerful is your system. Add the main clip to your timeline
and go to the Fusion page. We're going to start by checking the sequence
to see what we're working with. We gonna play through and as you can see,
we have a close-up on the tracking area The camera is pulling away, revealing the whole scene. We can see how tracking could be made difficult
because the screen is at time only partially visible and this is where our special markers
are going to be very helpful. Select the MediaIn Type [Ctrl] or [Shift] + [Space]
depending if you're on PC or Mac. Type "Plan" for Planar Tracker. I'm going to move my nodes
around to make it easier to work. Select Planar Tracker In the Inspector, change Tracker
from Point to Hybrid Point/Area. For Motion type: Choose Translation, Rotation, Scale The Planar Tracker is tracking
a texture rather than a particular point And you need to adjust these settings
so it's matching the type of motion that you have in your sequence Find a frame where you can see
as much screen as possible In our case, we're going to
start directly at the last frame Trace the tracking area around the markers In the Inspector, set the Reference Time and Track to start. We can see that even if the screen
is partially visible the tracking is a success And this is because of
how we designed the markers. Let's go back to the last frame and change the Operation Mode to Corner Pin Here, place the Corner Pin corners
roughly around the screen There's no need to be precise.
We're going to need to adjust it in a moment. We are actually going to have some
fun by not only adding a full screen video, but a composite of different assets. Drag the picture into the nodes panel
and connect it to the Planar Tracker We need to adjust those
corners with a mask as the picture is not matching
the rounded display of the iPad Add a Rectangle Connect it to the MediaIn2 Change the Width and the Height to 1.0
and the Corner Radius to 0.05 Let's check this This is much better Select the Planar Tracker And now we're going to adjust our frame
to make it match as good as possible This can always be adjusted later. Okay Okay,
that's not bad Let's zoom out The darkest part of the UI shouldn't be darker
than the black frame of the iPad and we can feel that the whole UI
has way too much contrast We are going to arrange
this with a Color Corrector Select MediaIn
[Ctrl] or [Shift] + [Space] Type "Color" and
add a Color Corrector Let's arrange our nodes. In the Color Corrector, go to
Menu and choose Levels Change the black to 0.08 and the midtones 0.7 As you can see, a larger area
is affected by the Color Correction And it is actually very simple to fix Drag the Rectangle Output to
the Input mask of the Color Corrector and just like this it's going to mask out
everything outside the screen We're going to add a frame around
the screen to perfect the connection. Let's copy and paste the Rectangle
that we already have. Add a Background Connect them together And pull the Background Output
to the Output of the Color Corrector. It's going to add a merge
and connect them automatically. Okay, let's do a little cleanup so we keep
everything organized and easy to read With the Rectangle selected, uncheck Solid And add some Border Width As you can see, the border
is outside of the iPad screen So we're going
to adjust the Size Gonna reduce the Width The Height roughly We're going to zoom in
to make the adjustments We need to reduce the
frame size to a minimum and just adjust the
position and the thickness You can add some Soft Edge
to make it blend. Let's zoom out and in the background, drag the
color picker to the iPad frame So it can match. Okay Now this is going to make sure that
we can blend together the different elements Let's add the video As you can see, we added
a second tracking area. Even if in this case, we
actually don't need to track it, this can be really helpful if you want
to do some advanced compositing or even keying. Select the Planar Tracker and click
on + to add a second corner pin. Place each corner roughly around the area. Drag-in the video and connect it to the
new Input in the Planar Tracker. Let's zoom in and precisely
adjust our video area Okay, that'll do it. We're going to add a Color Corrector to make the video blend
with the rest of the scene. Simply copy the first Color Corrector Select the MediaIn 3 and Paste. As before the Color Corrector is
affecting an area beyond the screen. We're going to add a new Rectangle that we are going to connect to the
mask Input of the Color Corrector Change the Width and the Height to 1.0 And just like this we fixed the issue. Next step is optional but
I'm going to add some extra bars at the top and the bottom of the
video to give it a more cinematic look Add a Rectangle and a Background
that we're going to connect together and connect the Background to
the Output of the Color Corrector We're going to make once again
some cleaning in our nodes Select the rectangle Change the Width to 1.0
and the Height to 0.05 I'm going to move it at the top
of the video along the Y-axis Adjust the color to
match the top of the UI Select the Rectangle, Copy and Paste With the second one selected, move it down along the Y axis
to the bottom of the video. It starts to look pretty good but if
you ask me, the UI is a bit too sharp and it's not really matching
the rest of the scene. We're going to fix
this by adding some blur. Select the Planar Tracker [Ctrl] or [Shift]+ [Space] Type "Lens"
and add a Lens Blur. Now this tool is very powerful, and with so many controls, you can
actually achieve a very particular look. For this time, we are
going to keep it simple I'm going to move this tool. Place it here. Let's arrange. We're going to add two keyframes to make the
blur change when the camera is zooming out. One at 133 With the blur size at 0 And the second one at 218 With the blur size at 1.4 Now the blur is affecting the whole scene and even if you don't see
it properly through YouTube It is very important that
you learn how to fix it. We need not only to add
a mask to our lens blur, but also to make it follow
the camera movement. I'm gonna clean up once
again my nodes. Select the Planar Tracker. Change the Operation Mode to Track. Create a Planar Transform. Change back the
Operation Mode to Corner Pin Grab the Planar Transform and connect it to the
Lens Blur mask input Add a Polygon Trace roughly around the UI. And connect the Polygon to
the Planar Transform input Be careful to not choose
the mask Input in this case Once again, this is very subtile, but you might find yourself in a situation where you have a lot of blur to
adjust and to restrict to one area. For the final element, we're going to add the little thing
that can sell the whole package and what we're going to add is some sunlight spilling over
both the table and the iPad. Let's add the Polygon and
trace a shape of your liking covering both the
iPad and the table. Add a Background node Connect it together, Select white for the background color and connect it to the
Output of the Planar Tracker. This is definitely not convincing but
we're going to make it look a lot better. I'm going to delete this,
move the merge node. Select the Polygone Add some soft edge. In my case I'm going
to add some 0.06 And now, to make it blend naturally Select the merge node And for Apply Mode,
choose Soft Light. Look at this!
Isn't it beautiful ? We just need to make it follow the
sequence and that couldn't be easier. Let's move those two, Select the Planar Transform Copy Select the background Paste and that's it! Our whole screen replacement
is now complete. and now, it's time to
check the final results. This technique is opening
the door to so many effects. And if you have any question about the process or how to extend it for some crazy features Please comment down below, And if you enjoyed this video,
leave a thumbs up And don't forget to check out
please about the VFX and DaVinci Resolve. And we'll see you! in the next video. See ya! Thank you for watching