TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Particle Life

360 点作者 hyperific超过 1 年前

35 条评论

franky47超过 1 年前
One of my first coding projects at school was Conway&#x27;s game of life, but I found the black and white a bit too boring so I pushed the assignment further by introducing RGB &quot;genes&quot;, and give spawns a combination of their parents&#x27; colours (with random mutations).<p>It&#x27;s very fun watching which &quot;faction&quot; might take over the board.<p>Demo: <a href="https:&#x2F;&#x2F;genetic-life.surge.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;genetic-life.surge.sh&#x2F;</a><p>Source (ported from the original C++ into Rust&#x2F;WASM): <a href="https:&#x2F;&#x2F;github.com&#x2F;franky47&#x2F;genetic-life">https:&#x2F;&#x2F;github.com&#x2F;franky47&#x2F;genetic-life</a>
pbowyer超过 1 年前
This is the most interesting one I generated: <a href="https:&#x2F;&#x2F;hunar4321.github.io&#x2F;particle-life&#x2F;particle_life.html#7447219393037" rel="nofollow">https:&#x2F;&#x2F;hunar4321.github.io&#x2F;particle-life&#x2F;particle_life.html...</a><p>It eventually settles down to one large and unstable blob and another stable. Neither move so that&#x27;s it. But before that it did what I had expected to see with objects meeting and merging
评论 #38802347 未加载
billytetrud超过 1 年前
This is fascinating. It&#x27;s like a more complex game of life than John connoway&#x27;s. It&#x27;s crazy that little creatures seem to form at such small scales easily with these parameters. It&#x27;s almost like the parameters of our real universe intentionally made it difficult to form life, rather than easy as some people seem to think.
评论 #38796982 未加载
评论 #38797036 未加载
ath92超过 1 年前
That&#x27;s a funny coincidence, I recently made something similar: <a href="https:&#x2F;&#x2F;webgl-particle-life.netlify.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;webgl-particle-life.netlify.app&#x2F;</a> (source: <a href="https:&#x2F;&#x2F;github.com&#x2F;ath92&#x2F;particle-life">https:&#x2F;&#x2F;github.com&#x2F;ath92&#x2F;particle-life</a>)<p>This version does everything in webgl shaders and keeps all state for the simulation in textures &#x2F; uniforms. This allows it to simulate and draw more particles. Unfortunately it may not run on all devices because it uses some less supported webgl extensions.
dang超过 1 年前
Related:<p><i>Particle Life Emerges from Simplicity</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34156592">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=34156592</a> - Dec 2022 (1 comment)<p><i>Particle Life Simulation</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33680845">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=33680845</a> - Nov 2022 (1 comment)<p><i>Particle Life</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21875720">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21875720</a> - Dec 2019 (7 comments)
jasonjmcghee超过 1 年前
This is a much more complete implementation, but I took a crack at this a while ago using compute shaders in Godot 4, if that&#x27;s interesting to folks!<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jasonjmcghee&#x2F;compute-shaders">https:&#x2F;&#x2F;github.com&#x2F;jasonjmcghee&#x2F;compute-shaders</a>
michae2超过 1 年前
I never considered it before, but by comparison this makes me realize that Conway&#x27;s Game of Life is wave-based rather than particle-based. That is, in CGoL the rules apply to locations of the grid rather than objects traveling across the grid. I wonder if this system could also be constructed in a wave-based fashion?<p>Also, it seems like in this system the speed of light is infinite, since every particle acts on every other particle each frame, regardless of distance. In CGoL there is a speed of light, since cells can only influence their immediate neighbors each frame.
chuckadams超过 1 年前
Looking at the 3d js version right now. This might be my most favorite thing since the original Conway&#x27;s life or maybe the old Primordial Life screen saver from the 90&#x27;s. Have you considered adding shader support? I&#x27;d love to see a slowed-down more &quot;blobby&quot; version running full-screen. Probably turn my mac into a space heater too, but right now that&#x27;s a bonus ;)
grumblehound超过 1 年前
Reminds me of Hiroki Sayama&#x27;s Swarm Chemistry:<p><a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=BpN-DE3o6u8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=BpN-DE3o6u8</a><p><a href="https:&#x2F;&#x2F;bingdev.binghamton.edu&#x2F;sayama&#x2F;SwarmChemistry&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bingdev.binghamton.edu&#x2F;sayama&#x2F;SwarmChemistry&#x2F;</a>
BirdbrainEng超过 1 年前
If anyone is more interested in this kind of stuff, then I can recommend checking out &quot;Smooth-life&quot; and &quot;Lenia&quot;, the latter of which has a couple different, more complex variants... &quot;Flow Lenia&quot; or &quot;Particle Lenia&quot; come to mind in relation to this particular (pun intended) topic.
aDeveloperCase超过 1 年前
That&#x27;s impressive.<p>I had a similar concept in mind when I started experimenting in 3D with what I now call &quot;Altphy&quot; (alternative physics), but I&#x27;ve not been able to really make it work as intended (really, is far from working). Also probably the logic and idea behind it too much for real time processing. I&#x27;m sharing it only because maybe pieces of that code (or the idea itself) can progress into something one day.<p>source: <a href="https:&#x2F;&#x2F;github.com&#x2F;aDeveloperCase&#x2F;altphy">https:&#x2F;&#x2F;github.com&#x2F;aDeveloperCase&#x2F;altphy</a>
MagicMoonlight超过 1 年前
Even with such a basic system you immediately start to get self-organising little bubbles of life. If something had a way to replicate in these bubbles, you would have the first cell.
swarmlover超过 1 年前
Interesting, similar to these evolutionary swarm models <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=A3iRTIWrJn8" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=A3iRTIWrJn8</a> <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=YEobkdbCrvQ" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=YEobkdbCrvQ</a>
shlomozippel超过 1 年前
Another similar implementation, including music responsiveness: <a href="https:&#x2F;&#x2F;vuzic.app&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vuzic.app&#x2F;</a>
utkarsh858超过 1 年前
The project is quite cool. I found myself tweaking for some good amount of time.<p>But the thing is it does not demonstrate that complexity can come from simplicity. To make a &#x27;life&#x27; there are 8 parameters to be modified across a range and &#x27;fine tuned&#x27; to get some tangible stable complex structure, all to be done by already conscious beings ( Users anyone? ). So much for simplicity
LoryGilman超过 1 年前
Mixing up Conway&#x27;s game with colorful &#x27;genes&#x27; is pretty wild, like coding with a rainbow palette. And about those blobs – it&#x27;s like they&#x27;re putting on their own little drama show, then just decide to chill. Also, gotta love the action and cool shapes in that simulation. It&#x27;s like a mini superhero movie, but with shapes instead of characters.
emmanueloga_超过 1 年前
What are the philosophical implications of these life models? Is it implied that life as we know it may also have a simple set of rules like this that generated it? Or is it just a game? (as in Conway&#x27;s GoL).<p>Found some info here, seems like these are open questions [1].<p>--<p>1: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Artificial_life#Philosophy" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Artificial_life#Philosophy</a>
sgentle超过 1 年前
I found a pretty fun set of rules: make a cycle of -0.4 between the colours (eg G-&gt;R, R-&gt;Y, Y-&gt;B, B-&gt;G in 3d or G-&gt;R, R-&gt;O, O-&gt;C, C-&gt;G in 2d) and set the other factors to 0.1.<p>The particles form semi-stable rotating rings until they get too close to another ring. It&#x27;s quite fascinating to watch. Messing with the viscosity changes the stability and radius of the rings
jantypas2超过 1 年前
Very cool -- shame I don&#x27;t have a wall TV to just run it on. I was however, disappointed -- I saw it as a T-shirt brand &quot;Particle Life&quot; for physicists. The T-shirts would have slogans such as &quot;After listening to you, I realize you&#x27;re just an unfortunate jiggle in the quantum field, so I feel totally justified in ignoring everything you say&quot;
bezdomniy超过 1 年前
I made a multithreaded Rust version of this (while learning Rust): <a href="https:&#x2F;&#x2F;github.com&#x2F;bezdomniy&#x2F;rust_particles">https:&#x2F;&#x2F;github.com&#x2F;bezdomniy&#x2F;rust_particles</a><p>you can run it with: cargo run --release<p>No input yet, just randomly initialises params each run. But it runs with 4000 particles on my machine.
spacecadet超过 1 年前
Super cool! Earlier this year I created a zero-player simulation using pygame and several AI coding assitants to see how capable they might be. In the end I had to clean up alot, but Im happy with how it turned out.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;derekburgess&#x2F;simcraft">https:&#x2F;&#x2F;github.com&#x2F;derekburgess&#x2F;simcraft</a>
beders超过 1 年前
It is amazing how easily self-sustaining structures emerge from such simple rules. Mesmerizing.
评论 #38799489 未加载
bloopernova超过 1 年前
offtopic: I got a new PC for xmas, and hadn&#x27;t really stress tested it to make sure the fan management curve was correct. Running the linked site&#x27;s demos made the fans work and they&#x27;re really responsive. Cool stuff!
brap超过 1 年前
If this doesn’t convince you spontaneous life is possible I don’t know what will
评论 #38821198 未加载
smusamashah超过 1 年前
There is also <a href="https:&#x2F;&#x2F;exophysics.codeberg.page&#x2F;" rel="nofollow">https:&#x2F;&#x2F;exophysics.codeberg.page&#x2F;</a> which turns particles into moving creatures.
theophrastus超过 1 年前
Well done: 3d is an option! Always wondered what emergent properties result from simple rules worlds when the dimensionality goes from 2d to 3d.
hsnewman超过 1 年前
This shows how life is emergent from simple rules.
评论 #38796420 未加载
评论 #38799044 未加载
Lerc超过 1 年前
I watched the Youtube video on this yesterday and have been itching to try a webgl shader implementation ever since.
deadbabe超过 1 年前
I’m not really understanding what the “life” part of this is.
评论 #38799458 未加载
评论 #38799965 未加载
mfbx9da4超过 1 年前
The code walkthrough was excellent and very elegant
superb-owl超过 1 年前
I&#x27;d love to see this on a toroidal surface
评论 #38799633 未加载
sockaddr超过 1 年前
Fascinating. This reminds me of nanopond
airesearcher超过 1 年前
This is so great!!! Nice work!
block_dagger超过 1 年前
Life, uh, finds its particles.
FpUser超过 1 年前
Really liked it