Self Organized Systems: Flock and boid

“Flocking” is the collective motion of a large number of self-propelled entities and is a collective animal behavior exhibited by many living beings such as birds, fish, bacteria, and insects. It is considered an emergent behavior arising from simple rules that are followed by individuals and does not involve any central coordination.
Flocking behavior was first simulated on a computer in 1986 by Craig Reynolds with his simulation program, Boids. This program simulates simple agents (boids) that are allowed to move according to a set of basic rules. The result is akin to a flock of birds, a school of fish, or a swarm of insects.
Basic models of flocking behavior are controlled by three simple rules:

With these three simple rules, the flock moves in an extremely realistic way, creating complex motion and interaction that would be extremely hard to create otherwise.

Daniel Shiffman flocking explanation and sketch:
http://www.shiffman.net/teaching/nature/steering/

Amazing 3D flocking code and Tutorial made by Robert Hodgin width Cinder: http://www.flight404.com/blog/?p=459

Share

New version of Tiper and MapMaker

Thanks to Bernardo dos Santos for the mail. He was using the Tiper2 and he have some problems with the tuioZone. I take the opportunity to translate the code and comment it in english.
I also clean some parts of the code and modify the first part of the .kbd files in order to store there the information abouth the border and center of the keyboard.

First you have to use the Tiper3MapMaker in order to draw the distribution of the keyboard you want to use. I already made a map.kbd file. Open it with a text editor, explore, modify or erase all the information. Then draw a new one. For default you it always save it on the map.kbd file.
The interesting thing of it is that in this example I use a photo of a mac keyboard but you can use what ever you want. Each time you press a key it will create one with the same letter. But then you can change it using a text editor and put there a word for example: POWER, VOL +, VOL – , etc…. in order to make a RemoteControl. :)

After created you map.kbd file move it to the data folder of Tiper3. With it you give it life and functionality. You can place it what ever you want and rotate. It use polar geometry instad of pushing and poping the matrix, so it always work no mater how many times you rotate and move it.
I commented some lines here use the TUIO library in order to make it work over a multitouch surface. You can download the library from tuio.org, look at the videos I have about making a cheap moultitouch surface to start playing with it and using as a virtual keyboard.

Look at the “check” funtion of the Keyboard Class in order to know how to know wich key is pressed and start thinking how can became part of you projects.

If it works for you, or if you make some changes, or if you have doubts, please let me know in order to make it a better tool.

Source code here

Share

Augmented Reality and Virtual Surfaces

For an investigation of interactive surfaces I take the “Flow Field Following” sketch by Daniel Shiffman and mixed with “Optical Flow” by Hidetoshi Shimodaira. I explore the difference between the real surface and the virtual one made of vectors.

If you are using linux don´t forget to change to GStreamer Library (gsvideo) after download.

You can download the code made in Processing from here.

openProcessing mirror: openprocessing.org/​visuals/​?visualID=10534

Creative Commons License
hormigas by Patricio Gonzalez Vivo is licensed under a Creative Commons Reconocimiento-No comercial-Compartir bajo la misma licencia 2.5 Argentina License.

Share

Processing Virtual Keyboard for MultiTouch Proyect

Tiper2:  Virtual KeyBoard for multiTouch proyects. Made with Processing. Very Beta

Tiper2MapMaker: Helps you to generate the key map using a picture. Press any key of your real or fisical keyboard and it´ll appear. Then drag it to the place you like. It works better when you download it because it need to save the map.kbd with every change.

Also you can download the full code with files here.

Creative Commons License
tiper2 by Patricio Gonzalez Vivo is licensed under a Creative Commons Reconocimiento-No comercial-Compartir bajo la misma licencia 2.5 Argentina License.

Share

soundOrbiter: a little project to play with rythms

Exploring new ways of connecting expressive arts lenguages with new technologies I came with this code inspired on others well know applications.

This program let you record and play sounds in a orbital loop rings.

- To record pressing the mouse button
- Speed up or down the time with “+” and “-”
- Navigate beetewn the sounds with the UP and DOWN arrow keys and move them ford and back with LEFT and RIGHT keys.
- Delete them with DELETE key

Enjoy!

Code written with Processing  [ here ]

Download executable binaries: [ Linux ] [ Windows] [ MacOS]

Creative Commons License
soundsOrbiter by Patricio Gonzalez Vivo is licensed under a Creative Commons Reconocimiento-No comercial-Compartir bajo la misma licencia 2.5 Argentina License.

Share