Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums will be revoked at the discretion of Oculus staff.
New to the forums? Click here to read the How To guide. -- Developers click here.

Updating Oculus app to latest SDK...

LastBlowLastBlow Posts: 12
edited May 2018 in PC Development

Windows 10 Fall Update, Visual Studio 2015 Debug, x64 app and OS, SDK 1.25.0, DK2

Been updating an Oculus app to the latest SDK and getting the error C2039 'HmdToEyeOffset':
is not a member of 'ovrViewScaleDesc_'

Has HmdToEyeOffset been replaced and by what, please?

Thank you! ;-)))


  • imperativityimperativity Posts: 3,587 Valuable Player

    Support for DK2 is deprecated at this time and cannot be expected to function correctly with the most up-to-date SDKs we are providing. Unfortunately I have no guidance to provide to fix this error and it most definitely due to our shift to supporting the latest variant of the Oculus Rift, the CV1.

    The last supported runtime for DK2 is here: https://developer.oculus.com/downloads/package/oculus-runtime-for-windows/

  • LastBlowLastBlow Posts: 12
    edited July 2018
    Hope it can help someone who is updating their SDK...

    The member HmdToEyeOffset has been replaced in "OVR_CAPI_Util.h" by the structure member const ovrPosef HmdToEyePose[2], defined in "OVR_CAPI.h":

        typedef struct OVR_ALIGNAS(4) ovrPosef_ {
           ovrQuatf Orientation;
           ovrVector3f Position;
         } ovrPosef;


        m_hmdToEyeOffset[0] = m_eyeRenderDesc[0].HmdToEyeOffset;
        m_hmdToEyeOffset[1] = m_eyeRenderDesc[1].HmdToEyeOffset;

    effectively becoming:

        m_hmdToEyeOffset[0] = m_eyeRenderDesc[0].HmdToEyePose.Position;
        m_hmdToEyeOffset[1] = m_eyeRenderDesc[1].HmdToEyePose.Position;

Sign In or Register to comment.