Boids

Learning and science

artificial life simulation

SHOW HN2015

63points
28comments
#443of 2,565 in 2015
Top 18%of 2015 by points

How HN took it

MixedNo clear lean

3 positive, 2 neutral or asking, 1 mixed, 1 critical, out of 7 comments about the project. Thread score +0.22.

Execution: 3 for, 0 againstPerformance: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Looks beautiful and fun to watch

    From 1 comment
    • Yes, looks beautiful. Quite similar, I guess. I had run in to some performance issues, the initial few ticks are quiet slow even now, esp. on a phone. This one uses a kdtree…
      anoop-elias on HN

Objections

  • Frame rate display is inaccurate and animation looks jerky

    From 1 comment
    • I don't think the fps calculation is quite accurate, I was getting close to 60 fps and seeing lots of jerks.
      luddypants on HN
  • Slow initial ticks, especially on phones

    From 2 comments
    • Yes, looks beautiful. Quite similar, I guess. I had run in to some performance issues, the initial few ticks are quiet slow even now, esp. on a phone. This one uses a kdtree…
      anoop-elias on HN
    • I will have a look. The value initializes as 60, so it will show as 60 until it gets updated for the first time. Would that be what you are talking about? The initial few seconds…
      anoopelias on HN

Requests

  • Suggestions for faster neighbour lookup using bins or quadtrees

    From 2 comments
    • The best data structure to use depends a lot on what you're actually doing with your neighbours. If what you actually want to do is to have each boid be affected by each boid in…
      repsilat on HN
    • I mean if your world is 1024 by 768, and a boid is affected by all other boids within 64 pixels of it, you should just break the world up into 16 by 12 bins, each representing a…
      repsilat on HN

Questions

  • Where to read about fixed-size bins

    From 1 comment

Alternatives named

  • SwarmJS quadtree boids simulation

    From 1 comment
    • I was inspired by this to create my own a few months ago. It uses a quadtree to optimize nearest neighbor lookup to ideally reduce complexity from n^2 to nlogn on each tick.…
      postnihilism on HN
  • Three.js GPU boids example

    From 1 comment
    • Somewhat related: ThreeJS GPU boids simulation http://threejs.org/examples/#webgl_gpgpu_birds
      bhouston on HN
  • Khan Academy natural simulations course

    From 1 comment
    • Khan Academy has a good Natural Simulations in JS tract. https://www.khanacademy.org/computing/computer-programming/programming-natural-simulations It uses processing.js when I…
      akilism on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/9298338)