DECO2606: Realtime Multimedia Sunday Session
I was able to borrow my housemate's projector this weekend and decided to have a play using the PBox2d library (https://github.com/shiffman/PBox2D) and some coasters I have on my wall. The plan was to use some code I had from an old assignment to project falling balls that would bounce when they hit the coasters.
Projector
Coasters
I also imported the fullscreen API so I didn't have the windows bars: (http://www.superduper.org/processing/fullscreen_api/).
I cheated a bit by setting up an easy grid and moving the coasters on the wall to fit, rather than position them exactly in processing. I then removed the black rectangles and positioned the ball spawn points above the canvas. There were 15 holes in three rows 100-300 pixels above producing about 6 balls a second. The balls get removed once they leave the bottom border of the screen.
It worked pretty well, although the rectangles were too aligned and exact to really simulate the coasters in processing.
Next step would be to find a better boundary class or change this one so I could set up ellipses and rounded rectangles for the different types of costers. I could also changed the boundaries so they slope to avoid balls gathering and set limits on how many balls can be produced. After that, expand..
The video:













