Hi all,
I'm using Photoshop CS6, but I've confirmed that this happens on CS4, CS5 and CS5.1 too.
When I create a shape (say a simple triangle or such, using the various Shape tools), then apply a large (40px) Stroke Layer Effect to it, the corners of the stroke aren't smooth - they're stepped/jagged. There's a screenshot of what's happening here: http://img.ly/images/4424013/full
Note how the corners of the stroke aren't perfectly curved, but are made up of noticeable straight lines. The document you're seeing is being viewed at 100%, by the way. The stroke is set to Outside, and is 40px in size.
I'm aware of the new native strokes for vector shapes in CS6, and they don't have the problem, but in a certain project I need to combine both the native vector strokes and also the stroke layer effect, so I can't simply use the native strokes instead.
I'm also aware that I could use an Illustrator Smart Object with a pre-applied stroke, but that doesn't address whether this behaviour in Photoshop is broken or not.
It's been suggested to me that this problem arises because Photoshop applies the stroke layer effect to the rendered bitmap of the layer, not to the vector shape itself, and that's why the problem has persisted for several versions of CS.
Is this considered a bug? Is it likely to go away? Is there a workaround, bearing in mind that I require to use both native vector strokes and the stroke layer effect simultaneously on a layer?
Thanks,
-Matt
Not a expert on this technique but it seems like you are up against image resoultion and size of brush that creates the stair step bend at corners. If you have the choice of using an anti-aliased line it could smooth out the stair step effect.
Can you use a smaller brush on the corners to mask that effect?
Hi Curt,
Are you perhaps coming from Illustrator? In Photoshop, there are no brush options associated with the Stroke Layer Effect. Similarly, the line doesn't need to be antialiased because it's a vector path, not a bitmap.
If I've been missing some brush options for the Stroke Layer Effect all these years, I'd love to know about it. ![]()
-Matt
Ok, as far as I know there is no way of making the layer style stroke always "fair" for wide strokes. There may be a chance of a workaround that someone could suggest if you give us an example of exactly what you are trying to achieve. The image you provided in your original post does not show a vector stroke. A description and a pixels/inch spec would be useful.
Paulo
Hi Paulo,
Thanks for the replies. The actual task is to recreate purely in Photoshop a logo that was previously drawn in Illustrator, then imported as a Smart Object. It's essentially just two open paths (actually three, due to the layering) in the form of partial sine waves. Here's a screenshot:
The sine waves are just open paths, with native CS6 vector strokes applied (the light blue and light grey colours). I then use a Stroke Layer Effect on top of the native vector strokes, to add the thick dark-grey outlines. As you can see, the Stroke Layer Effects suffer from the stepping problem I was talking about. There's also finally a light grey fuzzy Outer Glow Layer Effect added, for visual contrast here.
A solution would of course be to redraw the sine waves not as simple open paths, but as fully two-dimensional closed shapes, and then apply a native vector stroke to those shapes. I was just curious as to whether it was possible to do it with pure paths, since PS CS6's combination of vector strokes and Stroke Layer Effects implied that it was possible (and I still think it should be).
Cheers,
-Matt
1. I used the pen tool to trace the path (open) of your sine curve.
2. I then selected a brush tool and stroked the path using the appropriate icon at the bottom of the path panel - it could be any style/color brush you want.
3. I then did a layer style for the light gray outer glow.
One should be able to minimize the artifacts by having a larger pixel count document.
Paulo
PS: what might worry me more than the slight stepping at the top/bottom-outside is the pointed artifact at the top/bottom-inside of the sine stroke.
Redrawing one of the waves as a closed path, then creating a colored shape, then duplicating that isn't too hard. It's clear, though, that the outside stroke is, as you say, a bit rough around the outer edges of the curves.
Walking in your footsteps, I came up with this quick rendition:
http://Noel.ProDigitalSoftware.com/ForumPosts/LogoRedrawn.zip
Sure seems like Stroke brush spacing really ought to be controllable somehow, to allow you to smooth things out.
I need to think on this some more... Maybe the answer is to redraw both the inside and outside edges.
-Noel
Hi Paulo,
Great idea with stroking the path with a brush - but am I right in saying that such a stroke draws pixels, rather than preserving the resizability/editability of the stroke? I should have said that I'll be using this logo at a number of sizes, including much larger than the preview I shared earlier. That was my motivation for using open paths and native strokes in the first place!
I really appreciate your time.
-Matt
Yes, those are pixels. The basic path(s), however remains vector and can be changed (Transform Path) to any size desired and then restroked.
Paulo
PS: You can also consider making your document pixel count large enough that even at it max print size you have 300 ppi. Then from that master document you can create various size prints.
Matt Gemmell wrote:
Hi Noel,
I've been thinking that I'll probably have to just redraw the curves as full, closed shapes, then apply a vector stroke for the dark-grey outline. Can't find any way to control the nature of the Stroke Layer Effect.
-Matt
Exactly what I did in the PSD I posted above, and you're right, they can't be made smooth.
Here's one doing what I said - stroking the path with a thick gray brush at Spacing:1. Note that this generates a layer of pixels, so I did it at an upsampled resolution.
http://Noel.ProDigitalSoftware.com/ForumPosts/LogoRedrawnSmoothOuterSt roke.zip
Here's what it looks like:
-Noel
Matt Gemmell wrote:
Hi Noel,
I've been thinking that I'll probably have to just redraw the curves as full, closed shapes, then apply a vector stroke for the dark-grey outline. Can't find any way to control the nature of the Stroke Layer Effect.
-Matt
Glad you found an approach that works for you. If I were working with these curves I would probably stick with the open paths, though Noel's closed path approach certainly works. The curves would be easier to reshape if you changed you mind about the geometry at some point. I would use the open path and three separate strokes of the path. I've done this on a sample with a path drawn on a document created with File >New>US Paper, so it is a high res document. After I created the full size curve I then Merged the layers, duplicated and scaled it down three times. Looks good to me at all sizes,
Paulo
North America
Europe, Middle East and Africa
Asia Pacific