News for hackers. Stuff that matters.
Re:WebGL Water Simulator by josephpmay on Saturday January 10, 2015 @05:13PM (#8868137)
The author of this simulation seems to have forgotten the effects of refraction. Besides that, it's great!
Re:WebGL Water Simulator by JoshTriplett on Saturday January 10, 2015 @05:25PM (#8868164)
Refraction definitely works; try moving the camera around, and you can see the effects of refraction on the ball.
Re:WebGL Water Simulator by josephpmay on Saturday January 10, 2015 @05:44PM (#8868217)
It appears to work on the top but not on the sides
Re:WebGL Water Simulator by Mikeb85 on Saturday January 10, 2015 @05:52PM (#8868240)
The sides seem to be a cut-away view, not a surface...
Re:WebGL Water Simulator by JoshTriplett on Saturday January 10, 2015 @07:08PM (#8868493)
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.
Re:WebGL Water Simulator by DannyBee on Sunday January 11, 2015 @01:37AM (#8869271)
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 by frozenport on Saturday January 10, 2015 @06:30PM (#8868365)
Are you talking about total internal reflection? http://upload.wikimedia.org/wikipedia/commons/5/5c/Total_int...

I think I can find an angle where you can't see the skybox.