News for hackers. Stuff that matters.
Re:Flash is dead. Long live the internet. by secretbatcave on Saturday November 12, 2011 @12:08PM (#3228208)
Try and animate a walk cycle in pure javascript.

now tell me that flash is dead.

Re:Flash is dead. Long live the internet. by stuartmemo on Saturday November 12, 2011 @01:12PM (#3228388)
Re:Flash is dead. Long live the internet. by scarmig on Saturday November 12, 2011 @09:08PM (#3229589)
Weird.

1) The url would suggest this is done using the canvas element. On my browser, though, it's implemented using SVG. Is anyone else seeing this?

2) SVG is a really terrible medium for this use case. What should be used instead, and would probably give better performance, is... canvas.

Re:Flash is dead. Long live the internet. by jQueryIsAwesome on Saturday November 12, 2011 @10:44PM (#3229814)
Yep, is on SVG on my browser too (Chrome).

And i think they made a zombie as an excuse for their bad implementation of a walking cicle.

Re:Flash is dead. Long live the internet. by secretbatcave on Saturday November 12, 2011 @02:19PM (#3228610)
That was convincingly pixar level walk cycle

On a 2010 macbook that runs at 15fps, which is a great step forward in speed for moving 8 sprites. Have you actually tried to animate anything other than a solid body, in just code?

http://www.idleworm.com/how/anm/02w/walk1.shtml is a walk cycle, and as you can see they are animating the control points, so the body smoothly deforms. As far as I'm aware you can control individual control points of an SVG with javascript. Even if you could without a decent interface you couldn't do more than move a ball about.

HTML/JS is shit at animation.

Flash is rubbish, and can be much more efficient, however HTML/JS is 10 times worse.

Re:Flash is dead. Long live the internet. by driverdan on Saturday November 12, 2011 @03:04PM (#3228751)
I don't know what's wrong with your computer but my 2010 MacBook Pro running Chrome hits a steady 52 fps.
Re:Flash is dead. Long live the internet. by saint-loup on Saturday November 12, 2011 @03:10PM (#3228767)
45 fps on Chrome, ~15 on Firefox (MBP 2009).
Re:Flash is dead. Long live the internet. by secretbatcave on Sunday November 13, 2011 @01:15PM (#3231366)
but that's the point, its 8 sprites!
Re:Flash is dead. Long live the internet. by suivix on Saturday November 12, 2011 @02:55PM (#3228728)
That renders like shit on my Droid X.
Re:Flash is dead. Long live the internet. by nascentone on Saturday November 12, 2011 @02:38PM (#3228670)
Ha, +1 point for snarkiness, -10 points for thinking that walk cycle experiment is a comparable example to even average Flash animation work, +9 points hoping for the love of the internet that you were just trying to make a laugh = net worth of nothing.
Re:Flash is dead. Long live the internet. by Joeri on Saturday November 12, 2011 @02:56PM (#3228733)
http://dev.sencha.com/animator/demos/kickfu/

Sencha is aiming their animator product at replacing flash animations with html5. They have a long way to go, but it's not an impossible thing.