FOVE SUPPORT CENTER

Eye Co-ordinate - Using the raw data in GraFIX

Answered

Comments

1 comment

  • Official comment
    Avatar
    Lochlainn Wilson

    You would need to write your own kind of wrapper to do this.

    I believe that the vectors for each eye are in world space. To use these you would need to cast rays out from the world, find the point of collision and then transform it into screen space appropriately. 

    We however have a utility function that does this.

    The helper function is:
    foveInterface.GetNormalizedViewportPointForEye (target.transform.position, Fove.EFVR_Eye.Left);

    Note that to use it you will need to initialize your FoveInterface in a setup step that looks like:
    foveInterface = FindObjectOfType<FoveInterface>(); //or a specific instance if you are doing advanced stuff.

    You can get the eye closed states using:
    Fove.EFVR_Eye eyes_closed = FoveInterface.CheckEyesClosed (); //note that this method is currently static only...

    The possible states that it returns are:
    Fove.EFVR_Eye.Both
    Fove.EFVR_Eye.Left
    Fove.EFVR_Eye.Right
    Fove.EFVR_Eye.Neither

    You can use this to format the data in the way you desire. Good luck!

    Comment actions Permalink

Please sign in to leave a comment.