New smudge algorithm(sai/csp like)(Decoupling color and alpha)

@urzeye (killy) has developed a new color mixing algorithm, which he originally posted in this post.(At that time, it was different from the theme of that post, so it was ignored…)Killy compiled an executable software, but he is busy with work, so I am sending this post.


Watch the videos:

Download key source code and executable files:

Attention: The previous smudging brush cannot be used as it may cause errors. It comes with two smudging brushes, one mixed and the other blurred


Some people want to make several parameters of smudge more independent (such as bug 353665)
Some people want to simulate the brush color mixing of SAI or CSP
After some analysis, their principles are similar, both separating RGB mixing and alpha mixing into two parameters

They have the following characteristics:
When RGB is mixed with 100 and alpha is mixed with 0
When RGB is mixed with 0 and alpha is mixed with 100

in csp

in sai

klliy’s smudge:

image

This makes it possible to ‘make brushes that lightly blend colors while being opaque’.(bug 353665

Other

1.Part of the content of ‘Blurring mode’ mr has been integrated, so the second option has been changed to ‘blur’ (controlling the blur intensity through ‘smudge radius’). As a result, performance issues may arise (it seems that only the first dab will be blurred in CSP/pathstorm).

2.The ‘smudge length’ has also been changed.It controls the sampling position, with a value of 1 sampling at the previous pen tip position and a value of 0 sampling at the current pen tip position.Its behavior is also similar to sai/csp.(There are only two options for ‘Mean offset’ in ‘Blurring mode’ mr: 0 and 1.)

3.As mentioned earlier, Killy is busy with work, so it’s difficult to find time to better integrate it into Krita. (Especially considering that the smudge algorithm in 5.0 may even lead to rewriting the engine…)

The ideal scenario would be to turn ‘use new smear algorithm’ into a checkbox to switch between the three algorithms. The new ‘alpha rate’ parameter is usually displayed in gray.

7 Likes

Correction: The ‘smudge length’ here can now achieve intermediate value switching similar to sai/csp. It’s not just 0 or 1

killy’s smudge:

sai:


Then put some GIFs of the brushes I made:

789

123

2 Likes

Wasn’t this feature implemented as “new smudge algorithm” option?

No, it has nothing to do with the previous algorithm, it just directly modifies the existing engine.In this case, the original brush may have errors

Therefore, achieving expectations still requires some work, but Killy indicates that the workload is busy

The ideal scenario would be to turn ‘use new smear algorithm’ into a checkbox to switch between the three algorithms. The new ‘alpha rate’ parameter is usually displayed in gray.

New smudge algorithm changed the brushes, so it is an option now

I don’t quite understand this sentence. Perhaps it was my previous misunderstanding.
Killy has implemented a new algorithm, but in. exe it is based on destructive modifications to the existing brush engine (rather than a new option), so previous smudging brushes would cause errors.
The last paragraph is my ideal scenario, where this algorithm integrates krita and coexists with existing algorithms (traditional algorithm, Voronwe13’s new algorithm)

edit:I seem to understand, are you saying that the ‘new smear algorithm’ option solved bug 353665?
This is another algorithm, different from Voronwe13’s new algorithm, approaching the way of sai/csp. I just mentioned its performance in this situation by the way

1 Like