Head tracking with a webcam - FaceTrackNoIR (it works!)

Discussion in 'War Thunder' started by Tuonela, Sep 13, 2013.

  1. Tuonela

    Tuonela Well Liked Berserker

    Messages:
    5,529
    Likes Received:
    1,952
    Trophy Points:
    113
    Location:
    Hawaii
    Ætt (Clan):
    Drakjägare
    So I started messing around with my joystick and realized maintaining situational awareness is nigh impossible, so I looked up head tracking options and found facetracknoir.

    Its essentially a head tracking program that only needs a webcam to work, and if your webcam is high enough resolution it actuallly works pretty well. My only issue is that in Warthunder the distance you need to look sideways is near 180 degrees so making a smooth progression from just a slight sideways glance to a full head turn is difficult to put into the curves properly so my vision tends to jerk around a bit too much, but for the most part its very good (I even tried in FRB battle and landed a HIT on an enemy, after which I promptly crashed into the water because I wasn't paying attention in my turn).

    Anyway, Warthunder specific instructions are here, but I added a whole lot of clarification steps after doing it myself to make it a bit clearer.

    FaceTrackNoIR

    1.) Just install the most up to date Software.
    2.) Also download the software for TrackIR and install (you won't actually use this but you need a file from there to work it properly)
    2) Copy "tirviews.dll" from your TrackIR main folder to your FacetracknoIR-folder. You may get it from an installation of the TrackIR-Software
    3.) Restart FacetracknoIR
    4.) Click "Settings" -> Check "Use tirviews.dll". Choose "Freetrack 2.0" as game-protocoll. (TrackIR first, Freetrack hide)
    5.) Make sure tracking is working for you by clicking 'Start' from the main FaceTrackNoIR menu and watching the video feed with the yellow marker. (You may have to approach your camera until the tracking starts to work). KEEP FaceTrackNoIR on in the background with the tracking still on. Also do check your FaceTrackNoIR keyboard shortcuts, you'll definitely want the one that centers the view (basically resets the view in case it gets screwy)
    6.) Start Warthunder in WINDOWED MODE, the control wizard may or may not show up. If yes, do not cancel out of it but rather set up your controls again. During hte process the game should ask if you want to use headtracking, say yes. If it doesn't, go into the controls and go into the wizard and do the same.
    7) Start a test flight. At this point the headtracking should work. Move your head around. If you don't like the behavior of the tracking, bring up FaceTrackNoIR, click the curves button and adjust as necessary.
    8) Make sure that your Z (think ailerons) axis is disabled. Its not needed in Warthunder and will just screw you up. Disable it by making the curve on the far left vertically flat at 0 degrees. Other advice from the thread:

    - Limit Pitch to maximum of 90 degrees (Or screen will shake ingame). Add a small deadzone.

    - Limit Yaw to maximum of 180 degrees. Add a small deadzone.

    - Disable Roll

    - Disable Pitch down

    - Click on Translate

    - Add a medium deadzone for x- and y-axis. Add limits to your needs.

    - You may or may not disable z-axis (it's the zoom) as you see fit.
     
  2. Deathwatch050

    Deathwatch050 Well Liked Thrall

    Messages:
    784
    Likes Received:
    252
    Trophy Points:
    63
    Gender:
    Male
    Location:
    United Kingdom
    Ætt (Clan):
    Huscarls
    I don't know about you, but I find my ailerons to be pretty damn important, especially as a joystick user. >.>

    This is the only part of the whole thing I don't understand.. I was thinking of setting it up tomorrow once I get it. :p
     
  3. Tuonela

    Tuonela Well Liked Berserker

    Messages:
    5,529
    Likes Received:
    1,952
    Trophy Points:
    113
    Location:
    Hawaii
    Ætt (Clan):
    Drakjägare
    Yea that part was straight quoted, its actually not what you think it is. It disables, if I remember right, tracking of your head forward and back, it doesn't have anything to do with your plane controls, just tracking of your face. There's one axis that doesn't help and actually gets a little in the way, at least it did for me.
     
    Deathwatch050 likes this.