Email or username:

Password:

Forgot your password?
David Revoy

New feature soon in Krita: Lambert Shading.🔆

It's a blending mode made by Despair for better shading using a single layer. I gave feedback to adjust the blending mode during its development. The blending mode is really versatile as you'll see in this quick demo I painted:

14 comments
Leonard Ritter

@davidrevoy how does this blending mode work technically? what's the formula?

Leonard Ritter

@davidrevoy nice. makes me think that it could be really cool to have blending layers that convert a sRGB pixel to linear via inverse ACES tonemapping, do the blend (add or mul), and then convert back to sRGB via ACES again - this would allow artists to use a filmic HDR workflow for shadowing and lighting without actually needing to work in HDR space

Leonard Ritter

@davidrevoy i have all the formulas here, and have developed palettes with them (see fully automated example pics - input and result). their advantage is that you get kodak style filmic gradients without having to do all the manual work that goes into making a good gradient.

David Revoy

@lritter Oh good. Do you think you can contribute and plug it in Krita?

Leonard Ritter

@davidrevoy if writing a blending layer is more work than a python script, then i don't have the time. but i can contribute the necessary code (in GLSL form) if somebody else is up to it.

David Revoy

@lritter You can get a direct idea of the necessary effort to plug a new blending mode by looking at the MR diff of Despair for this Lambert one: invent.kde.org/graphics/krita/

Leonard Ritter

@davidrevoy so i have to run a custom krita build just for another filter. oof.

David Revoy

@lritter You can also contact Despair on the Krita-Artist forum and share the script approach/logic/documentation you have in mind about it (and tell them it's GPL but you can't have time to do a custom Krita build and port it yourself). They might be interested to do the implementation and the merge request.

Leonard Ritter

@davidrevoy with the same transform it is also possible to decompose an image (1) into albedo (2) and linear light factor (3), or to normalize overly bright colors (4)

raphael

@davidrevoy oh shit, that looks really cool. what a step-up from either less than intuitive colour choices for hard/soft light/overlay, or separate layers for shadows and speculars/other effects.

David Revoy

@gekitsu Yes, it has almost the same usage as Hard-Light but behaves slightly better in the rendering of light and shadows. I still need to test it on more advanced artwork, but it is promising.

rostiger

@davidrevoy Oh, this looks cool - looking forward to checking it out when it releases!
I've discovered Krita only months ago and found that there's lots to like about it. Just finished my first larger illustration in it too!

Ryuno-Ki

@davidrevoy
I had something like this in mind for a while.

Using CSS and SVG, though.

Might be worth to study the code.
Bookmarked for now.

Go Up