Hi,
I’ve almost completely ported an application to the OpenXR standard from OpenVR (I must say it works much better and smoother!)
The only thing I still need to do is recentering the headset position from the application itself.
In OpenVR it was done by calling to:
vr_chaperone_->ResetZeroPose(vr::ETrackingUniverseOrigin::TrackingUniverseSeated);
vr_compositor_->SetTrackingSpace(vr::ETrackingUniverseOrigin::TrackingUniverseSeated);
But I cannot find either in this forum or in the documentation a similar way to do it in OpenXR.
I have a poseSpace as follows:
XrReferenceSpaceCreateInfo referenceSpaceCreateInfo{ XR_TYPE_REFERENCE_SPACE_CREATE_INFO };
referenceSpaceCreateInfo.poseInReferenceSpace = { {0.0f,0.0f,0.0f,1.0f},{0.0f,0.0f,0.0f} };
referenceSpaceCreateInfo.referenceSpaceType = XR_REFERENCE_SPACE_TYPE_LOCAL;
CHECK_XRCMD(xrCreateReferenceSpace(m_session, &referenceSpaceCreateInfo, &m_poseSpace));
To get the view position and pass it to the simulation renderer. Maybe I should recreate this xrSpace with some special parameters at the moment of resetting the view?
Could anyone please tell me about how to achieve this goal?
Thank you very much in advance!
Kind regards!