none
korean : directx 11 앱 유니버셜 windows 8.1 에서 kinect2 를 실행하는데 ENG : I make a project for running kinect as directt 11 app universal windows 8.1 RRS feed

  • Question

  • korean : directx 11 앱 유니버셜 windows 8.1 에서 kinect2 를 실행하는데  작동이 안됩니다.

    기본 MFC project 와 win api project all 정상 작동 하는데 저기선 안되네요 

    ENG : I make a project for running kinect as directt 11 app universal windows 8.1 ...

    it was perfect running at mfc or win api project.. 


    HRESULT CGetKinectDataClass::InitializeDefaultSensor()
    {
    HRESULT hr;

    hr = GetDefaultKinectSensor(&m_pKinectSensor);
    if (FAILED(hr)) return hr;

    if (m_pKinectSensor)
    {
    hr = m_pKinectSensor->Open();
    if (SUCCEEDED(hr))
    {
    hr = m_pKinectSensor->get_CoordinateMapper(&m_pCoordinateMapper);
    }
    if (SUCCEEDED(hr))
    {
    hr = m_pKinectSensor->OpenMultiSourceFrameReader(FrameSourceTypes::FrameSourceTypes_Color | FrameSourceTypes::FrameSourceTypes_Body,
    &m_pMultiSourceFrameReader);
    }
    }
    if (!m_pKinectSensor || FAILED(hr))
    {
    return E_FAIL;
    }
    return hr;
    }

    는 다 통과 합니다.

    over here is normally work but

    if (!m_pMultiSourceFrameReader)
    {
    return -25;
    }
    IMultiSourceFrame* pMultiSourceFrame = NULL;
    IColorFrame* pColorFrame = NULL;
    IBodyFrame* pBodyFrame = NULL;


    HRESULT hr = m_pMultiSourceFrameReader->AcquireLatestFrame(&pMultiSourceFrame);->  return error

    what is happen??

    Friday, June 24, 2016 11:14 AM