Sometimes I’ll use 3d to create foreground vegetation for illustrations. It’s like using leaf brushes but with total artistic control, perfect perspective, swapable leaf shapes, and the best of all, the possibility of separating leaves by depth without creating additional painting layers.
For now I’ve been grouping leaf slices by colors. I can generate either color gradients or grayscale depth slices:
I’ll then use that as a mask to select regions to paint. It’s great, but there are some hiccups in my workflow and I’d love some ideas.
For convenience, I’m calling those depth bands of colors or values slices here.
Color Slices
Using the color version I’ll have to stop painting, select the layer containing the slices, use the similar color selection tool then return to the layer I’m painting. I’ll keep the slices layer under the painting and set it to erase blending mode so at least I don’t have to show and hide it every time, but having to change tools and layers makes the process slower and prone to mistakes.
I also lose track of the slice I need to select next because I have to manually target it on the canvas, so I have to either reveal the slices layer or keep selecting at random. ![]()
Gradient Slices
Using the gradient slices, I’ll use several filters to select each value group to then create individual layers from them:
The advantage of this method is that I no longer need to leave the painting layer to make a selection, I can simply keep them in a group and ctrl+click the layer I want. I also don’t lose track of the slice I’m working on.
The disadvantage is that I have to pre-process the images and adjust the filters by hand if I’m using a different number of depth slices. The extra layers also impact Krita’s performance.
The filter setup:
1 to 6 are threshold filters. The clone layer is just to smooth the edges (it’s a bonus, the color gradient selection has the disadvantage of being jagged for lacking this extra step). B is A with inverted colors for when it’s a more convenient setup.
To create the layers I’m revealing the number I need and merging visible. It’s a bit slow but when I bring them into the painting everything flows faster.
The biggest issue is the threshold value, which was set by hand and has to be manually tweaked when using a different number of slices. If I could automate that value selection without having to write an entire script most of my issues would be solved.
I can alternatively alter my setup in Blender - the 3d software I’m using - to output black and white images for each slice, but it’s the worst option because the process is slower than pre-processing the gradient slices in Krita.
So, suggestions? My objective is to be able to easily create selections from each depth slice as I paint, without ever having to leave the layer I’m painting.










