Patriotic Text Using Displacement Masks

Patriotic Text Using Displacement Masks

In this Photoshop tutorial I'll show you how to achieve a neat little text effect with an image overlay while learning the basics of using displacement masks.

Step 1

Lets jump right in and get our document set up. Create a new document by choosing File>New from the Main Menu. My working file for this lesson will be 540px x 300px at 72ppi. If you’re following along at home I suggest you start with something similar so that the Layer Styles we apply later will work for you without any adjustment.

Before we even get into the text lets change the background color. This is important for a future step, so don’t skip it! Choose Edit>Fill from the Main Menu and when the Fill dialog appears choose 50% Gray from the drop-down menu.

Step 2

Set your foreground color to #CAC9C9 which is a nice light gray the press the T key to switch to the Type tool. I’m using a font called Cooper Std which is an Adobe font I believe, but I found a very similar font for you if you don’t have this one which can be found for free at webpagepublicity.com, the font is called Cooper Heavy there. It’s a nice bold font and will suit this effect nicely.

Set a nice large font size and type your text onto the stage.

Step 3

Next we’re going to add a preliminary series of Layer Styles to our text. These styles will add the shape and dimension we need in order to create our Displacement in the upcoming steps.

Pull up the Layer Styles dialog by Control-Clicking (PC: Right-Clicking) on the Text layer in the layers palette and by choosing Blending Options from the menu. Move from section to section using the list of styles along the left hand side of the dialog box and enter all the Layer Styles described below.

Pay special attention here to all the settings in these styles. If your text doesn’t end up looking like mine, get your butt back to the beginning and try again!

Step 4

If you were a good little monkey your text should now look like this. If not, you know what you need to do!

Step 5

A little education on Displacement Masks:

A displacement mask is an independent black and white .psd file that is used to define areas of an image for warping. The 50% gray we added in the background is displacement neutral meaning that no transformation will occur in those areas. The 3D looking surface that we have created by adding Layer Styles to the text will be used to "displace" an overlaying image (which we’ll get in just a minute). The areas darker than 50% gray will be recessed and the lighter areas will be raised.

To create a displacement mask we need to save the file just the way it is. Choose File>Save As from the Main Menu, name it Mask (or something you will remember) and then save it to your desktop or a folder that you will remember later when we need to use the file.

Step 6

Ok, now it’s time to have a little fun. In this step you need to choose the image which you wish to overlay onto your text, I want to add an American Flag so I hit Google Images and found a nice bright flag image that was larger than my text.

Open the image you wish to use, press Command-A (PC: Ctrl-A) to Select All. Copy the area inside the selection by pressing Command-C (PC: Ctrl-C) then close the image and return to your working document, then simply paste the image into the document by pressing Command-V (PC: Ctrl-V). A new layer will be created above your Text layer with your image. At this point the text is completely obstructed by the image we just pasted in, so lets go over to the Layers palette and lower the Opacity of this new layer to 40% so that we can see the text coming through the image.

At this point you can position your image, or use Free Transform to shrink it to fit. To invoke Free Transform press Command-T (PC: Ctrl-T), then while holding down the Shift key to constrain the proportions of the image, click and drag from the corner points until the overlay is to your liking. Commit the transformation by pressing the Enter key.

Step 7

Now that the image is resized and placed correctly over the text, go ahead and bring the layers Opacity back to 100% in the Layers Palette.

Press Command-A (PC: Ctrl-A) to Select All. This is especially important if the image you just resized is larger than the document size, because if you don’t select ONLY the area visible on the canvas the displace filter will try to apply itself to the entire image and you’ll end up with an unsatisfactory displacement.

With the selection made, choose Filter>Distort>Displace from the Main Menu. When the Displace Filter dialog box appears, set both the Horizontal and Vertical Scales to 5, and make sure that the Stretch To Fit and Wrap Around boxes are checked and click OK. This will open up the file browser where you’ll need to locate and select the Mask.psd file that you created earlier. Find it, select it, and click Open.

Go ahead and press Command-D (PC: Ctrl-D) to Deselect when you’re done. At this point you’ll notice that some warping has been applied to your image, but it will be unclear just how good the result is until the next step.

Step 8

To really see how the displacement looks, we need to clip the image to our text. To do this simply Command-Click (PC: Right-Click) on the Image layer and choose Create Clipping Mask from the menu. This will mask your image to the text and will also allow all the Layer Styles we applied to the Text layer to also effect the Image layer. You’ll notice that the clipping mask is denoted in the Layers palette with an indentation of the clipped layer and a little arrow pointing to the layer it’s clipped to.

Step 9

Now lets open the Layer Styles for the Text layer back up by double-clicking on the Layer Style icon within the Text layer in the Layers Palette. From the menu on the left, click on Bevel And Emboss to view those settings. Pull the Soften slider back to 3 and move the Highlight Opacity slider from 0 to 100%. This will add the highlights that make the text effect look more glossy. When you’re done, click OK.

Step 10

Now lets get rid of that 50% Gray background! Click on the Background layer in the Layers palette to select it, press the D key to reset your foreground and background colors to black and white (if they aren’t already) and then simply press Option-Delete (PC: Alt-Backspace) to fill the layer with the background color (white).

Step 11

I think this effect might look nice with a reflection, so lets create one now. With the Background layer still selected, click the Create New Layer icon at the bottom of the Layers palette to add a new layer above the Background layer. Double-Click the name of this new layer and rename it Reflection. By default the new layer will be selected in the Layers palette and that’s perfect. Now lets load the Text layer as a selection by simply holding down the Command (PC: Ctrl) key and clicking on the Text layer’s thumbnail in the Layers palette.

Step 12

Now we’re going to copy and paste the selected area in two simple keyboard shortcuts. First press Command-Shift-C (PC: Ctrl-Shift-C), this will copy what’s inside the selection from ALL layers whereas if you had just pressed the standard shortcut for Copy you would only copy the selection from the active layer. Then simply press Command-V (PC: Ctrl-V) to Paste what you just copied onto the new blank Reflection layer.

Obviously since you copied exactly what was on the stage onto a layer that’s behind everything, you won’t see any changes yet (although you should now see the pasted content in the Layer thumbnail preview in the Layers palette). Lets change that by flipping our newly pasted content upside down. Select Edit>Transform>Flip Vertical from the Main Menu.

Press the V key to switch to the Move tool and then while holding down the Shift key to insure that you move the reflection straight, click and drag it downward until the bottoms of the two meet. (*note: Because the bottoms of my letters curve a little, I’ve moved the reflection up just a few pixels to ensure all points of contact look right.)

Step 13

Next, we’ll make the reflection fade using a Layer Mask and Gradient. With the Reflection layer selected in the Layers palette, click the Add Layer Mask icon at the bottom of the Layers palette (it looks like a rectangle with a circle inside it). You’ll notice now that a new Layer Mask has been added to the Reflection layer.

By default, when you add a new Layer Mask, Photoshop selects the mask automatically. This will be evident by the tiny brackets that appear around the Layer Mask thumbnail in the Reflection layer.

Now lets switch to the Gradient tool by pressing the G key. In the Gradient Options bar at the top of Photoshop make sure that the Foreground to Transparent swatch is selected and that the Linear Gradient icon is selected as shown below, then click and drag a new gradient onto the Layer Mask by simply clicking and dragging your mouse from the bottom of the reflection text to the top and releasing your mouse.

Step 14

To finish off the reflection, lower the Reflection layer Opacity in the Layers palette to around 40%.

Step 15

We might as well take this effect all the way by adding a shadow at the bottom of the layers right? … If I do it to my final image and don’t show you how, I know I’ll hear about it, so lets get to it.

Create a new layer above the Reflection layer called Shadows and load the Text layer as a selection, just like we did in Step 11 by holding down the Command (PC: Ctrl) key and clicking on the Text layer’s icon in the Layers palette (make sure that your Shadows layer remains selected). Instead of copying anything this time, lets simply fill the selection with black by pressing Command-Delete (PC: Ctrl-Backspace). Again, you probably won’t see anything except in the thumbnail in the Layers palette because we’re working behind the original Text layer.

Invoke the Free Transform tool by pressing Command-T (PC: Ctrl-T) and then click and drag the top middle handle of the Transform box downward until the shadow looks right (see my example below).

Step 16

Now we’ll just add a little blur to the shadow by choosing Filter>Blur>Gaussian Blur from the Main Menu. When the dialog pops up, give the blur a setting of 2-3 pixels and click OK. Lower the Shadows layer Opacity to around 60% and if needed, use a round soft edged brush to touch up the shadows and you’re finished!

I hope you learned a little something about Displacement Maps and the Displace filter along the way. If you’d like to explore this filter further, check out my Virtual Letterman Jacket tutorial!

Lesson Files + Additional Resources

Download the free .PSD file and other lesson files Right Here.

Tell Your Friends

More in Text Effects

Share    

Support A Hero

You've always been my favorite!

81 Responses to Patriotic Text Using Displacement Masks

  1. G. Gail Robb

    February 5th, 2009 at 4:41 pm

    Thank you for the great tutorial!

  2. Kyle

    February 5th, 2009 at 4:51 pm

    Awansome work! Thanks for tutorial Hero!

  3. Dybiosh

    February 5th, 2009 at 6:23 pm

    Hi HERO!

    I’m following this tutorial right now and I was stuck for a moment in step 7: when loaded the displacement map I didn’t get effect like you, instead I saw some words in German and Spanish. I think you missed one important thing in step 5 – flatten the image before saving. At least this is how I fixed this problem. I’m on CS3 here.

    Back to tutorial :)

    Cheers!

  4. HERO

    February 5th, 2009 at 6:49 pm

    DYBIOSH, Actually your displacement file can have as many layers as you want, it has nothing to do with the way the filter works, so I’m guessing you had some other glitch going on. But you got it figured out and that’s what counts!

  5. Dybiosh

    February 5th, 2009 at 7:26 pm

    So in that case I’m sorry, I must figure out what is causing this strange behavior.

    Excellent tutorial HERO!

  6. HERO

    February 5th, 2009 at 7:38 pm

    Well DYBIOSH, like any good woman PShop has her moody days and sometimes you’ve just got to give her a foot rub and a hot bath to get things back on track. ;)

  7. Bill Lowden

    February 5th, 2009 at 11:18 pm

    Simply awesome. I’ll have to try this. Everytime I think I’m getting good at PS I see a tutorial that shows me I have a lot to learn. Thanks!

  8. Mira

    February 6th, 2009 at 12:29 am

    As a beginner I really love your tutorials. You make it all seem so easy, but the possibilities are endless. Thank you, Hero!

  9. Nikola

    February 6th, 2009 at 1:11 am

    simply lovely. thank you!

  10. mplebani

    February 6th, 2009 at 2:43 am

    so good!!

  11. Ask Me

    February 6th, 2009 at 12:17 pm

    Another well-written and very useful tutorial! Thanks Hero.

  12. David

    February 6th, 2009 at 2:04 pm

    Great Tutorial!

    I’ve done other displacement mask tutorials and this EXPLAINED it the clearest!

  13. Lori Ann Cole

    February 6th, 2009 at 7:16 pm

    Very nice looking and elegant demo!

    DYBIOSH: I had the same result that you did – warnings in French and German that something was wrong.
    However, when I googled the German phrase, I found several references and one gave the advice: set your preference menu psd file compatibility to “Always”. When I resaved the displacement map after setting this, the image worked fine. Google saves the Day!

    - Lori

  14. samulli

    February 7th, 2009 at 8:55 am

    Awesome tutorial. I have followed right along and everything worked fine. Thanks for explaining things so perfectly. I love this site.

  15. Dybiosh

    February 7th, 2009 at 11:34 am

    Lori Ann Cole – thanks for the tip! I’ve set this option to “Never” cause I heard that, when it is turned on, it makes your psd files much bigger :)

    Thank You!

  16. samwise

    February 8th, 2009 at 9:40 am

    great site hero. been following your tuts to find my way round CS3.

    one problem i am finding in step 12 is when moving my flipped image down its moving the image i have over the top as well! its dragging the image off of the original text. any suggestions?

  17. Mira

    February 9th, 2009 at 8:38 am

    I finally had some time to myself and I’ve (re)created a similar text. Only with another flag. It really turned out great, thank you!

  18. HERO

    February 9th, 2009 at 7:41 pm

    SAMWISE, You must not have done the Select All before applying the Displace filter. Either that or your mask file and your working file are different sizes.

  19. Pradeep CD

    February 10th, 2009 at 6:09 am

    Nice

    thanks

  20. mojitopl

    February 13th, 2009 at 3:50 am

    As always… smart solutions by The Hero :) thx

  21. Raymond Selda

    February 20th, 2009 at 12:13 am

    I’ve finished your tutorial Hero! Thank you for explaining the steps very well. Learned something new today and it feels good! Yeah!!! I’m gonna be hanging out here for a while if you don’t mind. Thank you for sharing.

  22. mojitopl

    February 21st, 2009 at 2:44 pm

    Displacement maps! Finaly I know they are extremely useful. Thanks Hero.

  23. CP

    February 23rd, 2009 at 1:13 am

    Bloody Brilliant!!!

  24. liliana

    February 24th, 2009 at 9:28 pm

    thank you =)

  25. Guilherme

    March 2nd, 2009 at 5:16 pm

    I came across your (awesome) site and can`t stop trying it! Just love your work.
    Thanks.

  26. Kalynn

    March 5th, 2009 at 12:05 am

    I absolutely love the result I got with this tutorial. Thanks to you and your tutorials, Hero, I recently won a graphic design competition on a forum that I am a member of. I used this particular technique for one of the elements in my design, and it apparently just blew the judges away. I’ve learned so much and figured out how to do other things using the techniques from your tuts. You explain things so well that it is easy for a relative noob like me to understand and apply the knowledge.

  27. Smacky

    March 5th, 2009 at 7:44 am

    Always love your tutorials. Always a high quality outcome, can really tell you are detail oriented. You need a Twitter account so I can follow you!

  28. Mendoza Opina

    March 11th, 2009 at 9:40 am

    nice tuts…

  29. professional photo retouching

    March 22nd, 2009 at 5:57 am

    even running my own professional photo retouching business, I can never say that I have finished learning tricks and techniques. With tutorials like yours, it helps to keep ahead of the game!

  30. vamsi

    March 29th, 2009 at 1:21 am

    thanks

  31. Gregg

    April 8th, 2009 at 3:51 pm

    hero–you r.o.c.k. in the u.s.a.

  32. Khalid

    April 21st, 2009 at 9:04 am

    Hi Hero. I am a total Photoshop newbie. I followed this tut in PS CS3. This is the first time I have EVER tried an online tutorial – and it all worked beautifully. You explained every step and some of it has started to make sense and sink in. Thank you so much.

  33. roni

    April 21st, 2009 at 9:33 am

    Hey Hero,

    you rock !

    If I could, I would tip, the Hero…

    Still, I always click on a couple of ads when I pop in, and I encourage every visitor to do the same.

    ;)

    Keep the good tuts coming !!

  34. Siani

    May 1st, 2009 at 12:01 pm

    Great tutorial!!! Really love this! Followed instructions with my own text and image, and added perspective to the reflection and it looks great.

    Very nicely written.

    Thanks again.

  35. Linda

    May 7th, 2009 at 4:37 am

    Thank you so much for the great tutorial and for your assistance in making it work.

  36. RAKESH

    May 9th, 2009 at 1:41 am

    IT IS AWESOME

  37. jz

    May 11th, 2009 at 12:10 am

    I love it!

  38. Deborah Lein

    May 12th, 2009 at 2:18 am

    I was just introduced to your website…And I can’t believe how great it is and that it is for FREE.
    Loved this exercise, especially the finishing touches of the reflections.
    Thanks a bunch man!

  39. raghupathi

    May 14th, 2009 at 3:25 am

    it is fentastic tutorial.it can undarstand very easy way.good job.thank u.

  40. Hampus Hedin

    May 26th, 2009 at 1:18 pm

    Discovered your site last week. Now i visit it on a daily basis. You are a true Hero my friend.

  41. lei

    June 9th, 2009 at 7:59 am

    good!,learning

  42. Stacey

    June 13th, 2009 at 11:02 am

    I have never worked in Elements or even photoshop, when I saw your tutorial I thought – Eh… let me give it a try. I am shocked that I created this and got a chance to learn some technics in elements. Thank you so much!

  43. elinix

    June 20th, 2009 at 9:51 pm

    this is awesome. im gonna try this with a different flag

  44. Hudson

    June 26th, 2009 at 1:59 pm

    Awesome site. Awesome tutorial. Thanks!

  45. SB Landscape Photography

    July 16th, 2009 at 9:41 pm

    Thanks, been trying to find some useful tut on displacement masks.

  46. Style Swamps

    July 20th, 2009 at 9:55 pm

    Interesting effect.

  47. Ueritom

    July 27th, 2009 at 3:13 pm

    Hello..

    I’ve loved it! I made it with my name in the Brazilian Flags. Very good!!

  48. Adam Froman

    August 7th, 2009 at 11:49 am

    Excellent instructions

  49. Chaz DeSimone

    August 8th, 2009 at 2:57 pm

    Thank you HERO for generous, well-written tutorials. Much better than those 600-page books!

  50. Michael Shake

    August 25th, 2009 at 3:18 pm

    Thank you for the tutorial! Very well written and explained. I never knew how to create this look before, now I do!

    Just a suggestion, something to try on the shadow and/or the reflection. Try using Transform/Skew after you finish the steps in the tutorial. Just pull the bottom two corners out sideways to give the reflection some perspective and depth.

  51. Jason

    August 26th, 2009 at 6:37 pm

    Great tutorial however I get to step 8 and when I right click on the image layer I do not get “Create Clipping Mask” option. I am running PS7, could that be the reason? maybe PS7 didnt have this functionality – strange everything else up to that point works great.
    Thanks

  52. HERO

    August 31st, 2009 at 1:18 pm

    Jason, it’s likely a PS7 issue. PS7 was 4 versions ago (released in early 2002), and it’s a bit hard to remember what tools were available way back then. Maybe it’s time for an upgrade! ;)

  53. matt

    September 4th, 2009 at 11:12 am

    sick tutorial just finished!!

  54. evilkitty75

    November 18th, 2009 at 7:34 pm

    thx sweety loved it!!
    i used the union jack of course being from the UK lol

  55. moises

    January 18th, 2010 at 1:32 pm

    just want to ask if anyone is using cs vr.only?just want to know if the “create clipping mask” is available? tnx ol

  56. HERO

    January 20th, 2010 at 2:21 pm

    MOISES, Clipping masks were available in CS, I believe back then they were called “Groups”… try holding the Option (PC: Alt) key and placing your mouse between the layers you want to clip. The cursor will change to two overlapping circles and if you click right there a new Clipping Mask will be created.

  57. Mike

    January 26th, 2010 at 7:41 pm

    This tutorial rocked!

  58. aniss

    February 9th, 2010 at 11:16 am

    u rock hero thanks a lot i learned a lot of things in this tut, thank you so much again.

    cheers

  59. Tim Psimer

    February 20th, 2010 at 8:13 pm

    Thanks for being so detailed. Couldn’t miss with those very clear directions. I used this effect to create my brothers business card.

  60. emlak ilan

    March 6th, 2010 at 4:12 am

    Simply awesome. I’ll have to try this. Everytime I think I’m getting good at PS I see a tutorial that shows me I have a lot to learn. Thanks!

  61. Al

    March 8th, 2010 at 4:17 am

    Hi Hero,
    These tutorials are great, but I am stuck on this one at stage 7. When I select all the Distort under Filter is greyed out, so I can’t displace. Any idea why this is? Thanks for teaching! Al

  62. Tim

    March 9th, 2010 at 6:40 am

    Thanks for this tutorial

  63. HERO

    March 11th, 2010 at 12:46 pm

    AL, the problem is likely that you’re in a larger bit depth (like 16 or 32) and Photoshop shuts down some of the filters if that is the case. Go to Image > Mode and make sure that you’re working in 8bit color and your problem should be solved.

  64. Timati

    March 25th, 2010 at 2:29 am

    You are the BEST Thanks

  65. Yulia

    April 3rd, 2010 at 6:13 am

    Thank you so much for your tutorials, PSHero! Your tutorials are told in such an easy to understand, professional way and give such useful practical skills which I was unable to recive even at uni:)

  66. Claryssa

    April 20th, 2010 at 7:17 pm

    Thanks so much!!!!

  67. Pramuka

    May 2nd, 2010 at 11:12 am

    use backgroung color as black in step 16.
    if nt u’ll hv to fill it with black.

  68. dddddd

    May 13th, 2010 at 2:10 am

    thanks hero

  69. Locci

    May 24th, 2010 at 3:27 am

    What an awesome tutorial!
    Keep it up Hero!

  70. Lock & Load

    May 29th, 2010 at 6:44 am

    Asuuuu!!! Great Great Great Tutorial,

  71. Susan

    July 2nd, 2010 at 6:37 pm

    I had so much fun with this tutorial. It was really easy to follow. You were right on with it. Thank you so much. Can’t wait to try more of your tutorials.

  72. Htoo A M

    July 17th, 2010 at 4:58 am

    You r my hero man… It’s amazing… Thanks for sharing us… I really appreciate…

  73. Michael Brown

    July 31st, 2010 at 11:36 am

    Hero – Thank you very much for taking the time to share your talents with us. I am a PS newbie but for this lesson I was a good little monkey and followed the tutorial step by step and it worked perfectly. Very satisfying. Now I will go back and do it again (and again) so I can begin to learn how all this works.
    I’ll be back for more tutorials so please keep ‘em coming!

  74. Tom

    August 5th, 2010 at 2:02 am

    Done it!
    Thanks for everything, Hero.
    Tom

  75. Qahtan

    August 26th, 2010 at 5:34 am

    Really interesting and significant feature of Adobe Photoshop

  76. krishnarajps

    September 12th, 2010 at 12:09 pm

    ur a great one.great teacher for naughty monkeys like me.thhhhhhaaaannnkkkkssss.

  77. zachary hall

    November 29th, 2010 at 10:00 am

    it looks great but almost reminds me like a 3d effect

  78. Ahmed Ali

    December 21st, 2010 at 7:44 pm

    really I Thank You Very Much ,

  79. LiLWeeZyYo

    February 16th, 2011 at 12:29 pm

    LiGhT Up Da PuRp PASs iT LiKe StEve NaSh

  80. Hotdog

    February 19th, 2011 at 4:48 am

    Cool tut good bud (“,) Thanks for showing it helped me loads to get ma head round it mate. Cheers

  81. Rachael Towne

    May 23rd, 2011 at 7:51 pm

    Wow. Thank you soooo much for this tutorial. I feel like I learned so much that is going to help me in my designs. :)