A head-tracked stereoscopic virtual reality camera rig. More...
Public Member Functions | |
| virtual void | EnsureGameObjectIntegrity () |
| virtual Matrix4x4 | ComputeTrackReferenceMatrix () |
Public Attributes | |
| bool | usePerEyeCameras = false |
| If true, separate cameras will be used for the left and right eyes. More... | |
| bool | useFixedUpdateForTracking = false |
| If true, all tracked anchors are updated in FixedUpdate instead of Update to favor physics fidelity. More... | |
| bool | disableEyeAnchorCameras = false |
| If true, the cameras on the eyeAnchors will be disabled. More... | |
Protected Member Functions | |
| virtual void | Awake () |
| virtual void | Start () |
| virtual void | FixedUpdate () |
| virtual void | Update () |
| virtual void | OnDestroy () |
| virtual void | UpdateAnchors (bool updateEyeAnchors, bool updateHandAnchors) |
| virtual void | OnBeforeRenderCallback () |
| virtual void | RaiseUpdatedAnchorsEvent () |
| virtual Transform | ConfigureAnchor (Transform root, string name) |
Protected Attributes | |
| bool | _skipUpdate = false |
| readonly string | trackingSpaceName = "TrackingSpace" |
| readonly string | trackerAnchorName = "TrackerAnchor" |
| readonly string | leftEyeAnchorName = "LeftEyeAnchor" |
| readonly string | centerEyeAnchorName = "CenterEyeAnchor" |
| readonly string | rightEyeAnchorName = "RightEyeAnchor" |
| readonly string | leftHandAnchorName = "LeftHandAnchor" |
| readonly string | rightHandAnchorName = "RightHandAnchor" |
| readonly string | leftControllerAnchorName = "LeftControllerAnchor" |
| readonly string | rightControllerAnchorName = "RightControllerAnchor" |
| Camera | _centerEyeCamera |
| Camera | _leftEyeCamera |
| Camera | _rightEyeCamera |
Properties | |
| Camera | leftEyeCamera [get] |
| The left eye camera. More... | |
| Camera | rightEyeCamera [get] |
| The right eye camera. More... | |
| Transform | trackingSpace [get] |
| Provides a root transform for all anchors in tracking space. More... | |
| Transform | leftEyeAnchor [get] |
| Always coincides with the pose of the left eye. More... | |
| Transform | centerEyeAnchor [get] |
| Always coincides with average of the left and right eye poses. More... | |
| Transform | rightEyeAnchor [get] |
| Always coincides with the pose of the right eye. More... | |
| Transform | leftHandAnchor [get] |
| Always coincides with the pose of the left hand. More... | |
| Transform | rightHandAnchor [get] |
| Always coincides with the pose of the right hand. More... | |
| Transform | leftControllerAnchor [get] |
| Anchors controller pose to fix offset issues for the left hand. More... | |
| Transform | rightControllerAnchor [get] |
| Anchors controller pose to fix offset issues for the right hand. More... | |
| Transform | trackerAnchor [get] |
| Always coincides with the pose of the sensor. More... | |
Events | |
| System.Action< OVRCameraRig > | UpdatedAnchors |
| Occurs when the eye pose anchors have been set. More... | |
Detailed Description
A head-tracked stereoscopic virtual reality camera rig.
Member Function Documentation
◆ Awake()
|
protectedvirtual |
◆ ComputeTrackReferenceMatrix()
|
virtual |
◆ ConfigureAnchor()
|
protectedvirtual |
◆ EnsureGameObjectIntegrity()
|
virtual |
◆ FixedUpdate()
|
protectedvirtual |
◆ OnBeforeRenderCallback()
|
protectedvirtual |
◆ OnDestroy()
|
protectedvirtual |
◆ RaiseUpdatedAnchorsEvent()
|
protectedvirtual |
◆ Start()
|
protectedvirtual |
◆ Update()
|
protectedvirtual |
◆ UpdateAnchors()
|
protectedvirtual |
Member Data Documentation
◆ _centerEyeCamera
|
protected |
◆ _leftEyeCamera
|
protected |
◆ _rightEyeCamera
|
protected |
◆ _skipUpdate
|
protected |
◆ centerEyeAnchorName
|
protected |
◆ disableEyeAnchorCameras
| bool OVRCameraRig.disableEyeAnchorCameras = false |
If true, the cameras on the eyeAnchors will be disabled.
- Note
- : The main camera of the game will be used to provide VR rendering. And the tracking space anchors will still be updated to provide reference poses.
◆ leftControllerAnchorName
|
protected |
◆ leftEyeAnchorName
|
protected |
◆ leftHandAnchorName
|
protected |
◆ rightControllerAnchorName
|
protected |
◆ rightEyeAnchorName
|
protected |
◆ rightHandAnchorName
|
protected |
◆ trackerAnchorName
|
protected |
◆ trackingSpaceName
|
protected |
◆ useFixedUpdateForTracking
| bool OVRCameraRig.useFixedUpdateForTracking = false |
If true, all tracked anchors are updated in FixedUpdate instead of Update to favor physics fidelity.
- Note
- : This will cause visible judder unless you tick exactly once per frame using a custom physics update, because you'll be sampling the position at different times into each frame.
◆ usePerEyeCameras
| bool OVRCameraRig.usePerEyeCameras = false |
If true, separate cameras will be used for the left and right eyes.
Property Documentation
◆ centerEyeAnchor
|
get |
Always coincides with average of the left and right eye poses.
◆ leftControllerAnchor
|
get |
Anchors controller pose to fix offset issues for the left hand.
◆ leftEyeAnchor
|
get |
Always coincides with the pose of the left eye.
◆ leftEyeCamera
|
get |
The left eye camera.
◆ leftHandAnchor
|
get |
Always coincides with the pose of the left hand.
◆ rightControllerAnchor
|
get |
Anchors controller pose to fix offset issues for the right hand.
◆ rightEyeAnchor
|
get |
Always coincides with the pose of the right eye.
◆ rightEyeCamera
|
get |
The right eye camera.
◆ rightHandAnchor
|
get |
Always coincides with the pose of the right hand.
◆ trackerAnchor
|
get |
Always coincides with the pose of the sensor.
◆ trackingSpace
|
get |
Provides a root transform for all anchors in tracking space.
Event Documentation
◆ UpdatedAnchors
| System.Action<OVRCameraRig> OVRCameraRig.UpdatedAnchors |
Occurs when the eye pose anchors have been set.
The documentation for this class was generated from the following file:
- Oculus/VR/Scripts/OVRCameraRig.cs
1.8.13