Live data from Hacker News

WebGL Fluid Experiment (2014)

haxiomic.github.io

51–55 of 55 posts

Re: WebGL Fluid Experiment (2014)

#52

Hey, I feel bad for not updating this demo in 6 years! Back then it wouldn't run on iOS, today it could run with no trouble For people on iOS, here's another version with rainbow colors and multi-touch https://haxiomic.github.io/demos/rainbow-fluid/index.html If you like this sort of thing and want to learn more about it I recommend checking out https://www.shadertoy.com/ for more demos and https://thebookofshaders.c…

The iOS demo is amazing and I’m shocked no one is saying so! Thanks for making it.

Is the code up anywhere?

Re: WebGL Fluid Experiment (2014)

#53

Hey, I feel bad for not updating this demo in 6 years! Back then it wouldn't run on iOS, today it could run with no trouble For people on iOS, here's another version with rainbow colors and multi-touch https://haxiomic.github.io/demos/rainbow-fluid/index.html If you like this sort of thing and want to learn more about it I recommend checking out https://www.shadertoy.com/ for more demos and https://thebookofshaders.c…

The iOS demo is amazing and I’m shocked no one is saying so! Thanks for making it. Is the code up anywhere?

Hey :), full code isn't up yet but I can share the color pattern:

http://thebookofshaders.com/edit.php?log=200806194314

The technique is called "sine puke", and it works by starting with a gradient (in this case a rainbow) and warping the domain when drawing that gradient by sine functions repeatedly (check the for loop)

In the fluid demo I blend new frames with the previous so you get this slower, softer pattern

Post reply on HN