4D Mouse with Camera




an image of the racecar game running




This is a simple racecar game using a camera as the four dimensional controller.
Player should control the car and not to crash into the random blocks generated.

Processing with Blob Detection are used for this game.

Camera detects computer screen light as input.

The screen position controls the X and Y, which are the Left, Right, Up and Down of the car.
The screen size controls the Z (depth), which are the Acceleration and Deceleration of the car.
The screen rotation controls the Angle, which are the Left Steer and Right Steer of the car.


Source Code