Home › Forums › Software Development › Get Eye XYZ Position – cannot find the functions for TX_INTERACTIONBEHAVIORTYPE_ › Reply To: Get Eye XYZ Position – cannot find the functions for TX_INTERACTIONBEHAVIORTYPE_
11/07/2014 at 15:36 #1344
Laser Erich
Participant
First of all thank you.
That’s exactly what I’m doing:
TX_HANDLE eyePositionInteractor = TX_EMPTY_HANDLE;
TX_HANDLE eyePositionBehavior = TX_EMPTY_HANDLE;
bool success;
success = txCreateGlobalInteractorSnapshot(hContext, InteractorId2, &g_hGlobalInteractorSnapshot, &eyePositionInteractor) == TX_RESULT_OK;
success &= txCreateInteractorBehavior(eyePositionInteractor, &eyePositionBehavior, TX_INTERACTIONBEHAVIORTYPE_EYEPOSITIONDATA) == TX_RESULT_OK;
txReleaseObject(&eyePositionBehavior);
txReleaseObject(&eyePositionInteractor);
return success;
And then, for the second interactor i call
TX_HANDLE gazeInteractor = TX_EMPTY_HANDLE;
TX_HANDLE gazeBehavior = TX_EMPTY_HANDLE;
TX_GAZEPOINTDATAPARAMS params = { TX_GAZEPOINTDATAMODE_LIGHTLYFILTERED };
bool success;
success = txCreateGlobalInteractorSnapshot(hContext, InteractorId, &g_hGlobalInteractorSnapshot, &gazeInteractor) == TX_RESULT_OK;
success &= txCreateInteractorBehavior(gazeInteractor, &gazeBehavior, TX_INTERACTIONBEHAVIORTYPE_GAZEPOINTDATA) == TX_RESULT_OK;
success &= txSetGazePointDataBehaviorParams(gazeBehavior, ¶ms) == TX_RESULT_OK;
txReleaseObject(&gazeBehavior);
txReleaseObject(&gazeInteractor);
return success;
But only the first initialized interactor will do it’s work…
PS: the second initialization returns false