Live data from Hacker News

WebGL Water Simulator

madebyevan.com

51–60 of 76 posts

Re: WebGL Water Simulator

#51
post #15

Earlier quoted context omitted.

Android Firefox and Chrome both implement the floating-point textures extension, but your devices GPU also has to natively support it. If you're interested, you can check what your device supports with a tool like this: https://play.google.com/store/apps/details?id=com.darkrockst... Not all of the GLES extensions will be exposed to WebGL, but most WebGL extensions directly map to a GLES one (GL_OES_texture_float in t…

On a Galaxy S5, it works glitchily in Chrome and not at all in Firefox.

Maybe Mozilla blacklisted the extension: Qualcomm drivers are apparently quite awful.

https://dolphin-emu.org/blog/2013/09/26/dolphin-emulator-and...

Re: WebGL Water Simulator

#52

Shouldn't the ball cause ripples when moving underwater?

It looks like it's only simulating the surface. Moving a ball that of that relative size in that volume of water would cause all sorts of surface features, if the full volume of water was being simulated.

Re: WebGL Water Simulator

#53
post #49

I remember trying to run this on my phone previously and it not working. I also remember it causing my cup fan to fire up when I played with it on my laptop. The fact that the iPhone 6 runs this so well is pretty dang cool.

Same here! I remember trying it on an older iPhone and android phone and it was choppy. Just tried it on my iPhone 6 and it's so smooth. I love seeing that progression in technology first hand.

Re: WebGL Water Simulator

#54
post #10

Earlier quoted context omitted.

The sides seem to be a cut-away view, not a surface...

Right. Refraction only occurs on the surface of the water, like the waves; the views through the sides are what you'd see from under the water at that point, not looking through a viewing window.

Well, if you want to get really technical, what you'd see from underwater would be much worse than what a camera sees, since your eyes require air to properly focus.

So if they wanted to make it what you would see underwater, they should just blur the crap out of it.

Re: WebGL Water Simulator

#55
post #43
post #40

Earlier quoted context omitted.

I love videos like this, do you know of any more good ones? I could watch this stuff all day.

Technical demos, or fluid dynamics eyecandy? Check out what the heavy duty non-realtime systems can do if you want the later. https://www.youtube.com/watch?v=WD_K0Koi1MU

Great stuff, but man, what a reality check. The most cutting-edge physics and graphics effects and it's used to sell beer and candy bars.

Re: WebGL Water Simulator

#56

Sanity check: Wasn't this posted on HN before? Regardless. It's awesome that a browser with WebGL can achieve that kind of speed and behavioral complexity. Is ray tracing the reflections part of OpenGL? Or is that a separate library?

It has been posted several times before.

Re: WebGL Water Simulator

#57
post #43

Earlier quoted context omitted.

Technical demos, or fluid dynamics eyecandy? Check out what the heavy duty non-realtime systems can do if you want the later. https://www.youtube.com/watch?v=WD_K0Koi1MU

Great stuff, but man, what a reality check. The most cutting-edge physics and graphics effects and it's used to sell beer and candy bars.

Actually, I was once talking to a friend that does photography for print ads: I was surprised to find out that most of the highly detailed stills of, say, lipstick or champagne coming out of a bottle are actual photographs.

Re: WebGL Water Simulator

#58
post #43

Earlier quoted context omitted.

Technical demos, or fluid dynamics eyecandy? Check out what the heavy duty non-realtime systems can do if you want the later. https://www.youtube.com/watch?v=WD_K0Koi1MU

Great stuff, but man, what a reality check. The most cutting-edge physics and graphics effects and it's used to sell beer and candy bars.

Some of those examples were clearly not real but some - the snickers bar being split - seemed pretty real.

I wonder if those very realistic shots are usable in UK adverts without disclaimers? As an example, see ads for mascara which get regulated if they use computer enhanced lashes and no disclaimer.

Re: WebGL Water Simulator

#60
post #40
post #34

Doing this in a browser is a neat trick, but the actual state-of-the-art in realtime GPU fluids is slightly more impressive. nVidias FleX middleware is a good example: https://www.youtube.com/watch?v=1o0Nuq71gI4

I love videos like this, do you know of any more good ones? I could watch this stuff all day.

Check out the annual Siggraph preview videos, https://www.youtube.com/results?search_query=siggraph+2014+p...
Post reply on HN