Live data from Hacker News

WebGL Water Simulator

madebyevan.com

1–10 of 76 posts

Re: WebGL Water Simulator

#3
Fun trick: Pause the simulation with the space bar. Then, take your mouse and drag it on the surface of the water, you will notice it creates ripples but in the paused state.

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.

Re: WebGL Water Simulator

#5
post #3

Fun trick: Pause the simulation with the space bar. Then, take your mouse and drag it on the surface of the water, you will notice it creates ripples but in the paused state. 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 th…

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

#8

The author of this simulation seems to have forgotten the effects of refraction. Besides that, it's great!

Refraction definitely works; try moving the camera around, and you can see the effects of refraction on the ball.

It appears to work on the top but not on the sides

Re: WebGL Water Simulator

#10

Earlier quoted context omitted.

Refraction definitely works; try moving the camera around, and you can see the effects of refraction on the ball.

It appears to work on the top but not on the sides

The sides seem to be a cut-away view, not a surface...
Post reply on HN