00:00
36
More
See all Show me
8. "Spiders" auto-walking and flock simulation for blender
1 year ago
4. 5 Second Draw
1 year ago
All the WIP blogposts along the way are at linetestjournals.blogspot.com/
My notes on the algorithms: scribd.com/doc/47412229/Crowd-Simulation-and-Auto-Walking-Algorithms

Even at HD the compression has really destroyed some of the shots here - I've enabled the video download.

A crash test dummy for my work in progress collection of scripts for auto-walking and flock simulation in blender. The crowd simulation system used for these was programmed from the ground up in python (not using blender's built in boids), as was the auto-walker (though I took a glance at the old 2.4x insect walker but decided to go down a different route for more flexibility with different numbers of legs etc.)

I also coded the 'scribbler' and the motion trails in python (thanks to this unofficial port of Python Image Library to Python3 lfd.uci.edu/~gohlke/pythonlibs/#pil which enabled me to use PIL inside blender to read pixels). Inspiration for the scribbler's algorithm comes in parts from mr doob's harmony mrdoob.com/projects/harmony/ and zefrank's original scribbler zefrank.com/scribbler/about.html .

The sound is a combination of my own python code (sampling differentiated fcurve data in blender) and audiopaint nicolasfournel.com/audiopaint.htm .

Credits

Likes

See all likes
  • Satish Goda 1 year ago
    Love it.. nice work..
  •  
  • Mats Halldin 1 year ago
    Wow, can't wait to see this in Blender! Keep it up!
  • Josh Wedlake 1 year ago
    thanks mats, the code's not too far off being stable now. Bassam's been looking into ways to make tube's 'in development' scripts repository accessible to everyone so you can play with the testing versions. I'll post a link if it gets sorted any time soon.
  • Mats Halldin 1 year ago
    I'll keep an eye on this! ^^
  •  
  • Ram 1 year ago
    :-o
  •  
  • Gottfried Hofmann plus 1 year ago
    wow!
  •  
  • Said SAID EL IMAM 1 year ago
    Amazing! I was soo waiting for a crowd sim!!!

    Is it gonna be released as an add-on for blender ??
  • Josh Wedlake 1 year ago
    hi Jack, hopefully it will be in the future! I believe that when 'tube' is completed Bassam plans to release all of the scripts and some of the assets. Though I do quite a bit of python coding I have very little experience with GUI coding in blender so this is one big tangle of scripts at the moment! And its very WIP. The demo shows it 'working properly' but there was a lot of wrangling to get the right results! The plan is to develop it further alongside the actual crowd shots for 'tube' that it is needed for. If you keep an eye on the tube blog tube.freefac.org it might appear in the distant future as we are into the animation stage of the project at the moment!cheers
  •  
  • Davis Sorenson 1 year ago
    I love the simple visual explanation of the algorithms used for this, I always have a hard time understanding them otherwise. Great work.
  • Josh Wedlake 1 year ago
    thanks davis! I don't know if you saw the mushroom generator I did back in August but I managed to type up notes for that as well which you might find interesting scribd.com/doc/47412460/Mushroomer-for-Blender-2-5-Algorithm-Description cheers
  •  
  • Gen X 1 year ago
    Se ve genial!
  •  
  • Bupla 1 year ago
    I love the motion trails. If it reads the pixels as you said, does it means it 2D based?
  • Josh Wedlake 1 year ago
    hi Bupla, the motion trails doesn't read pixels, only the spiders web effect. The motion trails is very simple - I have a script which sets the scene back to frame 1 and then stores the location of every 'foot' in world space. The trails are just meshes with a trail of verts running from one position the the next and a wire material. It builds the next frames worth of trail then renders the shot and so on.

    The scribbler loads 2d images using PIL in blender to read the pixels. Rather than drawing lines onto a 2D image (which is probably pretty slow using python), I build a flat mesh of edges and render this from top down. Though it might seem like an odd way to do things, I'd love to expand the scribbler to enable 3D scribbling in future!
  •  
  • Thomas Kumlehn plus 8 months ago
    Great work. Also thx for the helpful links. Is there any chance to see Gilgamesh (tube) in 3-D ?
  •  
  • Victor Ingrassia plus 1 week ago
    finally a use of a tool for good rather than evil. thank you.
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

Statistics

Date Plays Comments
Totals 13.7K 65 16
Feb 23rd 1 0 0
Feb 22nd 2 0 0
Feb 21st 1 0 0
Feb 20th 7 0 0
Feb 19th 1 1 0
Feb 18th 1 0 0
Feb 17th 3 0 0