Tilt Five Unity API  1.3.0
Public Attributes | Static Public Attributes | Properties | List of all members
TiltFive.GlassesSettings Class Reference

GlassesSettings encapsulates all configuration data used by the Glasses' tracking runtime to compute the Head Pose and apply it to the Camera. More...

Inheritance diagram for TiltFive.GlassesSettings:
TiltFive.TrackableSettings

Public Attributes

Camera headPoseCamera
 The main camera used for rendering the Scene when the glasses are unavailable, and the gameobject used for the glasses pose. More...
 
bool cloneCameraTemplateChildren = false
 Whether or not the camera template's child gameobjects should be cloned during eye camera instantiation at runtime. More...
 
LayerMask cullingMask = ~0
 The culling mask to be used by the eye cameras for this pair of glasses. More...
 
float nearClipPlane = MIN_NEAR_CLIP_DISTANCE_IN_METERS
 The near clip plane in physical space (meters), to adjust for content scale and gameboard size More...
 
float farClipPlane = 100f
 The far clip plane in physical space (meters), to adjust for content scale and gameboard size More...
 
bool overrideFOV = false
 
float customFOV = DEFAULT_FOV
 
GlassesMirrorMode glassesMirrorMode = GlassesMirrorMode.LeftEye
 
bool usePreviewPose = true
 
Transform previewPose
 
string friendlyName = DEFAULT_FRIENDLY_NAME
 
- Public Attributes inherited from TiltFive.TrackableSettings
bool RejectUntrackedPositionData = true
 
TrackingFailureMode FailureMode = TrackingFailureMode.FreezePosition
 

Static Public Attributes

const float MIN_FOV = 35f
 
const float MAX_FOV = 64f
 
const float DEFAULT_FOV = 48f
 
const float DEFAULT_IPD_UGBD = 0.059f
 
const float MIN_NEAR_CLIP_DISTANCE_IN_METERS = 0.1f
 
static readonly string DEFAULT_FRIENDLY_NAME = "Tilt Five Glasses"
 

Properties

Camera cameraTemplate [get, set]
 The camera used as a template for creating the eye cameras at runtime. More...
 
float fieldOfView [get]
 

Additional Inherited Members

- Public Types inherited from TiltFive.TrackableSettings
enum class  TrackingFailureMode { FreezePosition = 0 , FreezePositionAndRotation = 1 , SnapToDefault = 2 }
 

Detailed Description

GlassesSettings encapsulates all configuration data used by the Glasses' tracking runtime to compute the Head Pose and apply it to the Camera.

Definition at line 12 of file GlassesSettings.cs.

Member Data Documentation

◆ cloneCameraTemplateChildren

bool TiltFive.GlassesSettings.cloneCameraTemplateChildren = false

Whether or not the camera template's child gameobjects should be cloned during eye camera instantiation at runtime.

Definition at line 80 of file GlassesSettings.cs.

Referenced by TiltFive.SplitStereoCamera.InstantiateEyeCameras().

◆ cullingMask

LayerMask TiltFive.GlassesSettings.cullingMask = ~0

The culling mask to be used by the eye cameras for this pair of glasses.

Definition at line 85 of file GlassesSettings.cs.

Referenced by TiltFive.Glasses.GlassesCore.Update().

◆ customFOV

float TiltFive.GlassesSettings.customFOV = DEFAULT_FOV

Definition at line 98 of file GlassesSettings.cs.

◆ DEFAULT_FOV

const float TiltFive.GlassesSettings.DEFAULT_FOV = 48f
static

Definition at line 23 of file GlassesSettings.cs.

◆ DEFAULT_FRIENDLY_NAME

readonly string TiltFive.GlassesSettings.DEFAULT_FRIENDLY_NAME = "Tilt Five Glasses"
static

Definition at line 34 of file GlassesSettings.cs.

Referenced by TiltFive.Glasses.GlassesCore.Update().

◆ DEFAULT_IPD_UGBD

const float TiltFive.GlassesSettings.DEFAULT_IPD_UGBD = 0.059f
static

Definition at line 28 of file GlassesSettings.cs.

Referenced by TiltFive.Glasses.GlassesCore.Update().

◆ farClipPlane

float TiltFive.GlassesSettings.farClipPlane = 100f

The far clip plane in physical space (meters), to adjust for content scale and gameboard size

Definition at line 95 of file GlassesSettings.cs.

Referenced by TiltFive.SplitStereoCamera.OnPreRender(), and TiltFive.Glasses.GlassesCore.Update().

◆ friendlyName

string TiltFive.GlassesSettings.friendlyName = DEFAULT_FRIENDLY_NAME

Definition at line 108 of file GlassesSettings.cs.

Referenced by TiltFive.Glasses.GlassesCore.Update().

◆ glassesMirrorMode

GlassesMirrorMode TiltFive.GlassesSettings.glassesMirrorMode = GlassesMirrorMode.LeftEye

◆ headPoseCamera

Camera TiltFive.GlassesSettings.headPoseCamera

The main camera used for rendering the Scene when the glasses are unavailable, and the gameobject used for the glasses pose.

Definition at line 59 of file GlassesSettings.cs.

◆ MAX_FOV

const float TiltFive.GlassesSettings.MAX_FOV = 64f
static

Definition at line 22 of file GlassesSettings.cs.

◆ MIN_FOV

const float TiltFive.GlassesSettings.MIN_FOV = 35f
static

Definition at line 21 of file GlassesSettings.cs.

◆ MIN_NEAR_CLIP_DISTANCE_IN_METERS

const float TiltFive.GlassesSettings.MIN_NEAR_CLIP_DISTANCE_IN_METERS = 0.1f
static

Definition at line 32 of file GlassesSettings.cs.

◆ nearClipPlane

float TiltFive.GlassesSettings.nearClipPlane = MIN_NEAR_CLIP_DISTANCE_IN_METERS

The near clip plane in physical space (meters), to adjust for content scale and gameboard size

Definition at line 90 of file GlassesSettings.cs.

Referenced by TiltFive.SplitStereoCamera.OnPreRender(), and TiltFive.Glasses.GlassesCore.Update().

◆ overrideFOV

bool TiltFive.GlassesSettings.overrideFOV = false

Definition at line 97 of file GlassesSettings.cs.

◆ previewPose

Transform TiltFive.GlassesSettings.previewPose

◆ usePreviewPose

bool TiltFive.GlassesSettings.usePreviewPose = true

Property Documentation

◆ cameraTemplate

Camera TiltFive.GlassesSettings.cameraTemplate
getset

The camera used as a template for creating the eye cameras at runtime.

Alias for the obsolete field headPoseCamera.

Definition at line 69 of file GlassesSettings.cs.

69  {
70  #pragma warning disable 618 // this is for compatibility; disable obsolete warning
71  get { return headPoseCamera; }
72  set { headPoseCamera = value; }
73  #pragma warning restore 618
74  }
Camera headPoseCamera
The main camera used for rendering the Scene when the glasses are unavailable, and the gameobject use...

Referenced by TiltFive.TiltFiveManager.Awake(), TiltFive.TiltFiveManager.RefreshSpectatorSettings(), TiltFive.Glasses.GlassesCore.Reset(), TiltFive.Glasses.GlassesCore.Update(), and TiltFive.Glasses.GlassesCore.Validate().

◆ fieldOfView

float TiltFive.GlassesSettings.fieldOfView
get

The documentation for this class was generated from the following file: