VRHMDDemo([stereoscopic=1][, checkerboard=0][, deviceindex=0])
A very basic demo for the most basic setup of
VR HMDs, e.g., the Oculus VR Rift DK2. It shows the
absolute minimum of steps needed - one line of code - to
use the first connected HMD as mono or stereo display.
‘stereoscopic’ if set to 1 (which is the default), configures the
HMD as a stereoscopic display. A setting of 0 configures it as a
‘deviceindex’ if provided, selects the HMD with given index. Otherwise
the first HMD (deviceindex 0) is chosen.
The demo just renders one static simple 2D image, or image
pair in stereoscopic mode, then displays it in a loop until a
key is pressed.