Introduction: Head Tracking With a Webcam

Picture of Head Tracking With a Webcam

This is like the head tracking with the wiimote but all that is needed is a pc and a webcam, even my very low quality webcam works!

Step 1: Connect a Webcam...

Picture of Connect a Webcam...

Connect your webcam. the software requires that the webcam is connected and working before it is opened.
Make sure the webcam is above the screen roughly in the middle across the top.

Doesnt matter how good the cam is really although im assuming a better camera might work better than mine.

Step 2: Download the Software...

Picture of Download the Software...

go to
to download the software that i used. (I have nothing to do with making it by the way.)
Download the file extract and run the virtualviewpoint.exe.
If its all working well it should start to a black screen, turn grey and then look broken.
Hit the "S" key to start tracking your eyes.

Step 3: Enjoy the Vr Headtracking!

Webcams have a thin field of view so if you find the view suddenly flying as if you looked really close to the screen its normally because you've moved to far to one side.

When using it press space to align your eyes when your looking at the centre of the screen.
Press "S" if it looses your eyes completely.

In config.dat you can change aspect ratio and a few other settings.

By making your own bubble.png and background.png files you can change the images in the program.

First instructable hope you enjoy!


huttarl (author)2013-03-20

The link now goes to a parked domain. Is this software available from somewhere else? Who was the author?

lokivoid (author)2009-12-16

Its useing OpenCV, thats explains why its not loading on most machines. Most people who use openCV in there open source projects fail to compile for any 64bit compatible chipsets or operateing systems.

To the people saying its vista's fault, no sorry the whole blame vista thing was started by apple as a marketing slander campaign agenst all non-apple computers windows or not, and reality is most issues in vista are caused by poor third party software such as driver's rather then the operateing system it self.

Mark Drees (author)2009-08-31

Right when i try to launch the executable it says that the program has stopped working. Ive noticed only certain peoples comps are lucky enough to run this so if you don't know the answer i wont pester you...

carrotman42 (author)Mark Drees2009-09-04

Is it Vista? Because mine did that and it's never been tested on Vista.

Mark Drees (author)carrotman422009-09-04

Yes, 32-bit Vista. It's really too bad because i cant get my Wiimote to connect to my Bluetooth adapter so i cant do the regular head tracking...

santy22 (author)2008-06-16

it says it gets a error and must be closed! PM me if you know the solution !

heamburger (author)santy222008-06-17

have you got the newest version of direct x and a direct x 9.0 compatible graphics card? also some thing to always try is to get the newest version of .net framework. does it give you any more error information?

yztay (author)2008-05-11

doesn't work for me :(

heamburger (author)yztay2008-05-11

I didnt think mine was working either but then i realised i hadnt hit s. :) Could be a graphics card issue, have you got newest directx?

rimar2000 (author)2008-05-10

This is AWESOME! It's Magic!

benthekahn (author)2008-05-10

i cant really try this because i don't have a pc, but i have a program called iNavigate for mac that will move the mouse as you move your head.

heamburger (author)benthekahn2008-05-10

I've also seen this for the mac it works with isight or wiimote and does the same thing. software looks a little more complicated though and it was made for scientific use but its got a demo similar to the above.

About This Instructable




More by heamburger:Head tracking with a webcam
Add instructable to: