Live data from Hacker News

Show HN: Exophysics – WebGL2 particle simulator

exophysics.net

1–10 of 28 posts

Re: Show HN: Exophysics – WebGL2 particle simulator

#2
Hey 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 those simple rules, give it a try too! There's plenty of documentation and you don't need to be a programming wizard. :)

The most interesting universes I came up with are on display here: https://exophysics.net/exhibition.html

Re: Show HN: Exophysics – WebGL2 particle simulator

#3
post #2

Hey 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…

This is pretty fun, I like it, will take a look at the code later today.

> Finally, I am legally obliged to inform you of the one law of exophysics: > YOU ARE REQUIRED TO TERMINATE A SIMULATION IMMEDIATELY UPON FINDING > EVIDENCE OF THE EMERGENCE OF SENTIENT CREATURES CAPABLE OF SUFFERING.

LOL, I had to google "law of exophysics" to see if it is real.

Re: Show HN: Exophysics – WebGL2 particle simulator

#4
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.

Re: Show HN: Exophysics – WebGL2 particle simulator

#5
post #2

Hey 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 love the emphasis on user exploration. And your way of writing the documentation is very welcoming. Awesome tool.

Re: Show HN: Exophysics – WebGL2 particle simulator

#6
post #2

Hey 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…

[deleted]

Re: Show HN: Exophysics – WebGL2 particle simulator

#7
post #4

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.

Safari does not support WebGL 2 by default. But Safari Technology Preview does.

Re: Show HN: Exophysics – WebGL2 particle simulator

#8
post #4

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.

on Safari/macOS you can enable Develop | Experimental Features | WebGL 2.0

Re: Show HN: Exophysics – WebGL2 particle simulator

#10
post #2

Hey 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…

This is pretty fun, I like it, will take a look at the code later today. > Finally, I am legally obliged to inform you of the one law of exophysics: > YOU ARE REQUIRED TO TERMINATE A SIMULATION IMMEDIATELY UPON FINDING > EVIDENCE OF THE EMERGENCE OF SENTIENT CREATURES CAPABLE OF SUFFERING. LOL, I had to google "law of exophysics" to see if it is real.

I mean.. arguably... if the sentient creatures have emerged then is it ethical to kill them?
Post reply on HN