[UNOFFICIAL] Running BMS on Linux/WINE with opentrack HOWTO
-
I personally installed it through Lutris, so can’t help with that but is a good idea.
-
Just submitted my report, however the wine version used on my end (5.5) is not listed in the available versions.
cheers, Uwe
wine-5.5 (Ubuntu 5.5-3ubuntu1)
-
BMS 4.35 runs great on linux, considerably faster than on windows with the same hardware.
I have checked that it runs on ubuntu 20.04, 20.10 and 21.04. You do need
winetricks dxvkI use the latest winehq-staging version of wine, currently wine 6.15 (Staging)
It also runs on manjaro; select dxvk there too.
-
Just submitted my report, however the wine version used on my end (5.5) is not listed in the available versions.
cheers, Uwe
wine-5.5 (Ubuntu 5.5-3ubuntu1)
This is the wine version you get from the ubuntu repository, right? Nothing custom just apt install wine. Do you use dxvk with that?
BMS 4.35 runs great on linux, considerably faster than on windows with the same hardware.
I have checked that it runs on ubuntu 20.04, 20.10 and 21.04. You do need
winetricks dxvkI use the latest winehq-staging version of wine, currently wine 6.15 (Staging)
It also runs on manjaro; select dxvk there too.
What happens if you try to run it without dxvk?
Does non-staging work too?–----
And are you guys using a nvidia card with the proprietary drivers or something else?
I get a crash on startup with what I tried, even though I have confirmed that wine runs other games fine and the same hardware runs BMS on windows.
-
Yep dauerhaft that’s correct, it’s the wine version from the ubuntu repo which I am using with dxvk (installed using winetricks).
All the best, Uwe
-
I’m not sure about cougar (it maight need to load firmware under win), most of the other joysticks should be fine using js or evdev.
If anyone is using a HOTAS Couger on Linux then this util https://www.benchmarksims.org/forum/showthread.php?33430-New-Cougar-HOTAS-Linux-Utility&p=466788#post466788 should help. You do need access to Windows to do a one time setup if you want to use manual calibration data which you should if you’re using force mods.
-
-
Hi all!
I’m back with another thing I’ve discovered about the PS3eye and opentrack.
Although my system detects it and I can use it, I was never able to set it at more than 30fps. I haven’t found any direct solution and it bugged me that seems everyone is able to have full access to its capabilities but me.
I haven’t found any definitive solution, but installing QT V4L2 Utility (or V4L2 Test Bench, naming is a bit inconsistent), which is the package qv4l2. You can have a GUI to configure the webcam. When setting up the resolution I want there, it’s then detected by opentrack.
Drawback is I have to open it again after a reboot/power off. Not a big deal really, just to put it all there.
Hope this helps someone.
-
Thanks for the heads-up! I think it should be possible to save a profile and then load it at launch via command line parameter… I’ll check this out, right now I’m using qcvuview (also weirdly named and probably wrong from memory) to set my camera’s parameters on Linux.
Cheers, Uwe
-
@hoover said in [UNOFFICIAL] Running BMS on Linux/WINE with opentrack HOWTO:
Thanks for the heads-up! I think it should be possible to save a profile and then load it at launch via command line parameter… I’ll check this out, right now I’m using qcvuview (also weirdly named and probably wrong from memory) to set my camera’s parameters on Linux.
Cheers, Uwe
Thanks. I guess you meant guvcview (just googled it). I might take a look at it on another lazy moment, hehehe.
-
-
Hi all!
Sorry for being back to this topic but I think it’s better to have all things Linux together. Let me know if it’s better to open a new topic referencing this one.Truth to be told, I NEVER managed to run opentrack natively but I run the windows version inside the same BMS prefix and carry on. This is not ideal and I always keep trying to compile it natively so I’m also able to use it in other places.
Now I manage to compile it!!! But somehow doesn’t detect my cam even if anything else in my system recognizes it. The errors are:DEBUG [/home/MYUSER/opentrack/api/plugin-support.hpp:106]: library "easy" failed: "Cannot load library /home/MYUSER/opentrack/build/install/bin/../libexec/opentrack//opentrack-tracker-easy.so: (libIlmImf-2_3.so.24: cannot open shared object file: No such file or directory)" DEBUG [/home/MYUSER/opentrack/api/plugin-support.hpp:106]: library "opencv" failed: "Cannot load library /home/MYUSER/opentrack/build/install/bin/../libexec/opentrack//opentrack-video-opencv.so: (libdc1394.so.22: cannot open shared object file: No such file or directory)" DEBUG [/home/MYUSER/opentrack/opentrack/main-window.cpp:1021]: no preset dir
I’ve searched a lot and tried several thing with no joy. Any help?
On the other hand, I have less input (Aruco, neuralnet) options than in the windows version. Is that normal?
On the bight side, I’m using a dirty trick to be able to run opentrack with other wine or steam games. I run the wine opentrack and use UDP output. Then open the Linux version and use UDP input and wine/proton as output. It works and, as a side effect, the head movement feels smoother, I’m guessing because of double smoothing and deadzones.
Again, I can play BMS and other games, I just would prefer to do better.
-
@Ferde
It seems some of the dependences are not met, i mean it might be there are only dev packages (headers) installed bout not actual libs.
What provides libs listed in errors (libIlmImf-2_3.so.24 and libdc1394.so.22)
Make sure both are installed.
WRT missing trackers it’s to be expected. For Arucco and neural tracker, you have to compile their libs first, then point opentrack compilation to those compiled libs.
At some point I plan to update opentrack build procedure with steps for missing trackers and outputs (arucco, nt and XPlane output.) -
@Xeno said in [UNOFFICIAL] Running BMS on Linux/WINE with opentrack HOWTO:
@Ferde
It seems some of the dependences are not met, i mean it might be there are only dev packages (headers) installed bout not actual libs.
What provides libs listed in errors (libIlmImf-2_3.so.24 and libdc1394.so.22)
Make sure both are installed.
WRT missing trackers it’s to be expected. For Arucco and neural tracker, you have to compile their libs first, then point opentrack compilation to those compiled libs.
At some point I plan to update opentrack build procedure with steps for missing trackers and outputs (arucco, nt and XPlane output.)Thank you very much for pointing me in the direction to look for and for the need to compile the other things.
Will try again later. -
Apologies for double posting. Seems I already had the apparently missing libraries installed, so I don’t know how I could fix that. Maybe I should link something to somewhere? I’m not good at that.
I’ve also tested a 2-year old app-image of opentrack and it recognizes my webcam without issues so… I don’t know what’s going on here the image probably has some missing thing my system doesn’t. I would use that app-image but it hasn’t wine output or the input trackers I need.
Unfortunately seems there is no up to date app-image, flatpak os snap package. I’ve found a .deb one but is not working.So seems this new attempt of using native opentrack is another half-failure for me. At least this time I got it half-working.
Maybe I should reinstall ubuntu at some point. I’m in 21.10 and too lazy to upgrade because, apart from this, it all works.
-
@Ferde
Make sure you’ve got installed packages:
libdc1394-22, libdc1394-22-dev, libopenexr24, libopenexr24-dev
for x86_64 architecture, assuming you’re building 64bit opentrack. -
@Xeno said in [UNOFFICIAL] Running BMS on Linux/WINE with opentrack HOWTO:
@Ferde
Make sure you’ve got installed packages:
libdc1394-22, libdc1394-22-dev, libopenexr24, libopenexr24-dev
for x86_64 architecture, assuming you’re building 64bit opentrack.You are a lifesaver!!! That was it. Somehow I had libdc1394-22-dev installed but no libdc1394-22. Neither I had the option for it in Synaptic.
I also had libopenexr25 and -dev but not the option to install version24. So I downloaded the packages and now opentrack detects the camera!!!Thank you so much.
-
@Ferde
I’m glad, you’ve got sorted it out. I’m not sure about 2.4 vs 2.5 issue. If it’s 1:1 replacement maybe having just ibopenexr25 and ibopenexr25-dev with no ibopenexr24-dev would be enough to build opentrack against openexr v 2.5.
But whatever, it’s important opentrack is doing fine. -
@Xeno said in [UNOFFICIAL] Running BMS on Linux/WINE with opentrack HOWTO:
@Ferde
I’m glad, you’ve got sorted it out. I’m not sure about 2.4 vs 2.5 issue. If it’s 1:1 replacement maybe having just ibopenexr25 and ibopenexr25-dev with no ibopenexr24-dev would be enough to build opentrack against openexr v 2.5.
But whatever, it’s important opentrack is doing fine.I also thought it would be enough and tried with version 25 installed first and still didn’t detect the camera. So I installed the version24 package.
Anyway, now I was looking at how to compile neuralnet I found… this!
https://gitlab.com/jugandoenlinux/opentrack-script/-/blob/main/README.mdIt has a script and a link to an (optional) opentrack fork with improved Wine and Proton support. It also has options to compile ONNX (Neuralnet), Aruco and XPlane plugin…
It wouldn’t probably have worked for me either before solving this packages problem but now it worked great. I hope it’s useful for someone else even if it’s just taking a look at the install script.
It’s in Spanish but I think it’s probably very self explanatory and google translator shouldn’t have problems with it either.OK. I think I’m finally done with this problem. Thank you again Xeno for your help. Have a great weekend!
-
Quick headsup, new opentrack got released - 2022.3.0
I’ve added steps for extra trackers ( aruco and NeuralNet) and xplane plugin (for sake of completeness, just in case someone is also using xplane on linux)
to Opentrack build instructions.Does anyone have some experience with NeuralNet tracker? While it shows some promise I can’t get Z-Axis right . It seems to be reversed, input show stablevalues between 230-80, but output is going crazy, doing zoom loop if I move my head out past certain point.
Also initial pose is not on logical 0, so I can’t get negative values (move camera furter away than inintail point).On general note on NeuralNet - it is the very cpu-hungry tracker. Maybe once CPUs will get machine learning accelerators it’ll be less taxing? There’s ONN runtime that runs on GPUs but I have no hardware to try it. I’ve got no idea if tracker would work with such runtime and if it gives any benefits for performance. That’s something to be tested by some brave soul with proper GPU.
-
Some more observations on NN tracker. It seems it doesn’t like Accela filter, using Kalman solved my zooming loop issue.
Problem with Z-axis being not center can be solved with recentering position after tracking start.With some tuning it seems to be quite responsive, it needs some smoothing to keep position stable butit’s doable. Some more testing in the sim is needed but so far so good.
-
@Ferde said in [UNOFFICIAL] Running BMS on Linux/WINE with opentrack HOWTO:
Unfortunately seems there is no up to date app-image, flatpak os snap package.
I put together a simple Flatpak build here including the neuralnet tracker. You’ll need to build it yourself as it isn’t in Flathub (yet hopefully), but it just takes 1
flatpak-builder
command. You can use the libevdev Joystick output to make the tracker show up as a multi-axis joystick under Linux, Wine and Steam. Using the OpenTrack Wine integration looks more difficult if possible at all.