After Effects: How to Make a 2D Photo Into a 3D Video

Final product imageFinal product imageFinal product image
What You’ll Be Creating

Let’s learn how to make a 3D video from a 2D photo using Photoshop and After Effects. We’ll break down each step in an easy-to-follow manner, ensuring you can bring your images to life with dynamic 3D effects. Whether you’re a hobbyist or an aspiring professional, this tutorial will help you create these amazing moving photos. So let’s dive in!

Tutorial Assets

You’ll need one of the following resources to complete this project and create the 3D photo effect:

Young african woman walks alone on europe streetYoung african woman walks alone on europe streetYoung african woman walks alone on europe street

1. How to Create a Depth Map in Adobe Photoshop

Before we begin to turn our 2D image into a 3D video in Adobe After Effects, we need to first create a depth map of our chosen photo. Creating a depth map is a crucial step because it allows you to define the spatial relationship between objects in your image.

A depth map assigns grayscale values to different parts of your photo, where lighter shades represent elements closer to the camera and darker shades represent those further away. 

This gradient helps After Effects understand how to simulate depth and perspective, making your 3D effect more realistic and dynamic.

Step 1

Let’s get started by launching Adobe Photoshop and opening your chosen photo. From there, go to Filter > Neural Filters (Alt-Control-F) to access the Neural Filters panel.

activate neural filters panelactivate neural filters panelactivate neural filters panel

Step 2

From there, select Depth Blur from the list of options, which will simulate the effect of depth of field in your images, creating a sense of three-dimensionality. 

depth blur effectdepth blur effectdepth blur effect

Step 3

Once you’ve selected it, you should be able to see how the effect changes the look of your chosen photograph.

depth of field effect applieddepth of field effect applieddepth of field effect applied

Step 4

Select Output Depth Map Only at the bottom of the panel, and then select OK to apply.

output depth map onlyoutput depth map onlyoutput depth map only

Step 5

By using a depth map, where different shades of gray represent various distances from the camera, Photoshop can blur elements based on their distance. This technique mimics the natural focus and blur seen in real-world photography, where objects further from the focal point appear out of focus.

Export your new depth map, and then let’s take it into Adobe After Effects!

depth mapdepth mapdepth map

2. How to Make a 2D Image 3D in Adobe After Effects

Step 1

Now let’s learn how to make a 2D image 3D. Import both the original photo and the depth map into a new project in Adobe After Effects. Then create a new composition from the original photo by Right-Clicking on the photo and selecting New Comp From Selection.

new comp from selectionnew comp from selectionnew comp from selection

Step 2

Click and drag the depth map into the composition and place it on top of the original photo. Then click on the Eye Icon to hide the layer.

add the depth map and hide itadd the depth map and hide itadd the depth map and hide it

Step 3

Select the original photo and apply a Displacement Map. You can find this by typing it in the Effects & Presets panel or by going to Effect > Distort > Displacement Map.

displacement mapdisplacement mapdisplacement map

Step 4

In the Effects Control panel, for Displacement Layer select the Depth Map from the dropdown menu.

choose depth map for displacement layerchoose depth map for displacement layerchoose depth map for displacement layer

Step 5

In the next dropdown box, select Effects & Masks.

select effects and masks from the dropdown menuselect effects and masks from the dropdown menuselect effects and masks from the dropdown menu

Step 6

Change both the options for Horizontal and Vertical Displacement to Luminance.

luminanceluminanceluminance

Step 7

From there, you can then animate and alter the values for Max Horizontal Displacement and Max Vertical Displacement to give the illusion of a 3D animation.

3d effect3d effect3d effect

Step 8

This is best used subtly, as larger values will cause the image to stretch in unnatural ways.

stretch effectstretch effectstretch effect

Step 9 

To alleviate this, you can add a Gaussian Blur to the Depth Map and increase the blurriness. This effect can be found in the Effects & Presets panel or by going to Effect > Blur and Sharpen > Gaussian Blur.

gaussian blurgaussian blurgaussian blur

Step 10

Alternatively, you can separate the subject altogether by introducing another layer in the composition. Remember to make sure that the subject has been exported as a PNG to give it a transparent background.

separate the subjectseparate the subjectseparate the subject

Step 11

This layer will not be affected by the 3D effect, but it will allow you to use multiple subjects.

different subjectsdifferent subjectsdifferent subjects

3. How to Create the Animation

Step 1

Now that you have everything set up, all that’s left is to create the keyframes for your animation.

To do this, move the playhead to the starting point in the timeline and set the initial keyframe values for Max Horizontal Displacement and Max Vertical Displacement. For this example, we’ll go with an initial value of 0 for both, so that the image looks like the original photograph. This will also create your first two keyframes in the timeline.

create new keyframescreate new keyframescreate new keyframes

Step 2

Now, move the playhead to the next point in time. The further in time you move, the slower the animation will be. So play with how far along you want your next keyframe to be depending on how slowly you want the animation to play and how long you want it to last. In this example, I’ve moved it to 5 seconds.

move playheadmove playheadmove playhead

Step 3

Once you’ve decided on the next point in time, change the values for Max Horizontal Displacement and Max Vertical Displacement until you’re happy with the amount of movement you’ve created. This will create your final two keyframes.

add new keyframesadd new keyframesadd new keyframes

Step 4

From there, press the Spacebar to preview your animation. You can then make adjustments to the timing of your animation by adjusting the keyframe placements. Or adjust the amount of movement by changing the values for Max Horizontal Displacement and Max Vertical Displacement.

animated imageanimated imageanimated image

4. How to Render the Animation

Step 1

Once you’re happy with the way your animation looks, you’ll want to render it into a final video. Click on your composition in the Project panel to select it.

select the compositionselect the compositionselect the composition

Step 2

Go to Composition > Add to Render Que (Control-M) to open the Render Queue panel at the bottom of the screen.

add to render queueadd to render queueadd to render queue

Step 3

Click on the blue text next to the Render Settings. Ensure it is set to your desired quality.

best settingsbest settingsbest settings

Step 4

Click on the blue text next to Output Module to adjust the output settings. Choose the appropriate format (e.g. QuickTime, MP4, etc.) and codec.

output moduleoutput moduleoutput module

Step 5

Click on the blue text next to Output To to select the destination and file name for your rendered video.

output tooutput tooutput to

Step 6

Click the Render button in the top-right corner of the Render Queue panel. After Effects will begin rendering your animation. And that’s how to make a 2D image 3D!

render video buttonrender video buttonrender video button

Awesome! You’re Finished!

turn 2d image into 3dturn 2d image into 3dturn 2d image into 3d

Congratulations! And that’s how you can turn a 2D image into a 3D video using Adobe After Effects. Feel free to use multiple subjects or your own photos to create your own 3D videos.

In the meantime, I hope you’ve found this tutorial useful, and I’ll see you next time on Envato Tuts+!


This content originally appeared on Envato Tuts+ Tutorials and was authored by Jonathan Lam

Final product imageFinal product imageFinal product image
What You'll Be Creating

Let's learn how to make a 3D video from a 2D photo using Photoshop and After Effects. We'll break down each step in an easy-to-follow manner, ensuring you can bring your images to life with dynamic 3D effects. Whether you’re a hobbyist or an aspiring professional, this tutorial will help you create these amazing moving photos. So let's dive in!

Tutorial Assets

You'll need one of the following resources to complete this project and create the 3D photo effect:

Young african woman walks alone on europe streetYoung african woman walks alone on europe streetYoung african woman walks alone on europe street

1. How to Create a Depth Map in Adobe Photoshop

Before we begin to turn our 2D image into a 3D video in Adobe After Effects, we need to first create a depth map of our chosen photo. Creating a depth map is a crucial step because it allows you to define the spatial relationship between objects in your image.

A depth map assigns grayscale values to different parts of your photo, where lighter shades represent elements closer to the camera and darker shades represent those further away. 

This gradient helps After Effects understand how to simulate depth and perspective, making your 3D effect more realistic and dynamic.

Step 1

Let's get started by launching Adobe Photoshop and opening your chosen photo. From there, go to Filter > Neural Filters (Alt-Control-F) to access the Neural Filters panel.

activate neural filters panelactivate neural filters panelactivate neural filters panel

Step 2

From there, select Depth Blur from the list of options, which will simulate the effect of depth of field in your images, creating a sense of three-dimensionality. 

depth blur effectdepth blur effectdepth blur effect

Step 3

Once you've selected it, you should be able to see how the effect changes the look of your chosen photograph.

depth of field effect applieddepth of field effect applieddepth of field effect applied

Step 4

Select Output Depth Map Only at the bottom of the panel, and then select OK to apply.

output depth map onlyoutput depth map onlyoutput depth map only

Step 5

By using a depth map, where different shades of gray represent various distances from the camera, Photoshop can blur elements based on their distance. This technique mimics the natural focus and blur seen in real-world photography, where objects further from the focal point appear out of focus.

Export your new depth map, and then let's take it into Adobe After Effects!

depth mapdepth mapdepth map

2. How to Make a 2D Image 3D in Adobe After Effects

Step 1

Now let's learn how to make a 2D image 3D. Import both the original photo and the depth map into a new project in Adobe After Effects. Then create a new composition from the original photo by Right-Clicking on the photo and selecting New Comp From Selection.

new comp from selectionnew comp from selectionnew comp from selection

Step 2

Click and drag the depth map into the composition and place it on top of the original photo. Then click on the Eye Icon to hide the layer.

add the depth map and hide itadd the depth map and hide itadd the depth map and hide it

Step 3

Select the original photo and apply a Displacement Map. You can find this by typing it in the Effects & Presets panel or by going to Effect > Distort > Displacement Map.

displacement mapdisplacement mapdisplacement map

Step 4

In the Effects Control panel, for Displacement Layer select the Depth Map from the dropdown menu.

choose depth map for displacement layerchoose depth map for displacement layerchoose depth map for displacement layer

Step 5

In the next dropdown box, select Effects & Masks.

select effects and masks from the dropdown menuselect effects and masks from the dropdown menuselect effects and masks from the dropdown menu

Step 6

Change both the options for Horizontal and Vertical Displacement to Luminance.

luminanceluminanceluminance

Step 7

From there, you can then animate and alter the values for Max Horizontal Displacement and Max Vertical Displacement to give the illusion of a 3D animation.

3d effect3d effect3d effect

Step 8

This is best used subtly, as larger values will cause the image to stretch in unnatural ways.

stretch effectstretch effectstretch effect

Step 9 

To alleviate this, you can add a Gaussian Blur to the Depth Map and increase the blurriness. This effect can be found in the Effects & Presets panel or by going to Effect > Blur and Sharpen > Gaussian Blur.

gaussian blurgaussian blurgaussian blur

Step 10

Alternatively, you can separate the subject altogether by introducing another layer in the composition. Remember to make sure that the subject has been exported as a PNG to give it a transparent background.

separate the subjectseparate the subjectseparate the subject

Step 11

This layer will not be affected by the 3D effect, but it will allow you to use multiple subjects.

different subjectsdifferent subjectsdifferent subjects

3. How to Create the Animation

Step 1

Now that you have everything set up, all that's left is to create the keyframes for your animation.

To do this, move the playhead to the starting point in the timeline and set the initial keyframe values for Max Horizontal Displacement and Max Vertical Displacement. For this example, we'll go with an initial value of 0 for both, so that the image looks like the original photograph. This will also create your first two keyframes in the timeline.

create new keyframescreate new keyframescreate new keyframes

Step 2

Now, move the playhead to the next point in time. The further in time you move, the slower the animation will be. So play with how far along you want your next keyframe to be depending on how slowly you want the animation to play and how long you want it to last. In this example, I've moved it to 5 seconds.

move playheadmove playheadmove playhead

Step 3

Once you've decided on the next point in time, change the values for Max Horizontal Displacement and Max Vertical Displacement until you're happy with the amount of movement you've created. This will create your final two keyframes.

add new keyframesadd new keyframesadd new keyframes

Step 4

From there, press the Spacebar to preview your animation. You can then make adjustments to the timing of your animation by adjusting the keyframe placements. Or adjust the amount of movement by changing the values for Max Horizontal Displacement and Max Vertical Displacement.

animated imageanimated imageanimated image

4. How to Render the Animation

Step 1

Once you're happy with the way your animation looks, you'll want to render it into a final video. Click on your composition in the Project panel to select it.

select the compositionselect the compositionselect the composition

Step 2

Go to Composition > Add to Render Que (Control-M) to open the Render Queue panel at the bottom of the screen.

add to render queueadd to render queueadd to render queue

Step 3

Click on the blue text next to the Render Settings. Ensure it is set to your desired quality.

best settingsbest settingsbest settings

Step 4

Click on the blue text next to Output Module to adjust the output settings. Choose the appropriate format (e.g. QuickTime, MP4, etc.) and codec.

output moduleoutput moduleoutput module

Step 5

Click on the blue text next to Output To to select the destination and file name for your rendered video.

output tooutput tooutput to

Step 6

Click the Render button in the top-right corner of the Render Queue panel. After Effects will begin rendering your animation. And that's how to make a 2D image 3D!

render video buttonrender video buttonrender video button

Awesome! You're Finished!

turn 2d image into 3dturn 2d image into 3dturn 2d image into 3d

Congratulations! And that's how you can turn a 2D image into a 3D video using Adobe After Effects. Feel free to use multiple subjects or your own photos to create your own 3D videos.

In the meantime, I hope you've found this tutorial useful, and I'll see you next time on Envato Tuts+!


This content originally appeared on Envato Tuts+ Tutorials and was authored by Jonathan Lam


Print Share Comment Cite Upload Translate Updates
APA

Jonathan Lam | Sciencx (2024-07-12T10:28:49+00:00) After Effects: How to Make a 2D Photo Into a 3D Video. Retrieved from https://www.scien.cx/2024/07/12/after-effects-how-to-make-a-2d-photo-into-a-3d-video/

MLA
" » After Effects: How to Make a 2D Photo Into a 3D Video." Jonathan Lam | Sciencx - Friday July 12, 2024, https://www.scien.cx/2024/07/12/after-effects-how-to-make-a-2d-photo-into-a-3d-video/
HARVARD
Jonathan Lam | Sciencx Friday July 12, 2024 » After Effects: How to Make a 2D Photo Into a 3D Video., viewed ,<https://www.scien.cx/2024/07/12/after-effects-how-to-make-a-2d-photo-into-a-3d-video/>
VANCOUVER
Jonathan Lam | Sciencx - » After Effects: How to Make a 2D Photo Into a 3D Video. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/12/after-effects-how-to-make-a-2d-photo-into-a-3d-video/
CHICAGO
" » After Effects: How to Make a 2D Photo Into a 3D Video." Jonathan Lam | Sciencx - Accessed . https://www.scien.cx/2024/07/12/after-effects-how-to-make-a-2d-photo-into-a-3d-video/
IEEE
" » After Effects: How to Make a 2D Photo Into a 3D Video." Jonathan Lam | Sciencx [Online]. Available: https://www.scien.cx/2024/07/12/after-effects-how-to-make-a-2d-photo-into-a-3d-video/. [Accessed: ]
rf:citation
» After Effects: How to Make a 2D Photo Into a 3D Video | Jonathan Lam | Sciencx | https://www.scien.cx/2024/07/12/after-effects-how-to-make-a-2d-photo-into-a-3d-video/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.