ghostiam / BrokenEye

Gain access to advanced eye tracking data and camera images for the Pimax Crystal or HP Reverb G2 Omnicept Eye Tracker.
14 stars 0 forks source link

Support for other Tobii tracked Headsets #3

Closed Nyabsi closed 8 months ago

Nyabsi commented 9 months ago

Hello,

I would like to ask whenever it's possible to support other Headsets than Pimax, unfortunately the source code is not available, there are plenty headsets that rely on Tobii integrated outside Pimax and these devices are left as "suboptimal" due to Tobii having some rather interesting licensing implemented in their SDK.

So would it be possible to integrate this product into other Headsets, such as the HP Reverb G2 Omnicept?

ghostiam commented 9 months ago

Hello, thanks for your interest in the project.

It's possible, but I won't be able to test it since I only have Crystal on hand. To see if this will be possible with the HP Reverb G2, check if the PimaxCrystalAdvanced plugin (without BrokenEye) is working for you.

If the plugin works, there is a good chance that BrokenEye will work (after some changes).

Nyabsi commented 9 months ago

Hey, thanks for the reply. I will try that today. I will report the results after I get home today.

Nyabsi commented 9 months ago

Hey,

Quick update regarding the feasibility, it seems to connect just fine.

[MainStandalone] Information: VRCFT Version 5.1.1.0 initializing...
[MainStandalone] Information: Initializing OSC...
[OSC] Debug: OSC Service Initializing
[OSC] Debug: Binding Sender Client
[OSC] Debug: OSC Service Initialized with result (True, True)
[MainStandalone] Information: Initializing main service...
[VRCFaceTracking.UnifiedTrackingMutator] Debug: Reading configuration...
[MainStandalone] Debug: Starting OSC update loop...
[MainStandalone] Debug: Checking for deletion requests for installed modules...
[MainStandalone] Information: Checking for updates for installed modules...
[MainStandalone] Information: Initializing modules...
[UnifiedLibManager] Information: Starting initialization tracking
[UnifiedLibManager] Information: Tearing down all modules...
[VRCFaceTracking.UnifiedTrackingMutator] Debug: Configuration loaded.
[UnifiedLibManager] Debug: PimaxCrystalAdvanced properly implements ExtTrackingModule.
[UnifiedLibManager] Debug: Initializing requested runtimes...
[UnifiedLibManager] Information: Initializing runtimes...
[UnifiedLibManager] Information: Initializing PimaxCrystalAdvanced, Version=0.12.0.0, Culture=neutral, PublicKeyToken=null
[UnifiedLibManager] Information: Loading External Module PimaxCrystalAdvanced, Version=0.12.0.0, Culture=neutral, PublicKeyToken=null
[PimaxCrystalAdvanced] Information: Initializing module...
[PimaxCrystalAdvanced] Information: Try use BrokenEye API...
[PimaxCrystalAdvanced] Information: Connecting to 127.0.0.1:5555...
[PimaxCrystalAdvanced] Error: Failed to connect to server (One or more errors occurred. (No connection could be made because the target machine actively refused it.))
[PimaxCrystalAdvanced] Information: Failed to connect to Broken Eye server...
[PimaxCrystalAdvanced] Information: Try use Tobii API...
[PimaxCrystalAdvanced] Information: Adding assembly path to DLL search path: C:\Users\Nyabsi\AppData\Roaming\VRCFaceTracking\CustomLibs\324b3cd5-5e64-4f3f-b056-12340badc0de
[PimaxCrystalAdvanced] Information: Initializing Tobii...
[PimaxCrystalAdvanced] Information: Found devices: tobii-prp://VRR01-8CC146Z006, 
[PimaxCrystalAdvanced] Information: Connecting to first device: tobii-prp://VRR01-8CC146Z006...
[PimaxCrystalAdvanced] Information: No license found in C:\Users\Nyabsi\AppData\Roaming\VRCFaceTracking\CustomLibs\324b3cd5-5e64-4f3f-b056-12340badc0de\license.json, using default license...
[PimaxCrystalAdvanced] Information: Connected to platform module with build version "1.23.2.0_fccb879"
[PimaxCrystalAdvanced] Information: Subscribed to consumer data.
[PimaxCrystalAdvanced] Information: Done.
[PimaxCrystalAdvanced] Information: Connected to Tobii API!
[UnifiedLibManager] Debug: Starting thread for PimaxCrystalAdvanced
[UnifiedLibManager] Information: Tracking initialized via PimaxCrystalAdvanced.PimaxCrystalAdvanced
ghostiam commented 9 months ago

@Nyabsi Yes, that's right, it works. I'll look into adding a new headset to BrokenEye.

ghostiam commented 8 months ago

Thanks for testing via Discord. Release: https://github.com/ghostiam/BrokenEye/releases/tag/v1.2.0