iVideoGameBoss / PhoenixHeadTracker

The Phoenix Head Tracker is a program that interfaces with Xreal Air glasses to capture and analyze sensor data. By detecting changes in the user's head yaw and pitch, this program can send this gyro data to Opentrack UDP or can control the computer mouse to look around in video games
https://github.com/iVideoGameBoss/PhoenixHeadTracker
GNU General Public License v3.0
156 stars 15 forks source link

[Feature request] Make it use any gyro available #3

Closed Kabouik closed 1 year ago

Kabouik commented 1 year ago

I ordered my Nreal Air glasses exactly for this, before I knew your program existed already, just in hope that this would be possible one day! So thanks a lot!

I have not received them yet, but in the mean time, when playing MSFS2020 on a handheld device that has a gyro, I was able to use it as a freelook input. See it here in action: https://youtu.be/DtOXas-GK-0?t=147

While this works nicely, it uses some program from the handheld brand to convert the gyro data to cursor moves, and then some in-game options. I feel your program would be more generic and may not need the in-game settings. Even if it does, I'd still prefer using it over some closed-source software from the manufacturer.

What do you think about adding a way to select the device instead of hardcoded Nreal sensors?

iVideoGameBoss commented 1 year ago

I released a new version that also works with opentrack UDP. https://youtu.be/-dKAtpcpRZ4

Kabouik commented 1 year ago

Nice, and really impressivde in MSFS. Do you think it would be hard to extend that to any 3-dof data from any device? I'm thinking this would be useful for handhelds.

Mine is a GPD Win 4, and GPD provides some way to convert gyro data into curspr position, but it's closed source and not generic to all handhelds.

iVideoGameBoss commented 1 year ago

As long as you have access to a DLL file that can output Euler angles in degrees or radians you can make the software work. Its just a matter of feeding data to it from gyro. Since I made it open source anyone should be able to make it work with any device.