# Crowd animation

**URL:** <https://discourse.threejs.org/t/crowd-animation/15573>\
**Category:** Showcase\
**Tags:** animation\
**Created:** [May 26, 2020, 8:17pm UTC](https://discourse.threejs.org/t/crowd-animation/15573 "2020-05-26T20:17:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![LuluDavid](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/luludavid/32/14730_2.png) [@LuluDavid](https://discourse.threejs.org/u/LuluDavid)\
**Post date:** [May 26, 2020, 8:17pm UTC](https://discourse.threejs.org/t/crowd-animation/15573/1 "2020-05-26T20:17:21Z")

</div>

Hi ! I am new here and maybe I will be a bit off-topic, but I coded last year a small crowd animation in three.js of moths chasing a bulb.  
The animation should normally be available [here](https://luludavid.github.io/THREE.js-Crowd-Animation/main.html), and the code is hosted on my [Github](https://github.com/LuluDavid/THREE.js-Crowd-Animation) tell me what you think and if you have any tips to improve it !

 ![boids2](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/b/b50a2cbf284c2aa43ffc319989d6a7b1509fa43d.png)

PS: I actually liked quite a lot crowd animation principles, and wanted to know if you also haD a few other examples of it in three.js.

---

<div class="post-metadata">

**Author:** ![ben](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/ben/32/1174_2.png) [@ben](https://discourse.threejs.org/u/ben)\
**Post date:** [May 29, 2020, 12:17pm UTC](https://discourse.threejs.org/t/crowd-animation/15573/2 "2020-05-29T12:17:30Z")

</div>

Random searching found: **Three-steer** repo  
**Demos:** [https://www.uxvision.it/projects/ThreeSteer/examples/index.html](https://www.uxvision.it/projects/ThreeSteer/examples/index.html)  
**Github:** [https://github.com/erosmarcon/three-steer](https://github.com/erosmarcon/three-steer)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/9/9fc453080b4245be0dcbf841c33d4ebbb2367ca7.jpeg)

---

<div class="post-metadata">

**Author:** ![Fyrestar](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/fyrestar/32/52793_2.png) [@Fyrestar](https://discourse.threejs.org/u/Fyrestar)\
**Post date:** [May 29, 2020, 12:45pm UTC](https://discourse.threejs.org/t/crowd-animation/15573/3 "2020-05-29T12:45:04Z")

</div>

Interesting, though at collision it appears a bit clumsy with a lot immediate stops.

The leader following example reminds me on school when i had a bag of chips ^^

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/4/4666b992cc4879c319b10ab81ecc04b80e80e2db.jpeg)

---

<div class="post-metadata">

**Author:** ![spikethea](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@spikethea](https://discourse.threejs.org/u/spikethea)\
**Post date:** [May 29, 2020, 1:04pm UTC](https://discourse.threejs.org/t/crowd-animation/15573/4 "2020-05-29T13:04:00Z")

</div>

Wow! That’s Awesome!

---

<div class="post-metadata">

**Author:** ![LuluDavid](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/luludavid/32/14730_2.png) [@LuluDavid](https://discourse.threejs.org/u/LuluDavid)\
**Post date:** [May 29, 2020, 1:29pm UTC](https://discourse.threejs.org/t/crowd-animation/15573/5 "2020-05-29T13:29:13Z")

</div>

Wow this is incredible, some awesome work !

---

<div class="post-metadata">

**Author:** ![ben](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/ben/32/1174_2.png) [@ben](https://discourse.threejs.org/u/ben)\
**Post date:** [June 2, 2020, 3:10am UTC](https://discourse.threejs.org/t/crowd-animation/15573/6 "2020-06-02T03:10:41Z")

</div>

More findings…

[https://mgz.me/](https://mgz.me/) = swarm + sound

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/f/f5a6c18dd335e57cbbb20e447f5788d22b9345d3.jpeg)

[https://3jrr7.csb.app/](https://3jrr7.csb.app/) = flocking

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/2X/4/4d9abc1ee126387fa3653da4fe43fde4a904a034.jpeg)

---

<div class="post-metadata">

**Author:** ![ben](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/ben/32/1174_2.png) [@ben](https://discourse.threejs.org/u/ben)\
**Post date:** [June 9, 2020, 5:51am UTC](https://discourse.threejs.org/t/crowd-animation/15573/7 "2020-06-09T05:51:48Z")

</div>

**Github**

> **[GitHub - simondevyoutube/FlockingSimulation\_Space](https://github.com/simondevyoutube/FlockingSimulation_Space)**
>
> Contribute to simondevyoutube/FlockingSimulation\_Space development by creating an account on GitHub.

**Boid Reference**  
Craig Reynolds: [https://www.red3d.com/cwr/boids/](https://www.youtube.com/redirect?redir_token=qdgNS14o3LrzQCFPNGe7ozVFRlZ8MTU5MTc2ODA4NEAxNTkxNjgxNjg0&v=LltugBg4dtk&q=https%3A%2F%2Fwww.red3d.com%2Fcwr%2Fboids%2F&event=video_description)

**YouTube:**

[![](https://img.youtube.com/vi/LltugBg4dtk/maxresdefault.jpg "Flocking Simulation: Boids (JavaScript)") ](https://www.youtube.com/watch?v=LltugBg4dtk)
