algorithmic modeling for Rhino

Swarm[al] Morphology 04 [Swarm Variation]

Project: Swarm[al] Morphology
Designer: Evan Emery
School: Southern California Institute of Architecture: Advanced Code Form
Instructor: Satoru Sugiara

Through the use of swarming logic developed as a form of biomimicry, the code becomes a form generator. Within this system the abstraction of form and formal networks allows for both an architectural-ization and articulation of data. This data is then abstracted and represented through animation to form ephemeral feeling. The growing lines velocity is proportional the the aforementioned biomimicry.The code itself becomes part of the design process, allowing the manipulation of data to alter the final formal logic.

Processing code that mimics swarm of birds chasing prey. As they develop lines are drawn between their positions . The sphere representing the bird changes scale to mimic the flapping wings. Also each biod's mass and scale is randomly generated between a range of values to give differentiation to each member of the swarm.

Through UDP the processing swarm was input into grasshopper in real time. This allows for a mesh to be developed between attractors. The mesh creates clusters that represent nodes of density. Between each node the abstracted lines connected the localized formal logic.

For anyone interested you can download the code here:

There is a readme.txt file that explains how to run everything.
If for some reason the link breaks in the future, let me know and I will repost it.

Video 01 Swarm:
Video 02 UDP :

Credits: All code written from i.Geo library developed by Satoru Sugiara please support him here:
Library and tutorials for i.Geo can be found here:

Views: 2209


You need to be a member of Grasshopper to add comments!

Join Grasshopper

Comment by Bara'a Usama on March 16, 2019 at 12:22pm

hello, i downloaded everything, the code, the processing program, igeo library, and i followed the read me file but for some reason processing couldn't find the igeo library and the grasshopper code is not showing anything.. can you please help?

Comment by yamenxena on October 20, 2017 at 6:45pm

I got it, It's working on Processing 2, Great work, thank you 

Comment by yamenxena on October 20, 2017 at 6:18pm

I tried the source code on Processing 1.5.1 and installed the but its not working/ can you please tell me what I have missed? 

Comment by Evan Emery on March 17, 2017 at 3:33am

I have updated the source files to help with those who were having issues. 

Comment by Evan Emery on February 5, 2017 at 2:38am


I would begin by following the links supplied below the video. If you are interested in agent based flocking I would sugest looking into igeo and Plethora Project.(both are libraries for processing).

If you are interested in using grasshopper for swarming/flocking, I would take a look at hoopsnake.

Comment by Leonardo Ali on February 3, 2017 at 8:04pm

Hi Evan, some great work! I am fairly new to grasshopper and processing, but I am trying to achieve what is in the video: Do you happen to know how I can try achieve this? Thanks for your help!

Comment by Wayne Wu on January 24, 2017 at 5:35am

Hi Evan, thank you so much, the code can be successfully run now. 

Comment by Evan Emery on January 22, 2017 at 1:25pm


I was able to successfully run the code under the following circumstances.

Make sure you use version 2.2.1 of Processing. Found here Link

Use the version of igeo and udp that I provided in the source files, and not the most recent versions. Things have changed a lot since I wrote this 4 years ago.

Make sure you add the libraries to the correct location on your machine.

Here is a link on how to do that. Link

Based on the error that you are getting you may have installed a more recent version of igeo, because I think the size() syntax has changed recently.

Hope that helps


Comment by Wayne Wu on January 21, 2017 at 5:52am

Amazing work. By the way I couldn't run the code succesfully in progressing, it says ''Size() cannot be used here'' and line 37 was highlighted.

Comment by mia on August 7, 2016 at 7:20am

Hi evan its amazing piece of work. Could you please share you files?





  • Add Photos
  • View All


  • Add Videos
  • View All

© 2020   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service