Gimp-Forum.net
Brush Settings When Stroking Path - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Brush Settings When Stroking Path (/Thread-Brush-Settings-When-Stroking-Path)

Pages: 1 2 3


Brush Settings When Stroking Path - rickk - 10-05-2022

On the linked image, the top graphic is a brush.   The next graphic down is a line created by stroking a straight  path with that brush.

The third line is stroking a slightly bowed path, again with the same brush.  Note all the gaps and imperfections.

Am I just missing something that needs to be done to smooth this out?

I've pondered just using something out of the "distorts" menu, since the curvature I need in this instance is small. But sincerely wonder if there is just some brush setting that I am overlooking?  I've run into this problem a number of times and have never found a suitable solution.
(TIA)

https://i.imgur.com/33HcYmB.jpg


RE: Brush Settings When Stroking Path - PixLab - 10-05-2022

Try a shorter spacing for the curve something like 95 or 90

[attachment=8784]

Another option is to do a straight line, (no need to do a path for a straight line), click on one side, then hit Ctrl+Shift+click on the other side (or just Shift+click to not have the 15 degree angle restriction), then go to Filters > Distorts > Curve Bend.. (maybe you might also need to use the "lower" in curve bend, if so while on "Upper, just click on the button "Copy", then directly OK)

[attachment=8783]


RE: Brush Settings When Stroking Path - Ofnuts - 10-05-2022

The paint brush (the "classic" one, the MyPaint one may be different) is just hammering the brush at "spacing" intervals, it doesn't try to fill the gaps. To alleviate this, a possible solution:
  • Add fading edges to the brush (top)
  • Stroke the path, with a brush spacing around 80% to have some overlap (middle). The joins are lighter because they aren't fully opaque
  • Add a layer mask, initialize by transferring the alpha channel, and boost the whites (map 0-128 to 0-255 in Levels for instance) to make the gaps fully opaque (bottom).
[attachment=8785]



RE: Brush Settings When Stroking Path - rickk - 10-06-2022

Sincere thanks to both of you for your suggestions.


RE: Brush Settings When Stroking Path - rickk - 10-07-2022

Ultimately, I concluded that I likely was being over ambitious expecting to draw all that in one stroke. So, I opted instead to draw the squares in one stroke, and the band in another... doubled the height of the square and made the addition transparent, so that the stroke would center on the same path as the band. 

[Image: 8B0ZSWx.png]


RE: Brush Settings When Stroking Path - PixLab - 10-07-2022

(10-07-2022, 01:20 AM)rickk Wrote: Ultimately, I concluded that I likely was being over ambitious expecting to draw all that in one stroke. So, I opted instead to draw the squares in one stroke, and the band in another... doubled the height of the square and made the addition transparent, so that the stroke would center on the same path as the band. 

Well done, looks way better than our propositions [Image: thumbsup.png]


RE: Brush Settings When Stroking Path - Krikor - 10-07-2022

(10-07-2022, 01:20 AM)rickk Wrote: Ultimately, I concluded that I likely was being over ambitious expecting to draw all that in one stroke. So, I opted instead to draw the squares in one stroke, and the band in another... doubled the height of the square and made the addition transparent, so that the stroke would center on the same path as the band. 

[img]...[/img]

rickk,

You could draw the track using paths and then add the blocks afterwards.

The track below was made by tracing the path (in red) and applying the plugins ofn-gradient-along-path.py

[attachment=8798]

Area expanded by 400%

https://imgur.com/tOWsBWo

[Image: tOWsBWo.jpeg]


RE: Brush Settings When Stroking Path - Ofnuts - 10-07-2022

Got me thinking.... If you are doing railtracks, you are going to have a lot of trouble making the ends of the sleepers meet.

So you could investigate using my ofn-path-rungs script. It draws paths across between two paths. So you make two paths for the rails, and use ofn-path-rungs to generate paths for the sleepers. You can then extend them beyond the track paths using ofn-path-to-shape

[attachment=8799]

By the way, there is a lower limit on the curvature radius of railroad tracks, determined by the conicity of the train wheels. This is explained in the 2nd part of this video:






RE: Brush Settings When Stroking Path - rickk - 10-07-2022

Thanks again to everyone for their help, and suggestions.

Actually the end product will be an elevation, not an overhead, I still have some work to do on the gradient that will eventually  be the side  of the rail. But at least now I'm over the hump on the "seams" problem.

LOL, perhaps by the time Gimp 3.0 is out they will have incorporated A.I.  and have a brush dynamic for "liquefy and flow together" to be used with image brushes?


RE: Brush Settings When Stroking Path - rickk - 10-08-2022

How this came about was a desire to illustrate the condition depicted in the following .webp that I made from a Youtube video (warning: 10 MB file size, might not play well with bandwidth restricted connections)

https://i.postimg.cc/ZnTQTJd4/Rail-Bounce3.webp


And  when attempting to sketch it out, my brush worked so well drawing a straight rail, that I was surprised with the noise added when attempting to draw the slope.

And, you'd be surprised how often I've just lived with a frustration for years wishing that Gimp could do X, only to see you guys here do exactly what I'd hoped for, except the feature/function is named something other than what I was expecting.

So, I thought it was worth a shot to ask.   Wink