Trying to make it work with Unity.
First, thank you for putting this together.
I've been trying to use your wapper and put it into Unity but keep getting "AzureKinectException: Couldn't create tracker".
I'm pretty sure none of your code is the problem but I wanted to know if you're planning on trying to work it into Unity and if you're successful.
Does the sample app work for you? You might have to create a software instance if your gpu doesn't support CUDA
Ya, It works great but Unity is having a problem with it.
Are the native libs all getting deployed? Try also inspecting the exception. Sometimes there's more details/log into in the errors k4a throws.
I'm going to confirm that CUDA is installed properly and then see what more information I can get out of the exception/problem.
The sample app is configured to require CUDA, so if that works, you should be good there. My guess is the native libs aren't getting deployed correctly.
[2019-11-18 14:26:31.794] [info] [t=19312] [K4ABT] D:\a\1\s\src\TrackerHost\TrackerHost.cpp (482): VerifyDependencies(). Verifying Dependencies! [2019-11-18 14:26:31.795] [error] [t=19312] [K4ABT] D:\a\1\s\src\TrackerHost\TrackerHost.cpp (484): VerifyDependencies(). Cannot locate onnxruntime.dll [2019-11-18 14:26:31.795] [error] [t=19312] [K4ABT] D:\a\1\s\src\TrackerHost\TrackerHost.cpp (131): Create(). At least one dependent library is missing! [2019-11-18 14:26:31.795] [error] [t=19312] [K4ABT] D:\a\1\s\src\sdk\k4abt.cpp (38): tracker->Create(sensor_calibration, config) returned failure in k4abt_tracker_create()
So it looks like is can't find onnxruntime.dll
onnxruntime.dll and dnn_model_2_0.onnx must be in the same folder as Assets
@SethKaminski I see. So it works now? I'm curious what the nuget package can do to ensure that happens? The nuget support in Unity has always been a little weird to me
Yes, it finally works. Sadly nuget doesn't natively work with Unity since it controls what happens with the C# side of the project.
Awesome! Would you mind documenting the steps you used to make it work, so others can follow them?