Particle effects in JavaScript
liveweave.com
liveweave.com
Here's another mesmerising javascript experiment http://brunoimbrizi.com/experiments/#/01
Amazing job!
Works perfect on Version 30.0.1599.101 Chrome.
http://www.youtube.com/watch?v=W5R4GFbXPvY
edit: added link to OfficialTrapCity
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
When I check out the chrome console I find: Uncaught TypeError: Cannot set property 'innerHTML' of null
In chrome canary I also get:
Invalid CSS property value: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(0,0,0,0.33)), color-stop(100%,rgba(0,0,0,0.75)))
and the same error as found in in standard chrome.
I believe the problem is your time() method on line 189 of script.js; there's no element with id "time".
Very cool effect!
If 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.
Should I enable something in about:config or something else ?
I've never had webgl work on linux (not that I've tried particularly hard)
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --no-sandbox --enable-webgl --enable-experimental-webgl
totalLines = 60000,
My PC starts getting slower after 150K, but it works, though slowly, even with 1 million.I just tried both Crome and FF with a million particles, and they feel roughly the same.