Live data from Hacker News

WebGL: 80,000 particles

minimal.be

21–30 of 85 posts

Re: WebGL: 80,000 particles

#21
post #3

Wow, that's awesome. if you don't let the particles catch up w/ your mouse (and trace circles around them) the gather up in one place and turn white, resulting in some spectacular 'explosions'

If you let them catch up, you can make a sort of pink torus around the mouse.

I feel like a god creating the universe, really nice effects!

Re: WebGL: 80,000 particles

#23
The most impressive bit of this is that it it keeps under 20% CPU on my Mid-2010 MBP [Chrome 19].

It's hard not to imagine another cyclical shift towards browser centric development, away from rich client apps, when you have Chrome pulling off tricks like this. Things that would've seemed impossible in 2008, the last time everything was moving to the browser.

Give Apple/ARM/Intel/Samsung a few more cycles in mobile [more RAM, if nothing else!] and you might need to reconsider the disadvantages of native apps in favor of all the advantages that centrally hosted applications offer [no Apple fee, no pirating, continuous deployment, cross-platform, etc, etc.].

I long for a vibrant open-source project that builds quality widgets and elements for people to use inside this framework. Let's not pretend jQuery mobile et. al. are anywhere close.

Re: WebGL: 80,000 particles

#24
post #3

Wow, that's awesome. if you don't let the particles catch up w/ your mouse (and trace circles around them) the gather up in one place and turn white, resulting in some spectacular 'explosions'

[deleted]

Re: WebGL: 80,000 particles

#25
post #6

Is 80000 particles the limit? With Flash you could render +300000 particles years ago: http://www.unitzeroone.com/labs/alchemyPushingPixels/

you can do the same in JS if you have such simple particles as well (ie rendering by just writing a few bytes). http://mrdoob.com/lab/javascript/strangeattractor/ does 300k as well (though it's borked right now since he has to update his stats code).

here's another fast one in webgl: http://iacopoapps.appspot.com/hopalongwebgl/ reading the source, it has 280000 particles.

Post reply on HN