ofn-manual-stipple - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: ofn-manual-stipple (/Thread-ofn-manual-stipple) |
ofn-manual-stipple - Ofnuts - 09-02-2021 This plugins tries to emulate someone hammering a pen on a paper to create hand-made stippling. Basically it converts a luminance map into random paintbrush strokes: [attachment=6642]
At its worst is can generate lo-fi version of photographs, but the smallest visible detail is around 20x larger than the brush size and it requires a lot of preliminary tweaking: [attachment=6641]
As usual it can be found here. Enjoy. PS: Old timers will notice some likeness with RobA's "Random Density Map" script. Actually the ideas are similar. The main differences are:
RE: ofn-manual-stipple - denzjos - 09-06-2021 A little test with the ofn-manual-stippling plugin with a layer with a color picture and a white layer. Settings on the plugin : Brush coverage 80 / Gamma tweak 05 / Jitter 1). Then set the layer mode from the result on 'Dodge'. [attachment=6663] RE: ofn-manual-stipple - RobA - 12-23-2022 (09-02-2021, 08:00 PM)Ofnuts Wrote: PS: Old timers will notice some likeness with RobA's "Random Density Map" script. Actually the ideas are similar. The main differences are... Hiya Ofnuts! Long time no see! Joined the forum here just to post as I'm getting back into the world of Gimp. Even though my "Random Density Map" script is still working under 2.10 it is tremendously slow. As I'm still trying to figure out python, I decided to modify this plugin to add a brush spacing parameter (which I succeeded at!) Many of the brushes I use are .gbr's that don't fill the entire brush area as returned by pdb.gimp_context_get_brush_size(), so I need the spacing to be adjusted by 50% or so. This (of course) also required an adjustment to the jitter calculation, and also needed changing the jitter input slider to "tenths" rather than "ones". Attached is an example of the map, with the default (100%) spacing which is what the plugin did originally, set to 50% spacing, and lastly with reduced spacing and jitter, showing how I use it with my brushes to quickly create dense forest areas having individual trees.... [attachment=9186] If interested, I'd be happy to provide my hack if you want to update your code. P.S. I tried to leverage your OFN_DEBUG and debug trace code but your original plugin would just throw errors with that flag on, so I obviously had no idea what I was doing or how to use it properly... P.P.S. Is this where all the cool gimp kids hang out now? Cheers! -RobA> RE: ofn-manual-stipple - Ofnuts - 12-23-2022 (12-23-2022, 03:13 AM)RobA Wrote:(09-02-2021, 08:00 PM)Ofnuts Wrote: PS: Old timers will notice some likeness with RobA's "Random Density Map" script. Actually the ideas are similar. The main differences are...
RE: ofn-manual-stipple - RobA - 12-24-2022 (12-23-2022, 08:56 PM)Ofnuts Wrote: That was a great suggestion but it does pose a bit of a pickle... If I just use: Code: self.brushSpacing=float(pdb.gimp_context_get_brush_spacing()) and it works the way I like (i.e. the stipple pattern will be at the spacing you get if you draw with the paintbrush so you can actual test the stipple spacing by just stroking a straight line) but this is counter-intutive to the current operation as the plugin spaces based on the brush size (i.e. 100% spacing). The issue is that brushes that aren't intended to be "stamps" will have a fractional spacing by default so they stoke smoothly. So this would require users to manually change the spacing of the brush before running the plugin. Alternately, I can use this: Code: self.brushSpacing=float(pdb.gimp_context_get_brush_spacing()/pdb.gimp_brush_get_spacing(pdb.gimp_context_get_brush())*100.) to still allow the user to change the spacing of the stipple by using the ratio of the currently set spacing over the brush's default spacing. So selecting a brush and using the default spacing will place the stipples with a spacing equal to the brush size. To space the stipples closer or further together the user will have to select a spacing smaller or larger than the default spacing for the brush, and knowing what that will result in is somewhat counter-intuitive... Any thoughts on the preferred option? -RobA> RE: ofn-manual-stipple - Ofnuts - 12-25-2022 Second look:
|