It has been a while since I have posted something, but I have a few projects that I never posted from last semester. Here are two to start off with.
Boids in 3D
Boids in 3D from Nick Hardeman on Vimeo.
This project utilizes flocking and Craig Reynold’s boids to move about a 3D environment. The boids circle around sphere and a repulsion force from inside of the sphere is applied to the Boids using the space bar. There is some perlin noise that is applied to them as well. The tails are generated based on some code by Robert Hodgin. The camera movement is handled by a nicely bundled class called Camera by Tobias Jewson.
Techno Tentacles
Techno Tentacles from Nick Hardeman on Vimeo.
This project responds to audio, as well as, video. I am not very good with audio or the terms used, so excuse me if this doesn’t make any sense. But I do know that the audio analysis code by Zach Lieberman uses FFT Analysis. Each tentacle is assigned a certain range of audio, if there are more tentacles, the ranges are shorter. The loudness in each range corresponds to the outward force from the center that each tentacle feels. If all of the channels are really loud, then the tentacles form an image that looks similar to a star fish.
The tentacles attempt to attach themselves to people who enter the frame, it can be either live or recorded video, in this case it is recorded. The sorting of the points on the contour was a tad tricky since they are not returned in order of x, y values, so the a point in one frame might have a completely different index on the next, not to mention that the number of points changes from frame to frame. The tentacles follow the user around and react to audio, look out Dr. Octopus.
January 26, 2010 at 6:52 pm
Cool stuff Nick.
February 1, 2010 at 3:42 pm
hey this is great — which audio analysis code dod you use – i am looking for something similar just now where i can assign events to different ranges within the spectrum – thanks
j
February 8, 2010 at 11:34 am
There is a thread on the OpenFrameworks forum that discusses this a little bit. Check it out here http://www.openframeworks.cc/forum/viewtopic.php?f=12&t=1738
August 23, 2011 at 9:06 pm
Very nice experiments.
I am trying to make Craig Reynolds boids wander on the surface of a sphere, but it’s not clear to me how to use the behaviors with spherical coordinates. Can you give me a hint and point me in the right direction? Cheers.
September 11, 2011 at 11:41 pm
@bruno imbrizi I am just using the distance formula to make sure the boids stay a minimum distance, the radius, away from the sphere.