Unity + Azure Kinect 바디트래킹 개발용 자료 정리
Unity + Azure Kinect Body Tracking 애저키넥트 바디트래킹
윈도우 애저키넥트 SDK https://github.com/microsoft/Azure-Kinect-Sensor-SDK/blob/develop/docs/usage.md 윈도우 애저키넥트 바디트랙킹 SDK https://docs.microsoft.com/ko-kr/azure/kinect-dk/body-sdk-download Visual C++ Redistributable for Vi
mgtul.tistory.com
2023.08.02 최근 SDK로 설치 방법 포스팅(위 링크 권장)
아래 내용은 구버전
윈도우 애저키넥트 SDK
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/blob/develop/docs/usage.md
GitHub - microsoft/Azure-Kinect-Sensor-SDK: A cross platform (Linux and Windows) user mode SDK to read data from your Azure Kine
A cross platform (Linux and Windows) user mode SDK to read data from your Azure Kinect device. - GitHub - microsoft/Azure-Kinect-Sensor-SDK: A cross platform (Linux and Windows) user mode SDK to re...
github.com
윈도우 애저키넥트 바디트랙킹 SDK
https://docs.microsoft.com/ko-kr/azure/kinect-dk/body-sdk-download
Azure Kinect 신체 추적 SDK 다운로드
Windows 또는 Linux에서 Azure Kinect 센서 SDK의 각 버전을 다운로드하는 방법을 이해합니다.
docs.microsoft.com
공식 마이크로소프트 애저키넥트 샘플
https://github.com/microsoft/Azure-Kinect-Samples
GitHub - microsoft/Azure-Kinect-Samples: Samples for Azure Kinect
Samples for Azure Kinect. Contribute to microsoft/Azure-Kinect-Samples development by creating an account on GitHub.
github.com
바디 트래킹
https://www.youtube.com/watch?v=PGsxP6Yoq9I
------------------------------------------------
*윈도우 애저키넥트 SDK와 윈도우 애저키넥트 바디트랙킹 SDK가 다 설치 되어 있어야함
*윈도우 애저키넥트 SDK의 경우 1.4.1 설치
*윈도우 애저키넥트 바디트래킹 SDK의 경우 1.1.0으로 설치
공식 마이크로소프트 애저키넥트 샘플 github에 가면
body-tracking-samples / sample_unity_bodytracking이라는 유니티 바디 트래킹 샘플이 있음.
이거를 2021.3 LTS버전으로 열어보니
에러 가득함.
유니티 Assets/Script/TrackerHandler스크립트 들어가고
비주얼스튜디오에서 - 도구 - Nuget패키지 관리자 - Nuget콘솔
Update-Package -reinstall
입력
프로젝트에서 MoveLibraryFiles 실행
https://docs.microsoft.com/ko-kr/azure/kinect-dk/body-sdk-download
Azure Kinect 신체 추적 SDK 다운로드
Windows 또는 Linux에서 Azure Kinect 센서 SDK의 각 버전을 다운로드하는 방법을 이해합니다.
docs.microsoft.com
바디트래킹 SDK 설치
msi 설치
설치하면
C:\Program Files\Azure Kinect Body Tracking SDK 경로 생김
C:\Program Files\Azure Kinect Body Tracking SDK\tools에서
cudnn_cnn_infer64_8.dll
cudnn_ops_infer64_8.dll
cufft64_10.dll
위 3개 dll 복사
유니티 프로젝트 파일에 붙여넣기
Assets/Plugins 에도 붙여넣기
이제 유니티로 돌아가면 에러 다 사라져 있음
SkeletalTrackingProvider스크립트 46줄
Gpu -> Cuda로 변경
*이슈
콘솔창에 "K4A_RESULT_FAILED" 라고 뜨고 인식이 안되는 경우
https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/1728
Unity BodyTracking Sample catching exception for background thread result = K4A_RESULT_FAILED · Issue #1728 · microsoft/Azure-
Describe the bug unity Example stops at init, catching exception for background thread result = K4A_RESULT_FAILED To Reproduce Execute all the steps on the readme. open sample scene on unity and pl...
github.com
해결방법 - body tracker sdk의 tools 폴더에 있는 모든 것을 unity 프로젝트의 루트(자산 폴더와 같은 위치)에 복사하십시오.
*HDRP로 할경우
HDRP 2021.3LTS 테스트 완료
HDRP로 빈프로젝트 만들고
샘플에서 ProjectSettings제외한 나머지 복사 붙여놓고
나머지 동일하게 진행
+바디트래킹 joint index
+에셋 스토어 Azure Kinect 관련 샘플
Azure Kinect Examples for Unity | 기능 통합 | Unity Asset Store
Use the Azure Kinect Examples for Unity from RF Solutions on your next project. Find this integration tool & more on the Unity Asset Store.
assetstore.unity.com
Azure Kinect for Unity3D (Camera API + Body Tracking API) | 기능 통합 | Unity Asset Store
Use the Azure Kinect for Unity3D (Camera API + Body Tracking API) from LightBuzz on your next project. Find this integration tool & more on the Unity Asset Store.
assetstore.unity.com
스튜디오 오버그래픽스
정준희 Technical Artist
ovgrps@gmail.com