Grasshopper

algorithmic modeling for Rhino

Hello there,


I'm trying to use swarm intelligence to create something like this (by Dimitrie):

But with grasshopper instead.

I've been working with Robert Cervellione's Locust definition:

http://www.grasshopper3d.com/group/cervertools/forum/topics/locust-...

The points keep bouncing back and forth on the same spot though. And when I use an attractor point...the swarm keeps circulating that one point rather than move on to the end of the brep.


Any suggestions? Any help would be much appreciated.

Views: 10311

Replies to This Discussion

i am glad your trying locust. its hard to see exactly whats going on from the image but the first thing i notices it that the points need to be flattened when going into the locust node. 

Thanks for the quick response Robert. It is actually flattened. Just didn't show up in that image. I can't seem to get the swarm to move all along the bounding box.

it can be a few things, like the seek radius is too small or the force is not enough. can you post the file, or a more complete screen shot

They are attached. I've set a few attractor and repulsion points. But the swarm is not able to move past the first attractor point.

Attachments:

i had a look and there are a few issues.

  1. you have a narrow tube that you want them to go down but you put a seek point right at the start, so naturally they will find that first and stay seeking that point, they have no reason to keep going.
  2. you seek force is higher then the wander so they will not really break free from that first seek point. 
  3. why constrain them so much in a l shaped tube, remove the tube and let them go free. 

here is with my quick adjustments

-robert

p

Attachments:

The project I'm working on is a long narrow street, which is why I need the swarm to be constrained to the brep. The second image you have is how I want the swarm to behave, unfortunately, the swarm reacts very differently when there's a bounding box.

I'm trying to play with this definition as well. http://www.au-urbanfuture.org/blog/?p=523 But I'm not sure why I can't get it to work.

i think,
the vb script is no more compatible with the new grasshopper version. maybe robert has time to explain what should be changed in the script?

the biggest thing is not so much with the setup but the bounding volume, you looking for the movement of a swarm but you constrain it nto a very narrow tube and then ask it to make a 90 degree turn. i would recommend making a better bounding volume. look at the example you posted there is a lot of space that the swarm can move through

also you have to take into consideration scale a little, the system was moving way to fast for the tight small space they were in so i would slow them down with a slider on the MS input of the locust which will control max speed. 

hope this helps. i will try to make a example showing movement through a city. 

Dang...that's a pity. Thanks for letting me know RWNB.

Robert, thanks for the help. You will likely get questions from me again, sorry to be a bother. An example showing movement through streets would be incredibly helpful. Hope to see it soon.

Did you ever get to make this work? Including applying this withing a city?

Thanks

any results?

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service