Setprop("/sim/current-view/goal-pitch-offset-deg", getprop("/sim/view/config/pitch-offset-deg")) Setprop("/sim/current-view/view-number", 0) 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): Sometimes it is useful to be able to reset the view (in the example below with the equal sign key). The following code is from an external discussion. All of them can be set via Advanced on the last page of the launcher. Set the commands showed above via FGRun.generic=socket,out,10,localhost,5551,udp,headtracker generic=socket,in,25,localhost,5550,udp,headtracker Run FlightGear, with the following (extra) commands:.The files can be found in FaceTrackNoIR's file section. 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. You will have to move 2 files to the FlightGear root.Download and install FaceTrackNoIR, as prescribed in the README contained in the zip-file or alternatively in the installation manual.Run with FlightGear pre 2017.3 and older (works only for FlightGear Versions older than 2017.3) You can do this by pressing =-key (equal sign) In FlightGear sometimes you have to reset the view.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.Add optional (opens up the property browser showing the headtracking values:.generic=socket,out,10,localhost,5551,udp,facetracknoir generic=socket,in,25,localhost,5550,udp,facetracknoir addon=full-path-to-the-headtracker-folder Start FlightGears Launcher and add the following argument in Additional Settings in Settings:.When you move/rotate your head, the lines should follow your movements. Make sure your head is well within the view and eyes, nose and cheeck are outlined by a yellow line. A small window with your webcam's view should show up in the leftbottom corner.You might have to restart the FaceTrackNoIR once, after clicking "Start". Select "Game Protocol: FlightGear" and click the "Start" button under "Tracker Source".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. For instance, with the Subversion command-line client (svn), the following command retrieves the development version of Headtracker (the last parameter is the destination folder): The page FGAddon explains a bunch of them in case you have no idea.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |