85 points · by reimertz · 10y ago · 29 comments
Some more variations we came up with:
http://alteredqualia.com/tmp/solitaire/
http://alteredqualia.com/tmp/cash/
http://alteredqualia.com/tmp/mario/
http://alteredqualia.com/tmp/meeseeks/
Also, choosing an odd number of polys to be rendered creates frankenpolys: https://www.clicktorelease.com/code/polygon-shredder/#33
About the frakenpolys: the hash info doesn't directly say the number of cubes to generate, but the side of the texture that hold the position. So if it is 256, it's a 256x256 RGBA Float32Array, 65536 particles that are then rendered as cubes. For odd numbers, or simply numbers that are not power of two, it doesn't work (well, it works, but the access to different vertices is all garbled and you get all those franken-noodle-cubes)
I thought Firefox supported WebGL. That's sad. So basically, this is Chromium-desktop-only.
What version of Firefox, OS, GPU, etc. are you using?
Well, those stats are wrong, because a lot more than 1% of browsers are on mobile platforms with no WebGL support.
Of course there are more than 1% browsers that support, but we're talking about implementations, not devices. You can can have an old iPhone running iOS pre8 and it won't run WebGL, but one can say that iOS does support WebGL now.
The actual implementation stats are here http://caniuse.com/#search=webgl
[for cooling off CPU taxed with rendering confetti]
This is great work, looking forward to your write-up!