christinelam.com
Previous Post: Parachuting Gummi Bears   Next Post: Sydney as a Tourist

Webcam in a cube?

I made this little application in Processing where a webcam’s video goes on all 6 faces on a cube. What’s more is that you can drag the cube in any direction you want to rotate it and see other faces on the cube!

I don’t know why the video isn’t how it comes out of the webcam, probably during the conversion between DirectX and QuickTime formats for the Java based program that Processing is.

If you want to play with a similar toy, I’ve uploaded a similar one but with an image on the cube. That’s online for everyone to play with until I finish the one I’m working on.


Click here for the example

EDIT: I managed to get it to work properly on another computer.

Posted 5 months, 1 week ago at 2:08 pm.

2 comments

2 Replies

  1. Cool implementation.
    A suggestion would be to make the mouse dragging a bit more intuitive.
    At the moment, as soon as the cube gets flipped more than 90 degrees, the x-axis drag no longer corresponds to what you’d expect to happen (e.g. if the cube gets flipped upside-down, then the x-axis drag is reversed).

  2. christine Jun 20th 2008

    haha, tell me after i hand it in?
    thanks talec!!


Leave a Reply