discussion, gear, and photography journal
Faking Tilt-Shift - a Tutorial for Realistic Miniaturised Photos

Digital tilt-shift effects can be digitally applied to a photo, to give it the appearance of being a miniature model. I've previously blogged a tilt-shift photo of South Perth.

The photo below shows a ferry heading into South Perth, with the Perth city skyline in the background, and has been digitally tilt-shifted using the advanced technique described below (click image for a larger version).

ferry approaching South Perth
ferry approaching South Perth
South Perth, Western Australia
Canon EOS 350D, 70-200mm f/4L @70mm, 1/500 sec, f/8, ISO100

This blog entry provides details on how to easily apply a basic tilt-shift effect to a photo, as well as details on a more advanced technique (using Photoshop CS2) that provides more realistic-looking miniaturised tilt-shift photos.

While the basic tilt-shift effect can be very effective on many photos, it will often result in a very artificial look on any photos that have objects orthogonal to the mask direction.
For example, the ferry photo shown above has multiple city buildings, and if the basic tilt-shift effect was applied, the top of the buildings would be very much out of focus, while the bottom would be in focus. This is not natural, as the entire building is the same distance from the camera, and hence should have the same amount of blur applied to the entire building.

An excellent fake tilt-shift photo titled Eiffel Tilt-Shift II on flickr.com made me think about making more complex masks when blurring, to provide a more realistic miniaturised look.
I've detailed the process for applying an advanced tilt-shift effect to photos below.

The original image used to create the tilt-shift image is shown below:

original photo
original photo


Tilt-Shift Definition

Tilt-shift photography relies on the lens being tilted/shifted relative to the camera body. Tilt-shift lenses were originally designed to correct perspective when taking photos of buildings, and various tilt-shift lenses are available for DSLR cameras, but they are rather pricey (ie, the Canon TS-E 24mm f/3.5L retails for AUD$1500+).

Landscape photos taken from a distance typically have most of the frame or the entire frame in focus, with the lens at infinity focus. Because tilt-shift photos only have a small amount of the photo in focus, it allows the photographer to draw the viewer's attention to a specific part of the photo.

The tilt-shift effect also causes photos to look as if they are miniature models, due to the unnaturally short depth-of-field, when our eyes are expecting everything in the frame to be in focus.

Rather than spending many dollars on a tilt-shift lens, you can emulate the effect digitally in Photoshop.


Applying Tilt-shift Effect (basic)

There are many tutorials on the web that describe how to apply a basic tilt-shift effect to your photos. The Fake Model Photography tutorial is a good one to use for Photoshop.

Alternatively, if you don't have Photoshop, there's a guide to doing Fake Tilt-Shift with The Gimp, as well as a guide for Using Photoshop Elements 3 to create the tilt shift effect.


Applying Tilt-shift Effect (advanced)

Note that this tutorial assumes the use of Photoshop CS2.

Also note that saving the image as a Photoshop file (ie, .PSD) will save the layer mask, thus allowing you to save the image as a work-in-progress, and then re-open it at a later date, and continue where you left off.

To create an advanced tilt-shift effect:
  1. Open Starting Image
  2. Create New Empty Layer
    Create a new empty layer for the mask by clicking the "create new layer" button at the bottom of the "layers" tool window, or by selecting the Layer -> New -> Layer menu, or by hitting Shift+Ctrl+N.
    Creating a new layer ensures the quick mask will be saved when the PSD file is saved, as applying a quick mask without the new layer will result in the mask being lost when saving the PSD file.
  3. Create Layer Mask in New Layer
    Create a layer mask in the newly created layer by hitting the "add layer mask" button at the bottom of the "layers" tool window, or by selecting the Layer -> Layer Mask -> Reveal All menu item.
    new layer and layer mask
  4. Quick-Mask Edit Mode
    Turn on quick-mask editing by selecting the "edit in quick-mask mode" button in the main tool window, or hit "Q" to toggle between standard mode and quick-mask mode.
    quick-mask edit mode
  5. Select Default Colours
    Select the default foreground (white) and default background (black) colours by hitting hit the "D" key.
  6. Select Gradient Tool
    Select the gradient tool by hitting the "G" key to toggle between the paintbrush and the gradient tool.
  7. Select Reflected Gradient
    Select the "reflected gradient" by hitting the forth gradient sub-tool in the top toolbar.
    reflected gradient
  8. Apply Gradient
    Using gradient tool, click and drag, starting at area that you want in focus, and drag up approximately 1/4 of the image height. Note that this will take some trial and error to get good results, so don't be scared to just give it a try.
    applying gradient
    The result should show the areas to be in focus as 50% red, and the areas to be fully blurred as untouched, as shown below.
    resulting gradient
    In this particular case, the plane to be in focus is right where the ferry is located, and is horizontal. This focus plane needs to be applied to elements in the photo that are the same distance from the camera, so in some cases, it won't be horizontal. If that's the case, your gradient click-and-drag will need to be at an appropriately orthogonal angle to the focus plane.
  9. Check the Results
    Before proceeding with editing the mask, it's worth checking the effect of the gradient you have created by applying the lens blur filter to it.

    To apply the blur filter to the actual image, first select the "background" layer (ie, containing the original image), and then select the RGB channel (once the "background" layer has been selected, you can hit Ctrl-~ to select the RBG channel).
    select background layer   select RGB channel
    Then select the Filter -> Blur -> Lens Blur menu item.
    On the resulting filter dialog, specify "Quick Mask" in the "Depth Map Source", and adjust the shape, radius, etc, as per the screenshot below.
    Adjustments can be made to these settings if you want to tweak the blur effect.
    lens blur dialog
    Hit the "cancel" button to return to the image without applying the blur filter (we want to adjust the mask first!).

    If you're not happy with the location and size of the initial gradient mask, just select the layer containing the mask, and re-apply the gradient.
  10. Editing the Mask
    To edit the mask, select the layer containing mask (ie, "layer 1"), and use the paintbrush tool to paint parts of the mask in different shades of red. Use the eyedropper tool (alt-click when the paintbrush tool is selected) to select the appropriate mask colour from existing parts of the mask.

    The important thing is to mask items that are the same distance from the camera in the same mask colour. In the image below, each building has been individually masked with the same colour, as the entire building is (relatively speaking) the same distance from the camera, and we want to apply the same level of blur to the entire building.

    During this process, you may want to periodically check the results by temporarily applying the lens blur filter, as described in step 9 above.
    editing the mask
    Note that if there's a plain background (ie, the sky) behind the item that you're masking out, you don't have to be too neat with your masking, and can overlap onto the sky somewhat. With the mask shown above, the front buildings had to be masked neatly, while the masking of the taller buildings in the rear didn't have to be as neat (ie, the masking over the antennas on the top of the tallest buildings spills over the sky).

    Be sure to periodically check the results by applying the lens blur, to check the results of the masking, and you may find you'll need to adjust your masking to achieve the best results.
  11. Save Your Work
    Periodically save your work. Saving the work-in-progress as a PSD file will preserve the original image on the background layer, and will also preserve the layer mask, allowing you to continue where you left off.
  12. Final Mask
    Here's the final mask, which can be viewed by turning off the RGB channel.
    final mask
    Viewing the raw mask in this way can be useful, as seeing the mask without the busy background allows you to easily see parts of the mask that may not have been fully painted out.
  13. Apply Lens Blur
    Once you're happy with the results of the mask editing, apply the lens blur filter, as described in step 9, but hit the "OK" button instead of the "Cancel" button to close the filter dialog and apply the mask.

    If you want to keep a copy of the original image without the blur filter applied, you may want to make a copy of the background layer, and then apply the filter to the copied layer, thus preserving a copy of the original image in one layer. This will allow you to revisit the masking at a later date, if desired, and then reapply the blur filter using a modified mask.
    Alternatively, keeping a copy of the original photo (ie, RAW file or JPG straight out of the camera) is also an option.
  14. Turn Off Mask Channel
    When you're satisfied with results of the blur filter, go to the "Channels" tool window, and turn off the "Quick Mask" channel to hide the red mask.
  15. Adjust Contrast, Saturation and Sharpen
    To further emphasise the miniaturised look, boost the saturation and contrast of the image.
    Resize the image to a web-friendly size (if intended for the web), and apply some sharpening using the USM filter. Sharpening should always be the last action you perform on an image. last
  16. Final Image
    Here's the final image. Hold the cursor over the image to see the non-tilt-shifted version, and click the image to view a larger tilt-shift version.

    ferry approaching South Perth

References
This image is available for purchase as a high-quality card, matted print, mounted print, canvas print or framed print from redbubble.com.
Comments:
Arnar wrote at 2008-03-25 12:55

Hey Martin,

Excellent tutorial. Thanks for pointing to my flickr image.

I have yet to test it, but I have a hunch that PS blurs differently depending of whether an object is in front of the focus plane or to the back of it. This is why I used a depth map with black being closest, white farthest and then used the picker in the Lens Blur effect to select the correct gray value to be in focus. Do you think that could make a difference where the foreground has more objects than in the boat picture above?

cheers,
Arnar

Martin wrote at 2008-03-29 15:39

Thanks Arnar.

I don't believe PS will blur differently if an object is in front or behind the focus plane, and haven't noticed any differences in the blur behaviour.

I've been playing with some other images that have more foreground objects, and will be publishing when I get time to finish them.

Martin.

Shawn wrote at 2008-03-31 01:27

Very good tutorial! I've definitely been wanting to try this out.

KungKrille wrote at 2008-09-03 20:37

Very nice tutorial. Good that you use Lens blur filter and not Gaussion blur as it just gives a "soft" feeling rather than short DOF.

Apply food stamp wrote at 2008-09-24 00:54

I wanted to research this subject and write a paper. Your post what a thousand words would not. Nice job.

SBL-Photoshop Masking wrote at 2008-10-06 21:09

Great stuff!! Nice job.

Chris wrote at 2009-01-09 14:03

Great tutorial, and that photo looks awesome. I can't wait to try this on some of my photos

Nick Karvounis wrote at 2009-01-21 16:15

The best and most detailed Photoshop Tilt shift tutorial I've seen so far!

Abhilash wrote at 2009-02-16 18:51

I have some examples in these links on my blog. I generally use GIMP for making the photos more vivid and then tiltshiftmaker.com to get the miniature effect. Unless i want a more customized effect, then I use the GIMP throughout.

http://hitchedhiker.com/2009/02/14/toronto-miniaturize/

http://hitchedhiker.com/2009/02/13/tilt-shift-photography/

Jeff wrote at 2009-03-25 16:37

Thanks so much - great tutorial. Look forward to trying it out :-)

Omo wrote at 2009-04-17 14:56

Adobe After Effects can be used to give this illusion to video and there is an example here http://www.cleverbits.com/tiltshift.php

Tania Rose wrote at 2009-05-04 11:56

great tute. I had a lot of fun trying it out on some images that didn't really make the cut, for a few reasons. Thanks for taking the time to share this technique in such a clear and easy-to-follow explaination. kudos! :)

tony wrote at 2009-05-05 23:06

thank you so much for publishing this tutorial i also can't wait to get into tilt shift

Ash Davies wrote at 2009-06-07 20:04

Great tutorial here. To be honest though, the image you've used doesn't give the full effect.
I've got my own tutorial which is dedicated to the higher angle tilt shift photos
http://www.photoguides.net/photoshopping-tilt-shift

Ill be playing around with some low angle shots though using this tutorial.
Thanks for sharing
--
Ash Davies

Kelly Brown wrote at 2009-06-13 08:50

I really like your post. Does it copyright protected?

Martin wrote at 2009-06-13 10:29

@Kelly Brown: Thanks.

Yes, this post is certainly copyright protected, as per the copyright notice at the bottom of every page on my website.

portrait photography pontypool wrote at 2009-11-19 19:04

brilliant - cant wait to try this out.

photo masking wrote at 2009-11-27 14:55

Great tutorial. Thanks for sharing.

Regards,
image masking

MrJhnsn wrote at 2009-12-15 20:28

Love the tutorial
almost exactly how i got the hang of getting it right in photoshop cs3

Shamima Sultana wrote at 2010-01-02 17:21

Its a nice work...

Jakub wrote at 2010-04-26 17:18

Thanks, very good tutorial.

canvas prints wrote at 2010-05-06 06:56

thanks I was wondering how the tilt shift effect was done.

ArtMonkey wrote at 2010-05-18 16:37

This is cool, I see you are adding depth info on yours as well rather than just a gradient. I have been doing this for a little while after discovering z-depth images in 3D software. I did one over the weekend here:
http://www.flickr.com/photos/eddnoble/4610332362

Did you realise that a tilt shift lens does not do this blur based on depth but is the same as simply using a simple gradient? (ie: only blurs the top and bottom of th image). They do give a nice (real) bokeh quality but other than that they don't decrease the depth of field in an image at all. So if you want painting the depth mask is the only way to get it.

Martin wrote at 2010-05-21 05:08

@ArtMonkey: thanks for the feedback.

I'm aware that a tilt-shift lens has a similar effect to a simple gradient. However, the aim of this tutorial is to provide images that look more like miniaturised photos, rather than photos created with a tilt-shift lens.

Photograph Restoration wrote at 2010-06-01 16:38

Great Job! Thanks for sharing this tutorial with us all!

jeff wrote at 2010-08-11 05:12

Very clever! But i think you just stole my idea. ^_^ Tilt shift lense are way to expensive yet so fun!

Smoonsunusike wrote at 2010-11-18 10:18

Brilliant post, keep up the good work.

Mik wrote at 2010-11-25 09:39

You certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material

X wrote at 2011-07-21 12:18

Probably the best "tilt-shift" tutorial. Well done explained.

Esküvői fotós wrote at 2011-12-21 16:25

Great and very clever tutorial.

Jeffrey wrote at 2012-01-01 02:58

With this effect and then adding some HDR effects might make a bit hit.

Add your thoughts:
Name* (use your real name or initials, not your business name):
Email address* (required, never published):
URL (optional, "nofollow" attributes are used on URLs):
Comments* (no HTML allowed, some BBcode allowed, "nofollow" attributes are used on URLs):
 Check this box if you are a real person*
  
BBcode allowed in comments:
[b]bold[/b]
[i]italics[/i]
[url=http://server/path]link name[/url]
[img]http://server/path/image.jpg[/img]
Fields marked with a * are mandatory.
Note that comments are moderated, and will not appear immediately.
Please do not include your URL in the comment text, and please use your personal name or initials, and not your business name, as that comes across as spam.
learn more about your camera and how to use it
making photo books? save with Blurb discount coupons
Blurb
[ MartyBugs home | blog | about this site | copyright | disclaimer | privacy | appreciation | contact details | site map ]
web by mpot.  all content and images are copyright © 2001-2025 .
all rights reserved.  unauthorised duplication, reproduction or distribution is prohibited.
martybugs.net