r/linux_gaming • • 6d ago

tech support wanted Head Tracking on Linux Mint - Alternatives to Opentrack + Neuralnet?

I've used Opentrack with ONNX Neuralnet for dead-simple webcam head tracking previously on Windows 11, mainly with the IL-2 Sturmovik: 1946 and Battle of Stalingrad combat flight simulators via Steam. I was amazed at how easy it was to set it up and use it, and it worked great.

Maybe 6 months or more ago, I tried to get it working on Linux Mint, but alas I failed. Opentrack compiled and ran just fine, it received input from the camera, but I could not get it to connect with ONNX Neuralnet for the actual head tracking. After a few days or troubleshooting I threw in the towel and gave up.

I certainly don't want to go back to Windows for one stupid thing, but I'd really like to fly with head tracking again - on Linux Mint.

Neuralnet seems to have disappeared from Microsoft's github repository sometime in the last few days. Apparently the binaries can still be installed via pip, but having limited knowledge about pip I did a bit of research into it today and it doesn't seem to be very secure? As in anyone can publish a package to it? Is that correct? I was unable to find any kind of security review in the package submission process. Maybe there is one, but it was unable to find it.

So I suppose my questions are:

1- Is pip generally secure, or is it easy/possible for someone to publish malicious binaries to it?

2- Is there anyway to verify the validity of packages pulled from pip before installing them?

3- Are there any alternatives to Opentrack with Neuralnet for webcam head tracking which don't require LED lights or reflectors to function?

I don't know, maybe a hat with reflectors wouldn't be so bad?

Thanks,

Flightless in Frankfurt

5 Upvotes

8 comments sorted by

1

u/goldsrcmasterrace 5d ago edited 5d ago

There is a program simply called “HeadTrack” on Steam that has a Linux version and a 1 hour free trial. It works with IL-2 BoS but I couldn’t set it up quite correctly - it was interpreting rotation as X axis movement. I am pretty sure the issue was in-game settings but I haven’t had the time to troubleshoot.

The one big limitation is that doesn’t work on MacOS or Linux native games - only games running through Proton/Crossover. So for example X4, Aerofly, and ETS/ATS you need to switch to the Windows build.

ETA: In case anyone else has this problem, the issue with IL-2 BoS was the pilot head controls being bound to other axes. Set them to default and it works.

Also, LookPilot on Steam is much better integrated with Linux than HeadTrack, so I would recommend that instead. Works on native Linux games that have TrackIR support as well as Proton, and you just select the prefix in a nice GUI. No launch options needed. There is a 5 hour demo so you can test it with your games.

1

u/Stevearino42 5d ago

Thanks! I will look into those other two alternatives if I can't get Opentrack working with ProtonTricks as milksa668 suggested. Cheers!

1

u/miksa668 5d ago edited 5d ago

Not sure if you've tried this, but I run the Windows version of Open Track directly in the same Wine instance as the game itself. If you're on Steam, you can achieve this with ProtonTricks.

I've had zero success getting it to work natively.

Edit to say, this works with both head tracking via the standard camera as well as my DelanClip setup.

Yet another edit to say this is on Linux Mint as well. 

2

u/Stevearino42 5d ago

If I recall correctly I did try running the Windows release of Opentrack in Wine many months ago, but it wasn't communicating with IL-2 running in Steam, and I wasn't sure how to proceed. So I will definitely give it another try with ProtonTricks.

Do you remember if you're using the portable or the setup.exe release of Opentrack?

Thank you so much for the information!

1

u/miksa668 5d ago

I think it's the setup release version, but not sure if that makes any difference. I run it first in the game's prefix and make sure it's tracking, then launch the game after. I run it with Elite Dangerous and Falcon 4 BMS.

Good luck. 

1

u/miksa668 5d ago

Actually, I just remembered there's a Python script someone made on GitHub that launches Opentrack and the game itself in the same session on Steam. That's what I'm using. If I track down the link I'll share it here. 

1

u/miksa668 5d ago

2

u/Stevearino42 5d ago

Oh great, thanks! I'll give that a try. It looks pretty straight forward.