Create insect ,agent ,swarm Intelligent

Hello I driving through the agent base algorithm so If I need to create something like this. Pls shared the tutorial or know how about it or workshop. I do not mind to pay the fee. Thx

[B]rain Zapper | complicitMatter

[SRC] . Semi Rigid Car | complicitMatter

There’s so much content about agent-based design and related stuff out there, even here in the forums. I alone must have posted at least half a dozen examples on how to do it in Grasshopper with Python by now. Quinones even seems to have shared his Python code! What more are you looking for? Python tutorials?

Hey!
If I’ve understood your question properly you can use the “Graph Mapper” component to remap numbers in multiple forms of a graph, as shown below:


Good Luck!

yes pls!!

If you are completely new to Python (or programming), I’d recommend to start with the Codecademy Python 2 tutorial. It’s free - you just have to register to the site -, and interactive. They also have a paid tutorial for Python 3, but the differences are only marginal and in Grasshopper you’ll use IronPython 2.7 eighter way!

Once, you’ve got the basics of the language down and want to explore stuff with Python in Rhino, you should work through the Rhino Python Primer, which is also free for Rhino users. The most important thing, when trying to learn something is to get experience through projects!

After that you can embark on the particle stuff! A word of caution though, Grasshopper is not ideal for this, since it comes with a lot of baggage and is not really meant for animated interactivity, but it’s feasible.
There are lots of great tutorials on YouTube (cf. Jake Hebbert, Daniel Shiffmann, Sebastian Lague, etc). Not all of them work in Python or even Rhino, but they oftentimes explain the theoretical part very well.

You should also absolutely check out Craig Reynold’s paper that started the craze back in the late 80s.

And here are some examples of mine done in GHPython:

This thread also contains some interesting topics about particles and other creative coding endeavours:

And last but not least something fun to watch:

I did this simulation about a year ago in C++ (openFrameworks). It shows autonomous agents fighting over food for survival. A little macabre, but if you look closely dead once become food (or poison). :wink:

1 Like

So if your problem is solved, check the solved box please :slight_smile: