First of all let me thank the devs/team behind freepie for the nice piece of software they are providing.
Nice work! Really!
As you can see from the subject im trying to use together, into a game supporting TrackIR (War Thunder), freetrack and freepie to provide respectively rotation and traslation of the point of view. I have a 2 DoF (single point) tracking system, because i think i wouldn't like translating with my body, so i'd like to bind such functionality to some buttons. The issue is that i cannot do it in game, since the game disables physical controls when a headtracking system is detected. So basically freetrack already deals natively with rotation without problems in game but i need to emulate X,Y,Z translations through freepie, making the game believe that they come from the TrackIR itself.
After reading some freepie docs i came up with this simple test example, which uses two mouse buttons to translate on the vertical axis:
Code: Select all
#initializations
if starting:
Ydelta = 10
trackIR.y = 0
#main loop updated at every iteration, mouse doesnt need update event handling
if (mouse.getPressed(4)):
trackIR.y += Ydelta
elif (mouse.getPressed(3)):
trackIR.y -= Ydelta
diagnostics.watch(mouse.getButton(3))
diagnostics.watch(mouse.getButton(4))
diagnostics.watch(trackIR.y)
1. I dont know which values and unit of measure TrackIR translation expects, i tried with 10, 100, 1000... always the same... maybe thats not the right way? Do i have to apply some filters?
2. Is it even possible to do so? I mean, how does the application detect the TrackIR device and distinguish between freetrack/freepie?
3. Moreover in the registry i have HKEY_CURRENT_USER\Software\NaturalPoint\NATURALPOINT\NPClient Location with Freepie_RealPath and Path pointing to freetrack, and HKEY_CURRENT_USER\Software\Freetrack\FreetrackClient pointing there too... does it matter?
4. I also tried starting the game with freetrack disabled, just to test if it was going confused with more than one trackir client, but it seems it doesnt detect any TrackIR at all, since i can use some bindings that are usually disabled when a TrackIR is detected. So is freepie output TrackIR interface working in this case?
Ah, freepie is run as Administrator.
Thank you for your suggestions.