This is really impressive. It makes me wonder how particle effects in Javascript running in a web browser can run so well, while a native desktop application like After Effects takes ages to render something similar? Here's another mesmerising javascript experiment http://brunoimbrizi.com/experiments/#/01
Particle effects in JavaScript
41–50 of 73 posts
Re: Particle effects in JavaScript
#42This does not work for me in FF 22.0 (work specified version). Looks nice in chrome, only time it drops is when you bundle them into a large group and then cross you mouse over it and they explode everywhere.
Re: Particle effects in JavaScript
#43I did some experimenting to make particles dance to the beat of music if anyone is interested: http://trapcity.tv
Re: Particle effects in JavaScript
#44I did some experimenting to make particles dance to the beat of music if anyone is interested: http://trapcity.tv
EDIT: This is pretty damn cool. Could I convince you to submit a pull request with something similar to MediaCrush[1]? We host audio files [2] and this would be a nice addition.
[1] https://github.com/MediaCrush/MediaCrush [2] https://mediacru.sh/p3Yo3dDHZrmo
Re: Particle effects in JavaScript
#45You can increase the number of particles by changing this line: totalLines = 60000, My PC starts getting slower after 150K, but it works, though slowly, even with 1 million.
Interestingly I can take it to 1,000,000 with Firefox (Nightly) without too many problems. Chrome (Canary) becomes unusable around 200,000.
I just tried both Crome and FF with a million particles, and they feel roughly the same.
Re: Particle effects in JavaScript
#46Earlier quoted context omitted.
Really dig this. Any way I could check out the source?
Here you go: https://github.com/jacksonGariety/trapcity
Re: Particle effects in JavaScript
#47Re: Particle effects in JavaScript
#48If you refactor the object/array/Float32Array instantiation in the redraw loop out into one-off allocations you will see a remarkably improvement in performance in terms of garbage-collection.
Re: Particle effects in JavaScript
#49So cools that my cayman radeon driver on linux got some errors :-)
Re: Particle effects in JavaScript
#50I did some experimenting to make particles dance to the beat of music if anyone is interested: http://trapcity.tv
When I check out the chrome console I find: Uncaught TypeError: Cannot set property 'innerHTML' of null