Graphics Tips

May the Force be with you! Release your Jedi spirit!

(from Episode #79 of The Lab with Leo Laporte)

“If you strike me down I shall become more powerful than you could possibly imagine…”

These were Ben Kenobi’s words of warning to Darth Vader in the original Star Wars film. Until the sequel, us fanboys really weren’t sure what old Ben was prattling on about. But in The Empire Strikes Back we were led to believe that to be a freely roaming, blue, glowing spirit was the utmost power any Jedi on either side of the dark/light spectrum could achieve.

Hmm….

Well, now with the aid of Adobe Photoshop, you too can add your ghostly form to any of your digital photos. Here’s how…

Step 1: The Photo(s)

Ideally, you will be using two images: one of you looking masterful and wise and hopefully on a background that you can easily separate yourself from and another of the setting in which you will be placing yourself. We will want your Jedi spirit to be translucent and that will be much more difficult if we must first remove your opaque, live and living self from the photo. I’m not going to spend time explaining how to remove yourself from the photo. If you take the 2 pictures you need, you don’t need to worry about this procedure… this is not the tutorial you are looking for… you may go about your business… move along…

jedi1 20070925 222802 May the Force be with you! Release your Jedi spirit!

So I have one image with without me in it and I also have another photo that was taken at about the same time that does have me in it. This is the photo I’m going to use as my source image for me as a dead Jedi (aka Darth Yaeger).

jedi2 20070925 223101 May the Force be with you! Release your Jedi spirit!

Step 2: The Chosen One

Working on the photo “with you in it” and using Adobe Photoshop CS3′s Quick Selection tool (or the Extract Filter or whatever means you feel most comfortable), select yourself and Copy (Ctrl-C on PC, Command-C on Mac) yourself. You can now close this image (the one WITH you in it).

jedi3 20070925 223403 May the Force be with you! Release your Jedi spirit!

Go to the photo “without you in it” and Paste (Ctrl-V on PC, Command-V on Mac). Position yourself in the picture, scale, rotate, skew, etc. until your image is in the exact part of the image where you want your Jedi spirit to materialize.

jedi 20070925 223545 May the Force be with you! Release your Jedi spirit!

Step 3: A Disturbance in the Force

Ctrl-Click on PC or Command-Click on Mac the thumbnail of the layer in the Layers palette that represents the image of you. This will create a selection.

Create a new layer (Shift-Ctrl-N on PC or Shift-Command-N on Mac) and fill the selection on the new layer with black. (You can first reset your foreground and background colors by hitting the D key the hit Alt-Delete on PC or Option-Delete on a Mac and the selection on your layer should fill with black) You can deselect now (Ctrl-D on PC or Command-D on Mac)

jedi 20070925 223637 May the Force be with you! Release your Jedi spirit!

jedi 20070925 223754 May the Force be with you! Release your Jedi spirit!
You will need to add the Jedi Styles.asl file that I have provided for you. To do this, click the flyout menu on the right side of the Styles palette and choose “Load Styles…” and navigate to where the Jedi Styles.asl file is located on your hard drive and click “Load”. With your new black silhouette layer active in the Layers palette, click the “Force Distort” style in the Styles palette (hover your cursor over the styles to have Photoshop show you the names).

jedi 20070925 223843 May the Force be with you! Release your Jedi spirit!

Your Jedi should look like the picture above. If the “ripples” inside the silhouette don’t cover enough of the body’s shape or if they cover too much, go Layer>Layer Style>Scale Effects… and adjust the effect until it more closely matches what I show here. Don’t stress too much about this.

Create a new layer and drag it below the silhouette layer. Fill this new layer with white. Then, Select All (Ctrl-A on PC or Command-A on Mac) and Copy Merged (Ctrl-Shift-C on PC or Command-Shift-C on Mac) –this will copy the current state of the selection as if it had all of its layers flattened without requiring you to flatten the image.

With the merged copy still in the clipboard, create a new Photoshop document. Photoshop will automatically plug in the height and width of the image held in the clipboard’s memory, so you need only click OK.

jedi 20070925 224015 May the Force be with you! Release your Jedi spirit!

Paste the merged silhouette in the new document (Ctrl-V on PC or Command-V on Mac). Now save this new document as a Photoshop (.psd) file and save it somewhere where you will easily find it again. Close this new file and direct your attention back to the main document again.

Back in the main document, click off the “eye” icons next to the silhouette and white layers–we’re done looking at them.

In the Layers palette, duplicate the layer containing your original “without you in it” image and drag the duplicate to the top. Go Filter>Distort>Displace… and enter in these settings:

jedi 20070925 224149 May the Force be with you! Release your Jedi spirit!

Click OK and Photoshop will ask you for a file to use as a displacement map. Point Photoshop to the file you just created using the silhouette layer and click Open.

jedi 20070925 224244 May the Force be with you! Release your Jedi spirit!

See what happened? Photoshop displaced the image using the silhouette shape and those ripples we made.

Go Layer>New Adjustment Layer>Levels… and match these settings:

jedi 20070925 224407 May the Force be with you! Release your Jedi spirit!

Then, when the Levels dialog comes up, match these settings and click OK:

jedi 20070925 224502 May the Force be with you! Release your Jedi spirit!

Now Ctrl-Click on PC or Command-Click on Mac the thumbnail of the silhouette layer in the Layers palette. This will create a selection. Keeping that selection, click the thumbnail of the displaced layer to activate it. Go Layer>Layer Mask>Reveal Selection.

jedi 20070925 224639 May the Force be with you! Release your Jedi spirit!

If you dig Predator movies more than Star Wars movies, you may be tempted to quit now. This is an example of how one tutorial can teach many effects: you just created the cloaked effect from the Predator movies.

Let’s proceed, Photoshop Padawan….

Step 4: More powerful than you could possibly imagine…

Near the bottom of the layers in the Layers palette, you still have your Jedi. Drag the Jedi’s layer to the top of the palette. And make sure this layer is selected in the Layers palette.
Now click the “Dead Jedi” style in the Syles palette and you’re done!

jedi 20070925 224731 May the Force be with you! Release your Jedi spirit!

Step 5: Your training is complete…

Well, it can be if you want. But here a little “extra” if you want to create the Hologram effect from the Star Wars movies:

With the layered file we’ve been working with up until now, click off the “eye” icon next to our displaced layer in the Layers palette. Now, create a new layer and drag it to the top of the Layers palette. Go Edit>Fill and copy these settings:

jedi 20070925 224920 May the Force be with you! Release your Jedi spirit!

Next, go Filter>Sketch>Halftone Pattern…Â and match these settings and click OK:Â

jedi 20070925 225023 May the Force be with you! Release your Jedi spirit!

Now, go Filter>Noise>Add Noise… and give it the settings shown below before clicking OK.

jedi 20070925 225118 May the Force be with you! Release your Jedi spirit!

Now, in the Layer palette change this layer’s blending mode from Normal to Screen. Go Layer>Create Clipping Mask and you’re Jedi is now a hologram! Help me Leo-Wan Laporti, you’re my only hope!

jedi 20070925 225212 May the Force be with you! Release your Jedi spirit!

May the Force be with you.

Adobe Photoshop Tip– Matrix Code Retooled

previous Adobe Photoshop Tip   Matrix Code Retooled

NEO: Whoa. Deja vu.
TRINITY: What did you just say?
NEO: Nothing. Just had a little deja vu.
TRINITY: What happened? What did you see?
NEO: A Matrix Code Tutorial on MacMerc.com and then I saw another that looked just like it.
TRINITY: How much like it? Was it the same tutorial?
NEO: It might have been. I’m not sure. What is it?
TRINITY: A deja vu is usually a glitch in the Tutorial. It happens when they change something.

Matrix Code Retooled Adobe Photoshop Tip   Matrix Code Retooled

NEO: Hm, upgrades.

Make Green Rain…

Unlike the Andy and Larry Wachowski, I prefer that sequels be an improvement upon the original. So in this Matrix code tutorial, unlike its predecessor, the code will consist entirely of actual text.

1. Download the Matrix Code Pattern unstuff it and remember where it is on your hard drive. (Full credit goes to Thomas W.Otto who developed the cut of the Matrix Code font that I used to make this pattern. Good job, TWO!!)

2. Start a new document (Command-N) in Adobe Photoshop: 5.25 x 7 inches, 300 pixels/inch, RGB, White Background. (Is there a significance to the 5.25 x 7 inch dimension? Not really. But it will be easier to follow along if you do what I do all the way through.)

3. Create a new layer and title it “Live Matrix Code”

4. Go Edit>Fill… and set the Content to Use Pattern, the Blending to Normal, the Opacity to 100% and uncheck the Preserve Transparency check box. Now click the thumbnail beside Custom Pattern. You should now see your entire collection of patterns…except the one you just downloaded. Click the button in the top right hand corner of this window to open the flyout menu and choose Load Patterns…

This will open up a Load dialog box. Now just navigate to where the Matrix Code Pattern.pat file you unstuffed resides to load it. Once it’s loaded, select it in the collection (it will be the last one on the list … hover the pointing finger cursor over the thumbnails to find the one titled “Matrix Code” if you want to be extra sure). Click OK.

01textgrid Adobe Photoshop Tip   Matrix Code Retooled5. Under the View menu choose Show>Grid and then under the same menu choose both Snap and Snap to>Grid. If your grid is set to the default, you should see that each character of the Matrix code fall in its own cell in the grid.

Now go into your Guides, Grid and Slices Preferences (Photoshop>Preferences>Guides, Grid and Slices) and change your Grid to Gridline every 0.16383 inches with 2 subdivisions. Now you’ll still see every character in its own cell, but that cell with be divided into 4 smaller cells by lighter lines.

6. Fill the Background Layer with black and turn off the Live Matrix Code layer by clicking in the eye next to it in the Layers palette.

7. Create a new layer between the Background layer and the Live Matrix Code layer called “Bright White Glow”

8. With Bright White Glow selected, Command-Click the Live Matrix Code layer to make a selection in the shape of the code. Fill that selection with white.

9. With the code shape selection still live and the Bright White Glow layer active, hit Shift-Command-I to inverse the selection and then apply a 3 pixel Gaussian Blur (Filter>Blur>Gaussian Blur). You can deselect now.

10. Now go to the Layer menu and choose Add Layer Mask>Hide All. Bye bye!

Don’t worry, we’ll bring it back in a minute.

02makebrush Adobe Photoshop Tip   Matrix Code Retooled11. Select the Background layer in the Layers palette and with the Rectangular Marquee tool make a selection anywhere on your image that follows the bold lines in the grid and envelopes a 2 x 2 group of cells. Now go Edit>Define Brush… and name your brush “Square”. Deselect.

12. Select the Brush tool and open the Brushes palette. Scroll down and select your newly created brush from the Brush Presets. Click “Brush Tip Shape” in the Brushes palette and reduce the Spacing to 1%. Click Color Dynamics and set the Foreground/Background Jitter Control to “Fade” at a value of 1200. In the Option bar, set the Painting Mode to Lighten

13. Click Bright White Glow’s layer mask in the Layers palette to make it active. Hit the D key to reset your foreground and background colors also.

14. Now you are going to place your brush onto the canvas and start painting the streams of falling code, one by one. But before you do, you need to perfect this sequence: Click…Shift…Push…Release…Release

  • Click and hold the brush in the center of one of the boldboxes of the grid where you want the lowest code character to be
  • Hold down the Shift button.
  • Push your mouse upward until the fade is complete
  • Release the mouse button
  • Release the Shift key.

Now try it. If you make a mistake, hit Command-Z. But make sure you get the pattern down—it’s the key to getting straight streams of code.

03coderain Adobe Photoshop Tip   Matrix Code Retooled15. Code away! Repeat step 14 and toggle the grid on and off to see what it looks like between strokes. (make sure the grid is visible and that Photoshop is set to snap to the grid when you actually paint the strokes though)

As a guideline try to put a string of code in almost every available column.

Avoid starting too many strings on or near the same row and, similarly, try not to have more than 3 strings in the same column. Go for an even but random dispersion of code.

Once you are satisfied with the code coverage proceed to Step 16.

16. Create a new layer above the Bright White Glow and name it Green Rain. (Keep the grid visible. I know it’s ugly, but hold tight.)

17. Change the foreground color to R:22, G:255, B:113. Command-Click the Live Matrix Code layer and the hit Option-Delete to fill the code shaped selection with green pixels on the Green Rain layer. Deselect.

18. Group the Green Rain layer to the Bright White Glow layer by hitting Command-G.

19. Now, with the Green Rain layer still active, Command-Click the layer mask of the Bright White Glow layer. Take the Rectangular Marquee tool and Shift-drag the selection upward. The grid will make the selection snap up to the next grid line. Let it snap up until it has moved up 2 small cells to the next bold gridline.

Go Layer>Add Layer Mask>Reveal Selection.

20. You can turn the grid off now.

04codefinal Adobe Photoshop Tip   Matrix Code Retooled

Add Dimension…

Just because I’m improving on my original is no reason to abandon what elevated the Simple Matrix Code tutorial above the other Vertical Grain filter based Matrix Code tutorials—depth.

21. With the Green Rain layer still active, hit Command-E to merge the grouped layers into one. Rename the merged layer “Green Rain 1″

22. Now go Layer>Remove Layer Mask>Apply.

23. Hit Command-Minus a couple of times and enlarge you window—we’ll need some room to move in a second.

05perspective Adobe Photoshop Tip   Matrix Code Retooled

24. Hit Command-T to activate the Transform function. Control-Click within the selection and choose Perspective. Grab the lower left transformation node and pull it to the left. Keep an eye on the Horizontal skew value as it changes in the Options bar and stop stretching when it reaches about 18°.

25. Make a duplicate of Green Rain 1 above the original and name it “Green Rain 2″

26. Flip Horizontal Green Rain 2

27. Hit Command-T again and at this point if you need to hold down the Shift key and drag Green Rain 2 left or right to make the angles look correct, do so.

06perspective2 Adobe Photoshop Tip   Matrix Code Retooled28. Hold down the Shift key and Green Rain 2 straight up about 1/7 of the total image height.

29. Control-Click within the selection and choose Perspective. Grab the lower left transformation node and pull it to the left. Stop stretching when the Horizontal skew value reaches about 9°.

30. Guess what? Make a duplicate of Green Rain 2 above the original and name it “Green Rain 3″

31. Flip Horizontal Green Rain 3

32. Hit Command-T again and at this point if you need to hold down the Shift key and drag Green Rain 3 left or right to make the angles look correct, do so.

33. Hold down the Shift key and Green Rain 2 straight up about 2/7 of the total image height.

34. Control-Click within the selection and choose Perspective. Grab the lower left transformation node and pull it to the left. Stop stretching when the Horizontal skew value reaches about 4.5°.

35. Click on Green Rain 1 in the Layers palette and set the Layer Opacity to 60%.

07radialblur Adobe Photoshop Tip   Matrix Code Retooled36. Go Filter>Blur>Radial Blur… Set the amount to 3, the Blur Method to Zoom and the Quality to Good. Also click and drag the Blur center to the bottom center of the window and click OK.

37. Click on Green Rain 2 and set the Layer Opacity to 80%. Then hit Command-F to apply the Radial blur to that layer also.

38. Also click on Green Rain 3 and hit Command-F to apply the Radial blur. No adjustment to the Layer Opacity here.

Add Scan Lines…

On other sites, the next 4 step would constitute a tutorial of their own. Here you get it as a finishing touch.

39. Create a new layer above Green Rain 3 and name it “Scan Lines” Set this layer’s blending mode to Overlay.

40. Go Edit>Fill… and set the Fill properties to 50% Gray, Normal, 100% and uncheck Preserve Transparency. Click OK. Don’t worry if you see no change—you’re not really supposed to yet.

41. Hit the D key to reset your foreground and background colors.

42. Go Filter>Sketch>Halftone Pattern… and adjust the setting to a Size of 1, a Contrast of 5 using a Line Pattern. Click OK.

43. Apply the same Radial Blur to the Scan Lines layer as you did to all the Green Rain layers.

44. Just go Layer>Flatten Image and you’re done.

08final Adobe Photoshop Tip   Matrix Code Retooled09closeup Adobe Photoshop Tip   Matrix Code Retooled

Adobe Photoshop Tip– Simple Transparent Desktop effect …without cheating

These shots are all over the internet right now: a person posts a digital photograph of their computer and the desktop picture displayed on the screen seems to mimic what is behind it so faithfully that it appears that the screen is actually transparent. There are several shots I’ve seen that are done so well that you’d swear that the photographer simply removed the LCD and top bezel of his PowerBook. But these people assure me that they have perfectly lined up these shots with no fakery…

finalshot Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

and I believe them.. because I can do it and so can you.

Here’s how I did it.

Step 1: Setting the scene:

First I arranged my shot pretty much the way I wanted it composed for the final image. Below you’ll see an image of what I was going for:

setuptheshot Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

You don’t need to take a picture of this step, I’m just illustrating the point.

I set the computer on the table along with all the tchotchkes that would later be visible on its desktop. I had my iPod docked behind my PowerBook, the lazy Susan with all my fine dining paraphernalia and my foofbag all set up. Then I mounted my camera on a sturdy tripod and framed up the shot in the LCD viewfinder. Once you start taking pictures for this effect, you cannot move the camera, the tripod or the lens (I moved my lens and as you see in the first pic, a few items don’t line up–learn from my mistakes).

After I got the shot framed up, I took the PowerBook out of the scene being careful not to move any of the other items on the table or the camera rig. Then I shot the first pic:

nocomputer Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

Yeah, pretty lame, I know.

Step 2: Put the PowerBook in the Action

Next, I returned the PowerBook to its previous position on the table and prepared to take its picture using the exact same settings as the picture I took without it. Why didn’t I just snap a pic while it was there before? Because, just like the camera and the tripod, once the PowerBook is in place, it must not move–not even a little. Okay, next slide!

withcomputer Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

Notice I connected the iPod dock connector cable to the PowerBook? I thought it would add a nice touch to the final image and, as long as I didn’t change the position of the cable where it passed behind the screen, it wouldn’t hurt the final product.

Step 3: Careful Maneuvering

In the next stage, I turned off the camera in order to safely access its memory card (you still cannot let the camera move at all) and insert it gently into the PC card adapter I have in my PowerBook (again, you cannot let the PowerBook move either). If you have the ability to do so and can stretch a cable from the camera to the Mac without moving either, you could connect your camera up directly ….I didn’t, but you could.

I opened the two shots I took in Photoshop (no, I’m not going to cheat). Focusing first on the “with PowerBook” shot, I went Select>All (Command-A) and then Edit>Copy (Command-C).

Then I switched my focus to the “without PowerBook” picture and went Edit>Paste (Command-V). Then I closed the “with PowerBook” shot …leaving it open would just tempt me to cheat.

layers Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

I grabbed the Crop tool and, in the Options bar at the top of the screen, I set the Width and Height values to my screen dimensions as represented in pixels and a resolution of 72 pixels per inch. If you’re not sure of your screen dimensions, open the Displays control panel in the System Preferences and you’ll find it there.

croppart1 Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

Then I clicked and dragged the crop tool over the screen of my PowerBook in the picture.

croppart2 Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

Once a preliminary crop area is on the canvas, Photoshop changes the Options bar a bit to give you other features. I clicked the Perspective setting to the “on” position.

croppart3 Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

With that setting in place I am able to drag the corners of the crop to the corners of my pictured PowerBook screen like so:

croppart4 Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

Now when I hit the Return key, Photoshop is going to process the crop selection I have made an distort it into being an image the exact width, height and resolution of my screen — a perfect desktop image! Go ahead and hit Return and watch the magic happen…well actually there’s not much magic to watch, because, at best, you’re looking at a squared up view of your own PowerBook screen. You’ll need to delete the top layer to reveal the cropped and straightened “background.” Here’s what I got.

finisheddesktop Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

Next, I saved this image I’d made to my desktop as a JPEG and quit Photoshop and opened the System Preferences to the Desktop & Screen Saver control panel and clicked the Desktop tab. I dragged the image I’d made from the desktop to the little preview window in the control panel and, voila!

desktopcp Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating

Step 4: The Final Shot

Then all I had to do was close all the windows on screen, eject the camera’s memory card from the PowerBook and place it in camera again. I powered up the camera and took the shot before I had any more opportunities to accidentally move something I shouldn’t.

Here’s that finished image again:

finalshot Adobe Photoshop Tip   Simple Transparent Desktop effect ...without cheating