Mask object/ shader/ whatever?

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.
  • Here's effect I'm looking for:

    Please login to see this picture.

    Preferably with the effect being applied to the entire layer and with "mask" being an object that can be moved. Do you know of any object or shader like that?

    There are no impossible things, there is only lack of skill needed to complete the task.

  • I think that should be doable but what to do with the "negative" part of the cropped area?

    I mean all that's white in your picture, the "covered" part of the layer (the mask picture showing what's below)
    should that be white, should that be a texture of your choice, a color..?

    Or you mean to simply apply this to the "topmost" layer, and the mask would cut a (image shaped) hole to see layers below?

    a selection of my Fusion examples can be found Please login to see this link.

  • I think that should be doable but what to do with the "negative" part of the cropped area?

    I mean all that's white in your picture, the "covered" part of the layer (the mask picture showing what's below)
    should that be white, should that be a texture of your choice, a color..?

    Or you mean to simply apply this to the "topmost" layer, and the mask would cut a (image shaped) hole to see layers below?

    No, no. The red and green objects are separate actives that are cut into shape by the mask. The white portion is "transparent" part of the layer. Obviously the opposite, where it cuts a hole in the layer would be good as well. @Please login to see this link. I'll check out these, thank you.

    //edit: the first one is almost what I need (shapemask.zip), however it has two issues: It cuts (or rather fills outside of the object with specific color) all the way through, which makes it useless to me, as I want only to cut through the layer the object is on without affecting upper/lower layers (think spray paint stencil/template and you'll be in the right ballpark) and the "filled" area is only as big as active that has mask, which, again, makes it useless to me as to use it effectively, I'd need active the size that is double of main game resolution (in my case it's 640x480, but think of people who'd like something similar and have games that are running at 1080p or bigger!), which again, makes it useless to me.

    There are no impossible things, there is only lack of skill needed to complete the task.

    Edited once, last by Darkhog (January 12, 2018 at 10:57 PM).

  • Please login to see this attachment.

    1. Shader on layer.
    2. mask,mask coordinates and size must be aded to shader parameters.
    3. there a some wrong coordinates when editing in clickteam. Clickteam affect by shader all layer at editing. But normal at run, check it.

  • Still doesn't work as it should. See the attached file. The goal is to hide all of the stuff in the layer except of what is under the mask. Which it doesn't fully do, and I'm not talking about just the editor rendering. Use the effect files that you gave in your previous ZIP file. We're almost there, but still not quite.

    Please login to see this attachment.

    //edit: Use mouse to move mask around.

    There are no impossible things, there is only lack of skill needed to complete the task.

  • Were you able to make it work?

    I seriously wish CF had a visual shader editor like one in UE4 or Unity 2018 so I wouldn't have to beg for shaders.

    There are no impossible things, there is only lack of skill needed to complete the task.

  • Still doesn't work as it should. See the attached file. The goal is to hide all of the stuff in the layer except of what is under the mask. Which it doesn't fully do, and I'm not talking about just the editor rendering. Use the effect files that you gave in your previous ZIP file. We're almost there, but still not quite.

    Please login to see this attachment.

    //edit: Use mouse to move mask around.

    its easy - replace first "color = maintexture;" in shader to "color = 0;"
    I write shaders in clickteam editor.

  • its easy - replace first "color = maintexture;" in shader to "color = 0;"
    I write shaders in clickteam editor.

    OK, will try that and I meant shader editor like this:

    Please login to see this picture.

    Maybe such thing is planned for CF3, but it certainly isn't in CF2.5.

    //edit: Thanks to you, I made it. Your solution worked. I've also made a reverse effect where the mask basically cuts the hole into layer.

    There are no impossible things, there is only lack of skill needed to complete the task.

    Edited once, last by Darkhog (January 31, 2018 at 6:25 PM).

  • Please login to see this attachment.

    1. Shader on layer.
    2. mask,mask coordinates and size must be aded to shader parameters.
    3. there a some wrong coordinates when editing in clickteam. Clickteam affect by shader all layer at editing. But normal at run, check it.

    Hello. On Windows works as charm. But is it possible to get it work on android extension, too?

    PS: Tried it but shader didn't do anything...

  • [MENTION=26765]Lukaaash[/MENTION]: The Android and iOS exporters don't currently support shaders.
    [MENTION=8574]Darkhog[/MENTION]: Can you please post the reverse solution (where a defined mask area "reveals" the object it overlaps)? I am trying to do something where multiple objects appear to rise out of the ground and I want to hide the part of them below a specific Y value.

    Please login to see this link.

Participate now!

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