Re:WebGL Water Simulator
by JoshTriplett on Saturday January 10, 2015 @05:28PM
(#8868174)
Rather than dragging, just click in the same spot hundreds of times to make a huge tower of water, then unpause to see a single ring of concentric waves and perfect wave reflection/interaction effects.
Re:WebGL Water Simulator
by lifeformed on Sunday January 11, 2015 @04:26PM
(#8871386)
Or paste this into the console:
water.addDrop(x, y, radius, strength)
0,0 is the center, bounds are -1 to 1. 0.1 radius is a reasonable spike, 1 radius is a huge swell. 1 strength is really big. 10 is ridiculous. Try negative numbers too!Try:
water.addDrop(0, 0, 0.1, 5)water.addDrop(5, 9, -0.03, 1) is cool, especially as it starts to settle
HOLY CRAP.... Dude
If you click a lot, the level of water gets higher. Each click adds some water to the tank.
edit: The white sphere don't use the real level of water to decide where it should float (when gravity is activated)
Or automate the process:
for i in $(seq 1 100); do cliclick c:.; doneBut if you put the ball on half-way on the surface, it seems the water waves don't bounce on it. Or is it me ?
If you do it in the middle, you get some really nice patterns
This was really really fun! :D
Re:WebGL Water Simulator
by fatihpense on Saturday January 10, 2015 @08:52PM
(#8868736)
I got a very nice heart shape by dragging: http://i.imgur.com/0675p4W.png
Drag the mouse rapidly back and forth in a very tiny area so that it creates a layered 'ripple' that grows and grows. If you spend about 2 minutes doing this you can make the ripple go like 10 feet high completely off the screen.
Then unpause the simulation for a massive tsunami.