I am trying to get a 3D viewer (subclassed from
AIS_ViewController) to work with VR support.
So far, the device is connected and detected correctly through OpenVR. The image appears in the device stereoscopically at the correct IOD.
However, only orientation tracking appears to work. No positional tracking works. In addition, the hand controllers do not appear in the 3D viewport.
The only code that has been added to the viewer is as follows;
m_view->ChangeRenderingParams().StereoMode = Graphic3d_StereoMode_OpenVR; m_view->Camera()->SetProjectionType(Graphic3d_Camera::Projection_Stereo);
I have tested the device with CAD Assistant and everything works as expected (head tracking, devices visible). However, teleportation is not available on the controller. I figured this is to do with controller bindings so any hints in this area would also be appreciated.
The device I am using is an Oculus Quest 2 through OpenVR (Steam VR)