Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
sub
Browse files Browse the repository at this point in the history
  • Loading branch information
vucinicana committed May 24, 2021
2 parents 26f8f41 + a81faa8 commit 03e9cf6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@ Boids is an artificial life program, developed by Craig Reynolds in 1986, which
* **cohesion**: steer to move towards the average position (center of mass) of local flockmates

### Demos:

* https://user-images.githubusercontent.com/48069158/115175610-9398c500-a0cb-11eb-8da5-77f4d7405e93.mp4

* https://user-images.githubusercontent.com/48069158/115174339-60edcd00-a0c9-11eb-876c-9e75680d1323.mp4



* **Day 2**:
* <img src=".github/media/d2_2.gif" width="500" height="375"/>
* <img src=".github/media/d2_1.gif" width="500" height="375"/>
* [Video](https://www.youtube.com/watch?v=M2YeRuVUNx0)

### Resources:
* [Original paper by Craig W. Reynolds](http://www.cs.toronto.edu/~dt/siggraph97-course/cwr87/)
* [Wikipedia](https://en.wikipedia.org/wiki/Boids)
* [Youtube - Example in Unity](https://www.youtube.com/watch?v=bqtqltqcQhw)

6 changes: 3 additions & 3 deletions resources/program_state.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
3.44554
-2.27858
46.7607
0.0503054
-0.106264
-0.993065
-0.17354
-0.0348995
-0.984208
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ int main() {

glm::mat4 model = glm::mat4(1.0f);

for (unsigned int i = 0; i < lightPositions.size(); i++)
for (unsigned int i = 0; i < 3; i++)
{
model = glm::mat4(1.0f);
model = glm::translate(model, glm::vec3(lightPositions[i]));
Expand Down

0 comments on commit 03e9cf6

Please sign in to comment.