Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
7 years ago

UnityEngine.XR.XRSettings.eyeTextureHeight does not match my device resolution

Hi,
I'm developing with an standard Oculus Rift, which has a resolution of 2160x1200.
But when I look for the value of UnityEngine.XR.XRSettings.eyeTextureHeight it says that it is 1600.
The eyeTextureResolutionScale is set to 1, so I expected to have an eyeTextureHeight of 1200 (the actual height of the device * eyeTextureResolutionScale).

Could someone help me with that?

Thanks

1 Reply

Replies have been turned off for this discussion
  • Anonymous's avatar
    Anonymous
    That's normal, the Rift renders at a higher resolution than the screen so it can warp the image for the lenses without losing detail.  By default it renders at about 1.4x the device resolution.  Setting the eyeTextureResolutionScale multiplies on top of this 1.4.  None of the Oculus devices actually set the render resolution the same as the screen resolution, the mobile devices have lower render targets than the screens to help with performance.