FaceTrackNoIR: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 20: Line 20:
== Run with FlightGear ==
== Run with FlightGear ==
# Download and install FaceTrackNoIR, as prescribed in the README contained in the zip-file or alternatively in the [http://facetracknoir.sourceforge.net/manual/installation.htm installation manual].
# Download and install FaceTrackNoIR, as prescribed in the README contained in the zip-file or alternatively in the [http://facetracknoir.sourceforge.net/manual/installation.htm installation manual].
# You will have to move 2 files to the [[$FG ROOT|FlightGear root]]. Both files are called "headtracker.xml", but their content is different! One file goes to [[$FG ROOT]]/Nasal and the other goes to [[$FG ROOT]]/Protocol. The files can be found in FaceTrackNoIR's [https://sourceforge.net/projects/facetracknoir/files/Special%20support/FlightGear/ file section]. There is also an alternative file at the bottom of a [https://sourceforge.net/p/facetracknoir/discussion/flightgearprotocol/thread/d3bc8b0f/ discussion], which amongst others allows to reset the view.
# You will have to move 2 files to the [[$FG ROOT|FlightGear root]]. Both files are called "headtracker.xml", but their content is different! One file goes to [[$FG ROOT]]/Nasal and the other goes to [[$FG ROOT]]/Protocol. The files can be found in FaceTrackNoIR's [https://sourceforge.net/projects/facetracknoir/files/Special%20support/FlightGear/ file section].  
# Make sure you closed any webcam software that might be running. This is really important, failing to do so will probably stop FaceTrackNoIR from working.
# Make sure you closed any webcam software that might be running. This is really important, failing to do so will probably stop FaceTrackNoIR from working.
# Start FaceTrackNoIR.  
# Start FaceTrackNoIR.  
Line 29: Line 29:
#* Set the commands showed above via [[FGRun]]. All of them can be set via Advanced on the last page of the launcher.
#* Set the commands showed above via [[FGRun]]. All of them can be set via Advanced on the last page of the launcher.
# While running FlightGear, open the FaceTrackNoIR dialog and edit the sensitivity bars, so that your head movements correspond well with FlightGear's view movements. Ticking the "invert" boxes might be neccesary if your movements are mirrored.
# While running FlightGear, open the FaceTrackNoIR dialog and edit the sensitivity bars, so that your head movements correspond well with FlightGear's view movements. Ticking the "invert" boxes might be neccesary if your movements are mirrored.
== Resetting the View ==
The following code is from an external [https://sourceforge.net/p/facetracknoir/discussion/flightgearprotocol/thread/d3bc8b0f/ discussion].
Sometimes it is useful to be able to reset the view (in the example below with the equal sign key). That can be accomplished by adding the following code to the headtracker.xml in the Nasal directory at the beginning (the first and the last tag in the code snippet below already exist - use the code in between):
<syntaxhighlight lang="xml">
<PropertyList>
<input>
<keyboard>
<key n="61">
<name>= (equal sign)</name>
<desc>Reset Head Tracker</desc>
<binding>
<command>nasal</command>
<script>headtracker.reset()</script>
</binding>
</key>
</keyboard>
</input>
<nasal>
</syntaxhighlight>


== Troubleshooting ==
== Troubleshooting ==
648

edits

Navigation menu