’Tis the season for delicious baked goods, frosty fingers, toasty fires, ice skating, and festive window displays! And now, with tilt shift photography, you too can capture your own mini-window-display-like scenes with your camera and show them off to your friends and family!
Tilt shift photography is a technique for simulating a miniature holiday-window-display-like scene by tilting / rotating the camera to control the depth of field and shifting the lens to modify the level of zoom. Tilting functions to ensure that the lens plane, plane of focus, and image plane are not all perpendicular. Examples of tilt shift photography can be seen everywhere. The opening sequence of Stephen Colbert’s Late Show, for instance.
Luckily, this technique can be simulated programmatically, so we don’t all have to go purchase expensive tilt lenses or Adobe Photoshop! Here’s the recipe:
What you'll need:
Procedure:
For the rest of the image, pixels are split into defocus_strength number of groups above and below the DOF area based on their distance from the focus line. This is done by taking the farthest distance (over all the pixels) from the focus line and dividing it by defocus_strength, which gives the thickness of each section. Pixels in section 1 will be assigned pixel values from the image with 1 layer of Gaussian blurring. Pixels in section 2 will be assigned pixel values from the image with 2 layers of Gaussian blurring, and so on and so forth. Of course, to avoid visible seams between the sections, some alpha blending will have to be done based on the pixel’s distance from the previous interval.
Below is a selection of images I tried this technique on. In general, it seems to work quite well. It usually took a few tries to get the focus line and area just right, however, depending on the image. I had to imagine what I might do if I were really taking photos of a dollhouse setup and choose my focus line from there. Additionally, defocus_strength must be chosen carefully. For smaller images, smaller values must be specified for defocus_strength. This is because defocus_strength determines into how many sections the photo is divided. If a picture is too small and the user specifies a high defocus_strength, the photo will be split into many sections. In such cases, a noticeable seam may appear between interval transitions because the amount of space available for transitioning from one interval to another is too short to produce a smooth change.
1. PHOTOS I TOOK IN TAIWAN
Original Image
Tilt Shift Version
A small channel in Hsinchu
A public tranportation station in Taipei
2. MAGOROKU ONSEN AND KITA ONSEN IN JAPAN
Credit: This article from RocketNews24 and Google Images for Magoroku Onsen
Original Image
Tilt Shift Version
Magoroku Onsen
Kita Onsen
Kita Onsen is thought to have been discovered by a Tenguu
3. VARIOUS PHOTOS FROM AROUND JAPAN
Credit: Michael Turtle's travel blog
Original Image
Tilt Shift Version
Jigokudani
Kyoto
The village of Shirakawago
Shirakawago is a World Heritage Site
Yokohama
For this part of the project, I tried to implement the dolly zoom effect, which is a film technique often used to create a sense of realization, unreality, or high emotional impact. The effect is achieved by taking a camera and manually increasing the zoom as you get farther and farther away from the subject. Doing this causes the subject to maintain a relatively constant size and position, while the background grows larger. As a result, the growing background seems to loom over the subject (which doesn’t change throughout) and creates an often disorienting or slightly unsettling feeling in the viewer. (It’s no surprise, then, that this technique is commonly seen in horror and suspense movies.)
Equipment: I used a Nikon D5200 camera with a 18-55mm lens. All the shots below were taken in San Francisco (most of them featuring my friend Serena).
Pier by San Francisco Ferry Building
Model: Serena Chang
1
2
3
4
5
6
7
8
9
Although this image set was taken by shifting the camera backwards from the subject and increasing the zoom each time, we can simulate the opposite effect by simply reordering the pictures.
Playing the images in the opposite order from which they were taken produces a slightly different effect. Rather than the background growing larger and more imposing, it now seems as if the background is receding or falling away. I imagine this is often used when a character has come to a horrible realization in a film, or something of the sort.
Camera Moving Backwards with Increasing Zoom
Simulated: Camera Moving Forwards with Decreasing Zoom
One of the most difficult parts of creating the dolly zoom effect was maintaining the subject’s placement in the photographs. The shots above were taken with the camera placed on a tripod. As I moved backwards, I tried my best to maintain a straight line. But given that I had to lift the tripod up every time, the shots were not perfect. I believe this effect would be the easiest to create with a rolling camera dolly (hence the name of the technique, I suppose), which is, at its simplest, something akin to a tripod on scooter wheels.
Given the absence of such a fancy piece of equipment, I made do with various methods, including the tripod, just holding the camera with my hands (to avoid the laborious effort of lifting the tripod with every step back), or sliding the camera across the flat surface of a table. Tables worked surprisingly well since their consistently flat surfaces help maintain the vertical position of the camera. In fact, in some cases this was preferable to my tripod, which has the tendency to jiggle and change its angle or height due to its being slightly damaged.
Pot in a Japanese Restaurant (Ryoko's)
Sidenote: This store makes great ochazuke!
In this particular instance, the photos were taken by sliding the camera back across the table.
1
2
1
2
3
4
5
6
Camera Moving Backwards with Increasing Zoom
Simulated: Camera Moving Forwards with Decreasing Zoom
Union Square
Model: Serena Chang
In this particular instance, the photos were taken without a tripod. I held the camera with my hands and tried to keep the subject in a constant position.
1
2
3
4
5
6
Camera Moving Backwards with Increasing Zoom
Simulated: Camera Moving Forwards with Decreasing Zoom
European Drinking Chocolate from Dandelion Chocolate
We stopped at a small chocolate shop by the Ferry Building and treated ourselves to some dark hot chocolate! The staff were very friendly and the places is very well designed.
In this particular instance, the photos were taken by sliding the camera across the table.
1
2
3
4
5
6
7
8
Camera Moving Backwards with Increasing Zoom
Simulated: Camera Moving Forwards with Decreasing Zoom
I took some time to mess with this technique. On the left is a GIF created by moving the camera forwards instead of backwards and with each shift forwards, decreasing the zoom. Like the other GIFS created by artificially shifting the image orders above, the effect is that off the background falling away.
On the right, I tried moving the octocat (the subject) instead of the camera. Each time I moved the octocat back, I decreased the zoom. The camera was set on a chair for the duration of the shooting. The resulting effect is that of an enhanced, backwards zoom. That is, it seems as if the camera is moving away from the subject, but the octocat moves away faster than it would have with simply zooming because moving the octocat away and decreasing the zoom all at once speeds up the creation of distance between the camera and the subject.
Camera Moving Forwards with Decreasing Zoom
Camera Decreasing Zoom with Subject Moving Backwards
This class has given me much insight into the backend of Photoshop and special effects techniques. It's very exciting! As the semester has progressed, I've noticed that the many functions and features of Photoshop now have new meaning for me, and I'm certain that this class has improved not only my photography skills but also how I view films, photography, and other sources of media. This is definitely one of the best courses I've taken at Berkeley; every lecture and project was truly an enjoyable experience!
Source Acknowledgements: Bell icon courtesy of Stanislav Levin.