[{"data":1,"prerenderedAt":241},["ShallowReactive",2],{"project-26619871":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":35,"aspects":36,"strip":40,"post_text":42,"what":43,"said":64,"maker_in_thread":138,"shape":149,"grid":154,"attempts":204,"same_week":205,"maker_shows":33,"maker_hidden":234,"reader_version":235,"card":236},"26619871","DotSwarm","Play with Shaders Inspired by Slime Mold","title","Show HN: Play with Shaders Inspired by Slime Mold","https:\u002F\u002Fobservablehq.com\u002F@johnowhitaker\u002Fdotswarm-exploring-slime-mould-inspired-shaders","observablehq.com","Yenrabbit",1617015358,2021,67,23,710,2533,29,"notable","creative","generative art shaders","web_app",[24,25,26,27,28],"slime mold","shaders","webgl","generative art","physarum","mixed",-0.13,{"positive":32,"neutral":33,"mixed":34,"critical":33},2,5,0,12,{"idea":37,"execution":39},{"positive":38,"critical":34},1,{"positive":38,"critical":33},[41,34,41,34,34,34,33,34,34,41,34,34,34,38,38,38,34,38,33,38,41,34,41],3,null,{"problem":42,"audience":42,"pricing":42,"motivation":42,"time_to_build":42,"stack":44,"openness":63,"stage":63,"team_size":63},[45,57],{"value":46,"source":47,"evidence":48},"WebGL","inferred",[49,53],{"id":50,"by":51,"text":52},"26633736","selfsimilar","Same in Safari in iOS. `viewof gl = TypeError: null is not an object (evaluating 'gl.viewport')`",{"id":54,"by":55,"text":56},"26634196","SketchySeaBeast","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…",{"value":58,"source":47,"evidence":59},"Observable notebook",[60,61],{"id":50,"by":51,"text":52},{"id":62},"post","unknown",{"praise":65,"objections":78,"requests":101,"questions":111,"alternatives":119},[66],{"value":67,"source":68,"evidence":69},"Interesting visual patterns and a fun exploration of slime mold simulation","commenter",[70,74],{"id":71,"by":72,"text":73},"26633853","spuz","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.",{"id":75,"by":76,"text":77},"26633611","galangalalgol","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.",[79,91],{"value":80,"source":68,"evidence":81},"Does not work in Safari or some Firefox setups, showing JavaScript errors",[82,86,87,88],{"id":83,"by":84,"text":85},"26633728","coldcode","Does not seem to work in Safari on Big Sur, all I see is js errors where the animations should be.",{"id":50,"by":51,"text":52},{"id":54,"by":55,"text":56},{"id":89,"by":55,"text":90},"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.",{"value":92,"source":68,"evidence":93},"Boundaries wrap incorrectly, producing rectangular patterns",[94,98],{"id":95,"by":96,"text":97},"26633849","arc-in-space","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…",{"id":99,"by":11,"text":100},"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,…",[102,107],{"value":103,"source":104,"evidence":105},"Support wrapping with proper blurring at boundaries","maker",[106],{"id":99,"by":11,"text":100},{"value":108,"source":68,"evidence":109},"Implement collisions as in the original paper",[110],{"id":95,"by":96,"text":97},[112],{"value":113,"source":68,"evidence":114},"Should a beginner start with a CPU-based version without shader knowledge?",[115],{"id":116,"by":117,"text":118},"26633827","natemcintosh","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?",[120,131],{"value":121,"source":68,"evidence":122},"Sebastian Lague's Coding Adventure slime mold video",[123,127],{"id":124,"by":125,"text":126},"26634245","theossuary","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:\u002F\u002Fyoutu.be\u002FX-iSQQgOd1A",{"id":128,"by":129,"text":130},"26635076","arnado","The article credits that video directly for inspiration.",{"value":132,"source":68,"evidence":133},"Physarum Rust CPU implementation",[134],{"id":135,"by":136,"text":137},"26634524","mindv0rtex","That's what I did when I recently came across the same model. Here's my CPU-based implementation (in Rust): https:\u002F\u002Fgithub.com\u002Fmindv0rtex\u002Fphysarum",{"comments":33,"answered":32,"key":139},[140,143,146],{"id":141,"text":142},"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…",{"id":144,"text":145},"26639378","Great - good luck!",{"id":147,"text":148},"26620055","Author here, happy to answer any questions about the implementation. I'd also love to see any interesting patterns you find :)",{"commenters":150,"max_depth":151,"maker_replies":33,"first_comment_mins":152,"lifespan_hours":153},17,4,26,33,[155,157,161,162,164,165,168,170,172,174,175,176,178,181,183,184,187,190,191,195,196,199,201],[124,34,41,156,125,34],"project\u002Fneutral\u002Fidea",[158,34,34,159,160,34],"26634585","other\u002Fneutral\u002Fnone","jedimastert",[128,34,41,156,129,34],[163,34,34,159,125,34],"26635594",[141,34,34,159,11,38],[166,38,34,159,167,34],"26633959","mushishi",[71,32,33,169,72,34],"project\u002Fpositive\u002Fidea",[144,32,34,171,11,38],"maker\u002Fpositive\u002Fnone",[147,41,34,173,11,38],"maker\u002Fneutral\u002Fnone",[116,41,41,173,117,34],[135,41,34,159,136,34],[177,41,34,173,11,38],"26639315",[179,151,34,159,180,34],"26634846","marshmallow_12",[83,33,38,182,84,34],"project\u002Fcritical\u002Fexecution",[50,33,38,182,51,34],[185,33,38,182,186,34],"26638585","nigerian1981",[188,33,34,159,189,34],"26633865","pineconewarrior",[54,33,38,182,55,34],[192,33,33,193,194,34],"26634576","project\u002Fpositive\u002Fexecution","burkaman",[89,33,38,182,55,34],[95,197,41,198,96,34],6,"project\u002Fneutral\u002Fexecution",[99,197,34,200,11,38],"maker\u002Fneutral\u002Fexecution",[75,202,41,203,76,34],7,"project\u002Fneutral\u002Fnone",[],[206,211,216,220,225,230],{"id":207,"name":208,"points":209,"category":210},"26579936","VS Code Theme Studio",375,"dev_tools",{"id":212,"name":213,"points":214,"category":215},"26624341","Coolify",345,"infrastructure",{"id":217,"name":218,"points":219,"category":210},"26622548","frangipanni",333,{"id":221,"name":222,"points":223,"category":224},"26609397","Selfstudyclassics",278,"learning_science",{"id":226,"name":227,"points":228,"category":229},"26647424","Roleplayful",133,"consumer_social",{"id":231,"name":232,"points":233,"category":215},"26620738","Nettu Scheduler",129,false,"v2",{"id":237,"name":5,"line":6,"ai":234,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":30,"top":18,"kw":238,"maker":11,"domain":10,"tier":19,"attempts":34,"strip":239,"url":9,"mix":240,"praise":67,"objection":80,"sub":21},26619871,[24,25,26,27,28],"30300050030001110151303",[32,33,34,33],1794036605025]