Levels

Adobe Photoshop Tip– Simple Matrix Code

Also check out the sequel to this tutorial: The Matrix Code Retooled. It’s a much improved version of the Matrix raining code effect using actual type just like in the films.

bookend1 Adobe Photoshop Tip   Simple Matrix Code

I know why you’re here. I know what you’ve been doing… why you hardly sleep, why you live alone, and why night after night, you sit by your computer. You’re looking for this. I know because I was once looking for the same thing. And when it found me, I realized I wasn’t really looking for it. I was looking for an answer. It’s the question. It’s the question that drives us. It’s the question that brought you here. You know the question, just as I did.

“How do I make that funky green raining code that you see in the Matrix, the Matrix Reloaded and the Matrix Revolutions?”

The answer is right there, and it’s looking for you, and it will find you if you want it to…okay, it won’t really…never mind…here’s the tutorial:

I’m starting with a 5″ square canvas at 300ppi filled with black in RGB mode. We’re going to have at least 4 layers of code that will give our image depth. The first layer (the layer furthest back) will consist of steps that will be used throughout this tutorial. We shall call these steps “the Recipe” Here we go:

Background Layer: Green Rain – Downpour

Using the Background layer, follow the steps of the recipe as described here:

The Recipe
  1. Go Filter > Texture > Grain*. Use a setting of 100 Intensity, 100 Contrast on a Vertical Grain Type and click OK.
    Picture 1 Adobe Photoshop Tip   Simple Matrix Code

    * the Grain Filter is one of those Photoshop filters that produces new and different patterns and distributions of its effect each time you use it. So don’t try to be clever and skip steps by duplicating previously rendered layers. There is a difference between knowing the path and walking the path.
  2. Now go Filter > Other > Maximum. Use a setting of 1 Pixel and click OK.
    Picture 2 Adobe Photoshop Tip   Simple Matrix Code
  3. Next go Filter > Stylize > Glowing Edges adjust the setting to be an Edge Width of 1, Edge Brightness of 5 and a Smoothness setting of 1. Click OK.
    Picture 3 Adobe Photoshop Tip   Simple Matrix Code

Then bring up the Levels Adjustment window (Command-L) and set the Output Levels (the two fields below the histogram) to 0 and 80 and click OK.

Layer 1: Green Rain – Intermittent showers

Picture 4 Adobe Photoshop Tip   Simple Matrix Code

Make a new layer filled with black on top of the first. Apply the Grain effect from step 1 of the Recipe. Now scale this new layer by hitting Command-T and entering a value of 200% in the width and height fields before applying the scale.

Go ahead and complete steps 2 and 3 of the Recipe on this layer.

Add a layer mask to this layer (Layer > Add Layer Mask > Reveal All) and click on the Quick Mask Mode button in the Tools palette.

Choose Filter > Render > Clouds.

Now go Image > Adjustments > Threshold. Set the threshold to 140 and click OK.

Go Filter > Stylize > Wind. Set the Wind filter to “Wind” and “From the Right” and click OK. Hit Command-F 3 times to apply this Wind effect several more times.

Apply a Motion Blur of 10 pixels at 90? (Filter > Blur > Motion Blur) to smudge the wind lines a little.

Go Edit > Transform > Rotate 90? CCW.

Exit Quick Mask Mode by clicking the Standard Mode button in the Tools palette.

Click on the thumbnail on your layer’s mask in the Layers palette and then hit delete to mask out the “Cloudy-Windy texture” you’ve created.

Deselect All (Command-D)

With the mask thumbnail still selected bring up the Levels Adjustment window (Command-L) and set the three fields above the histogram to 0, 0.10, and 255 and click OK.

Set the Blending Mode of this layer to Screen.

Layer 2: Green Rain – Raining Cats and Dogs

Picture 5 Adobe Photoshop Tip   Simple Matrix Code

Make another new layer filled with black on top of the other two. Apply the Grain effect from step 1 of the Recipe. Scale this layer as you did with Layer 1, only this time crank it up to 500%.

Because of all the scaling we’ve done, there is a lot of image data that resides beyond the confines of the Canvas and any filters we apply will have to render across this unseen image area. So to save time in applying filters, we’re going to crop off this extra image data. Select All (Command-A) and go Image > Crop the hit Command-D to deselect again.

Apply a Threshold (you remember Threshold from Layer 1) of 128 to this layer

Apply steps 2 and 3 from the the Recipe, but when you get to step 3, use an Edge Width of 2 on the Glowing Edges filter.

Add a Layer Mask to this layer also and, with the layer’s mask thumbnail selected, apply the Clouds filter and then adjust the Levels to 70, 1.00, 190 for the Input Levels and set the Output fields to 0 & 150.

Set the Blending Mode of this layer to Screen.

Layer 3+: Green Rain – Enter the Code

Picture 6 Adobe Photoshop Tip   Simple Matrix Code

The previous layers have all been less detailed background representations of the text based code that runs through the Matrix. In this section we will be adding text layers to more accurately represent the code.

Select the Vertical Type Tool (in the Tools palette, click and hold on the Type Tool to reveal the Vertical Type Tool). Set the font to Courier (or a mono spaced font of your choosing), set the type size to 9pt, the alignment to “Top Align Text”, and the color to white. Hit the Caps Lock key on your keyboard and type something…anything…be it nonsense or subliminal messages.

Once you’ve typed a few characters, highlight them all, open the Character palette and set the tracking to -150.

Once you have a single vertical line of text (it doesn’t have to stretch from the top to the bottom ó it’s actually better if it floats in the middle a bit). When you’re done typing, click the Gradient Tool and then add a layer mask (Reveal All again). With the Gradient options set to the standard “White to Black”, Normal mode, 100% Opacity settings, click the mouse down on the baseline of the letter second from the bottom of you line of “code” and drag it straight up, releasing your mouse button somewhere slightly beyond the height of the topmost letter.

Repeat this process by creating a few more Vertical Text strings…not too many…just more. You can even Option-Drag your completed code strings to replicate them in various parts of your image.

Final Layer: Adjusting to the Green

Picture 7 Adobe Photoshop Tip   Simple Matrix Code

Create a Hue/Saturation Adjustment Layer (Layer > New Adjustment Layer > Hue/Saturation) above all your other layers. Set the Hue/Saturation Adjustment Layer to Colorize with settings of 146 Hue, 55 Saturation and -37 Lightness.

Well, there you go that’s it for another Graphics Tip. Stay tuned to MacMerc.com… you never know when we’re gonna bring you another one.

bookend2 Adobe Photoshop Tip   Simple Matrix Code

Also check out the sequel to this tutorial: The Matrix Code Retooled. It’s a much improved version of the Matrix raining code effect using actual type just like in the films.

Adobe Photoshop Tip– The Frank Miller Sin City Effect

Let me start by admitting that I’m going back to the well on this one, but not so much so that it doesn’t warrant it’s own tutorial. I’ll be using the Adobe Photoshop CS3 Beta for this but you can use anything from Photoshop CS on up.

The effect detailed below attempts to capture the look of the Frank Miller graphic novel series “Sin City” and, to some extent, the film (and soon to be “films”) based on it. The most important element of this project is the photograph; if you start with a bad image, you’ll end up with another bad image at the end of all this. It should probably be something very dark with the subject of the image harshly lit.

I’ll be using these two I bought off of iStockphoto.com. I’m going to show them side-by-side throughout the whole process as one image is much better suited for this effect than the other.

knife01 Adobe Photoshop Tip   The Frank Miller Sin City Effect gun01 Adobe Photoshop Tip   The Frank Miller Sin City Effect

Step 1: Get inky

Start by duplicating your Background layer in the Layers Palette.

Reset your Foreground and Background colors. (Tap the D key on your keyboard)

Go Filter>Sketch>Stamp… Set the Light/Dark Balance to 8 and the Smoothness to 10. (If your image isn’t as dark and contrasty as it should be, you may have to modify the numbers here. I’ve used 10 and 7 on the picture on the right for this reason) Click OK.

knife02 Adobe Photoshop Tip   The Frank Miller Sin City Effectgun02 Adobe Photoshop Tip   The Frank Miller Sin City Effect

Go Filter>Artistic>Cutout and use settings of 2 for the Number of Levels, and Edge Simplicity of 0, and an Edge Fidelity of 1. Click OK .

Go Image>Adjustments>Threshold and punch in a value of 128 (to get rid of any gray areas). Click OK.

Go Filter>Stylize>Diffuse and use “Anisotropic.” Click OK.

Duplicate the Background layer again and bring the new duplicate to the top of the Layers Palette.

Go Filter>Artistic>Poster Edges and use a setting of 10 for Edge Thickness, 3 for Edge Intensity, and 6 for Posterization. Click OK.

Go Image>Adjustments>Threshold and punch in a value of 25. Click OK.

Go Filter>Artistic>Cutout and use settings of 2 for the Number of Levels, and Edge Simplicity of 3, and an Edge Fidelity of 1. Click OK.

Go Image>Adjustments>Threshold and punch in a value of 128. Click OK.

Go Filter>Stylize>Diffuse and use “Anisotropic.” Click OK.

Set this layer’s Blending Mode to Multiply.

knife03 Adobe Photoshop Tip   The Frank Miller Sin City Effectgun03 Adobe Photoshop Tip   The Frank Miller Sin City Effect

Step 2: See Red

Okay, it really doesn’t have to be red–it could be yellow. Let me explain; traditionally, Frank Miller’s Sin City contained images of stark contrast peppered with the occasional splash one signature color. In the books in my collection, he only used red or yellow… but this is your image, do what you want.

Create a new layer on top of the Layers Palette and set its Blending Mode to Multiply.

Using the Brush tool and one vivid color from the Swatches Palette, paint in a little something in your image–something significant.

knife04 Adobe Photoshop Tip   The Frank Miller Sin City Effectgun04 Adobe Photoshop Tip   The Frank Miller Sin City Effect

Step 3: Looks Like Rain

Reset your Foreground and Background colors. (Tap the D key on your keyboard)

Create a new layer on top of all the others an fill it with a color…any color …doesn’t matter …it’ll be gone in a minute.

Set this layer’s Blending Mode to Lighten in the Layers Palette.

Go Filter>Render>Fibers… and enter in a Variance of 10 and and a Strength of 64. Click OK.

Go Image>Adjustments>Threshold and plug in 190. Click OK.

Create a selection with the Rectangular Marquee Tool somewhere in the middle of the fibers. You see, we want some rain but the Fibers filter on its own ends up looking like brushed metal. Select an area that we can blow up to make the rain for the whole image.

knife05 Adobe Photoshop Tip   The Frank Miller Sin City Effectgun05 Adobe Photoshop Tip   The Frank Miller Sin City Effect

Transform (Command-D) the selected area and drag the Transform box corner handles out to the edge of the image. Hit Enter when you’re done.

Go Filter>Artistic>Cutout and use settings of 2 for the Number of Levels, and Edge Simplicity of 8, and an Edge Fidelity of 1. Click OK.

Go Image>Adjustments>Threshold and punch in a value of 128 (to get rid of any gray areas). Click OK.

Go Filter>Stylize>Diffuse and use “Anisotropic.” Click OK.

We’re going to transform the rain again. So choose Edit>Transform>Distort. We want to scale up the rain again (since the Cutout Filter has a nasty habit of making the rain look like it starts and finishes well within the frame of our image), but we want to give it some drama. So, first drag each of the Transform box corner handles out beyond the edge of the image, then pull the lower corner handles well away from each other (somewhat unevenly, I might add) to create dramatic perspective. Hit Enter when you’re done.

knife06 Adobe Photoshop Tip   The Frank Miller Sin City Effect

gun06 Adobe Photoshop Tip   The Frank Miller Sin City Effect

Now, you see how the second image–the one of the guy holding the gun–does not work so well? I mean, it’s okay…but the source image is key here.

I hope you have fun with this effect.

–Rick

Adobe Photoshop Elements Tip– Comic Art Effect

Okay, so we said we’d never do this, but here it is: one of our tutorials translated for Adobe Photoshop Elements 3.0. I don’t think this is going to become the norm or anything–most of our tutorials rely heavily on Channel operations (ChOps) and Layer Masks and those are not simple to get around with Elements.

That said, what follows is an Adobe Photoshop Elements version of our Comic Art Effect tutorial. It might be more accurate to say that this is a version of the Comic Art Effect Action we released a while back that has been explained in Adobe Photoshop Elements terms.

Anyway, on with the tutorial…


Hey man, if somebody takes a picture of something and then you get Photoshop Elements 3 to draw the same thing right on top of it, only going outside the designated original art to make it looks somewhat comic book like, what do call that? I call it my latest tutorial!

Use this baby to convert your digital pictures and scans into comic book style illustrations. Nothing can take the place of talent …except for maybe a relative who works high up in the business…but this tutorial will get the idea across without requiring any artistic talent at all.


Disclaimers, conditions and preparations

Start with a good, flattened, high resolution RGB image–at least a 5″ by 3″ image at 300ppi–that you’ve color corrected and sharpened. If the image is bad, the result of this tutorial will also be bad–I can’t stress this enough.

The color and richness of the image is actually more important than the resolution. If your resolution is below 5″ by 3″ image at 300ppi, go into Image>Resize>Image Size… and increase the resolution and image size (make sure Resample Image is checked). This tutorial only uses the image as a guideline but requires a lot of pixels to draw the result nicely. Now, let me tell you, this is the only time it is alright to up-sample a low resolution picture to pass as a high resolution image.

If you’re ready, let’s get started…

Step 1: Tone

ComicElementsStart Adobe Photoshop Elements Tip   Comic Art EffectWith your image open in Elements, open up the Layers palette if it isn’t already and duplicate the Background layer. Name this new layer “Tone”

We’re about to do some things that may make you wonder if I know what I’m doing. Well, I wonder some times too. But trust me for now. Go to Filter>Artistic>Poster Edges… and plug in a value of 0 for Edge Thickness, 0 for Edge Intensity and 1 for Posterization and click OK. Not bad.

Now go Filter>Artistic>Cutout… and set the Number of Levels to 4, the Edge Simplicity to 3 and the Edge Fidelity to 2 and click OK. (Extra points if you do both filters in one go from the Filter Gallery) Scared now? Here’s what mine looks like…

ComicElementsMidTone Adobe Photoshop Elements Tip   Comic Art Effect

Now go Filter>Blur>Smart Blur… and use a Radius setting of 6.0, a Threshold of 80.0, set the Quality to High and the Mode to Normal and hit OK.

Adjust the Levels by going Enhance>Adjust Lighting>Levels… and enter input values of 62, 0.6 and 255 and output levels of 100 and 255 (see below).

ComicElementsToneLevels Adobe Photoshop Elements Tip   Comic Art Effect

Finish off the Tone layer by going Filter>Adjustments>Posterize… and apply a value of 6

ComicElementsTone Adobe Photoshop Elements Tip   Comic Art EffectI know. It might not look promising, but it will improve. Actually, this layer will set the tonal foundation for our color, but not the color itself. I could have made tone and color on one layer, but I had inconsistent results and this method provides greater control…which you’ll see later.

Step 2: Color

Duplicate the Background layer and drag it to the top of the layers currently listed in the Layers palette. Name this new layer “Color” and set its Blending Mode to “Color” Since this layer is only here to add back the color of the original photo to the tonal map we created in Step 2, we really don’t need any of the detail in the shot, just the color.

Go Filter>Noise>Dust & Scratches and set the Radius to 10 pixels and the Threshold to 0 levels.

ComicElementsColor Adobe Photoshop Elements Tip   Comic Art EffectThis has brought back the natural color of the image back into our effect…which would be fine…if we were going for a “natural” look. But we’re not. The kind of comics this effect has been created to emulate are those from the first early years when the colors were almost entirely homogenous and extremely vibrant.

Go Enhance>Adjustment Color>Adjust Hue/Saturation… and leave the Hue at 0 but bump the Saturation up to 80 and the Lightness to 50 (the Colorize setting should remain unchecked).

Step 3: Dot Screen

In the original Photoshop tutorial, this step was added at the end. I thought I might as well add the layers on in order rather than telling you to shoehorn a layer between previous layers later on. Too confusing …you’re probably confused wondering what I’m talking about. Never mind. Forget I said anything.

I really don’t like applying filters to an image unless I leave myself a way out. Using layers is the best way I know to do this. So to add the dot screen effect to finish up the color layers of this image we’re going to create a new layer on top of all the current ones and name it “Dot Screen”

Go Edit>Fill Layer… set the Contents to Use: 50% Gray and the Blending to Mode: Normal, Opacity: 100% and leave Preserve Transparency unchecked. Click OK.

Then go Filter>Pixelate>Color Halftone… use all of the default settings except change the Max Radius to 4 pixels and click OK.

ComicElementsDotScreen Adobe Photoshop Elements Tip   Comic Art EffectNow
set the Blending Mode of the Dot Screen layer to “Overlay.” Don’t be alarmed if the dot screen effect comes out looking a little “plaid”, it’s an optical illusion kinda thing called a “moiré“ (pronounced “mô- ray’”)In this case the conflicting screens are the one in the effect and the one you’re looking at it on–your monitor. Zoom in and out and the moiré will change and dissipate. It’s not really anything to worry about.

Next we’ll get some ink to define these characters.

Step 4: Ink 1

Duplicate the Background layer once more and drag it to the top of all the layers currently listed in the Layers palette. Name this layer “Ink 1″ and set its Blending Mode to “Multiply” This layer’s sole purpose is to keep the shadows black. That’s it.

Go Filter>Adjustments>Threshold… and give it a setting of 25 and click OK.

Now if you take a look at the edges of black areas this effect produces, you’ll notice that they’re very rough and pixelated and look nothing like the ink strokes in a comic book. The ink in the old comics was laid down with a brush or a pen and gave a very smooth look. We’re going to try to achieve a bit of that now…

ComicElementsInk1 Adobe Photoshop Elements Tip   Comic Art EffectGo
Filter>Stylize>Diffuse and click the radio button beside the word Anisotropic before clicking OK.

Now go Filter>Artistic>Cutout… and set the Number of Levels to 2, the Edge Simplicity to 4 and the Edge Fidelity to 1 and click OK.

Finish off the layer by returning to Filter>Adjustments>Threshold… and drop in a value of 128.

Step 5: Ink 2

Guess what? You’re going to duplicate the Background layer again and drag it to the top of all the layers currently listed in the Layers palette again. This time, name this layer “Ink 2″ and set its Blending Mode to “Multiply” This layer will draw the detail back in our image.

It is very important that you reset your Foreground and Background colors to default before proceeding, so hit the D key before it’s too late!!

Go Filter>Sketch>Photocopy…and use these settings: Detail of 12 and Darkness of 15 and then click OK.

Now, that has probably added a bit too much detail and schmutz to the image, so we’ll tone it down in some places and strengthen the good details in the process.

Go Filter>Adjustments>Threshold… give it 60 and click OK.

We’re going to run the Anisotropic Diffuse here too… go Filter>Stylize>Diffuse and select Anisotropic before clicking OK.

Still probably too much schmutz… We’ll go back to the Cutout filter again…
Go Filter>Artistic>Cutout… and set the Number of Levels to 2, the Edge Simplicity to 4 and the Edge Fidelity to 1 and click OK. Then go Filter>Adjustments>Threshold… and drop in a value of 128.

ComicElementsInk2 Adobe Photoshop Elements Tip   Comic Art Effect

Not bad, but the thing I really like about comic book art is those brush strokes in the shadows. You know what I mean? They’re almost like a woodcut effect and they add shadow while also defining the curvature and shape of the object they shade. There is no way to faithfully duplicate what only God-given talent and years of practice can produce, but I’ll do my best…

Step 6: Ink 3

Now this is where the path of the original tutorial and this one really diverge. In the original tutorial the effect of the comic book brush stroke shading was achieved through a layer mask and a displacement mask. And though Elements can handle displacement masks, the processes of removing the areas that…well…it was gonna get too hard to follow. So I decided to simplify a bit. Here goes…

Forgive me if this is getting tiresome but, duplicate the Background layer and drag it to the top of all the layers currently listed in the Layers palette. Name this layer “Ink 3″ and set its Blending Mode to “Multiply”

Now head over to Filter>Sketch>Halftone Pattern… set the Size to 2, the contrast to 25 and use the “Line” Pattern type. Click OK.

Remember the Threshold Filter? Go Filter>Adjustments>Threshold… give it 10 and click OK.

All that’s left is to apply the good old Anisotropic Diffuse and “marvel” at your creation.

That’s it true believers! Nuff said! …Excelsior!!

ComicElementsFinal Adobe Photoshop Elements Tip   Comic Art Effect