This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
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
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

Unigine.VREyeTracking Class

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

VREyeTracking Class

Перечисления (Enums)

STATUS#

ИмяОписание
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#

ИмяОписание
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: 19.04.2024
Build: ()