I worked today and yesterday on creating a headtracking solution using the
wiimote plugin and Johnny Lees headtracking code.
Here is the result:
VideoBUT THERE ARE A FEW THINGS YOU NEED TO READ FIRST BEFORE TRYING IT YOURSELF:You need to set some vars before running my demo in the main void:
screenHeightinMM this is your screen height in MM
dotDistanceInMM distance of the infrared leds if you are using a wii sensor bar leave it at 215.
cameraIsAboveScreen Set this value to 0 if your
wiimote is placed under your screen.
ALSO IMPORTANT:When running the demo it might happen that you see a blue screen. If this happens press the key a on your keyboard and be sure your
wiimote can "see" you. If it doenst work then try pressing a again. Sometimes the script has problems activating the wiimotecam.
WHEN RUNNING THE DEMO AND YOU CAN SEE THE LEVELBring your head in a neutral position before your screen and press space, this will adjust some values for you.
I dont know what headtracking is./How does your solution work?The basic functions are just like in Johnny Lees configuration so if you want to know what
wiimote headtracking is about and how it works check out
his video.
So all you need is a bluetooth stick in your pc, a
wiimote and the knowledge how to connect your
wiimote to your pc which you'll find when searching in the manual for wii or
wiimote.
Where can i download your demo/scriptHere.If you want to use it in your own projects i highly suggest to read the comments in the wii3d.h.
Okay have fun with it.
EDIT: Uploaded a new version (same download link) with some fixes.