HOME | DD

liamwhite1 — Mini-Tutorial: Shadows by-sa

Published: 2013-12-14 02:56:52 +0000 UTC; Views: 3820; Favourites: 37; Downloads: 33
Redirect to original
Description For...uh...Inkscape.
Related content
Comments: 7

LeonTheOriginal [2013-12-18 22:07:46 +0000 UTC]

Is there are a specific reason you are using masking instead of clipping? I did some tests and the difference between both methots were quite small with light shadows (opacity <30%), but with very dark shadows the masking method may cause a very flat look and strange glowing colors, where clipping produces a more natural looking result.

👍: 0 ⏩: 2

liamwhite1 In reply to LeonTheOriginal [2014-01-09 04:08:25 +0000 UTC]

I'VE FOUND THE SOLUTION!!! Um, maybe you'll want to read the original first. It's been a while.
On the object that you are going to set as the mask for the shadow, change all of its strokes and fills to pure white, and then the results will look good after the mask is applied
(Set it to pure black, and you'll see nothing. It's in the details of how masks work. )

👍: 0 ⏩: 1

LeonTheOriginal In reply to liamwhite1 [2014-01-09 17:48:06 +0000 UTC]

That's funny. I had a similar idea a while ago, but I didn't try it. For the moment that seems to be the best solution.
Btw: Ponyscape and the development version of regular Inkscape seem to have this issue fixed.
(I also seems that both Firefox (from version 4 till now) and Chrome have issues not only with multiple/nested clipping, but also in general with using a group as clipping path)

👍: 0 ⏩: 1

liamwhite1 In reply to LeonTheOriginal [2014-01-09 19:47:20 +0000 UTC]

Clipping the object with a group, for me, leaves a slight gap on the outside strokes. Granted, it could be hidden (by relayering), but then, it wouldn't really be show-accurate anymore (although it would still look okay, I guess)

👍: 0 ⏩: 0

liamwhite1 In reply to LeonTheOriginal [2013-12-19 00:45:19 +0000 UTC]

Because this
sta.sh/01xa7mvd0515

I get very strange results when using clipping instead of masking.
And yes, darker than 50% opacity (127/255) results in strange colors. I would add another shadow with no blur that covers the entire shape beneath, mask it, and then do the regular shadow with the blur.

👍: 0 ⏩: 1

LeonTheOriginal In reply to liamwhite1 [2013-12-19 14:41:53 +0000 UTC]

Ok, that makes sense. Inkscape (0.48) seems have issues if you apply clipped objects as a clipping path.

👍: 0 ⏩: 1

liamwhite1 In reply to LeonTheOriginal [2013-12-19 21:03:06 +0000 UTC]

I think that's part of the SVG spec as far as I know; it's not just Inkscape, because Illustrator runs into a similar issue.

👍: 0 ⏩: 0