Random Brushes, how do they work?

Although a single brush tip chosen, a variety of brushes appear when the “shapes mech random” or “shapes spiked random” brush tips are seleceted. And it’s still the case even if fuzzy dab (the random option) is not ticked. So how does that happen? In what format those brush tips are transferred to Krita’s brush tips? (do they contain mutiple brush tip files?)

That would be a .gih (GIMP Image Hose) brushtip:
Animated Brushes — Krita Manual 5.0.0 documentation

They contain multiple brush tip images stored in the same file.
The usage sequence of the images is set within the .gih file itself and can be incremental, random, or other control methods that were decided on when the .gih file was made by whoever made it.

That gives you the brushtip image for each sequential dab. After that, the settings of the brush editor decide what is done with those brushtip images.

2 Likes

Is the brush engine used important? Or can this effect be achieved with any brush engine? The shapes Mecha Random brush was made using Pixel Engine. And how are the multiple brush tips stored? Do we give all the different brush tips a single name, or use a folder for that?

Long time ago I made a video tutorial on how to creat animated brushtips.

Maybe you’ll find that useful.

5 Likes

Tnaks a lot @wojtryb amd @AhabGreybeard

2 Likes

@wojtryb Great tutorial. I also downloaded your animated brushes and liked them a lot. However, the prototype tiles brush didn’t work for me (the one in the video tutorial). It just paints regular soft brush stamps? Maybe, the needed brush tip (the tile texture file) is missing somehow? And the default size is set to 1.00 px (very small).
P. S. When I hit f5, the brush tip is set to auto and the tile image is absent.

1 Like

That is characteristic of a missing brushtip. The Layers docker thumbnail also shows it as missing. The bundle has six brush presets but only five brushtips.
The evidence is piling up :slight_smile:

@wojtryb Would be able to investigate this properly.

I’ve never tried using a .gih brushtip with any engine except the pixel engine.
Somebody may know if you can or you can try it yourself.

It’s quite easy to make a brush preset that uses a .gih brushtip, just select the .gih tip for use in the brush editor and play with it.
It’s also easy to make a .gih brushtip file. The difficult (and tedious) part is making all the different images to get a nice looking result when you use it.

You can also make a .gih brushtip that has two or more dimensions of control variation.
Such as incremental and pressure, or random and drawing angle, or incremental and pressure and drawing angle. Those need lots of different images for the different dimensions of control.

2 Likes

Thanks @AhabGreybeard. I’ll try to make one.

1 Like

Animated brushtips should work with any engine that allows predefined brushtips. Interestingly though, it doesn’t appear to work using the Bristle engine- it uses only the first image. That might be a bug.

1 Like

Thanks for letting me know.

I believe the brush tip must have broken with some krita update. It’s probably recoverable by renaming .bundle file to .zip, or by opening it with old version of krita.

Unluckily I’m rather busy with ShortcutComposer and stuff, so I may not be able to investigate and work on bringing the pack to krita 5. Sorry

1 Like