This website uses cookies to improve our services and deliver relevant ads.
By interacting with this site, you agree to this use. For more information, see our Cookies Policy

Mobile 1.17 Reference Guide

ovrLayerCube2 Struct Reference

ovrLayerCube2 provides support for a single timewarped cubemap at infinity with optional Offset vector (provided in normalized [-1.0,1.0] space).

Data Fields

ovrLayerHeader2
Header ( )
Header.Type must be VRAPI_LAYER_TYPE_CUBE2.
ovrRigidBodyPosef
ovrMatrix4f
ovrVector3f
Offset ( )
ovrTextureSwapChain *
Texture type used to create the swapchain must be a cube target (VRAPI_TEXTURE_TYPE_CUBE).
int
struct ovrLayerCube2::@10

Detailed Description

Cube maps are an omni-directional layer source that are directly supported by the graphics hardware. The nature of the cube map definition results in higher resolution (in pixels per solid angle) at the corners and edges of the cube and lower resolution at the center of each face. While the cube map does have variability in sample density, the variability is spread symmetrically around the sphere.
Sometimes it is valuable to have an omni-directional format that has a directional bias where quality and sample density is better in a particular direction or over a particular region. If we changed the cube map sampling
from: color = texture( cubeLayerSampler, direction ); to: color = texture( cubeLayerSampler, normalize( direction ) + offset );
we can provide a remapping of the cube map sample distribution such that samples in the "offset" direction map to a smaller region of the cube map (and are thus higher resolution).
A normal high resolution cube map can be resampled using the inverse of this mapping to retain high resolution for one direction while signficantly reducing the required size of the cube map.

Field Documentation

ovrLayerHeader2 ovrLayerCube2::Header ( )
Header.Type must be VRAPI_LAYER_TYPE_CUBE2.
ovrRigidBodyPosef ovrLayerCube2::HeadPose ( )
ovrMatrix4f ovrLayerCube2::TexCoordsFromTanAngles ( )
ovrVector3f ovrLayerCube2::Offset ( )
ovrTextureSwapChain* ovrLayerCube2::ColorSwapChain ( )
Texture type used to create the swapchain must be a cube target (VRAPI_TEXTURE_TYPE_CUBE).
int ovrLayerCube2::SwapChainIndex ( )
struct ovrLayerCube2::@10 ovrLayerCube2::Textures[VRAPI_FRAME_LAYER_EYE_MAX] ( )
The documentation for this struct was generated from the following file: Include/VrApi_Types.h