This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
Basics
Rendering
Professional (SIM)
UnigineEditor
Interface Overview
Assets Workflow
Version Control
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Materials and Shaders
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine.VREyeTracking Class

The class is used for eye tracking management in Varjo devices.

VREyeTracking Class

Enums

STATUS#

NameDescription
INVALID = 0Data is not available, user is not wearing the device or eyes cannot be found.
ADJUST = 1User is wearing the device, but gaze tracking is being calibrated.
VALID = 2Data is valid.

EYE_STATUS#

NameDescription
INVALID = 0Eye is not tracked and not visible (for example, eye is shut).
VISIBLE = 1Eye is visible but not reliably tracked (for example, saccade or blink).
COMPENSATED = 2Eye is tracked but quality compromised (for example, headset has moved after calibration).
TRACKED = 3Eye is tracked.

Properties

bool IsValid#

The value indicating if eye tracking is valid.

vec3 FocusWorldPosition#

The position of the eye focus point in world coordinates.

vec3 GazeWorldDirection#

The gaze direction vector, which is a combined value for both eyes, in world coordinates.

vec3 LeftEyeWorldPosition#

The position of the left eye in world coordinates.

vec3 LeftEyeWorldDirection#

The direction vector of the left eye in world coordinates.

float LeftPupilDiameter#

The estimated diameter of the left pupil. The function returns 0.0f if the pupil is not tracked or the estimate is unavailable.

float LeftPupilIrisDiameterRatio#

The ratio between the left pupil diameter estimate and the estimated diameter of the left iris. If either estimate is unavailable, preventing the calculation of the ratio, the function returns 0.0f.

float LeftIrisDiameter#

The an estimated diameter of the left iris. The function returns 0.0f if the estimate is unavailable.

float LeftOpenness#

The estimated openness ratio of the left eye. 1.0f corresponds to a fully open eye, 0.0f to a fully closed eye.

VREyeTracking.EYE_STATUS LeftStatus#

The status of the left eye.

float RightPupilDiameter#

The estimated diameter of the right pupil. The function returns 0.0f if the pupil is not tracked or the estimate is unavailable.

float RightPupilIrisDiameterRatio#

The ratio between the right pupil diameter estimate and the estimated diameter of the left iris. If either estimate is unavailable, preventing the calculation of the ratio, the function returns 0.0f.

float RightIrisDiameter#

The an estimated diameter of the right iris. The function returns 0.0f if the estimate is unavailable.

float RightOpenness#

The estimated openness ratio of the right eye. 1.0f corresponds to a fully open eye, 0.0f to a fully closed eye.

vec3 RightEyeWorldPosition#

The position of the right eye in world coordinates.

vec3 RightEyeWorldDirection#

The direction vector of the right eye in world coordinates.

VREyeTracking.EYE_STATUS RightStatus#

The status of the right eye.

float IPD#

The interpupillary distance (IPD).

long RawCaptureTime#

The timestamp of when the data was recorded, in nanoseconds.

double FocusDistance#

The distance between the eye and the focus point. It is a value between 0 and 2> meters.

double Stability#

The value specifying the stability of the user’s focus. 0.0 means not stable and 1.0 means stable.

VREyeTracking.STATUS Status#

The value representing the status of eye tracking in the Varjo headsets.

long RawFrame#

The unique identifier of the frame when the data was recorded.

bool VisualizerEnabled#

The value indicating if the visualizer is enabled.

Members


void RequestCalibration ( ) #

Triggers the gaze calibration sequence, if gaze tracking has been enabled in Varjo settings and the Varjo system is in a state where it can bring up the calibration UI.
Last update: 2024-12-13
Build: ()