I’ve been trying to try out the Unity Tutorials examples, but none works for me for some reason.
I’m using Win10 + Kinect 2. I’ve downloaded the Nuitrack, and the Nuitrack samples all work for me.
However, when I try the tutorial project, I’m getting the following error (and others, but this seems to be the main issue here):
ModuleNotInitializedException: NuitrackException (ModuleNotInitializedException): Can’t create DepthSensor module
AstraProPerseeDepthProvider: Can’t create RGB Stream (VideoCapture device ID is not valid)
OpenNI2DepthProvider: Can’t open device ( DeviceOpen using default: no devices found
)
OpenNIDepthProvider: Can’t create OpenNI DepthGenerator (OpenNI Status: Can’t create any node of the requested type!)
Realsense2DepthProvider: Can’t enumerate Realsense2 camera
The only thing I’ve changed in the config file is the Depth2ColorRegistration, which is now set to true. I notice that the CameraID in the config files is set to -1, which is kind of weird. I tried 0 and 1, but neither worked either. Please help. Thanks.
The activation tool, the samples and even our own skeleton tracking application is running fine with the new Nuitrack SDK and runtime dll. Its only the project with the Unity package from you that behaves wierd. It seams to enable and disable the Kinect camera several times when pressing play for the first time and hangs the Unity editor during this time. After a few seconds the camera is off and the error with the DepthSensor module appears in the log.
Output for nuitrack_c11_sample and nuitrack_sample (was always like this without further issues)
Start nuitrack c11
Create DepthProvider: OpenNI2DepthProvider
Can’t change mirror HW property for Depth stream ( Stream setProperty(7) failed
)
Can’t change mirror HW property for RGB stream ( Stream setProperty(7) failed
)
Sure, these are the steps that were done and should be reflected by the Editor log (had to convert it from log to xml unfortunalty, otherwise the upload is not allowed): EditorUnity.xml (36.4 KB)
made sure that nuitrack activation tool and samples were running fine (often the camera is not found until re-plugged to usb)
closed all applications
opened the unity project:
kinect camera lights turned on and off 3 times
according to the logs “Test Nuitrack init failed!” and “System.ArgumentOutOfRangeExpection”
pressed play in the editor:
camera does not start at all
logs “Test Nuitrack (ver.3512) init was successful” but “Can’t create DepthSensor module” (see screenshot from post above)
Just to be sure I completly deinstalled Cubemos now and checked that the environment variables were also gone (thank god their uninstaller is just running fine), restarted my PC, opened the Unity project with the Nuitrack package and… same behaviour!! The camera starts 6 times during the editor loading, then when pressing play on the AllModuleScenes for the first time it tries to start again once (but disables itself immediatly). Error messages same as described above.
Did you have a chance to look into the EditorUnity log? Where did you get the hint from it could be related to some other tracking SDKs? What else do I need to uninstall in order to get Nuitrack providing some valuable feedback whats wrong? The Kinect SDK?
Exact same problem here.
Unity 2020.3.27f1
Cubemos installed then deleted. Nuitrack deleted and reinstalled after.
Kinect SDK v2.0_1409 & Kinect v2 for XboxOne
nuitrack_sample.exe is working.
Unity Log:
Test Nuitrack (ver.3512) init was successful!
Current Scripting Backend Mono2x Target:Standalone
Sensor not connected
Can’t create DepthSensor module. Sensor connected? Is the connection stable? Are the wires okay?
This morning, my first and second tries were successful.
During my second try, I reached the 3 minutes time limit of the trial and then the error messages were back again at restarting the scene.
Can it be related?
EDIT - Restarting Unity does nothing.
Restarting PC works once on 2 tries.
Yes nuitrack_sample is always working correctly, the Kinect V2 is starting and running each time.
In Unity, when the error occurs, the Kinect is not even starting.