RSS/Atom feed Twitter
Site is read-only, email is disabled

Stroking path with brush dynamics

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

8 of 8 messages available
Toggle history

Please log in to manage your subscriptions.

Stroking path with brush dynamics Ofnuts 10 Nov 07:40
  Stroking path with brush dynamics Rob Antonishen 10 Nov 19:06
   Stroking path with brush dynamics Ofnuts 10 Nov 20:32
    Stroking path with brush dynamics Rob Antonishen 10 Nov 21:18
     Stroking path with brush dynamics Ofnuts 10 Nov 21:24
  Stroking path with brush dynamics Alexia Death 16 Nov 22:09
   Stroking path with brush dynamics Ofnuts 16 Nov 23:12
    Stroking path with brush dynamics Alec Burgess 18 Nov 01:22
Ofnuts
2010-11-10 07:40:55 UTC (about 14 years ago)

Stroking path with brush dynamics

While playing with 2.7, I noticed that one of the brush dynamics is the oriention, something I had been longing for.

However, when stroking a selection, the results are a bit disappointing. Here is an XCF with a couple of tests:

http://dl.free.fr/fRALiPMXa

(on the left, the 2.7 results, on the right, what one would expect...).

The pictures are actually a "selection to path" + "stroke path" , because a direct "stroke selection" on the circle is even worse.

From a user point of view, it is difficult to understand

- on the circle: the "side switch"

- on the square: the inversion in the top bar (I assume the reason is the same as in the circle), and the inconsistent overlap (the right side of the top bar should be under the right bar).

Rounding the corners would be a cherry on the cake :-)

If it's still work in progress, I didn't say anything...

-- Ofnuts

Rob Antonishen
2010-11-10 19:06:43 UTC (about 14 years ago)

Stroking path with brush dynamics

Do you get better results just painting with a paint tool?

The brush you posted is not a good candidate for orientation dynamics, as is much wider than tall.

Remember brush dynamics do not deform or distort the brush in any no uniform way, it merely rotates it. You would get (marginally) better results with a bowtie shaped brush.

Not sure about the path flipping when stroking. If you use a gih with angular rotation it doesn't flip, so this looks like a bug in the brush dynamic engine.

http://www.majhost.com/gallery/ffaat/gimp/more/gihtest.jpg

-Rob A>

On Wed, Nov 10, 2010 at 2:40 AM, Ofnuts wrote:

While playing with 2.7, I noticed that one of the brush dynamics is the oriention, something I had been longing for.

However, when stroking a selection, the results are a bit disappointing. Here is an XCF with a couple of tests:

http://dl.free.fr/fRALiPMXa

(on the left, the 2.7 results, on the right, what one would expect...).

The pictures are actually a "selection to path" + "stroke path" , because a direct "stroke selection" on the circle is even worse.

From

Ofnuts
2010-11-10 20:32:23 UTC (about 14 years ago)

Stroking path with brush dynamics

On 11/10/2010 08:06 PM, Rob Antonishen wrote:

Do you get better results just painting with a paint tool?

Yes... the circle isn't as circular, but the inner rim stays the same color throughout. Same for the square, it even rounds the corners.

The brush you posted is not a good candidate for orientation dynamics, as is much wider than tall.

There are two gradient layers in the XCF, one is the brush (10x50) and the other is the "map" for the filter I used (50x10). But I originally tried with the 50x10 layer rotated 90 degrees, for the same results.

Remember brush dynamics do not deform or distort the brush in any no uniform way, it merely rotates it. You would get (marginally) better results with a bowtie shaped brush.

I don't expect them to, either

Not sure about the path flipping when stroking. If you use a gih with angular rotation it doesn't flip, so this looks like a bug in the brush dynamic engine.

http://www.majhost.com/gallery/ffaat/gimp/more/gihtest.jpg

Nice example, but I couldn't find what a "gih" is?

Rob Antonishen
2010-11-10 21:18:12 UTC (about 14 years ago)

Stroking path with brush dynamics

Nice example, but I couldn't find what

Ofnuts
2010-11-10 21:24:45 UTC (about 14 years ago)

Stroking path with brush dynamics

On 11/10/2010 10:18 PM, Rob Antonishen wrote:

Nice example, but I couldn't find what a "gih" is?

Gimp image hose, aka "rotating brush"

I made that one with my script:

http://ffaat.pointclark.net/blog/archives/145-Gimp-Script-to-Help-Make-Rotating-Brushes.html

-Rob A>

Aw, I should have know... already seen your script but it never occcured to me to use rotating brushes for this. Will give it a try.

Alexia Death
2010-11-16 22:09:55 UTC (about 14 years ago)

Stroking path with brush dynamics

On Wednesday, November 10, 2010 09:40:55 Ofnuts wrote:

The pictures are actually a "selection to path" + "stroke path" , because a direct "stroke selection" on the circle is even worse.

From a user point of view, it is difficult to understand

- on the circle: the "side switch"

- on the square: the inversion in the top bar (I assume the reason is the same as in the circle), and the inconsistent overlap (the right side of the top bar should be under the right bar).

This should now be fixed in git. The sample xcf was really really nice for testing, but pehaps you coud next time host it on a site that uses english? It took me a while to take the time and guestimate the download link from that.

Rounding the corners would be a cherry on the cake :-)

rounding corners im not so sure about as a feature. It would requre event fill not only based on distance but also direction... Looking into it anyways.

--alexia

Ofnuts
2010-11-16 23:12:09 UTC (about 14 years ago)

Stroking path with brush dynamics

On 11/16/2010 11:09 PM, Alexia Death wrote:

This should now be fixed in git.

Yes, the circle is indeed OK, but the square shape still has its top stroke over the rest. But I can't se how you could have it drawn differently. Unless you find a way to miter the angles.

The sample xcf was really really nice for testing, but pehaps you coud next time host it on a site that uses english? It took me a while to take the time and guestimate the download link from that.

I'd love to next time if you can suggest one... not sure you would have the patience to wait on Megaupload or Rapidshare.

Rounding the corners would be a cherry on the cake :-)

rounding corners im not so sure about as a feature. It would requre event fill not only based on distance but also direction... Looking into it anyways.

The filter with which I made my "expected" drawings grows the selection by a one-pixel ribbon and paints it using the value Nth pixel in the map layer (https://sourceforge.net/projects/gimp-wrapmap/) but I admit it's fairly slow and limited by what can be done in python and with my limited knowledge. I'm thinking of better algorithms, but with my one-pixel-wide map it's only a matter of distance, since it behaves more like a real wide brush (the Gimp brushes are more like stamps from a machine gun).

Alec Burgess
2010-11-18 01:22:13 UTC (about 14 years ago)

Stroking path with brush dynamics

On 2010-11-16 18:12, Ofnuts wrote:

Alexia wrote:> The sample xcf was really really nice for

testing, but pehaps you coud next time host it on a site that uses english? It took me a while to take the time and guestimate the download link from that.

FWIW: Google translate (I have it set to auto-translate FR-->EN) shows the link on http://dl.free.fr/fRALiPMXa as "Download this file"

I'd love to next time if you can suggest one... not sure you would have the patience to wait on Megaupload or Rapidshare.

If you don't have a philosophical objection to Google Docs it allows 1GB free - make sure to set the link as shared with everyone (or shared with anyone with the link), I created a folder "myShares" for this purpose. Here's the goo.gl link to a copy of the XCF file http://goo.gl/CwmZX - it should work for everyone regardless of whether they have a google email account. (If anyone tries and fails to get it - please let me know offlist - thanks)