Home Forums Unity SDK 01_GazePointData

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #18698
    Alberto Melchor
    Participant

    I am trying to have the tobii 5C device track objects in the 3d space such as cube. I was attempting to remodify scene one gazepoint data. I noticed that there is no code in the script for the layout for gazemap with all the bubbles. Where in this scene do I modify to remove this and replace it with a script to generate a scene with cubes instead of the 2d layout with bubbles.

    #18699
    Alberto Melchor
    Participant

    I notice when I remove Gaze Point Data Example object it removes the background but not the bubbles, but there is not much inside but transform and event trigger.

    #18700
    Alberto Melchor
    Participant

    In Gaze Point Data Example I have removed the Event Trigger component and added my script to create cubes in 3d space. It did generate however the tobii background with all the information about the example, x y coordinates and information whether gaze is detected or not is still there how do I remove this?

    #18703
    Grant [Tobii]
    Keymaster

    Hi @mela501, the easiest way to proceed in this case is to start with a blank unity scene and then import the Tobii Library directly rather than going through our Demo scene.

    We provide instructions for this (Step 5 onward) @ https://developer.tobii.com/pc-gaming/unity-sdk/getting-started/

    and show explicitly the syntax @ https://developer.tobii.com/pc-gaming/unity-sdk/scripting-api/#tobiiapigetgazepoint

    Please go through this and let us know how you get on. Best Wishes.

    #18706
    Alberto Melchor
    Participant

    thank you, I wanted to ask a question about GazeScene01, I wanted to ask about ray casting, aside from the moveable point I also wanted to include a ray casting. I tried to modify the script at ProjectPlaneToWorld but I wanted to ask how I would use the Debug.DrawLine method, the debug.Drawline method was taken from a tutorial but this time I wanted to see how the eyegaze would be implemented. The code below did not display the Raycast Line.

    public float maxRayDistance = 25;
    private Vector3 ProjectToPlaneInWorld(GazePoint gazePoint)
    {
    Vector3 gazeOnScreen = gazePoint.Screen;
    gazeOnScreen += (transform.forward * VisualizationDistance);
    Ray ray = Camera.main.ScreenPointToRay(gazeOnScreen);
    RaycastHit hit;
    Debug.DrawLine(transform.position, transform.position + gazeOnScreen * maxRayDistance, Color.red);
    return Camera.main.ScreenToWorldPoint(gazeOnScreen);
    }

    #18721
    Grant [Tobii]
    Keymaster

    Hi Alberto, I understand you are in contact with Alexey our Unity specialist regarding this query, so please continue your communications with him and feel free to report here your solutions for the benefit of our other users! Best wishes.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.