pupil-labs / hmd-eyes

Building blocks for eye tracking in AR and VR.
GNU Lesser General Public License v3.0
153 stars 64 forks source link

How to make Gaze Visualizer invisible for the HMD-user? #90

Closed bastianilso closed 4 years ago

bastianilso commented 4 years ago

Hi pupil labs,

I was working on integration of Gaze Tracker prefab from hmd-eyes v1.1 which work very well. But I'm having difficulty keeping the gaze tracking visible only to people outside VR.

Do you have any examples/demos of how to do that?

fx-lange commented 4 years ago

Hi @bastianilso, sorry for the delay.

One option would be to deactivate the Gaze Visualizer in Unity and screencast to Pupil Capture https://github.com/pupil-labs/hmd-eyes/blob/master/docs/Developer.md#screencast. This would also allow to record at the same time. Be aware that this approach is quite heavy on the CPU and might be overkill for your usecase.

Instead you could setup an additional camera (similar to the screencast setup) and only render the marker inside the extra camera but not in the VR camera. This can be done by assigning a layer to the marker and exclude this layer from the VR cam.

Hope this helps (if still relevant).