- 22/08/2019 at 00:36 #11920Robin HunterParticipant
Working on a WPF gaze app with Tobii integration. I converted an SVG to XAML using inkscape, and this successfully renders nicely on screen.
However when I to link up a Path to a Behavior.HasGaze trigger, it seems to be checking for the ‘whole footprint area’ rectangular bounding box of the Path, rather than the actual (in this case curved) path edge.
Is there a way to overcome this and only activate a HasGaze behaviour when gaze is within the edge of the path, not simply in the bounding box?
(the second answer here explores VisualContentBounds might be something)22/08/2019 at 00:40 #11921Robin HunterParticipant
perhaps alternative approach could be to use point stream to handle the checking?
unsure if this is feasible. would be great to have a ellipse where the current view point is though!26/08/2019 at 11:57 #11931Grant [Tobii]Keymaster
Hi @flyingrobin and thanks for your query. The Interaction Library (Core SDK) does support masks. You can specify a rectangle and a bitmask as referenced here @ https://tobii.github.io/CoreSDK/api/Tobii.Interaction.Model.Mask.html
I am afraid we do not have further samples on implementation, but hopefully this is enough to get you in the right direction.
Please try it out and let us know how you get on. Best wishes.
- You must be logged in to reply to this topic.