воскресенье, 21 июля 2013 г.

Lesson#28-Photoshop Depth Maps – Realistic Depth of Field

When you create the effect of depth of field in Photoshop, many use the Gaussian Blur (Gaussian blur) or other effects that have nothing to do with the depth of field that results when shooting still images. In this tutorial I will show you how to create realistic depth of field in Photoshop, using depth maps. Enjoy! ;)

I recommend to start now to read a lesson, and then treat it more detail and apply their examples.

Using filter "Gaussian Blur» (Gaussian Blur) - is not the best way to create depth of field, as in this blurring we can see perfectly fine detail on the edges of the object. Look at the example of a blur filter with Gaussian Blur and Lens blur. As you can see, using the blur filter Lens blur looks more realistic:
Карты глубины в Photoshop
What is a "depth map"?

The depth map in Photoshop - this is nothing more than a black-and-white image that is used as an alpha channel. It can be used with Lens Blur filter to create a "sampling blur". The filter applies different degrees of blur to objects with different shades of gray. The closer the color gray to black, the less blur. Look at the picture below. Right shows the gradient applied to the channel as the alpha layer.
Карты глубины в Photoshop
(white color - complete blur, black color - no blur)

Simulation of depth of field at various distances

To create a realistic effect of depth of field in Photoshop, you need to apply different degrees of blurring of objects depending on their location from the point of capture. Now we will create a depth map - apply different shades of gray objects, depending on their location. Our depth map objects closer to the viewer, are dark gray, and those that are located in the distance - light gray.


Example.

I found a photo of the hall on the Internet and placed on it a few balls
Карты глубины в Photoshop
Creating a depth map

So, let's create a depth map. As I said, we can only do it by hand, because we need no shades of gray gradient. Translate the image into black and white version does not suit us.

Shade of gray, in which you will be painting the objects depends on what the subject is in focus - it will be black.

For example, if you want the focus was a yellow ball, then you need to paint over the black, and all the other balls - shades of gray, depending on their distance from the yellow ball. It sounds complicated, but you will see that in fact, it is quite simple.

The first thing you need to do is create a new layer and fill it with black and white gradient, depending on which card you want to create depth. In my example, the window - the most distant object from the camera angle, and the ceiling and floor are gradually approaching the camera. In the picture below you can see how I created the gradient (I removed half of the gradient, it was clear, it looks like the gradient for this image.)
Карты глубины в Photoshop
Next we need to identify objects and fill each one different shade of gray. You can select objects by hand, using a pen (Pen Tool) or Lasso (Polygonal Lasso Tool). My balls were already on different layers, so make them stand out was simple enough.
Please note that elements of the depth map must match exactly, otherwise you will not be able to achieve the desired result. Make sure you create a depth map elements on a separate layer, as in the last step we will need to merge the layers.
Карты глубины в Photoshop
Next we need to identify objects and fill each one different shade of gray. You can select objects by hand, using a pen (Pen Tool) or Lasso (Polygonal Lasso Tool). My balls were already on different layers, so make them stand out was simple enough.
Please note that elements of the depth map must match exactly, otherwise you will not be able to achieve the desired result. Make sure you create a depth map elements on a separate layer, as in the last step we will need to merge the layers.
Карты глубины в Photoshop
Next, we need to apply the Lens Blur filter to the image with the depth map. If your original image is composed of several layers before applying the filter to merge them into one.

Select the layer with your image and select Filter> Blur> Lens Blur. The source (Source) select the prepared alpha channel ("Alpha 1"), which we use as a "depth map"
Here are the settings I used:
Карты глубины в Photoshop
So, in the picture above, you can see how the Lens Blur effect applied with the alpha channel. But remember that the depth maps are quite complex, not like this simple picture.
Now I'll show you a more complex depth map. She also created manually using the Pen (Pen Tool), I spent on it about 25 minutes. Number of objects that you want to select, depending on what type of map you want to create depth.
Карты глубины в Photoshop
But the result (the people behind the 2 men to be darker, otherwise they will be too blurry)
Карты глубины в Photoshop


Комментариев нет:

Отправить комментарий