Headtracking in TrackIR supported games
Posted: Mon May 20, 2013 5:11 am
Hi All,
I was wondering whether it would be possible to write the values of trackIR via freePIE so that all supported trackIR games (there are quite a few) could be used via the Oculus Rift.
The home page of trackIR shows that the plugin is writable as well as readable. I currently use it the other way to use Virieo Perception with my Track IR using the following code
As far as I am aware there is no direct support for the Oculus tracker in FreePIE but it would be interesting to see if you could reverse all the values above so that the game thinks trackIR is moving and you effectively get headtracking. I suppose one would then need to test whether the trackIR itself had to be connected or whether this was only possible for people who owned one (who could have the TIR software running but the sensor out of range of the camera).
Unfortunately my Rift has yet to arrive (201xx) but hopefully I will be able to try this out soon. I suppose I could test the theory using a joystick or similar if people think this is a good idea. If it does work it could at least help to integrate the codemaster games (Dirt 2 / 3 / F1 / etc).
I was wondering whether it would be possible to write the values of trackIR via freePIE so that all supported trackIR games (there are quite a few) could be used via the Oculus Rift.
The home page of trackIR shows that the plugin is writable as well as readable. I currently use it the other way to use Virieo Perception with my Track IR using the following code
Code: Select all
def update():
vireioSMT.yaw = trackIR.yaw
vireioSMT.pitch = trackIR.pitch
vireioSMT.roll = trackIR.roll
vireioSMT.x = trackIR.x / 5.0
vireioSMT.y = trackIR.y / 5.0
vireioSMT.z = trackIR.z / 5.0
if starting:
trackIR.update += update
Unfortunately my Rift has yet to arrive (201xx) but hopefully I will be able to try this out soon. I suppose I could test the theory using a joystick or similar if people think this is a good idea. If it does work it could at least help to integrate the codemaster games (Dirt 2 / 3 / F1 / etc).