Netzstaub has been pumping out all kinds of great code and projects over on his blog. Here’s an especially sweet example: he’s got Processing working with a basic headtracking process. The input involves oscp5 and netp5 used with the Mac-only DarwiinRemoteOSC library, but could be adapted to other operating systems.

Wiimote Headtracking in Processing via wesen’s Twitter (follow CDM at Twitter: cdmblogs)

Once the data is there, the rest is basically math. You position the camera to look straight ahead, and then adjust the viewing angle based on incoming data.

The sketch is available, so go try it — and see if further improvements or other applications are possible.

In case you aren’t already familiar with it, here’s the now-famous video featuring Wiimote headtracking, by Carnegie Mellon’s Johnny Chung Lee:

  • wesen

    this is early work in progress, it doesn't look like johnny lee's window (the boundaries of the tunnel don't stick to the window corners), we'll go back to that and hack some cool stuff with it too.

  • BomB

    Best of all!!!

  • Pingback: Wiimote head tracking in Processing - Hack a Day

  • http://megan-fox-fhm-pics.blogspot.com/ megan fox

    Sign: umsun Hello!!! rcuwwymhyw and 658ssgfhphzye and 1933Hi! I was surfing and found your blog post? nice! I just came across your blog and wanted to say that Ive really enjoyed it.