Headtracking

From WiiBrew
Jump to navigation Jump to search
Headtracking
General
Author(s)PaulWagener
TypeDemo
Links
Download
Source
Downloadable via the Homebrew Browser
Peripherals
WiiMote2.svg

Headtracking is a demo based on Johnny Chung Lee's YouTube video.

Place the Wiimote on your TV facing you and hold the sensorbar close to your head. As you move around, the image will pan and zoom accordingly.

Controls

Button Action
Wiimote D-Pad Wiimote - Button Wiimote + Button Change variables (see debuginfo)
Wiimote A Button Toggle debuginfo
Wiimote HOME Button Return

As the first Wiimote is probably out of reach by your TV you can also use the second Wiimote for above controls

Licence

My code is as free as it can possibly be. Use it, modify it, copy it. Image is made by me and may also be used for anything.

Source

The image can be changed by replacing gfx/view.png and running `raw2c view.png` in the gfx directory If the picture isn't 800x600 make sure you change main.c to compensate (IMAGE_HEIGHT & IMAGE_WIDTH)

Ideas

The next step would be the 3d room with the floating targets further on in Johnny's video.