PsychOpenXRCore(‘ViewType’)
Psychtoolbox>PsychOpenXRCore.{mex*} subfunction
oldType = PsychOpenXRCore(‘ViewType’, openxrPtr [, viewLayerType]);
Specify the type of view for OpenXR device ‘openxrPtr’.
This returns the current type of view in ‘oldType’. Optionally you can specify a
new view type as ‘viewLayerType’. viewLayerType must be either:
0 = Use a 2D monoscopic or stereoscopic view via OpenXR quad layers, which
supposedly stays stable for not actively tracked or slow updating stimulus
display on OpenXR conformant runtimes. Placing these views properly for
binocular / stereoscopic display and perspective correct 3D rendering is your
scripts responsibility. Cfe. PsychOpenXRCore(‘View2DParameters’) for setting
these to non-default values.
1 = Use a 3D perspective projected view via OpenXR projection layers. These are
auto-configured for good perspective correct 3D rendering, but need an active
track -> render -> present loop on some OpenXR runtimes to work correctly,
otherwise judder and jerks will occur in the display.
PsychOpenXRCore(‘GetTrackingState’) drives this manually, usually called via
PsychVRHMD(‘PrepareRender’).
###See also: View2DParameters Start Stop GetTrackingState NeedLocateForProjectionLayers