Video Tracked TurtleBoids
in
Share your Work
•
1 year ago
http://paulhertz.net/factory/2012/05/video-turtleboids-demo/
----- |(*,+,#,=)(#,=,*,+)(=,#,+,*)(+,*,=,#)| ---
The Video TurtleBoids Demo Applet is a Processing applet that captures video, derives optical flow vectors from it, and then uses the vectors to change the velocity of a flock of “boids” that can also draw lines (i.e., behave like Logo turtles). You will need the IgnoCodeLib library (the .jar file is included in the download) and the ControlP5 library (not included, available for download at http://www.sojamo.de/libraries/controlP5/)
Based on Flocking, by
Daniel Shiffman, in The Nature of Code, a demonstration of Craig Reynolds’
steering behaviors (see also
http://www.red3d.com/cwr/). Also adapts code from Optical Flow by Hidetoshi Shimodaira from
http://www.openprocessing.org/sketch/10435.
Note that the URL of IgnoCodeLib is not the same one listed on the Processing Libraries page. My domain name changed. Some day the processing.org site admin will get around to changing the link (I hope). A new version of the library is nearly ready for release.
-- Paul
Note that the URL of IgnoCodeLib is not the same one listed on the Processing Libraries page. My domain name changed. Some day the processing.org site admin will get around to changing the link (I hope). A new version of the library is nearly ready for release.
-- Paul
----- |(*,+,#,=)(#,=,*,+)(=,#,+,*)(+,*,=,#)| ---