Kinect LED

Feb 8, 2011 at 12:54 PM

What are the correct values for NKinect.LedColor. Intellisense isn't providing options.


Feb 8, 2011 at 1:05 PM

Values should be

Off = 0,
Green = 1,
Red = 2,
Orange = 3,
BlinkGreen = 4,
BlinkRedOrange = 6,

C++/CLI enums don't get mapped as real enums - so you'll have to use the number. Please note, however, that the newer OpenNI builds don't support the LED. I'll update the homepage ASAP.
Feb 8, 2011 at 1:07 PM

Gotcha. While your at it, you may also want to let people know that they have do compile in x64 to use your assembly. I tried it in x86 at first and I received a file not found error.

Feb 8, 2011 at 1:10 PM

Actually I take that back. x64 doesn't work either. What am I doing wrong?

BaseKinect CLK = NKinect.KinectFactory.GetKinect(); // It fails here.

 // NKinect.CLKinect CLK = new NKinect.CLKinect();



MessageBox.Show("Kinect SN: " + CLK.MotorSerialNumber);


Feb 8, 2011 at 1:19 PM

Which version of nKinect are you using? You probably don't have OpenNI installed.


I've tested nKinect on both x64 / x86, using both PrimeSensor and Kinect.

Feb 8, 2011 at 1:23 PM

I'm using the CodePLEX Updated Dec 2 2010 release.

I have OpenCV and CodeLabs CL NUI Driver/SDK installed.

I'll check with OpenNI master tree and see how that works.

Feb 8, 2011 at 1:26 PM

You need CL NUI v1121. If you're using any other version, it'll give you that access violation error.

Feb 8, 2011 at 1:28 PM

Looks like the DLL I have is v1210. Where do I get the v1121? CL's web site only shows the 1210 download.

Feb 8, 2011 at 1:30 PM


Sorry, I REALLY need to update the site. :(

Feb 8, 2011 at 1:32 PM

heh, no worries. Will you be adding 1210 support in future releases?

Feb 8, 2011 at 1:33 PM

Don't think 1210 will be supported - it always crashed on my end. I've found that OpenNI is much stable and easier to work with. Hopefully AlexP will add OpenNI support.

Feb 8, 2011 at 1:37 PM

Their included 1210 test app seemed to work for me.

Still getting an error. BTW, It's not an AccessViolation error.

System.IO.FileNotFoundExceptiopn was unhandled. Message=Could not load file or assembly 'NKinect.dll' or one of its dependencies. The specified module could not be found. NKinect.dll.

I uninstalled the 1210 version before installing 1121. The drivers are using the 1121 according to device manager. NKinect.dll is in the execution directory at runtime.

Feb 8, 2011 at 1:38 PM

Running in Admin Mode doesn't do anything either.

Feb 8, 2011 at 1:38 PM

Are you still compiling in x64 mode?

Feb 8, 2011 at 1:39 PM

No. Actually if I try to run in x64 I get another exception that the DLL doesn't support 64-bit (BadImageFormatException).

Feb 8, 2011 at 1:40 PM

And I'm running NET 4.0 Full not Net 4.0 CP.

Feb 8, 2011 at 1:42 PM

Hrm. Try adding breakpoints in BaseKinect.h - it's missing a dll. Oh - do you have CLNUIDevice.dll in the same directory as NKinect.dll?

Feb 8, 2011 at 1:50 PM

No, CLNUIDevice.dll isn't. I think it's in System32. Let me try that.

Feb 8, 2011 at 1:57 PM

Pulled CLNUIDevice.dll from the CL SDK folder in program files. BINGO! Might want to add that to your site too?

Located in SDK folder not the Driver folder (CLDevice.dll might confuse people.)