uglyDwarf / linuxtrack

Headtracking for Linux/Mac
MIT License
155 stars 29 forks source link

z-axis control will only work minimally in Falcon BMS, rFactor2 running in WINE #149

Open hoover67 opened 5 years ago

hoover67 commented 5 years ago

I'm not sure if this is a linuxtrack or a linuxtrack-wine plugin issue, but I wanted to make sure the community is aware of this issue.

When running linuxtrack for use with Falcon BMS (running in WINE using the linuxtrack-wine plugin), there's only minimal movement in the z axis within the cockpit. The z values themselves look fine, as does the 3d preview window in Linuxtrack; also everything works nicely in x-plane 11 on Linux (native).

However in BMS the movement displayed in-cockpit is minimal and the axis cannot be used for FOV control.

I ran the Tracker.exe in WINE and values are looking good (1500 to -4000 as I move my head towards the screen), but somehow this movement is not transferred to Falcon BMS. The view moves a bit but then just stops and no further "approach" is recorded.

Any idea what could be causing this or where to look next? I already tried a lot of different z axis shapings, sensitivities, curves and whatnot, all to no avail sadly.

All the best & thanks in advance,

Uwe

hoover67 commented 5 years ago

Small update: I just tried the rfactor2 demo (racing simulation) and I'm seeing the same problem: View will only move forward minimally along the Z axis and then just stop .

I'm beginning to think it's a linuxtrack-wine problem. Any idea how one should go about debugging the issue?

Thanks, Uwe

sthalik commented 5 years ago

Hey,

We talked with @hoover67 about head tracking on Linux so let me barge in.

From opentrack's code, the proper maximum value for position output in NPClient{,64}.dll is about 16383 * 100. It's possible your Z value is smaller by some orders of magnitude when at maximum output. It depends on a game–some top out at 16383 * 20, some need the former range.

hoover67 commented 5 years ago

Thanks shtalik. I finished the opentrack setup on my test laptop today and I can confirm that z axis FOV control works fine with opentrack / Linux and Falcon BMS running in WINE, so this definitely seems to be an issue with linuxtrack and / or the linuxtrack-wine plugin.

Please let me know if there's any info I can provide to debug the linuxtrack issue further.

All the best, Uwe

sthalik commented 5 years ago

@uglyDwarf just drop a note if you need any assistance.

The opentrack project has working code in this directory. The files linked with libwine have the .cxx extension, resulting in an .exe.so as per normal winegcc invocation.