2 Ways To Create Realistic “Depth of Field” | Minervity
How to Create an Illustrated Cartoon Character
Tue, 18/08/09 – 17:27 | 45,524 Views | 20 Comments

So, I decided to attempt to create a tutorial on how to create a unique illustrated cartoon character in Photoshop. It’s pretty straight forward and the skills you need for this is very limited as …

Read the full story »
Creative Corner

A series of in depth and heavily inspiring Graphic, Web and Logo Designer and Developer interviews.

Designer Apps

A resource vault of applications that would serve any Designer or Developer well to have in their arsenal.

Freelance Hub

A storage full of tips and tricks for every freelance Designer or Developer that wants to progress their business.

Geek Things

Every once in a while we’ll post a new geeky thing that might inspire you to go through the day with a laugh or a second thought.

Website Filter

A collection of websites that is sure to bring you creative inspiration and keep you on the edge of design.

Home » Photoshop

2 Ways To Create Realistic “Depth of Field”

Submitted by Richard Darell on Thursday, 18 June 200927,866 Views | 58 Comments

Depth of FieldIn this tutorial we are going to learn how to create realistic “Depth of Field” in Photoshop. We are going to look at two different ways of doing it depending on what kind of picture you want to modify. With today’s cameras you can pretty much create this effect right when the shot is taken. However, sometimes it happens that you get a really nice picture and you missed to adjust your zoom to the depth of field effect. Or simply, you just want to create the effect on an old photo to make it really fresh and effectful. Either way, we are going to look in to the effect and teach you how to achieve it with just a few steps.

Skills needed for this effect is just the basic skills of how to use Photoshop itself and it’s most common tools. Everything else will be explained in detail so you will be able to follow it quite nicely.

The first method we’re going to be trying out is the most basic one. Blurring everything that’s in the background to make the focused object stand out more.

Depth Blur

Load your photo into Photoshop. Doesn’t really matter what  resolution it is just as long as you make the whole photo visible in your work area. I will be using this photo for this first method:

Photo - Blur

This method we’ll call “Depth Blur” and it will make the object in focus all clear and the rest blurry to put accentuation on the object the viewer is supposed to focus on.

The first thing we need to do is to select the object in the foreground. Use the “Polygonal Lasso Tool” to select the object. Before we add any blurring to the image me must copy what we just selected to be able to have it in focus later on. Choose “Edit” -> “Copy” for now. We will paste it after we are done with our blurring.

No choose “Select” -> “Inverse” to invert your selection to anything but the object you want to be in focus. Your selection should now be like this opposed to the one you had first (the selection is changed):

Selection - BeforeSelection - After

No Choose “Filter” -> “Blur” -> “Gaussian Blur” and insert the following settings:

Gaussian Blur - Settings

As you can see our picture immediately gets more depth to it but we still have some fragments from the object in focus bleeding over into the blurry making it a bit unfocused on the edges. This we can fix with a little bit of “Liquify“modification. But first, let’s paste in our copied focused object. Choose “Edit” -> “Paste“. This will create a new layer with our copied object inside of it.

Now, select the “Background” layer and choose “Filter” -> “Liquify…“. This will open up another editing section where you can drag and alter your background image. In the right menu change the “Brush Size” to “16” instead of “100“.

Now, focus on the object in focus. With your “Forward Warp Tool” selected go ahead and drag the edges inwards toward the center all the time until you are certain that no edges of the object in focus are seen as a blurry edge under the object in focus when we are done here. Here is an image taken when I was done dragging the edges to the center of the object:

Liquify - After Applying

Alright, after doing that you can now go ahead and click “OK“. As you can see now with with the liquefied background and the “in focus” top layer of the object we want to accentuate the image sure gets more depth. The bleed edges are gone and the object is in pure focus now. Here is the “Before” effect applied and “After” the effect is applied:

Photo - IncompletePhoto - Complete

That’s about it! With these easy steps you can create quite professional and stunningly realistic depth of field to your old photo’s that you just don’t want to use because you think they lack that professional look to them.

Now, on to the second method.

Gradient Blur

This method is as easy as the first method but delivers a totally different kind of effect. In some photo’s this method could be of better use as it has a more smoother transition between the focused area and the blurry area. If you have a photo that has a gradient falloff you may definitely have some use of this method.

Load your image into Photoshop, again make sure that you  the whole image is in view. When an image is far bigger then the plain view it can sometimes be hard to select the object entirely with it’s smallest details. If you find it hard to get the smaller detailed selected then you can of course zoom in and select it that way. However, make sure you see the whole image while you work with the blurring itself. That way you get more power controlling the outcome.

I will work with an image that has some falloff potential along with a great object that I can put the focus on.

Car - Original

As you can see the whole photo is in focus in this image. Gives little depth as it seems the whole photo is somewhat 2D. We will start by selecting the near vicinity of the car along with the entire car itself. My selections is like this:

Car Selection

A great trick is to actually select some of the area around the car that you want to remain in focus as well as it would look somewhat weird having all the surroundings, even in front of the car, out of focus. That would come across as odd and unnatural.

Now copy the the selection and paste it again in the same position as it is making the “paste” look seamless in the whole composition.

Select the “Background” layer and click the “Channels” tab. Create a new layer, it will automatically name itself “Alpha“. With your new layer selected choose the “Gradient Tool”, make the colors “White” (#FFFFFF) and “Black” (#000000). Now create a gradient from the back end of the car slightly upwards. After creating your gradient you should now have something looking like this:

Gradient Fill

Of course it depends on what your photo looks like and what angle the depth of field is directed. But for this image this gradient is well off being like this. To explain how the gradient will work is quite easy. Where the “Black” is located is where the focus will still be present while where the “White” is located is where the image will be out of focus.

After applying this gradient select the “RGB” layer at the top of the list and choose “Filter” -> “Blur” -> “Lens Blur…” and play around with the levels until you get a satisfying result. It all depends on how much you want the image to get out of focus. Too much and it will look out of place. Too little and it will have little effect on the image.

I have used these setting for my image which I find quite satisfying:

Lens Blur - Settings

Click “OK“. After applying these settings now make the “Alpha” level invisible at the bottom of the list by clicking the “eye” of the layer. Your blur should now be in place and as you can see, with our copied “in focus” layer on top it makes for a great realistic “Depth of Field” effect that really fools the eye thinking it was there from the very beginning.

Here are the “Before” and “After” images of the photo. There are a million different ways to create realistic “Depth of Field” effects with these two methods. Just be creative with your gradients or your blur tool and selections and you will get better and better on knowing how they really work and what makes for a realistic result.

Photo - Before

Photo - After

Round Up

There! We have now learnt how to create some stunning and realistic “Depth of Field” methods for photo’s that doesn’t have it incorporated already. These methods makes for a great saver of you have managed to capture something right at that second but didn’t catch the “Depth of Field” because it was a one time shot or blink of an eye moment shot. Either way, these methods are sure to help you gain a more professional result when you have practised the secrets of them.

I have had great fun creating this tutorial and I hope you have had a great time practising it. Remember, with just a bit of imagination and some minor skills in using Photoshop you can create some stunning results for sure. Keep practising and you will become the master.

I am now off to another tutorial for you guys! See you in a bit!

Thanks!

Popularity: 82% [?]

58 Comments »

  • Kawsar Ali said:

    Really cool tutorial. Love those results. Fast and easy.

    [Reply]

  • Gabe said:

    I always struggle with creating depth, these are two quick and useful techniques I will definitely employ. Thanks!

    [Reply]

  • nazcar said:

    nice tutorial. Thanks for sharing.

    [Reply]

  • Cwylie0 said:

    Great tips. These are a great way to make otherwise unremarkable photos and make them of some interest.

    [Reply]

  • links for 2009-06-20 « Giri’s Blogmarks said:

    [...] 2 Ways To Create Realistic “Depth of Field” | Minervity (tags: photoshop photography tutorials) [...]

  • Roberto Frega said:

    In the second method, tho, the gradient should follow the perspective. It looks terrible the way you did it…

    [Reply]

  • Arbenting’s Weekly Inspiration and Best of the Web #9 | Arbenting said:

    [...] 2 Ways To Create Realistic “Depth of Field” – In this tutorial we are going to learn how to create realistic “Depth of Field” in Photoshop. We are going to look at two different ways of doing it depending on what kind of picture [...]

  • Thompson Touch said:

    That Lens Blur is pretty tight. I always you a Mask Blur this way seems a whol lot faster and cleaner.

    [Reply]

  • Charles said:

    I agree with Roberto… it would look more convincing if some time was put into painting the mask a little to make the blur match the depth. Thanks for the tutorial though — the concepts were otherwise well explained.

    [Reply]

  • Charles said:

    Here’s an example.

    [Reply]

  • 2 Ways To Create Realistic “Depth of Field” | Design Newz said:

    [...] 2 Ways To Create Realistic “Depth of Field” [...]

  • Mark Pannell said:

    Great tutorial. And top story in my Digg feed. Congrats on your success!

    [Reply]

  • Michael Comeau said:

    This article needs to add a third way – by taking the picture correctly the first time. There’s a reason these newfangled cameras let you adjust your aperture…

    [Reply]

  • bill said:

    You should use the jquery before/after plugin http://www.catchmyfame.com/2009/06/25/jquery-beforeafter-plugin/ to really show off the differences between images.

    [Reply]

  • popurls.com // popular today said:

    popurls.com // popular today…

    story has entered the popular today section on popurls.com…

  • 2 Ways To Create Realistic “Depth of Field” | News Inventory said:

    [...] source [...]

  • 2 Ways To Create Realistic “Depth of Field” | Minervity « Netcrema - creme de la social news via digg + delicious + stumpleupon + reddit said:

    [...] 2 Ways To Create Realistic “Depth of Field” | Minervityminervity.com [...]

  • randalflagg.net said:

    2 Ways To Create Realistic “Depth of Field”…

    In this tutorial we are going to learn how to create realistic “Depth of Field” in Photoshop. We are going to look at two different ways of doing it depending on what kind of picture you want to modify. With today’s cameras you can pretty much cr…

  • Bob said:

    The gradient tool is a great tip. The first, I see these effects often. Just doesn’t work for me.

    One way to get great DOF blur effects…buy a medium format camera and shoot side open! I love my Mamiya TLR.

    [Reply]

  • Hannu Hurme said:

    You there’s cleaner way to get rid of the “bleed” that happens when you blur things. Have the background on it’s own layer and simply delete the stuff that’s on the foreground. Then lock the transparency on the layer and blur all you want.

    Which way is faster / works better probably depends on the image.

    [Reply]

  • Computing and Internet: 2 Ways To Create Realistic Depth of Field said:

    [...] look at two different ways of doing it depending on what kind of picture you want to modify.Source:http://www.minervity.com/news/2-ways-to-create-realistic-depth-of-field/ Posted by Andy B at [...]

  • jose pacheco said:

    REally nice tips :D ty for share..i´ll give it a shot inmy next´s works!

    [Reply]

  • Fernando said:

    Meh.. sorry but they look way too fake. Nothing beats taking the photo correctly in the first place. Just take the photo with the most wide open aperture you have, and to make it even more out of focus have your lens zoomed in. Even point and shoots can do all of the above, assuming you at least have control over the aperture setting.
    Try it..

    [Reply]

  • MakinMo's Tech Blog said:

    [...] look at two different ways of doing it depending on what kind of picture you want to modify.Source:http://www.minervity.com/news/2-ways-to-create-realistic-depth-of-field/ Jul [...]

  • Robert Marley (makin257) 's status on Monday, 06-Jul-09 19:24:45 UTC - Identi.ca said:
  • billig hjemmeside said:

    Very nice use of blur.

    [Reply]

  • Twitted by jarofass said:

    [...] This post was Twitted by jarofass [...]

  • Gene said:

    It is much faster and sometimes more effective to use a feathered selection and you blur 1px Gaussian, move the marquis a little, and repeat. You can create shaped selections around objects for tricky perspective blurs. You get more control this way, though I did notice the gradient blur was sure a smooth operation, I think I may work that one into my skillset.

    [Reply]

  • DesignGuy said:

    A good and simple to use tutorial! Thanks!

    Those techniques are sometimes needed to show more volume in a flat-looking picture.

    [Reply]

  • Honour Chick said:

    excellent tutorial… thanks for posting.

    [Reply]

  • links for 2009-07-06 « Donghai Ma said:

    [...] 2 Ways To Create Realistic “Depth of Field” | Minervity (tags: photoshop tutorials photography effects depth field blur) [...]

  • ¡Hei pwantso! » PS por c… said:

    [...] 2 Ways To Create Realistic “Depth of Field” How to Create a 3D Text Photo Manipulation 64 essential guides, tips and tutorials to definitely master Photoshop like a pro Advanced Tutorial: Creating “Broken Link” 4 High Quality Magazines For Photoshop Users Creating a page curl effect in Photoshop: Dog ear tutorial Handy Techniques for Cutting Out Hair in Photoshop 70 Tutorials Using Photoshop To Design A Website 300+ Excellent Photoshop Brushes for Creating Painted Effects Over 2,500 vector brushes 270+ High-Res Rough and Grungey Photoshop Brushes Publicado por ozzo at 3:10 pm   [...]

  • Natalie said:

    Michael Comeau said what I was going to say: Take the photo properly in the first place using your camera’s aperture settings and you won’t need to do any of this.

    [Reply]

  • The Todd Blog » Blog Archive » 2 Ways To Create Realistic “Depth of Field” said:

    [...] Article by Richard Andersson at: minervity.com [...]

  • Through the LCD clearly » Blog Archive » Echo the sound of silence. said:

    [...] to create depth of field in Photoshop. I may try a 3 way shootout between a lens adapter, After Effects, and Photoshop for [...]

  • CGDigg.com said:

    2 Ways To Create Realistic “Depth of Field” in Photoshop…

    In this tutorial you will learn how to create realistic “Depth of Field” in Photoshop….

  • 今日のピックアップ(2009/07/06) - sj6works said:

    [...] 2 Ways To Create Realistic “Depth of Field” リアルな被写界深度の表現方法 [...]

  • Thibaut Allender said:

    As already said, learn how to use a camera…

    Mini tutorial on how to get the a “narrow” DOF:
    - aperture (opened)
    - focale length (long) or a macro lens for close subjects
    - size of the cmos or film (medium format gives narrower DOF)
    - not too much light or low sensitivity (overwise you can’t max aperture because shutter speed won’t be fast enough)

    Try some 50mm or even 85mm f1.4 lens f1.4 on a 24*36 DSLR or some Hasselbad /carl zeiss planar 80mm and you’ll never want to fake a DOF again :-)

    [Reply]

  • Links of the Day said:

    [...] 2 Ways To Create Realistic Depth of Field A tutorial teaching you two ways to use photoshop to add fake bokeh, or depth of field blur, to your photographs. (tags: bokeh photoshop tutorial fake dof depthoffield faux edit editing photoshopping howto) [...]

  • Alex Mihaileanu said:

    If you’ve taken the photo and you own a DSLR, I think the easiest way to get that blur is to use a 50mm objective on your camera and just focus on the right point. After taking the shot, Photoshop becomes useless :)

    [Reply]

  • Leon said:

    The first pic looks pretty cool, but the second one does not reflect ‘realistic’ d.o.f. in my opinion. DOF in photography occurs along with depth (the distance of the object from the photo lens). Since the middle of the car is way closer to the ‘camera’, it doesn’t make sense that the building across the street has the same amount of blur as the middle of the car.

    [Reply]

  • Daniel said:

    Very nice use of blur. thx.

    [Reply]

  • 40 (NEW) High Quality Adobe Photoshop Tutorials | Noupe said:

    [...] 2 Ways To Create Realistic “Depth of Field” [...]

  • 40 NEW HIGH QUALITY PHOTOSHOP TUTORIALS « JinSpiration said:

    [...] 2 Ways To Create Realistic “Depth of Field” [...]

  • 40 (NEW) High Quality Adobe Photoshop Tutorials - Programming Blog said:

    [...] 2 Ways To Create Realistic “Depth of Field” [...]

  • AMB Album » 40 (NEW) High Quality Adobe Photoshop Tutorials said:

    [...] 2 Ways To Create Realistic “Depth of Field” [...]

  • 40 (NEW) High Quality Adobe Photoshop Tutorials | YABIBO.COM - YOUR WEB WORLD said:

    [...] 2 Ways To Create Realistic “Depth of Field” [...]

  • You are now listed on FAQPAL said:

    2 Ways To Create Realistic “Depth of Field”…

    In this tutorial we are going to learn how to create realistic Depth of Field in Photoshop….

  • 40 (NEW) High Quality Adobe Photoshop Tutorials | Web Design GroundBreak said:

    [...] 2 Ways To Create Realistic “Depth of Field” [...]

  • semmy@ web 2.0 images said:

    Nice post! Really Love it! thank you very much!

    [Reply]

  • Luis Lopez said:

    Awesome tutorial, can you give me the permission to publish this tutorial with the same images (but uploaded to my server) and translated (not exactly the same text). Giving you the full credit?

    Or just a mention to this post?

    I didnt know the gradient blur, thank you.

    [Reply]

    Richard Darell Reply:

    Yes, you can go ahead and do that as long as credit is clearly visible and there is a link to this post. Thanks for the kind words m8!

    [Reply]

  • Luis Lopez said:

    You’re Welcome, that depth its what I expected to find, the vanishing point blur, I’ll definitively show my results on the tutorial.

    [Reply]

  • pligg.com said:

    2 Ways To Create Realistic “Depth of Field” | Minervity…

    In this tutorial we are going to learn how to create realistic “Depth of Field” in Photoshop. We are going to look at two different ways of doing it depending on what kind of picture you want to modify. With today’s cameras you can pretty much create t…

  • koko said:

    Thanks for sharing

    [Reply]

  • Shamima Sultana said:

    wow…nice tutorial…

    [Reply]

  • Jonny said:

    It is a nice effect we can use in many photos, thanks for your guide.

    [Reply]

  • graphicdesignclassesonline.com said:

    Great tips that filter is always so useful!

    [Reply]

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.

Anti-Spam Protection by WP-SpamFree

Spam protection by WP Captcha-Free