Headtracking: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{Infobox homebrewapp | |||
== | | title = Headtracking | ||
=== | | image = | ||
| desc = Panning an image based on sensorbar movement | |||
[ | | type = Demo | ||
| author = PaulWagener | |||
| display = | |||
| download = [http://wii-headtracking.googlecode.com/svn/trunk/Headtracking.zip Headtracking.zip] | |||
| source = [http://code.google.com/p/wii-headtracking/source/browse Browse source] | |||
| peripherals = {{Wiimote2}} | |||
| hbc = 1 | |||
| hbb = 1 | |||
}} | |||
'''Headtracking''' is a demo based on [http://www.youtube.com/watch?v=Jd3-eiid-Uw 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== | |||
{| class="wikitable" | |||
|- | |||
! Button !! Action | |||
|- | |||
| {{WiimoteDPad}} {{WiimoteMinusButton}} {{WiimotePlusButton}} || Change variables (see debuginfo) | |||
|- | |||
| {{WiimoteAButton}} || Toggle debuginfo | |||
|- | |||
| {{WiimoteHomeButton}} || 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. |
Revision as of 18:45, 5 March 2009
Headtracking | |
General | |
---|---|
Author(s) | PaulWagener |
Type | Demo |
Links | |
[[Headtracking.zip|Download]] | |
[[Browse source|Source]] | |
Peripherals | |
![]() |
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 |
---|---|
![]() ![]() ![]() |
Change variables (see debuginfo) |
![]() |
Toggle debuginfo |
![]() |
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.