Hey there good people, my name is Scott and you are watching Sword & Shield Studio. Right now
we are going to learn how to take a flat 2D image or photo and give it a dynamic moving 3D effect.
Now, this works best if you have an image that is a higher resolution
than the video you are ultimately going to output and if your subject is well separated
from the background in the image. With that in mind, let's get right into it.
Okay I am on the edit page in Resolve where I am ready to create this 3D effect. The first
thing you will need to do is create a new Fusion Composition. So in order to do this right click
the Media Pool on the left of Resolve here and hit 'New Fusion Composition' from the drop down menu.
Here you can name the composition whatever you like, I am going to name mine '3d_effect'
and set the duration to about 10 seconds and you can match the frame rate you are working
with here, in my case I am working in 24fps so I'm going to leave it at that and hit 'Create'.
Then double click the Fusion composition you just created in the Media Pool
to open it in the Fusion tab and left click an empty space in your node tree at the bottom here,
hit 'Shift+Space' and type BG to get the background node. Either click or hit 'Enter'
to add that to the node tree and with this background node still selected
we are going to load the image that we want to make the 3D effect with. So hit 'Shift+Space'
again with that background node still selected and type 'Loader' to get the loader node and
hit 'Enter' or click add and this will bring up a prompt in your OS to load the image with,
I'm going to select mine in this folder here and automatically Fusion has merged these two
nodes, you just have to hook up the Merge1 to the MediaOut. Now it will show up and with that
Merge1 selected you can then resize your image and position it how you like in the frame
and once you have it in a position that you like, which I think that looks good, you can box select
that merge and loader node and hit 'Ctrl+C' and 'Ctrl+V' on an empty space in the node tree
to copy and paste it with all of the settings that you changed intact with the size and position.
And then with that second merge node selected hold shift
and bring it between the Merge1 and MediaOut nodes to connect it. Now, in order to keep organized
I'm going to rename these merge nodes. I'm going to select the first Merge1 that we created, hit
'F2' on my keyboard to rename it. I will call this 'background'. And the second merge that we copied
I am going to select that and hit 'F2' and rename that to 'subject'. Now we have two identical
images with the same scale and position properties loaded into our composition above a background
that matches the resolution of our video. The next thing we want to do is mask out our subject to
separate her from the background so that we can apply separate transformations to our subject
and the background. So in order to do this we will have to mask out our subject merge here
by adding a polygon mask to that. Now, select the loader node that is feeding into the
background merge node and hit '2' on your keyboard to display it in your viewer
and then left click the polygon node again to make it active and I am just going to left click around
our subject here and do a basic trace to mask her out from the background.
Okay, so once you have your subject properly masked out, left click the loader fed into the
subject merge here and hit '2' on your keyboard to preview what that mask will look like
and click your polygon node again to make that active and adjust the 'Soft Edge' value
to add a little bit of a soft edge to it and I think that looks pretty good there.
And when you are finished adjusting your mask how you like, left click the MediaOut
node and hit '2' on your keyboard to make it active. Next, select your background merge node
and hit 'Shift+Space' on your keyboard and type 'DVE'. We are going to add a DVE node between the
background and subject to transform and scale the background separate from our subject that
we just masked out in the foreground. So, one thing to keep in mind is you want to try to keep
any changes you make with this DVE node subtle to keep the subject in the background concealed
behind the masked out subject in the foreground that we are going to transform separately. You can
alter your background however you see fit, but in my case I am going to add a slight rotation
by adding keyframes to the X and Y values in our DVE node here.
So make sure you are at the beginning of your composition in the timeline
with whatever changes you are going to make. I am going to just add about five degrees
of change to the Y value and maybe a little less with the X and add keyframes to these.
And I will scrub to the very end and I think I will just reverse these by making them negative
and if we scrub over the course of the timeline you can see it just adds a slight
rotating effect to the background. Now if you look
at the edge here you will notice there is a little bit of the transparent background being revealed
because of the resolution of the image I am using. You may or may not have this problem depending on
the resolution of the image you are using but if you do you can correct this by hitting the
background merge node and in the inspector change the edges type from canvas
to mirror. That will mirror your image along the edges to give the illusion that there
is a continuous image here and it works pretty well as long as you don't push it too far.
Now return to the DVE node and make any additional changes you might like. I think in my case I am
going to add a slight Z Move to give the illusion that the background is zooming out slightly.
So I will make this a value of '1.05' maybe at the maximum, set a keyframe at the end
and I will make this '1.02' in the beginning and see how that looks.
Pretty good. It's a pretty subtle effect but it does add some 3D depth to it. Now,
once you are satisfied with the keyframes you set here and their values you can open up the Spline
Editor at the top right here and select the DVE node and hit this icon here 'Zoom to Fit'
and then you can left click and box select all the keyframes you set and hit this
'Smooth' icon at the bottom left of the Spline Editor. That will just add a curve to all of these
keyframes to ease the motion in and out, give it a more natural look.
So we have our background moving, we added some depth to that.
Let's move our subject now by selecting the loader fed into our subject merge node
and hit 'Shift+Space', type 'DVE' and add another DVE node to her. Now
I think since the background is rotating from left to right and zooming out a bit
I would like her to rotate slightly in the opposite direction and zoom in just to give that
3D effect. So I will select the Z Move value here, set a keyframe at the beginning of my composition
timeline and set a value at the end of composition of, say, '0.98' and you can see that has revealed
some of the subject in the background so I will have to move her slightly up to keep the illusion.
I think it really looks good without any rotation but I am going to add it anyway
just to see what it looks like and just rotate it
slightly. Looking at that, I think it looks pretty good.
And I will do the same thing with her, since I am satisfied with my keyframes here I will
go to the Spline Editor and select my DVE2 node, hit 'Zoom to Fit' here,
box select those keyframes and hit the 'Smooth' icon at the bottom left.
Now, if I play this back we should have a nice, smooth 3D effect
just like that. That does it for this tutorial. I hope that after watching this
video you feel more comfortable taking your own 2D photos and giving them some 3D depth using
this technique. If you do, please consider subscribing to the channel where I upload a
video just like this one every week. Like the video if you like this one,
leave a comment if you have a question. Thanks for watching, I'll see you next time.