none
What is the equivalent of the old NuiApi.h RRS feed

  • Question

  • Hi,

    I had a working program with the Xbox 360 Kinect using Visual Studio 2010. Now  I have tried to put the code over to Visual Studio 2013 and plan to use the Newer Xbox One sensor. I have downloaded the SDK 2.0. Now when I run the program - it obviously does not work. This seems to be due to the fact that I used the NuiApi.h, NuiImageCamera.h,NuiSkeleton.h, NuiSensor.h. Everything associated with this, is now no longer working.

    so things like initialising.

    HRESULT hr;

    hr = NuiInitialize(NUI_INITIALIZE_FLAG_USES_SKELETON......)

    etc - > there is so much more of the Nui, NUI_SKELETON_FRAME, list goes on

    So for this new SDK 2.0 - there is none of this NuiApi that I can see in the include folder.

    So what is the equivalent ? How can I make this work, all I see are things like Kinect.h or Kinect.face.h

    How can I make the program do what it used to.

    Thanks in advance

    Friday, May 1, 2015 3:35 AM

All replies

  • Review the BodyBasics samples provided in the SDK:

    HRESULT HRESULT CBodyBasics::InitializeDefaultSensor()
    {
        HRESULT hr;
    
        hr = GetDefaultKinectSensor(&m_pKinectSensor);
        if (FAILED(hr))
        {
            return hr;
        }
    
        if (m_pKinectSensor)
        {
            // Initialize the Kinect and get coordinate mapper and the body reader
            IBodyFrameSource* pBodyFrameSource = NULL;
    
            hr = m_pKinectSensor->Open();
    ...
    }


    Carmine Sirignano - MSFT



    Tuesday, May 5, 2015 6:50 PM