algorithmic modeling for Rhino
Another simulation type for my network strategy in me thesis project. This is based on agents depositing pheromones, that others then follow. The logic is essentially wander around, if you smell pheromones then follow them. The logic is similar to the way in which ants forage for food.
Tags:
Comment
Done that. Works great. Wow, so many new options :-) still i don't know how to make agents heading towards pheromones. when i use attractor they just turn their back to their own pheromones. but i think i will figure it out after some time. thanks a lot
@Aleksander
if you are coding it then it would be something like this in c#;
Color col = Rhino.Display.FromArgb(alpha,red,green,blue);
Mesh.VertexColors[index_of_vertex]=col;
Something like that, I have forgotten the complete syntax to be honest, but it is something alon those lines, but play around with it.
if you are doing it in grasshopper then just deconstruct a mesh, get as many color values as you have vertices and then rebuild the mesh with the construct mesh component.
@ Jens Pedersen
thanks!
but how to colour a vertex?
@Aleksander
Use a mesh as your image. Every vertex can be assigned a color. And on top of that you get a lot of useful topological information.
I am currently playing around with my physarium slimemold stuff and real time occupancy maps for an installation, and it works quite well. Give it a go. I know that I will finaly have time to test what rutten suggested sometime in december. Will probably upload somestuff of from both projects within the next month or so.
@ David Rutten
Can you please tell something more about how to store values in a pixel image?
I am working a lot on some looped algorithms, swarm behaviours and such, and pheromone topic really fascinated me.
Thank you guys!
@David - great advice, I will try and make some time to test it!
@Jesus - I am interested in ants for their capacity to generate patterns based on use, however for the project that I am currently working on(diploma thesis) I will probably work with the physarium slime mold that I have also posted in here.
@Nitya - this is not VB, it is written in c#. After I learned VB I started fidling around with other languages, and found that I prefer c#.
@Thank you Umar, yes I sis in grasshopper(wrote it in c#). I just played around with the preview methods and voila ;)
This reminds me that I saw a program that did the same thing almost 10 years ago. I did a little google search on "ant simulation", and I would have never thought that little ants could spawn such a burgeoning field!
Seems it's useful in optimization problems. Are you interested exclusively in ant simulation, or do you plan to optimize something?
http://en.wikipedia.org/wiki/Artificial_Ants
Great work!
is this vb as well like your 'reaction diffusion' work?
whoa!!!!
i am officially blown away!
amazing work man!
did you do it on grasshopper? i am no pro but looks like processing, is it?
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by
You need to be a member of Grasshopper to add comments!