Wandering Simulator

by Tuğrul Yazar | March 9, 2024 12:12

In 1986, Craig Reynolds developed an algorithm aiming to model the flocking behavior of birds, which remains a cult method used in flock simulations today. In my initial study, the bird-oids (boids) have no rules or limitations, just chilling randomly on the screen. I call this initial version Wandering Simulator. There are several reasons why this fundamental simulation is difficult in Grasshopper and Python, our parametric design interface. In Grasshopper (data flow modeling), pushing the back doors a bit is necessary to run an interactive and flowing simulation that needs loops. Firstly, I have to ensure that the GhPython component updates certain variables with a trigger inside a loop. This is something painful in a dataflow environment.

wandering simulator

I have not yet been able to reach Reynolds’ algorithm or another intelligent flocking algorithm. However, this is a beginning and I think it’s promising. With only 25 lines of code, I managed to produce small creatures moving on the screen. In the future, I will add functions for detecting and reacting to each other and the obstacles. This can evolve into many interesting studies. This Grasshopper definition includes the first version of my flocking simulation study inside Rhinoceros CAD. It uses native Grasshopper components and one GhPython[1] component. So, no add-ons are required to use it.

wandering simulator

Since this is the beginning of a new project, it would be wise to wait for the upcoming versions. However, if you want to see and use this version for your projects, would you consider being my Patreon and downloading my Grasshopper file? Here is the link to my Patreon page[2], including the Wandering Simulator study file and more. Thank you for your support.

wandering simulator
Endnotes:
  1. GhPython: https://www.designcoding.net/category/tools-and-languages/rhino-python/
  2. Here is the link to my Patreon page: https://www.patreon.com/posts/wandering-100033702?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link

Source URL: https://www.designcoding.net/wandering-simulator/