[Request] 2 mask controlled shaders to do "GIMP Curves - Channel Value" manipulations

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Mask controlled manipulation shaders with smooth effect transitions for
    DX9 + GL_ES compatible platforms for the moment when specific sampling types are supported here which might be relevant.

    GIMP 2 - Channel output: Value Addition + Value LCh Chroma effects
    (these effects should be controlled with smooth masks showing black/white color transitions)

    follow these rules
    Please login to see this attachment.

    Shader 1
    For this effect I want to achieve this specific behaviour known from GIMP 2 (Colors - Curves: adjust Value Channel with Addition type Blending mode).
    Adjust colors with the same rules when doing this in GIMP and adjust Channel settings like this: Input value is 100, only adjust Output 0-100 (0 means no change, 100 means max. brightness).
    Perhaps add an extra Intensity parameter for the shader to further increase Output value result and strengthen this effect equally
    (further increasement of the Curves - Channel Value output value).
    The Effect should work with masks objects to control with them automatically how much this effect applies in general
    (black #000000: effect does not apply, brighter: effect applies more).

    Shader 2
    GIMP 2 behaviour (Colors - Curves: adjust Value Channel with LCh Chroma type Blending mode).
    Adjust colors with the same rules when doing this in GIMP and adjust Channel settings like this: Input value is 100, only adjust Output 100-0 (100 means no change, 0 means max. desaturated).
    Should be compatible with the same type of smooth masks to control how much this effect is existant in general
    (black #000000 = effect doesn't apply, brighter = effect applies more).

    Currently working on ... [SIGPIC][/SIGPIC] ... a Puzzle Platformer

    Edited 2 times, last by Wodjanoi (October 15, 2022 at 6:43 PM).

  • The first one is just a straight-up "lighten" mask. I'd be very surprised if that didn't already exist.
    The second one just looks like a "saturation mask" filter, which definitely already exists.

    The only difference is that the second one uses the Hue-Chroma-Luminance color model (instead of Hue-Saturation-Lightness), which I can tell you makes everything much more difficult, for a couple of reasons:

    Firstly, LCh colors don't reliably map to Red-Green-Blue - some LCh colors are outside the RGB gamut, which means that you have to either clamp one or more components (which defeats the purpose - it would be better to just use HSL) or you have to find the closest RGB color, which is extremely difficult and computationally expensive.

    Secondly, to convert from RGB to LCh, you need to convert them from RGB to XYZ, then from XYZ to Lab (or Luv), and then from Lab (or Luv) to LCh. And then after manipulating the color, you need to reverse that whole process to get back to an RGB color to show on screen. Unless you're making a graphics app (not a game) it's not going to be worth the trouble, when HSL is already good enough, even if it's not perceptually uniform.

    Edited once, last by MuddyMole (November 10, 2022 at 5:25 PM).

  • It's cool to see that a few ambitioned shader hobbyists posted their thoughts here.

    Personally I need something like this to solve the general problem to synchronize a player character's appearance dynamically with my lighting designs for 2D side-scrolling environments.
    I openend this request topic for creating a special shader solution, because I thought this would be definitely not only useful for me at the first place and the community might benefit from something like this as well.
    Any questions or news/updates in this thread from any person are welcome.

    NaitorStudios - A folder with assets and files to make things more convenient will be soon delivered to you per PM.
    It seems it is not super easy to put these ideas into functional shader(s) for DX9 support - especially with any plans in the future to support OpenGL_ES compatible platforms.
    I don't want you to be alone with this task. Perhaps some of the other shader wizards are willing to brainstorm solutions.
    Gigatron at least told me I could collect some Shadertoy examples - I'm not sure if these are a big help, but I included a few Shadertoy website links.

    Currently working on ... [SIGPIC][/SIGPIC] ... a Puzzle Platformer

    Edited 2 times, last by Wodjanoi (November 15, 2022 at 11:22 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!