21 comments

[ 3.1 ms ] story [ 51.6 ms ] thread
Really nice one! Love the "gracefull degrade" implementation where if you dont have tilting device, it uses the mouse instead ;)
Rotation of my iPhone seemed to really throw it off. All the snowflakes suddenly zoomed off to the left, and then there were no flakes left in the globe.

After I returned back to portrait orientation there will still no flakes :(

EDIT: iPhone 4 with iOS 4.2.1

interesting - we tried it out (was it ultra slow for you too?) and while we didn't see the snowflakes zoom to the left, we didn't get orientation events. We didn't have a lot of time so we went with it, but we'll look into the code and see what's up.
This page works great on my N900 :)
Now that is something I honestly didn't expect - but that I like hearing.
now thats the kind of stuff I'd expect on hacker news... what is interesting about this? clearly it must be the advanced physics engine.
very cool! I hope you get good valuable traction with this stylish hack!
Left the snowglobe open for about 10 minutes in a tab and Firefox hit 2GB of memory usage. :-( Not necessarily your fault, but definitely hampers the charm... pretty demo, regardless. Wish I had a device with support for HTML orientation events so I could try it out there.
Ouch. Sorry - that is indeed a problem (not necessarily in this context - this page goes away on monday - but in general)! Strangely, we are reusing our objects, so I don't think it can be the javascript code itself. Could it somehow be Firefox's implementation of canvas?

I will investigate. Thanks!

I didn't leave the page open but I did notice that it pegged a processor [Firefox 4 beta8pre].
Hmm for some reason on my macbook pro if I tilt to the right the snow goes to the left and vice versa...
(comment deleted)