WebGL: 80,000 particles
31–40 of 85 posts
Re: WebGL: 80,000 particles
#32Is 80000 particles the limit? With Flash you could render +300000 particles years ago: http://www.unitzeroone.com/labs/alchemyPushingPixels/
Now-a-days it's pretty much standard to use two floating-point off screen textures to store, update, and draw the particles completely on the GPU. This way, you can get 1M+ particles easy.
Re: WebGL: 80,000 particles
#33Re: WebGL: 80,000 particles
#34From this tweet, it seems it is actually 30000 particles: https://twitter.com/boblemarin/status/204943143798448129
Re: WebGL: 80,000 particles
#35If you set a breakpoint at that line (28), then you can edit the variable in the console to whatever you want. You can make it smaller without setting the breakpoint, but any higher results in a "attempt to access out of range vertices" error.
I can get it to ~40,000 on my iMac's 6970m 2GB without noticeable slowdown (this is w/ Chrome 20 dev.)
Re: WebGL: 80,000 particles
#36Is 80000 particles the limit? With Flash you could render +300000 particles years ago: http://www.unitzeroone.com/labs/alchemyPushingPixels/
Preserving state directly on the GPU makes it so you can get up into the millions of particles (depending on the videocard of course): http://mikecann.co.uk/projects/HaxeWebGLParticles/
Re: WebGL: 80,000 particles
#37It looks very impressive. I'd love to see some kind of game using particles like that, something like Osmos: http://www.youtube.com/watch?v=pso6UBicLWU
Re: WebGL: 80,000 particles
#38Is 80000 particles the limit? With Flash you could render +300000 particles years ago: http://www.unitzeroone.com/labs/alchemyPushingPixels/
That demo gets about 19 fps on my machine, whereas the WebGL demo appears to be getting close to 60, so that seems to be scaling pretty similarly. Also keep in mind that the demo you linked to uses Alchemy, which is C/C++ compiled to AVM2, so for WebGL to be getting roughly equivalent performance is pretty damned impressive.
Re: WebGL: 80,000 particles
#39For anyone who's curious like I was, just go to http://minimal.be/lab/ for a full listing of other cool stuff he's worked on.