Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Brush Settings When Stroking Path
#1
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


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

   

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)

   
Reply
#3
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).
   
Reply
#4
Sincere thanks to both of you for your suggestions.


Reply
#5
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]


Reply
#6
(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]
Reply
#7
(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

   

Area expanded by 400%

https://imgur.com/tOWsBWo

[Image: tOWsBWo.jpeg]
                               .....
Samj PortableGimp 2.10.28 - Win-10 /64.
Reply
#8
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

   

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:



Reply
#9
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?


Reply
#10
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


Reply


Forum Jump: