Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
HartLabs's avatar
HartLabs
Honored Guest
12 years ago

0.4.2 to 0.4.3 SDK Change List/Update Tips

So I just updated from 0.4.2 to 0.4.3 and there were a bunch of changes to the SDK which I needed to incorporate into my code. I listed the ones I was affected by here to aid others in their updating.

ovrHmd_GetEyePose is depreciated so remove:

eyeRenderPose[eye] = ovrHmd_GetEyePose(hmd, eye);

add:


ovrVector3f hmdToEyeViewOffset[2];
hmdToEyeViewOffset[0] = eyeRenderDesc[0].HmdToEyeViewOffset;
hmdToEyeViewOffset[1] = eyeRenderDesc[1].HmdToEyeViewOffset;
ovrHmd_GetEyePoses(hmd, 0, hmdToEyeViewOffset, eyeRenderPose, NULL);

eyeRenderDesc.ViewAdjust is depreciated so remove:

eyeRenderDesc[eye].ViewAdjust

add:

eyeRenderDesc[eye].HmdToEyeViewOffset

Position returned by ovrHmd_GetEyePoses now includes the View Adjust translation already, so for head position replace:

eyeRenderPose[eye].Position

with:

ovrTrackingState trackingState = ovrHmd_GetTrackingState(hmd, 0);
trackingState.HeadPose.ThePose.Position


Feel free to add other tips in this thread!
No RepliesBe the first to reply