OpenTrack and X-Plane 12 in Linux fix #1836
CannonFodderSE
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings
I'm Running X-Plane 12.0.9-rc-5 on Kubuntu 23.10 Linux with OpenTrack 2.3.0 running in Wine with the freetrack plugin using a USB camera and IR clip. It all worked at the end of summer/beginning of fall.
Download headtrack plugin for X-Plane to support head tracking via UDP.
Located on Github at "https://github.com/amyinorbit/headtrack".
Get the latest release. "https://github.com/amyinorbit/headtrack/releases/tag/2209.1r2" as of this writing.
Download the release as a zip file, "https://github.com/amyinorbit/headtrack/releases/download/2209.1r2/htrack-1010-2209.1r2.zip".
Extract zip file.
Go into the extracted folder labeled "htrack".
Open folder "lin_x64".
Copy file "htrack.xpl" to your X-Plane plugin folder. Usually in your X-Plane directory under "Resources/plugins".
Download Opentrack source code from Github and compile using steps below.
These steps were successfully tested on Kubuntu/Ubuntu 23.10.
1 sudo apt install build-essential cmake git qttools5-dev qtbase5-private-dev libprocp2-dev libopencv-dev libproc2-dev
2 git clone https://github.com/opentrack/opentrack
3 cd opentrack
4 cmake . <--don't forget the period
5 make
6 make install
Note: The resulting build output will be placed in the install directory within the opentrack folder created in step 3. It will not "install" itself anywhere outside of the current directory.
Go into the "install" folder followed by the "bin" folder.
Here you will find the Opentrack program labeled "opentrack".
Launch it.
Once opentrack is running, click the pull-down arrow in the "Output" box and select "UDP over network".
Next click the box to the right of the pull-down arrow to configure it.
A new window will popup labeled "UDP protocol settings".
Change the "Remote IP address" to "127" "0" "0" "0".
By default it will computers IP address.
I've found this does not always work.
Using the local loop-back address, 127.0.0.0, always works for me.
Don't change the port. Leave it at "4242".
Configure the "Options" and "Mapping" to your needs / preferences.
Start X-Plane and launch the aircraft of your choice.
After you are in the cockpit, move your mouse cursor to the top of the screen to open the menu bar.
Click on "Plugins".
You should see "HeadTrack".
Move you mouse to it and click "Track Head Motion".
You should have head tracking working.
There are additional custom settings in the "Setting..." option in the plugin's menu.
Recommend making initial adjustments and response curve settings in Opentrack first then fine tuning in the plugin if needed.
Hope this helps someone else,
Randy Bancroft
Beta Was this translation helpful? Give feedback.
All reactions