News for hackers. Stuff that matters.
Re:Show HN: Play with Shaders Inspired by Slime Mold by theossuary on Tuesday March 30, 2021 @09:18AM (#26634245)
This reminds me of a coding adventure YT video that replicates slime molds in Unity, look at the end to see some high res videos of it - https://youtu.be/X-iSQQgOd1A
Re:Show HN: Play with Shaders Inspired by Slime Mold by jedimastert on Tuesday March 30, 2021 @09:50AM (#26634585)
Coding Aventure is one of my favorite intellectual(?) exploration channels, along with Primer, who's had a great string of genetic/evolution simulation videos exploring the emergent evolution of society

https://www.youtube.com/watch?v=goePYJ74Ydg

Re:Show HN: Play with Shaders Inspired by Slime Mold by arnado on Tuesday March 30, 2021 @10:37AM (#26635076)
The article credits that video directly for inspiration.
Re:Show HN: Play with Shaders Inspired by Slime Mold by theossuary on Tuesday March 30, 2021 @11:17AM (#26635594)
Whoops, didn't see that. I thought it was a little peculiar that there were two things about simulating mold in a week in my feeds; but I just chalked it up to frequency bias. Now I'm wondering if all the 3d printed cycloidal drive stuff I've been seeing is more than just coincidence...
Re:Show HN: Play with Shaders Inspired by Slime Mold by Yenrabbit on Tuesday March 30, 2021 @03:33PM (#26639272)
I wonder if previous 'Coding Adventures' videos have prompted similar 'coincidences' with people wondering why they are suddenly seeing procedural planets popping up all over the place :)
Re:Show HN: Play with Shaders Inspired by Slime Mold by mushishi on Tuesday March 30, 2021 @08:50AM (#26633959)
Somewhat related, here's an interesting video about the behavior of Slime Mold:

Nova - Se47 - Ep10 - Secret Mind of Slime https://www.dailymotion.com/video/x7z6ycz

(Someone shared it here on another post.)

Re:Show HN: Play with Shaders Inspired by Slime Mold by spuz on Tuesday March 30, 2021 @08:35AM (#26633853)
This is super interesting. I've actually been looking for a way to render 100,000s of points in an animation similar to these so I will definitely take a look at using shaders now.
Re:Show HN: Play with Shaders Inspired by Slime Mold by Yenrabbit on Tuesday March 30, 2021 @03:41PM (#26639378)
Great - good luck!
Re:Show HN: Play with Shaders Inspired by Slime Mold by Yenrabbit on Monday March 29, 2021 @07:22AM (#26620055)
Author here, happy to answer any questions about the implementation. I'd also love to see any interesting patterns you find :)
Re:Show HN: Play with Shaders Inspired by Slime Mold by natemcintosh on Tuesday March 30, 2021 @08:31AM (#26633827)
Like you, I also loved Sebastian Lague's video on slime mold. Would you suggest starting on a CPU based version if I have no knowledge of shaders?
Re:Show HN: Play with Shaders Inspired by Slime Mold by mindv0rtex on Tuesday March 30, 2021 @09:43AM (#26634524)
That's what I did when I recently came across the same model. Here's my CPU-based implementation (in Rust): https://github.com/mindv0rtex/physarum
Re:Show HN: Play with Shaders Inspired by Slime Mold by Yenrabbit on Tuesday March 30, 2021 @03:37PM (#26639315)
You can get some fun patterns even at much smaller scale, so a CPU-based approach should be entertaining enough. That said, I had no knowledge of shaders either before this project! I'm johnowhitaker on twitter or email - happy to chat if you want to talk specifics.
Re:Show HN: Play with Shaders Inspired by Slime Mold by marshmallow_12 on Tuesday March 30, 2021 @10:16AM (#26634846)
here's something else interesting about slime mould https://www.nationalgeographic.com/science/article/slime-mou...
Re:Show HN: Play with Shaders Inspired by Slime Mold by coldcode on Tuesday March 30, 2021 @08:18AM (#26633728)
Does not seem to work in Safari on Big Sur, all I see is js errors where the animations should be.
Re:Show HN: Play with Shaders Inspired by Slime Mold by SketchySeaBeast on Tuesday March 30, 2021 @09:14AM (#26634196)
Doesn't work in Firefox either, including the dev edition which is usually more up to date:

"viewof gl = TypeError: can't access property "viewport", gl is null"

It does work in the new Edge and Chrome. Doesn't load at all in IE, but I take that as a good thing.

Re:Show HN: Play with Shaders Inspired by Slime Mold by burkaman on Tuesday March 30, 2021 @09:49AM (#26634576)
No problem for me in Firefox Nightly 89.0a1.
Re:Show HN: Play with Shaders Inspired by Slime Mold by SketchySeaBeast on Tuesday March 30, 2021 @09:57AM (#26634653)
Hmmm... my work laptop can't run it with Firefox (regular, dev edition, or nightly), but my home PC can on regular Firefox. And it does run on my work laptop in Chrome. Curious.
Re:Show HN: Play with Shaders Inspired by Slime Mold by pineconewarrior on Tuesday March 30, 2021 @08:36AM (#26633865)
Safari is a bit behind on javascript and animations. I'm excited for the current Safari preview to become mainstream.
Re:Show HN: Play with Shaders Inspired by Slime Mold by selfsimilar on Tuesday March 30, 2021 @08:20AM (#26633736)
Same in Safari in iOS.

`viewof gl = TypeError: null is not an object (evaluating 'gl.viewport')`

Re:Show HN: Play with Shaders Inspired by Slime Mold by nigerian1981 on Tuesday March 30, 2021 @02:43PM (#26638585)
I tried turning on WebGL and WebGPU in the Safari settings, but it just shows a black box on my iPhone 11
Re:Show HN: Play with Shaders Inspired by Slime Mold by arc-in-space on Tuesday March 30, 2021 @08:35AM (#26633849)
I'm guessing there's no collisions from the original paper in this implementation?

Edit: also, are boundaries being blurred properly with wrapping enabled? It seems to create rectangular patterns(it could just be because of the initial conditions though).

Re:Show HN: Play with Shaders Inspired by Slime Mold by Yenrabbit on Tuesday March 30, 2021 @03:39PM (#26639349)
I'll be honest I found the paper AFTER finishing the project - my implementation was based on the rough description in the video :) Collisions would be very hard to implement, but I will definitely take a look at the blurring - at the moment it doesn't wrap around.
Re:Show HN: Play with Shaders Inspired by Slime Mold by galangalalgol on Tuesday March 30, 2021 @08:04AM (#26633611)
In green slime I saw a central ring that seemed to be reinforcing itself. It stayed circular for ages. And then equidistant parallel lines along each side.