Fruit Ninja Slice Shader and Example

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.
  • Hey everyone, I've been doing some random coding projects recently, and I decided to make a quick new shader that kind of simulates the effect from the previously popular game Fruit Ninja. You can click and move your mouse over an object and it will slice the object into two visually at the angle the mouse was moving (doesn't actually create 2 objects).

    The shader is DX9 only unfortunately... if someone can port it to DX11 that would be awesome.

    Anyway, just wanted to share. Hopefully this is useful to someone

    Please login to see this attachment.

  • Speak to Naitor on the Please login to see this link. to see about porting it - best if you learn how to do it yourself if you're gonna be making shaders ^^

    CT Discord is recently opened up so you won't need the bot approval first

    Darkwire Software Lead Programmer (C++ & C#)
    Please login to see this link. | Please login to see this link. | Please login to see this link. | Please login to see this link.

  • Whoa, very cool! Thanks for sharing that.

    My shader definitely does not actually cut the image into pieces. I guess I could modify it to perform the slice and erase half of the image. Then I could create a duplicate object, give it the same shader input, and simply erase the opposite half. With a little physics it could be animated to look pretty good. I may come back and do that in a few days. (That would also get rid of the requirement to extend the object's canvas size to allow the separate pieces to move without getting visually clipped)

Participate now!

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