BlenderNation
It looks like you're using an ad blocker! I really need the income to keep this site running.
If you enjoy BlenderNation and you think it’s a valuable resource to the Blender community, please take a moment to read how you can support BlenderNation.

Cockroach Crowd Simulation

Watch 'em go! This simulation is part of the 'Tube' project.

snot nose writes:

Crowd simulation from the open source film project 'tube'. I wrote the AI using Python and Blender's game engine (and also had to do some manual editing).

The bone animation was done using autowalk script, which was re-written and rigged by Bassam Kurdali (Director and Technical Director of Tube), based on the 2.49 ant rig by MCHammond. The Frontal and background animation by Karen Webb.

Still Wip, some roaches will be deleted for the sake of composition, some adjusted. We are going to export their movement into curves and then apply it as a modifier over their main body. The antennas will probably use the new noise modifer in blender's curve editor. And some roaches will be stepped and crunched...

I used logic bricks for the AI and python mostly for conditions. I will post later the final script and also a small tut that explains it. But as I finished to work on it, blender was just releasing new features in the game engine - the steering actuator, navigation mesh, obstacle avoidance and basically most of the stuff i was already working on. so now it should be actually much easier to setup the AI in blender, and probably would be good to combine some options from my script into it.

Unfortunately, the main problem with using the game engine as a crowd simulator, is that the recorder can't record bone armatures, just primitves (that were used for the AI). But bassam did great work on the autowalk script and created also an interface that give a lot of control over the roaches.

Link

11 Comments

  1. Bassam Kurdali on

    Hey guys! Josh Wedlake did the original autowalker script, and it got fixed thanks to that call for help! however, though it worked, I was unable to adapt it to work with anything other than the test rig; the code was just too specific (and long!) and Josh didn't have time to continue maintanership.
    so I ended up rewriting it after all. The new code is slightly shorter, and to me a bit more understandable. I've refactored a couple of time as I was writing to seperate the rig specifics from the walk code ; probably will do so one more time, and adapt to a human crowd later on.
    OH and of course this is all to be released under the GPL... should I do an early release now? (considering that it is still a bit limited)

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.

Share this story: