Using FreePIE with FreeTrack / TrackIR and ANDROID

Official forum for open source FreePIE discussion and development.
Post Reply
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

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! :D
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by CyberVillain »

Hi and welcome!

Have you tried the Android > Freetrack example?

http://andersmalmgren.github.io/FreePIE ... -freetrack
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

Yes, I have
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by CyberVillain »

What happens? Errors etc?
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

Nothing happens. It just does anything
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by CyberVillain »

Can you please check that the path to the freetrack client dll is correct in the registry.
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

How do i do it?
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by CyberVillain »

With regedit check that

HKEY_CURRENT_USER\Software\Freetrack\FreetrackClient

Points to the FreePIE folder
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

it points here: C:/Program Files (x86)/Abbequerque Inc/FaceTrackNoIR/

I dont know if thats correct or not
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by CyberVillain »

That is wrong, please delete that entry and FreePIE should add correct path. Will fix this so its done automatically for next release
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

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?
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by CyberVillain »

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?

Code: Select all

if starting:
	yaw = 0

yaw += 0.01

if yaw > 90:
	yaw = -90

freeTrack.yaw = math.radians(yaw) 
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

Nope. It doesnt work...

I have to point out that im using Windows 8.. What could be hapenning?
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by CyberVillain »

Dont know, never had problems with the Freetrack emulation. Does the actual freetrack client work?
What game is it? IS there a demo?
CyberVillain
Petrif-Eyed
Posts: 2166
Joined: Mon Jun 22, 2009 8:36 am
Location: Stockholm, Sweden

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by CyberVillain »

Is it War Thunder? Looks like it support TrackIR not Freetrack

http://forum.warthunder.com/index.php?/ ... arthunder/
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

So what would be the script for TrackIR?
MixsStar
One Eyed Hopeful
Posts: 9
Joined: Sat Feb 01, 2014 9:29 am

Re: Using FreePIE with FreeTrack / TrackIR and ANDROID

Post by MixsStar »

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)
Post Reply

Return to “FreePIE”