We beat the Stream Engine. We figured it out!
Our main issue was hooking up the dynamic-link library to my project. After some forum scraping and soul-searching, we found out someone had the same issue as us. They told us to not listen to Tobii and set the platform to x86. And it worked!
And then it didn’t.
result = Interop.tobii_device_create(apiContext, urls[0], Interop.tobii_field_of_use_t.TOBII_FIELD_OF_USE_STORE_OR_TRANSFER_FALSE, out deviceContext);
Debug.Assert(result == tobii_error_t.TOBII_ERROR_NO_ERROR);
Above is code provided by Tobii for a simple C# application. tobii_device_create creates a device instance to be used for communicating with a specific device. The third parameter of this function is how the device will be used. TOBII_FIELD_OF_USE_STORE_OR_TRANSFER_FALSE was not initially a valid enumerator, so we had to change it to TOBII_FIELD_OF_USE_INTERACTIVE.
result = Interop.tobii_device_create(apiContext, urls[0], Interop.tobii_field_of_use_t.TOBII_FIELD_OF_USE_INTERACTIVE, out deviceContext);
Debug.Assert(result == tobii_error_t.TOBII_ERROR_NO_ERROR);
Dr. Diederich and Dr. McVey were extremely helpful in debugging this whole Tobii situation. Figuring it out was a joyous moment for all of us.
Next on my agenda is figuring out where the user is looking during the trial. I want to visualize where the user is looking during the trial so I know that the tracker isn’t being wonky. I’m playing around with the Graphics class for now.
Happy Friday!
Leave a Reply