Using FreePIE with FreeTrack / TrackIR and ANDROID
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
Using FreePIE with FreeTrack / TrackIR and ANDROID
Hello everyone!
I want to use my Nexus 5 as a Head Tracking device placing it at top of my head and using the gyroscope as the source of heading and pitch and yaw and roll. I managed it to work with the Mouse Emulator script but i cant make it work with for example Arma 2 or War Thunder. What i want is something like FaceTrackNoIR but the camera is my phone and my face are the sensors, dunno if i explaned well.
So please, could you help me?
Thanks in advance!
I want to use my Nexus 5 as a Head Tracking device placing it at top of my head and using the gyroscope as the source of heading and pitch and yaw and roll. I managed it to work with the Mouse Emulator script but i cant make it work with for example Arma 2 or War Thunder. What i want is something like FaceTrackNoIR but the camera is my phone and my face are the sensors, dunno if i explaned well.
So please, could you help me?
Thanks in advance!
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
Hi and welcome!
Have you tried the Android > Freetrack example?
http://andersmalmgren.github.io/FreePIE ... -freetrack
Have you tried the Android > Freetrack example?
http://andersmalmgren.github.io/FreePIE ... -freetrack
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
Nothing happens. It just does anything
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
Can you please check that the path to the freetrack client dll is correct in the registry.
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
How do i do it?
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
With regedit check that
HKEY_CURRENT_USER\Software\Freetrack\FreetrackClient
Points to the FreePIE folder
HKEY_CURRENT_USER\Software\Freetrack\FreetrackClient
Points to the FreePIE folder
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
it points here: C:/Program Files (x86)/Abbequerque Inc/FaceTrackNoIR/
I dont know if thats correct or not
I dont know if thats correct or not
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
That is wrong, please delete that entry and FreePIE should add correct path. Will fix this so its done automatically for next release
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
Ok so now my path is: C:\Program Files (x86)\FreeTrack\
and by diagnostics.watch(freeTrack.yaw) i can see the numbers changing as i move my phone but War Thunder is still doing nothing
Any ideas?
and by diagnostics.watch(freeTrack.yaw) i can see the numbers changing as i move my phone but War Thunder is still doing nothing
Any ideas?
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
FreePIE and Freetrack uses the same client dll so that should work, but more correctly it should point to the FreePIE folder.
Just for debugging does this script work with the game?
Just for debugging does this script work with the game?
Code: Select all
if starting:
yaw = 0
yaw += 0.01
if yaw > 90:
yaw = -90
freeTrack.yaw = math.radians(yaw)
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
Nope. It doesnt work...
I have to point out that im using Windows 8.. What could be hapenning?
I have to point out that im using Windows 8.. What could be hapenning?
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
Dont know, never had problems with the Freetrack emulation. Does the actual freetrack client work?
What game is it? IS there a demo?
What game is it? IS there a demo?
-
- Petrif-Eyed
- Posts: 2166
- Joined: Mon Jun 22, 2009 8:36 am
- Location: Stockholm, Sweden
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
Is it War Thunder? Looks like it support TrackIR not Freetrack
http://forum.warthunder.com/index.php?/ ... arthunder/
http://forum.warthunder.com/index.php?/ ... arthunder/
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
So what would be the script for TrackIR?
-
- One Eyed Hopeful
- Posts: 9
- Joined: Sat Feb 01, 2014 9:29 am
Re: Using FreePIE with FreeTrack / TrackIR and ANDROID
I tried this script but didnt work:
Code: Select all
if starting:
yaw = 0
yaw += 0.01
if yaw > 90:
yaw = -90
trackIR.yaw = math.radians(yaw)
diagnostics.watch(trackIR.yaw)