Inkscape filters: applying to just the fill

Post questions on how to use or achieve an effect in Inkscape.
Erulisseuiin
Posts: 2
Joined: Fri Jul 02, 2010 7:09 am

Inkscape filters: applying to just the fill

Postby Erulisseuiin » Fri Jul 02, 2010 7:25 am

Is it possible to apply a filter (Noise fill) to only the fill of an object?

Ive been trying to get this to work using the filter editor to no avail I can't seem to make it work. Is there a way to limit where the filter is applied inside of an object?
At any rate filter tutorials seem to be a bit scarce among all of the inkscape tutorials. :mrgreen: It is quite an advanced tool, it feels like a switch board for a synthesizer, only with images

text11614.png
text11614.png (80.21 KiB) Viewed 2029 times

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Inkscape filters: applying to just the fill

Postby brynn » Fri Jul 02, 2010 3:36 pm

Welcome to InkscapeForum!
Yes, I know what you mean about the Filter Editor. It is NOT easy to pick up, without help.
As for your problem though, there is a simple answer. Make a duplicate of the shape you want to fill with a filter. Fill the duplicate with the filter. Enlarge the original by whatever width you want for a stroke, and fill that enlarged original with whatever color you want for the stroke. This creates a sort of fake stroke!

OR duplicate the shape that you want to fill with filter. Remove the stroke from the duplicate. Remove the fill from the original, leaving its stroke intact. Move the duplicate below the original (in z-order).

Something tells me that I haven't answered your question, because I see that you have successfully illustrated what you want.....??

I don't know of a way to create a filter which appears to have a stroke or border. But I think there probably IS a way to do it.

Erulisseuiin
Posts: 2
Joined: Fri Jul 02, 2010 7:09 am

Re: Inkscape filters: applying to just the fill

Postby Erulisseuiin » Fri Jul 02, 2010 11:59 pm

:) Yeah, the method you suggest was the method i used for the illustration.

My guess, is to somehow use a Composite effect to limit the filter to the object fill. That however it proving to be difficult to attain.

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Inkscape filters: applying to just the fill

Postby ~suv » Mon Jul 05, 2010 12:37 am

Erulisseuiin wrote:Is there a way to limit where the filter is applied inside of an object?

The SVG 1.1 specification for Filter Effects lists 'FillPaint' and 'StrokePaint' as valid input sources for filter primitives, however to my knowledge this has not yet been fully implemented in Inkscape (see Noteworthy things that don't work).

vwanweb
Posts: 169
Joined: Sun Jun 06, 2010 1:48 pm

Re: Inkscape filters: applying to just the fill

Postby vwanweb » Mon Jul 05, 2010 9:44 pm

possible work around, easier than you think

1. Remove the stroke of the item you want to apply a >FILTER to and Copy it to the Clipboard (Ctrl+C), we'll use the clipboard later.
2. Apply the Filter of Choice
2a. Depending on the Filter the edges of your creation maybe fuzzy and NOT CRISP. To fix this simply >Edit > Paste In Place (Ctrl+Alt+V).
2b. Now select both the pasted unfiltered copy and the filtered object (depending on the filter the bounding box maybe extremely larger than what is rendered on your screen) and use >Object >Set >Clip... this will give you clean edges.
3. Stroke Impostor, >Edit >Paste in Place again and Lower the copy in the Z-order (>Object>Lower or PgDn).
4. Use Dynamic Offset >Path >Dynamic Offset (Ctrl+J) increase the offset beyond the border of your clipped (+filtered) object and set the FILL (Ctrl+Shift+F) to the color of choice.. Stroke Impostor reporting as ordered Sir!

While this is not the optimum way of dealing with any corner nodes in your creation it does work extremely well for creations that have no sharp corners to them..

Draw Freely!


Return to “Help with using Inkscape”