Obtaining foveated tracking information from OpenXR SDK function
Hi,
I'm using Meta Quest Pro to develop an application that supports dynamic foveation.
I found that there are some functions that can get the coordinates of foveated center as shown below:
XrFoveationEyeTrackedStateMETA foveationState{XR_TYPE_FOVEATION_EYE_TRACKED_STATE_META};
foveationState.next = nullptr;
CHECK_XRCMD(xrGetFoveationEyeTrackedStateMETA_(m_session, &foveationState));
and get the values through
foveationState.foveationCenter[eye].x and
foveationState.foveationCenter[eye].y.
However, these functions didn't work as expected as I always get (0, 0) from (foveationState.foveationCenter[eye].x , foveationState.foveationCenter[eye].y).
The official document doesn't have the description of this part, does anyone know how to get the foveated information from these functions?
