top | item 12311321

Show HN: Ball falls on the teapot in WebGL

49 points| alex2401 | 9 years ago |whitestormjs.xyz

30 comments

order
[+] lagadu|9 years ago|reply
Curiously enough, the first time I ran it it was "teapot falling on ball" instead. It slowly slid off the ball after it landed. Still worked fine :)
[+] barnacs|9 years ago|reply
For some reason I was expecting a bowling ball to fall and crush the teapot. More like: http://bit.ly/2bhClHV
[+] Retr0spectrum|9 years ago|reply
Now I was expecting that link to show the teapot getting crushed...
[+] 56k|9 years ago|reply
I thought it was going to fall inside the teapot.
[+] zachrose|9 years ago|reply
Sometimes the ball bounces off the spout and rolls down towards the camera. Other times it rolls aways from the camera. Can anyone speculate on why this is apparently non-deterministic?
[+] trevordev|9 years ago|reply
Possibly the physics of the world is based on change in time between rendering. If the rendering time is slightly longer/shorter the collision calculations may cause this non-deterministic action.
[+] kempbellt|9 years ago|reply
Set gravity of X to 1. Win!

Seriously though. Very cool demo. Great work.

[+] natosaichek|9 years ago|reply
If you set X gravity to 80, it's even cooler. :-D
[+] patmcguire|9 years ago|reply
I see cool demos, and things that look passable for game graphics http://alexis.lart.no/emh/snapshots/rts-free.git/

Is there some big use of WebGL in production that I'm missing? It always seems to have a bunch of promise that no one does much new with

[+] skoczymroczny|9 years ago|reply
The popularity should spike soon, because Unity3D Webplayer has been deprecated a while ago and WebGL is the official Unity3D distribution method for the web. The performance isn't there yet, but authors promise to get there at some point.
[+] dschuetz|9 years ago|reply
My first impression: doesn't work. I'm on Safari 9 with enabled WebGL. Wonderful.
[+] nsxwolf|9 years ago|reply
I never try to use Safari for WebGL. I just assume it isn't supported or so broken it might as well not be.
[+] blueline|9 years ago|reply
doesn't work on safari technology preview 11 either
[+] partycoder|9 years ago|reply
Interesting. Seems to be non-deterministic. Each time the ball falls to a different side.