Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stroking a path with a pattern.
#1
Just wondering if I am overlooking something. 

 In the following sketch: 

#1  is the pattern I am using, 

#2  is an example of how I would  like the final appearance of my stroked path, to appear

#3  is an example  stroked path, depicting the misalignment that I am hoping to correct

#4  is where I believe my problem is, the pattern actually arranges itself in a symmetric grid,  and the stroked path is merely a              mask over it, or, perhaps another way to say it is that the path is not "content aware"?

Is there something I am missing that will force the painting of the pattern to follow within the confines of the path?

[Image: YpyYCCb.png]

Ultimately, I'm hoping to find a way to do something like this, except curved along the specified path

[Image: njblmqz.png]

Thanks for your time.


Reply
#2
I think you would be better off separating the nut from the background. The background has a bit of a gradient, you might be able to create that some other way.

However. with the nut (transparent background) as a brush. Stroke the path using the paint tool and emulate dynamics.  Spacing is a percentage so make it > 100

Add the background as a regular stroke path with FG colour (I erased a bit so you can see the nuts)

   
Reply
#3
Thumbs Up 
(03-24-2021, 05:10 PM)rich2005 Wrote: I think you would be better off separating the nut from the background. The background has a bit of a gradient, you might be able to create that some other way.

However. with the nut (transparent background) as a brush. Stroke the path using the paint tool and emulate dynamics.  Spacing is a percentage so make it > 100

Add the background as a regular stroke path with FG colour (I erased a bit so you can see the nuts)

Thanks man! that's perfect.  Brush dynamics is another one of those areas where I need to set aside some time, and just experiment to get a feel for.   Shy


Reply
#4
Didn't see Rich's answer, but thinking among the same lines. Use a brush for the nuts, and another one for the metal under them. May I recommend the use of my ofn-brush-strokes-on-path script to have the nuts regularly spaced and evenly dividing your path. In the image below:
  • The nut brush was obtained by making a small clip path around a nut, copying to the clipboard and using the clipboard brush in the script above. I asked the script for a 50px spacing and it figured out the 19 brush strokes.
  • The "ring" was a 60px circle filled with a left-right gradient, from the darker color to the lighter one;copied to the clipboard and using the clipboard brush in Edit > Stroke path
   



.xcf   RingAndNuts.xcf (Size: 466.17 KB / Downloads: 190)
Reply
#5
(03-25-2021, 12:48 AM)Ofnuts Wrote: Didn't see Rich's answer, but thinking among the same lines. Use a brush for the nuts, and another one for the metal under them. May I recommend the use of my ofn-brush-strokes-on-path script to have the nuts regularly spaced and evenly dividing your path. In the image below:


I am appreciative to both of you for your attention, and efforts.  Dabbling with the guidance Rich gave me earlier, but using a selection ellipse rather than an actual path.... got me here (the extra "fill" I just threw in to kill the stark white background):

[Image: zC0OWQc.png]


I found it interesting how the figure specified for brush spacing was crucial to closing the loop evenly so that the first and last bolts  were spaced properly. Otherwise you ended up with either one pair that were different from all  others, or worse case a pair that were "binoculared" .  All in all I'm very pleased with the result.   I'll probably go back and fine tune my "brush" image so that the shading isn't so directional,  and yeah, getting rid of the surrounding area was definitely the way to go. 

I'll give the script a try too. Thanks again.


Reply
#6
(03-25-2021, 01:56 AM)rickk Wrote: I found it interesting how the figure specified for brush spacing was crucial to closing the loop evenly so that the first and last bolts  were spaced properly. Otherwise you ended up with either one pair that were different from all  others, or worse case a pair that were "binoculared" .

Which is exactly what the script is meant for Wink

By the way, in th egeneral case you shouldn't have the nuts follow the orientation of the path, otherwise you get the shadow in the wrong direction. If you want some randomness in the nuts, you can create a pipe hose where images are rotated within +30°/-30°, so you get a random orientation while keeping the shadows always on the same side:

   


A basic Gimp hose:
.zip   Nuts.zip (Size: 28.91 KB / Downloads: 192)
Reply
#7
Well, I never would have imagined that .gih stood for "gimp hose",  nor did I anticipate that animated brushes would have a practical application such as this.  I always just figured they were geared more towards adding "sparkle" of the type many are fond of adorning their e-mails with, and stuff like that.
But, now that you pose it as you have,  I've looked into it, found online documentation, and can see that it's gonna take a little  time to absorb.....but definitely looks to be worthwhile to become familiar with.  Much appreciated.
(I originally would have anticipated that the "track direction" specification in the brush dynamics would have accomplished this, but now I see how it had exactly the opposite effect)


Reply
#8
nut screws washers and bolts but that is another story Wink

I agree with ofnuts about nut rotation. Never seen any tightened bolts that were perfectly in line. Easy to add a random angle element to the dynamic. Regular shadow? Add one after using the drop shadow filter.

   
Reply
#9
(03-25-2021, 02:08 PM)rich2005 Wrote: nut screws washers and bolts but that is another story Wink

I agree with ofnuts about nut rotation. Never seen any tightened bolts that were perfectly in line. Easy to add a random angle element to the dynamic. Regular shadow? Add one after using the drop shadow filter.

Nutpicking but it is not just a matter of shadows. The reflections also come into play. But since by symmetry you don't need to turn the nut by more than 60°, if you keep the random rotation within a 60° sector you cover all possible rotations of the hexagon while keeping shadows and reflection roughly at the same angle.
Reply
#10
(03-25-2021, 02:08 PM)rich2005 Wrote: nut screws washers and bolts but that is another story Wink

I agree with ofnuts about nut rotation. Never seen any tightened bolts that were perfectly in line. Easy to add a random angle element to the dynamic. Regular shadow? Add one after using the drop shadow filter.

I worked a "bridge" job between the end of my career and retirement age, working for a very talented cabinet maker. (it was a job that was actually fun to go to every day). But, his "trademark" was, that he always wanted all the screw heads perfectly aligned with one another, phillips, slotted, torx,  no matter..even in concealed hinges. The fact that you often had to "over torque" at least some of the screws to accomplish this, didn't phase him.  He was "always the boss", so I had to respect his wishes.

There is a slight perspective in the original image that I am using. It's not overpowering, but it's there. Rotating all the images at random, causes the perspective apparent  in the ends of the bolts to make the bolts appear crooked related to one another. 

Likely, no one in the world even notices this but me. And I acknowledge the "perspective tool" could address this. So, I'll probably try to "square things up" with the original image, to try and blend some of that directional perspective out of the image, either with the perspective tool, or just through manual editing.

Either way, you got me over the hump that I was most daunted by, and for that I am grateful.


Reply


Forum Jump: