Mapping A Texture Into An Image

You will need two photos for this tutorial, a photo you want to apply the texture to and the texture itself. I am using the two photos below:

Or, like this one:

Step 1 : Open the photo you want to apply the texture to. First you will need to select the channel with the best image contrast. Switch over to your Channels panel located on the layer palette.

Click on the Channels name tab at the top of the group to select it. You’ll see three color channels listed – Red, Green, and Blue – along with a composite RGB channel at the top. You need to select the channel that will give you the highest amount of image contrast, the more contrast you have, the better the results you’ll achieve with your displacement map. Click on each individual channel (Red, Green, then Blue) in the Channels panel. As you click on each channel, you’ll see a black and white version of the photo appear in the document window. Each channel will give you a different black and white version depending on how prominent that color is in the photo. You need to pick the channel that gives you the best image contrast in the person’s face. For my picture I selected the green channel (as seen in the above image). This is because the red channel is too bright and the blue channel is too dark.

Step 2 : Now you will duplicate this channel. With the channel selected click on the menu icon in the top right corner of the Channels panel and select Duplicate Channel from the menu that appears.

This will bring up the Duplicate Channel dialog box. Select New for the Document option in the Destination section of the dialog box, which will open the copy of the channel as a separate Photoshop document. Name it Green Channel Duplicate.

Step 3 : Now you are going to get the document ready for the displacement map. First apply a Median Filter To The Displacement Map Image (Green Channel Duplicate). Go up to the Filter menu in the Menu Bar at the top of the screen, choose Noise, and then choose Median.

This will bring up the Median filter’s dialog box. Keep an eye on your image in the document window as you drag the Radius slider at the bottom of the dialog box. The slider determines how much detail is removed from the image. The further you drag the slider towards the right, the more detail you’ll remove. The idea is to remove as much detail from the person’s face as possible while still keeping important edges intact. I set my Radius to 5.

Click OK to exit out of the dialog box. Next, we’ll apply the Gaussian Blur filter to finish off our displacement map. Go back up to the Filter menu and this time, choose Blur, then choose Gaussian Blur. Set the following values shown in the image below:

Click OK when you’re done to exit out of the dialog box. Photoshop applies the blurring to the displacement map.

Finally, you will convert the displacement map image to the Grayscale color mode. On the menu toolbar select Image > Mode> Grayscale.

Step 4 : Now that you’ve prepared your image for use as a displacement map, you need to save it as a Photoshop .PSD file. On the menu bar select File > Save As and select .pds as the format. This brings up the Save As dialog box. Give the file a descriptive name. I’m going to name mine “displacement.psd.” Make sure you select Photoshop for the Format option so it’s saved as a .PSD file.

Step 5 : You are done with the displacement map at this point, so switch back over to your original photo (the one you’re going to apply the texture to). If you’re still seeing the image in black and white in the document window, click on the RGB channel at the top of the Channels panel to bring back the full color version of the image. The RGB channel isn’t really a channel at all, it’s simply the composite of the three individual channels and it’s what allows us to see the image in full color.

Switch back over to the Layers panel by clicking on the layers tab. Since you want to map the texture to the person’s face, you will first need to select it. Use the selection tool of your choice. I used the polygonal lasso tool.

Next you don’t want to apply the texture over the eyes so we to omit them from the selection. On the top left of the document window click the subtract from selection option.

Now drag around the eyes to select them.

Next you need to save the selection. Click on Select on the menu bar and click Save Selection.

This brings up the Save Selection dialog box. I’m going to name my selection “theRock-face”, then I’ll click OK to save the selection for later use.

Once you have saved the selection deselect your selections by holding down the Ctrl and clicking D on your keyboard.

Step 6 : Open the texture you are going to be using. You should now have your original image and the texture photo open in their own separate document windows on your screen. Make sure you have the texture photo selected by clicking on it anywhere inside its document window. Then go up to the Layer menu at the top of the screen and choose Duplicate Layer:

This brings up the Duplicate Layer dialog box (as shown above). Name the copied layer “texture” and select the original image’s document as the Destination for the copied layer so that our texture photo appears inside the original photo’s document. My original photo is named “theRock.jpg”, so I’ll select it as my destination.

Your texture should now appear in your photo document. Resize the texture as needed using the Free Transform tool (Edit> Free Transform).

Step 7 : Now you will load the selection you saved earlier. On the Select menu toolbar select Load Selection.

Photoshop actually saves selections as channels so if you switch back over to the Channels panel, you can see that your selection appears as a separate channel below the RGB channels.

Step 8 : Switch back over to the Layers panel when you’re done. You’ll see that the selection outlines have reappeared inside the document, although they may be a little hard to see over the texture:

With the selection loaded, make sure the texture layer is selected in the Layers panel (selected layers are highlighted in blue), then click on the Layer Mask icon Layer Mask at the bottom of the Layers panel. This is how your graphic should look at this stage.

Change the blend mode to the texture layer to Overlay.

Step 9 : Things are looking pretty good already at this point, but to add even more realism, we’re going to use our displacement map to fit the texture around the contours of the person’s face. Select the texture layer. To select the layer itself, click directly on the layer mask preview thumbnail.

If we apply our displacement map right now, both the contents of the layer (the texture photo) and the layer mask will be reshaped by the displacement map, and that’s because the layer contents and the layer masked are linked together. Unlink the layer from the layer mask by clicking the link between the texture and the mask. The link icon will disappear.

Step 10 : Finally, you’re ready to apply the displacement map, and you do that using Photoshop’s Displace filter. Go up to the Filter menu, choose Distort, and then choose Displace.

This opens the Displace dialog box. Click OK to accept the default horizontal and vertical scale values. You can play around with these values. The only problem is there is no preview at this step. The Horizontal Scale and Vertical Scale options determine how much impact the displacement map will have on the image. They determine how far the pixels in the image will shift horizontally and vertically.

When you click OK which will bring you up the second dialog box asking you to choose your displacement map. Navigate to where you saved the displacement map then click on the displacement map to select it and click Open. As soon as you open the displacement map, Photoshop applies it to the texture and maps the texture to the contours of the person’s face and head.

Adjust the opacity level to your liking. In this case I set it to 70.

Here is how my photo turned out:

Here’s another version with a rusty texture applied :

(Soft Light, Opacity : 75)

10 responses to “Mapping A Texture Into An Image

  1. I’ve been browsing online more than three hours today, yet I never found any interesting article like yours Mapping A Texture Into An Image EasyTweaks. It’s pretty worth enough for me. Personally, if all website owners and bloggers made good content as you did, the internet will be a lot more useful than ever before.

  2. Spot on with this write-up, I actually suppose this web site needs way more consideration. I’ll in all probability be again to learn far more, thanks for that info.

  3. Mapping A Texture Into An Image EasyTweaks I was recommended this web site by my cousin. I’m not sure whether this post is written by him as no one else know such detailed about my trouble. You are wonderful! Thanks! your article about Mapping A Texture Into An Image EasyTweaksBest Regards Lisa

  4. Pingback: Goozle Zone

  5. Pingback: Google

  6. These are definitely interesting especially like the simplicity of twitsprout. Another tool we use to analyse our twitter performance here is Crowdbooster we locate the detailed information of our followers and their influence that this provides seriously useful.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s