Head Tracking With a Webcam

59,800

22

13

Introduction: 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!

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: 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...

go to http://www.kuubee.com/index.php/2008/02/28/virtual-viewpoint-code-download
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!


Be the First to Share

    Recommendations

    • Arduino Contest 2020

      Arduino Contest 2020
    • First Time Author Contest

      First Time Author Contest
    • Space Challenge

      Space Challenge

    13 Discussions

    0
    DavidP896
    DavidP896

    Question 1 year ago

    Is there a way to combine this with Waves NX, to get the headtracker to work for my surround sound 7.1 on my headphones?

    0
    huttarl
    huttarl

    7 years ago on Step 2

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

    0
    lokivoid
    lokivoid

    10 years ago on Introduction

    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.

    0
    Mark Drees
    Mark Drees

    10 years ago on Introduction

    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...

    0
    carrotman42
    carrotman42

    Reply 10 years ago on Introduction

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

    0
    Mark Drees
    Mark Drees

    Reply 10 years ago on Introduction

    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...

    0
    santy22
    santy22

    11 years ago on Introduction

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

    0
    heamburger
    heamburger

    Reply 11 years ago on Introduction

    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?

    0
    heamburger
    heamburger

    Reply 12 years ago on Introduction

    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?

    0
    benthekahn
    benthekahn

    12 years ago on Introduction

    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.

    0
    heamburger
    heamburger

    Reply 12 years ago on Introduction

    I've also seen this for the mac http://molviz.cs.toronto.edu/molviz/ 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.