29
2016
Using XBox One Kinect with Unity
*main image: Kinect GreenScreen example scene
Setting up Kinect with Windows 10
– connect to pc (using adapter)
– Driver installs automatically and you are Done 🙂
– You can test it with these apps:
3d scan: https://www.microsoft.com/en-us/store/p/3d-scan/9nblggh68pmc
3d builder: https://www.microsoft.com/en-us/store/p/3d-builder/9wzdncrfj3t6
Using Kinect XBox One with Unity 5 (I tested with Unity v5.50b5)
– Download & install Kinect SDK https://www.microsoft.com/en-us/download/details.aspx?id=44561 (i’m using v2.0_1409)
– UnityPackage is here https://msdn.microsoft.com/en-us/library/dn782041.aspx (package download)
– Import Kinect.2.0.1410.19000.unitypackage into your project
– Also Copy GreenScreen/ and KinectView/ folders from the zip to your project (they contain the sample scenes)
– One shader is giving this error message: “‘Shader error in ‘DX11/GreenScreenShader’: Fragment program ‘frag’: sampler ‘SampleType’ has no matching texture and will be undefined”
Fix is in the unity forums by @Michal
//sampler SampleType; sampler sampler_MainTex; //o = _MainTex.Sample(SampleType, i.tex); o = _MainTex.Sample(sampler_MainTex, i.tex);
– To fix rest of the errors, run Unity Api Updater if it didn’t run automatically (from menu: Assets / Run Api Updater..)
– Open sample scene: GreenScreen/MainScene or KinectView/MainScene
– Hit play and it should work!
—
More Resources:
– Kinect experiments: http://www.kinecthacks.com/
Related Posts
1 Comment + Add Comment
Leave a comment to Jan
Recent posts
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)
- UnityHub: Add support for custom project title (instead of folder name) or use ProductName
- Testing Unity MUSE AI
- QR Code Generator Online
Nice one, I hope to see more of your posts! If some of you are looking for even more tips about creating a game, I recommend this blog too: blog.theknightsofunity.com