Falling sand on GPU through Pixel Shader

Post your Construct-made creations!

Post » Fri Feb 08, 2013 4:08 am





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)QuaziGNRLnose2013-02-08 04:15:38
B
73
S
13
G
8
Posts: 1,972
Reputation: 9,791

Post » Fri Feb 08, 2013 5:47 pm

Neat stuff from you guys as usual! :)
Moderator
B
92
S
32
G
33
Posts: 3,005
Reputation: 27,582

Post » Wed Apr 17, 2013 4:00 pm

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
B
6
S
1
Posts: 5
Reputation: 864

Post » Wed Apr 17, 2013 10:56 pm

Suspicious .exe detected by Avast! Download at your own risk.
B
53
S
14
G
13
Posts: 818
Reputation: 17,434

Post » Thu May 02, 2013 2:02 am

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.
B
22
S
5
G
3
Posts: 25
Reputation: 3,272

Post » Sun Jun 22, 2014 10:29 am

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.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,368

Post » Sun Jun 22, 2014 5:39 pm

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.
B
73
S
13
G
8
Posts: 1,972
Reputation: 9,791

Post » Wed Sep 03, 2014 1:04 am

I once had something similar to this on my phone it was endless hours of entertainment XD thankx for sharing !
B
6
S
1
Posts: 72
Reputation: 723


Return to Your Creations

Who is online

Users browsing this forum: No registered users and 3 guests