Libovr 1.43 Reference Guide

ovrLayerEyeFovDepth Struct Reference

Describes a layer that specifies a monoscopic or stereoscopic view, with depth textures in addition to color textures.

Data Fields

ovrLayerHeader
Header ( )
Header.Type must be ovrLayerType_EyeFovDepth.
ovrTextureSwapChain
ovrTextureSwapChains for the left and right eye respectively.
ovrRecti
Specifies the ColorTexture sub-rect UV coordinates.
ovrFovPort
Fov ( )
The viewport field of view.
ovrPosef
Specifies the position and orientation of each eye view, with position specified in meters.
double
Specifies the timestamp when the source ovrPosef (used in calculating RenderPose) was sampled from the SDK.
ovrTextureSwapChain
Depth texture for depth composition with overlays Must map 1:1 to the ColorTexture.
ovrTimewarpProjectionDesc
Specifies how to convert DepthTexture information into meters.

Detailed Description

This is typically used to support positional time warp. This struct is the same as ovrLayerEyeFov, but with the addition of DepthTexture and ProjectionDesc.
ProjectionDesc can be created using ovrTimewarpProjectionDesc_FromProjection.
Three options exist with respect to mono/stereo texture usage:
  • ColorTexture[0] and ColorTexture[1] contain the left and right stereo renderings, respectively. Viewport[0] and Viewport[1] refer to ColorTexture[0] and ColorTexture[1], respectively.
  • ColorTexture[0] contains both the left and right renderings, ColorTexture[1] is NULL, and Viewport[0] and Viewport[1] refer to sub-rects with ColorTexture[0].
  • ColorTexture[0] contains a single monoscopic rendering, and Viewport[0] and Viewport[1] both refer to that rendering.
See Also:
ovrTextureSwapChain, ovr_SubmitFrame

Field Documentation

ovrLayerHeader ovrLayerEyeFovDepth::Header ( )
Header.Type must be ovrLayerType_EyeFovDepth.
ovrTextureSwapChain ovrLayerEyeFovDepth::ColorTexture[ovrEye_Count] ( )
ovrTextureSwapChains for the left and right eye respectively.
The second one of which can be NULL for cases described above.
ovrRecti ovrLayerEyeFovDepth::Viewport[ovrEye_Count] ( )
Specifies the ColorTexture sub-rect UV coordinates.
Both Viewport[0] and Viewport[1] must be valid.
ovrFovPort ovrLayerEyeFovDepth::Fov[ovrEye_Count] ( )
The viewport field of view.
ovrPosef ovrLayerEyeFovDepth::RenderPose[ovrEye_Count] ( )
Specifies the position and orientation of each eye view, with position specified in meters.
RenderPose will typically be the value returned from ovr_CalcEyePoses, but can be different in special cases if a different head pose is used for rendering.
double ovrLayerEyeFovDepth::SensorSampleTime ( )
Specifies the timestamp when the source ovrPosef (used in calculating RenderPose) was sampled from the SDK.
Typically retrieved by calling ovr_GetTimeInSeconds around the instant the application calls ovr_GetTrackingState The main purpose for this is to accurately track app tracking latency.
ovrTextureSwapChain ovrLayerEyeFovDepth::DepthTexture[ovrEye_Count] ( )
Depth texture for depth composition with overlays Must map 1:1 to the ColorTexture.
ovrTimewarpProjectionDesc ovrLayerEyeFovDepth::ProjectionDesc ( )
Specifies how to convert DepthTexture information into meters.
The documentation for this struct was generated from the following file: Include/OVR_CAPI.h