Falling sand on GPU through Pixel Shader

This forum is currently in read-only mode.
From the Asset Store
Vintage steam pixels for your UI! 125 unique assets in a single pack!
  • <img src="http://dl.dropbox.com/u/82947809/sand.PNG" border="0">

    <img src="http://dl.dropbox.com/u/82947809/sand2.PNG" border="0">

    Download

    Pretty much as the title says. Me and Davio were messing with canvases pasting effects into themselves to get positive feedback so that the effect feeds last frames result into itself each frame. I got the idea to try to hack mass particle simulation out of the technique. Wrote a few shaders and here it is. The fps will NOT change even if the entire screen is covered.

    Draw with mouse button. Z,X,mousewheel up/down/click, left click, and right click all do stuff.

    X+mousewheel adjusts the size of the "brush" you get when you press X

    Mousewheel click draws "terrain" (blue)

  • Neat stuff from you guys as usual! :)

  • Of course this is just great! And runs very very smoothly.

    Do you have some sample project/code for this? I am trying to achieve a sand game like this in HTML5 but I'm totally lost =PPPP

  • Suspicious .exe detected by Avast! Download at your own risk.

  • Looks like CC is having problems with Avast. I'm working on several games and i need to deactivate if i want to test my caps.

  • could you show how you made this happen? i really am trying to make a game involving sand.everything i come up with is to much for a computer to handle.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • it uses a chain of shaders, there's many limitations and you need to have very good knowledge of how pixel shaders work and how to write HLSL.

  • I once had something similar to this on my phone it was endless hours of entertainment XD thankx for sharing !

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)