8000 GitHub - xulzee/hmd-eyes: Building blocks for eye tracking in AR and VR.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xulzee/hmd-eyes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hmd-eyes

Building blocks for eye tracking in Augmented Reality AR and Virtual Reality VR or more generally Head Mounted Displays HMD.

Setup

  1. Make sure that you have Pupil Capture or Pupil Service on a Linux, macOS, or Windows 10 machine.

  2. Open Assets/scene/Calibration.unity with the Unity3d Editor (Unity 5.5 and above).

  3. Select the PupilGaze GameObject in Unity Hierarchy.

  4. Connection

    • Local - use this setting if your HMD and your Pupil add-on are connected to the same computer.
      1. In Unity's Inspector select Settings>Pupil App>Local
      2. Click on the Browse button. Navigate to Pupil Service - pupil_service.exe - or Pupil Capture - pupil_capture.exe.
      3. If you're using Pupil Capture make sure your Service Port matches the Port in Pupil Capture. See the Pupil Remote plugin in Pupil Capture to check.
    • Remote - Use the remote mode if your HMD and pupil eye tracking add-on are connected to different computers, but on the same wifi or wired network.
      1. In Unity's Inspector select Settings>Pupil App>Remote
      2. Make sure that your Pupil Capture application is running on the remote machine.
      3. Take note of the IP address of the active communication device in your remote machine. (Please keep in mind that in some cases the IP address stated in Pupil Capture may not be correct, check the IP address of your system!).
      4. Copy this IP address to the IP address field in Unity.
  5. Auto-run Pupil App settings - If auto-run is enabled, Pupil Service will run automatically when your Unity3d scene is in play mode. You can disable this behavior by turning off auto-run in Settings>Pupil App and manually Start or Stop Pupil Service.

  6. Confirm connection - Make sure that the plugin status (below the Pupil Labs logotype) displays the word "connected" and that both of the eye icons are green. The green eye icons signify that the eye processes are running.

Calibration

  1. Choose your desired calibration method under Settings>Calibration. You can chose 2D or 3D.
  2. Press Play in Unity and wait until you have established a working connection with your Pupil App.
  3. Calibrate - Give focus to the main Unity3d window and press c on the keyboard or the Calibrate button in the plugin GUI.
  4. Put your headset on and look at the center of each marker shown in your HMD. The number of markers varies depending on your calibration mode.

Note: The ideal setup for calibration may vary using different headsets. For optimal calibration results I suggest some experimenting with the hardware settings of your HMD device such as the eye distance from the lens, inter eye distance, a steady mount position.

Data access

  1. 2D
    1. You can access the 2d gaze point in Unity3d with GetEyeGaze2D (GazeSource.BothEyes).
  2. 3D
    1. Pupil.values.GazePoint3D
    2. Pupil.values.GazeNormals3D
    3. Pupil.values.EyeCenters3D

Connect

Chat with the hmd-eyes community on Discord.

Join the google group to discuss ideas and stay updated.

About

Building blocks for eye tracking in AR and VR.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 92.0%
  • Python 6.6%
  • ShaderLab 1.4%
0