Lina Maria Giraldo's Blog

Multimedia Artist and ITP Student

Archive for February 17th, 2010

Exercise week 4, Nature of Code

without comments

Here is my example using box2d, my final goal is to disappear the red cells as soon as they touch the Disease and a second one where the virus will attach to the white cells. The solution is to create a contact listener so I know the values of the collision and can create functions like destroy and attach. The code is not very easy so I haven’t been able to figure it out, even with the help of Daniel Shiffman.

After I created the world and set the variables I realized that something was missing. I thought to create walls with lines that move with time, and noise. I looked at a lot of videos of cells and processing examples and I found a wonderful example in open processing.

After you mouse clicked the noise function adds massive points into the background. The cells and the disease have problems moving faster but when the toxin is flushed, they bounce between each other graciously again.

I’m exited about better understanding the contact listener function in box2d and experimenting more.

Bellow is the applet

Please click on the image to the applet

Bellow is the video

Disease from Lina Maria Giraldo on Vimeo.

Written by admin

February 17th, 2010 at 12:35 pm

Exercise week 3, Nature of Code

without comments

I’m trying to recreate the movement of the bacteria but it’s far from being real. I’m using processing changing the oscillation example from Daniel Shiffman. The video turned out to be sort of old-school with the pixelation.

Assignment:

Incorporate oscillatory motion into a previous assignment (or create a new one)
Create a moving body with a shape made from oscillating parts

Here is the link to the applets:

Click on the image to the applet


Click on the image to the applet

Cholera Simulation test from Lina Maria Giraldo on Vimeo.

Written by admin

February 17th, 2010 at 12:30 pm