Posts Tagged ‘openframeworks’

Spatial Media: TrafficFlow update

Thursday, March 5th, 2009

Simple updates on the project. The previz applet has mouse control for each of the emitters. It’s interesting to see how the glowing packets influence each other when in close proximity. Here’s the applet.

ir_flame

Camera vision. Started working with openFrameworks to do the visual tracking of objects on the table. Unexposed portions of developed film negatives block most visible light and let IR light pass. Using this as a filter over the built-in iSight camera, I was able to test a rudimentary camera tracking system. It would likely be better to use a more robust library like openCV, but writing the tracking myself helped me to learn about how it works.

Still have to merge these two components. It looks like I’ll have to rewrite the flocking system in C++ since Processing/Java is getting bogged down. Ameya is working on the web side of the project – messing with a linux-based router to handle the proxy and packet sniffing as well as a database system to manage the data.

The table was built throughout this past week; we still need to mount the camera and projector in an effective way for under projection and sensing…any advice?

Spatial Media: Camera Coding

Friday, January 30th, 2009

Assignment 2(b):

cameracoding_grab

Make an app that allows you to get a single pixel color from live video and fill a rectangle with that color.

I’ve done similar things countless times in Processing (and Director before that), so I used this as an opportunity to dive into openFrameworks. I have been building up my experience of coding with C++ through working with Golden Cheetah and I can finally (sort-of) read the syntax of the code comfortably. I’m also getting used to working in Xcode.

Anyway, here is the result of the quick sketch of the app. I still need to check over my coding conventions to make sure that I’m not doing anything really inefficient, but this works for now. I feel like I’m starting over again…which is fine.

Here is the application (os x) and source code (xcode project, for use with oF v0.05).