Azure Kinect doesn't work with Unity on RTX 3080.

翔太 山野上 6 Reputation points
2022-01-14T01:27:41.057+00:00

I'm trying to run the following project, which is an official Kinect sample.
https://github.com/microsoft/Azure-Kinect-Samples/tree/master/body-tracking-samples/sample_unity_bodytracking

It was said that it would not work as it is, so I set it referring to the following article.
https://qiita.com/Tuyoshi/items/343ce116d11e0cc9b797

What I did was mainly
· Restore NuGet packages
. Move missing files
-cdnn_cnn_infer64_8.dll
-cudnn_ops_infer64_8.dll
-cuff64_10.dll
. Script rewriting

I can run it in the same way with RTX 2070 without any problems, but I can't run it with RTX 3080.164984-kinect3080log.png

I thought it was a problem with USB or device recognition, so I compared it, but there was no difference from the time of RTX 2070.

The operation of the sensor SDK and Body Tracking SDK itself has been confirmed.
Something is at stake only when running in Unity. Do you know what the cause is?
I would appreciate it if you could teach me.

Azure Kinect DK
Azure Kinect DK
A Microsoft developer kit and peripheral device with advanced artificial intelligence sensors for sophisticated computer vision and speech models.
299 questions
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,366 Reputation points Moderator
    2022-02-03T19:09:25.96+00:00

    Hello @翔太 山野上 ,Thanks for posting this issue on this forum,

    Below is the similar Github issue which was pointed ealrier by asergaz in his reply.

    Just sharing to check if this may help with your scenario ? Please comment in the below section to get further help in this matter, happy to help further.

    Related Github issue link: Unity BodyTracking Sample catching exception for background thread result = K4A_RESULT_FAILED

    So after a lot of experimentation I was able to solve my issues:

    OS with Version: Windows 10 Home 19042.1466
    SDK Version: Azure Kinect SDK v1.4.1 / Azure Kinect Body Tracking SDK v1.0.1
    Firmware version: Current Firmware Versions:
    Unity Version: 2019.1.2f1

    I tried a couple of things to get this working, so I can't tell which solved the issue but here's the list:

    use the exact unity version of the project
    use an older version of the body tracking sdk (1.0.1 vs 1.1.0)
    copy everything in the tools folder of the body tracker sdk into the root of the unity project (same place as the assets folder)
    Change ProcessingMode = TrackerProcessingMode.GPU to ProcessingMode = TrackerProcessingMode.Cuda (https://github.com/microsoft/Azure-Kinect-Samples/blob/master/body-tracking-samples/sample_unity_bodytracking/Assets/Scripts/SkeletalTrackingProvider.cs#L46)


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.