Gimp-Forum.net
Customized smudge tool : Smudge with painting - 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: Customized smudge tool : Smudge with painting (/Thread-Customized-smudge-tool-Smudge-with-painting)



Customized smudge tool : Smudge with painting - shark0r - 04-11-2017

I customized GIMP's smudge tool, to make it not only smudge existing color on the canvas, but also blend brush color on it. Because I thought this can make a different taste from "Watercolor" type smudge when drawing images.
(I mainly use GIMP for painting, so the power of a brush engine is important to me.)
I did this by modifying GIMP's core codes and building by myself.

[attachment=455]
I added two parameters. One is "Flow", which controls the amount of brush color. The more it is, more foreground color will be blended. Of cource it can be controlled by brush dynamics. (To simplify the work I picked a currently-unused parameter and didn't make a new one.)

The other is "No erasing effect". If enabled, if smudging will decrease alpha of some pixels, don't decrease them, thus don't erase existing pixels. This is useful to fill the gap between two color areas.

Currently I made this just for experiment and it's not very robust. If someone agrees to make this as an official feature, I may talk to GIMP developers.

--------

Here are some tests. Also compare this smudge tool and MyPaint brush(which is watercolor type smudge).

[attachment=456]
It's better to keep Flow under 30, or control it by dynamics. Otherwise it will be nearly the same as normal brushes.

Two artworks with similar painting method, only different tools.
by customized smudge tool
[attachment=457]
(Tip: smudge tool is very useful to draw hair and flames)

by MyPaint brush
[attachment=458]

And this shows why "No erasing effect" matters.
[attachment=459]
In the left image, there are transparent gaps between dark gray and red areas. Without "No erasing effect", smudging on the gap will diffuse its transparency to nearby pixels and it's difficult to remove the gap.
"No erasing effect" may be useful in watercolor type smudge too. Havn't tried yet.

(Also posted at http://www.gimpusers.com.)



Here is my inspiration:

Commonly there are 2 types of smudge tools in paint softwares.

Type 1
[attachment=460]
Copy an area, and paste to the next dab.
Examples: GIMP's smudge tool, "Finger" tool in many softwares.

Type 2
[attachment=461]
Calculate the average color in an area, and fill the next dab.

--------

If we add coloring ability to Type 2, this forms "Watercolor" tool in many softwares.
For example, this is the algorithm of MyPaint's smudge.
[attachment=462]
Similar examples: Watercolor in Paint Tool SAI and many Japanese softwares, Krita's color smudge brush with dull mode.

For a long time GIMP had no such tool, but newly added MyPaint brush in 2.9.4 filled this gap.

--------

But how about Type 1 with coloring ability? Few softwares have it. The only software with this tool I had ever seen is Krita (color smudge brush with smear mode).

So I modified GIMP's smudge tool, followed MyPaint's algorithm.
[attachment=463]

And as I drew above artwork, I found that "No erasing effect" parameter is necessary so I added it.


RE: Customized smudge tool : Smudge with painting - Ofnuts - 04-11-2017

Nice. To talk with the developers:

https://mail.gnome.org/mailman/listinfo/gimp-developer-list

There is also an IRC channel (mostly active during the evening in Western European time): irc://irc.gimp.org/#gimp


RE: Customized smudge tool : Smudge with painting - JuanMena - 09-01-2017

OMG I just posted my first thread asking for this.

How can I have this? Waiting for a complete GIMP Update seems very, very, very far away.
Can't wait to have this feature!


RE: Customized smudge tool : Smudge with painting - rich2005 - 09-02-2017

(09-01-2017, 10:05 PM)JuanMena Wrote: OMG I just posted my first thread asking for this.

How can I have this? Waiting for a complete GIMP Update seems very, very, very far away.
Can't wait to have this feature!

A bit about it here: https://www.gimp-forum.net/Thread-Gimp-2-9-5-Smudge-tool

You can run a Windows development version 2.9.6 in conjunction with your existing Gimp 2.8.x 

Get it from https://download.gimp.org/pub/gimp/v2.9/windows/


RE: Customized smudge tool : Smudge with painting - JuanMena - 09-03-2017

(09-02-2017, 09:43 AM)rich2005 Wrote:
(09-01-2017, 10:05 PM)JuanMena Wrote: OMG I just posted my first thread asking for this.

How can I have this? Waiting for a complete GIMP Update seems very, very, very far away.
Can't wait to have this feature!

A bit about it here: https://www.gimp-forum.net/Thread-Gimp-2-9-5-Smudge-tool

You can run a Windows development version 2.9.6 in conjunction with your existing Gimp 2.8.x 

Get it from https://download.gimp.org/pub/gimp/v2.9/windows/

Well, thank you very very much for this.
Big Grin

Hey, I have a question about this new version.
I installed it and tested it for some minutes... and I forgot that I didn't installed Gimp G'Mic in this version.
Does G'Mic is still compatible with this 2.9.6 Gimp version?
And does Gimp Paint Suit still works with this?