None seem to work on Safari 14.0.01 :/ Not sure if I need to enable anything for WebGL. On vanilla Chrome 87, I get "Unable to initialize the shader program: Vertex shader active uniforms exceed GL_MAX_VERTEX_UNIFORM_VECTORS(256)" for most of them. But a few work (swyrlyx.html) and are super cool! Nicely done.
Show HN: Exophysics – WebGL2 particle simulator
21–28 of 28 posts
Re: Show HN: Exophysics – WebGL2 particle simulator
#22Hey people, I built this particle simulator in ~500 lines of self-contained HTML/JS/WebGL2. It's designed to encourage creativity and exploration. You can just download one of those universes and open up the HTML file in a text editor to tweak the physical laws and constants. Then open it up in your browser to see the result immediately. I had a lot of fun exploring the beautiful emergent behaviors that arise from th…
Nice, this is really fun to play with! I messed around with something similar a few years ago, based on (the code in) this video https://www.youtube.com/watch?v=Z_zmZ23grXE Edit: Apparently there are a lot of these! This variant is also pretty cool (smaller particles, more like "fields"): https://www.youtube.com/watch?v=nu5aDIEoBk0
Re: Show HN: Exophysics – WebGL2 particle simulator
#23None seem to work on Safari 14.0.01 :/ Not sure if I need to enable anything for WebGL. On vanilla Chrome 87, I get "Unable to initialize the shader program: Vertex shader active uniforms exceed GL_MAX_VERTEX_UNIFORM_VECTORS(256)" for most of them. But a few work (swyrlyx.html) and are super cool! Nicely done.
It's a pity that Safari is a little slow to implement WebGL2. Your message on chrome though sounds like a legit bug, since normally, Exophysics reduces the number of particles to match the hardware/browser capabilities, and here they're exceeded. Will investigate.
Re: Show HN: Exophysics – WebGL2 particle simulator
#24Hey people, I built this particle simulator in ~500 lines of self-contained HTML/JS/WebGL2. It's designed to encourage creativity and exploration. You can just download one of those universes and open up the HTML file in a text editor to tweak the physical laws and constants. Then open it up in your browser to see the result immediately. I had a lot of fun exploring the beautiful emergent behaviors that arise from th…
Yoshiki Ohshima also made the particle/fields simulator in Squeak/Etoys that Alan Kay demos is his talks [5] and was a scientist at Alan Kay's VPRI [4].
[1] http://tinlizzie.org/~ohshima/shadama2/
[2] https://www.youtube.com/user/yoshikiohshima/search?query=sha...
[3] http://tinlizzie.org/~ohshima/shadama2/live2017/#kedama
Re: Show HN: Exophysics – WebGL2 particle simulator
#25Hey people, I built this particle simulator in ~500 lines of self-contained HTML/JS/WebGL2. It's designed to encourage creativity and exploration. You can just download one of those universes and open up the HTML file in a text editor to tweak the physical laws and constants. Then open it up in your browser to see the result immediately. I had a lot of fun exploring the beautiful emergent behaviors that arise from th…
I like this programming languages made for particle/fields [1,2,3] Yoshiki Ohshima also made the particle/fields simulator in Squeak/Etoys that Alan Kay demos is his talks [5] and was a scientist at Alan Kay's VPRI [4]. [1] http://tinlizzie.org/~ohshima/shadama2/ [2] https://www.youtube.com/user/yoshikiohshima/search?query=sha... [3] http://tinlizzie.org/~ohshima/shadama2/live2017/#kedama [4] http://www.vpri.org/writ…
Re: Show HN: Exophysics – WebGL2 particle simulator
#26Re: Show HN: Exophysics – WebGL2 particle simulator
#27I thought that WebGL2 didn't have compute shaders. How are you doing this without them?
Actually there is a compute shaders extension, but it is only available in certain drivers configurations in Firefox.
Chrome only plans to support WebGPU.
Re: Show HN: Exophysics – WebGL2 particle simulator
#28I thought that WebGL2 didn't have compute shaders. How are you doing this without them?
https://developer.mozilla.org/en-US/docs/Web/API/WebGLTransf...
> The WebGLTransformFeedback interface is part of the WebGL 2 API and enables transform feedback, which is the process of capturing primitives generated by vertex processing. It allows to preserve the post-transform rendering state of an object and resubmit this data multiple times.