Libovr 1.43 Reference Guide

ovrViewScaleDesc Struct Reference

Contains the data necessary to properly calculate position info for various layer types.

Data Fields

ovrPosef
Transform of each eye from the HMD center, in meters.
float
Ratio of viewer units to meter units.

Detailed Description

  • HmdToEyePose is the same value-pair provided in ovrEyeRenderDesc. Modifying this value is suggested only if the app is forcing monoscopic rendering and requires that all layers including quad layers show up in a monoscopic fashion.
  • HmdSpaceToWorldScaleInMeters is used to scale player motion into in-application units. In other words, it is how big an in-application unit is in the player's physical meters. For example, if the application uses inches as its units then HmdSpaceToWorldScaleInMeters would be 0.0254. Note that if you are scaling the player in size, this must also scale. So if your application units are inches, but you're shrinking the player to half their normal size, then HmdSpaceToWorldScaleInMeters would be 0.0254*2.0.

Field Documentation

ovrPosef ovrViewScaleDesc::HmdToEyePose[ovrEye_Count] ( )
Transform of each eye from the HMD center, in meters.
float ovrViewScaleDesc::HmdSpaceToWorldScaleInMeters ( )
Ratio of viewer units to meter units.
The documentation for this struct was generated from the following file: Include/OVR_CAPI.h