├── .gitignore ├── Assets ├── CustomerSetting.meta ├── CustomerSetting │ ├── Material.meta │ ├── Material │ │ ├── headImage.mat │ │ ├── headImage.mat.meta │ │ ├── histogram.mat │ │ ├── histogram.mat.meta │ │ ├── trackhead.mat │ │ └── trackhead.mat.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── ShowDiagramOnCanvas.unity │ │ ├── ShowDiagramOnCanvas.unity.meta │ │ ├── ShowWithHistogram.unity │ │ ├── ShowWithHistogram.unity.meta │ │ ├── TrackHeadImage.unity │ │ └── TrackHeadImage.unity.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── Diagram.meta │ │ ├── Diagram │ │ │ ├── BodyOnCanvas.cs │ │ │ ├── BodyOnCanvas.cs.meta │ │ │ ├── HistogramTexture.cs │ │ │ ├── HistogramTexture.cs.meta │ │ │ ├── SetPropertyAttribute.cs │ │ │ └── SetPropertyAttribute.cs.meta │ │ ├── Gesture.meta │ │ ├── Gesture │ │ │ ├── GestureController.cs │ │ │ ├── GestureController.cs.meta │ │ │ ├── GestureDetectors.cs │ │ │ ├── GestureDetectors.cs.meta │ │ │ ├── GestureSourceManager.cs │ │ │ ├── GestureSourceManager.cs.meta │ │ │ ├── KinectGestureEvent.cs │ │ │ └── KinectGestureEvent.cs.meta │ │ ├── ShowHeadImage.meta │ │ └── ShowHeadImage │ │ │ ├── HeadColorView.cs │ │ │ ├── HeadColorView.cs.meta │ │ │ ├── HeadShowManager.cs │ │ │ ├── HeadShowManager.cs.meta │ │ │ ├── MineBodySourceView.cs │ │ │ ├── MineBodySourceView.cs.meta │ │ │ ├── TrackHeadColorView.cs │ │ │ └── TrackHeadColorView.cs.meta │ ├── Shader.meta │ ├── Shader │ │ ├── SelfGloss.shader │ │ ├── SelfGloss.shader.meta │ │ ├── ShowHead.shader │ │ ├── ShowHead.shader.meta │ │ ├── TrackHead.shader │ │ └── TrackHead.shader.meta │ ├── Texture.meta │ └── Texture │ │ ├── KinectDetect.renderTexture │ │ └── KinectDetect.renderTexture.meta ├── Editor.meta ├── Editor │ ├── HistogramTextureEditor.cs │ ├── HistogramTextureEditor.cs.meta │ ├── SetPropertyDrawer.cs │ └── SetPropertyDrawer.cs.meta ├── KinectView.meta ├── KinectView │ ├── MainScene.unity │ ├── MainScene.unity.meta │ ├── Materials.meta │ ├── Materials │ │ ├── BoneMaterial.mat │ │ └── BoneMaterial.mat.meta │ ├── Scripts.meta │ └── Scripts │ │ ├── BodySourceManager.cs │ │ ├── BodySourceManager.cs.meta │ │ ├── BodySourceView.cs │ │ ├── BodySourceView.cs.meta │ │ ├── ColorSourceManager.cs │ │ ├── ColorSourceManager.cs.meta │ │ ├── ColorSourceView.cs │ │ ├── ColorSourceView.cs.meta │ │ ├── DepthSourceManager.cs │ │ ├── DepthSourceManager.cs.meta │ │ ├── DepthSourceView.cs │ │ ├── DepthSourceView.cs.meta │ │ ├── DisableOnStart.cs │ │ ├── DisableOnStart.cs.meta │ │ ├── InfraredSourceManager.cs │ │ ├── InfraredSourceManager.cs.meta │ │ ├── InfraredSourceView.cs │ │ ├── InfraredSourceView.cs.meta │ │ ├── MultiSourceManager.cs │ │ └── MultiSourceManager.cs.meta ├── Plugins.meta ├── Plugins │ ├── Metro.meta │ ├── Metro │ │ ├── KinectUnityAddin.dll │ │ ├── KinectUnityAddin.dll.meta │ │ ├── KinectVisualGestureBuilderUnityAddin.dll │ │ └── KinectVisualGestureBuilderUnityAddin.dll.meta │ ├── x86.meta │ ├── x86 │ │ ├── Kinect20.VisualGestureBuilder.dll │ │ ├── Kinect20.VisualGestureBuilder.dll.meta │ │ ├── KinectUnityAddin.dll │ │ ├── KinectUnityAddin.dll.meta │ │ ├── KinectVisualGestureBuilderUnityAddin.dll │ │ ├── KinectVisualGestureBuilderUnityAddin.dll.meta │ │ ├── vgbtechs.meta │ │ └── vgbtechs │ │ │ ├── AdaBoostTech.dll │ │ │ ├── AdaBoostTech.dll.meta │ │ │ ├── RFRProgressTech.dll │ │ │ └── RFRProgressTech.dll.meta │ ├── x86_64.meta │ └── x86_64 │ │ ├── Kinect20.VisualGestureBuilder.dll │ │ ├── Kinect20.VisualGestureBuilder.dll.meta │ │ ├── KinectUnityAddin.dll │ │ ├── KinectUnityAddin.dll.meta │ │ ├── KinectVisualGestureBuilderUnityAddin.dll │ │ ├── KinectVisualGestureBuilderUnityAddin.dll.meta │ │ ├── vgbtechs.meta │ │ └── vgbtechs │ │ ├── AdaBoostTech.dll │ │ ├── AdaBoostTech.dll.meta │ │ ├── RFRProgressTech.dll │ │ └── RFRProgressTech.dll.meta ├── Standard Assets.meta ├── Standard Assets │ ├── CameraIntrinsics.cs │ ├── CameraIntrinsics.cs.meta │ ├── CollectionMap.cs │ ├── CollectionMap.cs.meta │ ├── Editor.meta │ ├── Editor │ │ ├── KinectCopyPluginDataHelper.cs │ │ ├── KinectCopyPluginDataHelper.cs.meta │ │ ├── KinectFacePostBuildCopyPluginData.cs │ │ ├── KinectFacePostBuildCopyPluginData.cs.meta │ │ ├── KinectVisualGestureBuilderPostBuildCopyPluginData.cs │ │ └── KinectVisualGestureBuilderPostBuildCopyPluginData.cs.meta │ ├── EventPump.cs │ ├── EventPump.cs.meta │ ├── ExceptionHelper.cs │ ├── ExceptionHelper.cs.meta │ ├── INativeWrapper.cs │ ├── INativeWrapper.cs.meta │ ├── KinectBuffer.cs │ ├── KinectBuffer.cs.meta │ ├── KinectFaceSpecialCases.cs │ ├── KinectFaceSpecialCases.cs.meta │ ├── KinectSpecialCases.cs │ ├── KinectSpecialCases.cs.meta │ ├── KinectVisualGestureBuilderSpecialCases.cs │ ├── KinectVisualGestureBuilderSpecialCases.cs.meta │ ├── Microsoft.meta │ ├── Microsoft │ │ ├── Kinect.meta │ │ └── Kinect │ │ │ ├── Face.meta │ │ │ ├── Face │ │ │ ├── CaptureStatusChangedEventArgs.cs │ │ │ ├── CaptureStatusChangedEventArgs.cs.meta │ │ │ ├── CollectionStatusChangedEventArgs.cs │ │ │ ├── CollectionStatusChangedEventArgs.cs.meta │ │ │ ├── FaceAlignment.cs │ │ │ ├── FaceAlignment.cs.meta │ │ │ ├── FaceAlignmentQuality.cs │ │ │ ├── FaceAlignmentQuality.cs.meta │ │ │ ├── FaceFrame.cs │ │ │ ├── FaceFrame.cs.meta │ │ │ ├── FaceFrameArrivedEventArgs.cs │ │ │ ├── FaceFrameArrivedEventArgs.cs.meta │ │ │ ├── FaceFrameFeatures.cs │ │ │ ├── FaceFrameFeatures.cs.meta │ │ │ ├── FaceFrameReader.cs │ │ │ ├── FaceFrameReader.cs.meta │ │ │ ├── FaceFrameReference.cs │ │ │ ├── FaceFrameReference.cs.meta │ │ │ ├── FaceFrameResult.cs │ │ │ ├── FaceFrameResult.cs.meta │ │ │ ├── FaceFrameSource.cs │ │ │ ├── FaceFrameSource.cs.meta │ │ │ ├── FaceModel.cs │ │ │ ├── FaceModel.cs.meta │ │ │ ├── FaceModelBuilder.cs │ │ │ ├── FaceModelBuilder.cs.meta │ │ │ ├── FaceModelBuilderAttributes.cs │ │ │ ├── FaceModelBuilderAttributes.cs.meta │ │ │ ├── FaceModelBuilderCaptureStatus.cs │ │ │ ├── FaceModelBuilderCaptureStatus.cs.meta │ │ │ ├── FaceModelBuilderCollectionStatus.cs │ │ │ ├── FaceModelBuilderCollectionStatus.cs.meta │ │ │ ├── FaceModelData.cs │ │ │ ├── FaceModelData.cs.meta │ │ │ ├── FacePointType.cs │ │ │ ├── FacePointType.cs.meta │ │ │ ├── FaceProperty.cs │ │ │ ├── FaceProperty.cs.meta │ │ │ ├── FaceShapeAnimations.cs │ │ │ ├── FaceShapeAnimations.cs.meta │ │ │ ├── FaceShapeDeformations.cs │ │ │ ├── FaceShapeDeformations.cs.meta │ │ │ ├── HighDefinitionFaceFrame.cs │ │ │ ├── HighDefinitionFaceFrame.cs.meta │ │ │ ├── HighDefinitionFaceFrameArrivedEventArgs.cs │ │ │ ├── HighDefinitionFaceFrameArrivedEventArgs.cs.meta │ │ │ ├── HighDefinitionFaceFrameReader.cs │ │ │ ├── HighDefinitionFaceFrameReader.cs.meta │ │ │ ├── HighDefinitionFaceFrameReference.cs │ │ │ ├── HighDefinitionFaceFrameReference.cs.meta │ │ │ ├── HighDefinitionFaceFrameSource.cs │ │ │ ├── HighDefinitionFaceFrameSource.cs.meta │ │ │ ├── HighDetailFacePoints.cs │ │ │ ├── HighDetailFacePoints.cs.meta │ │ │ ├── KinectFaceUnityAddinUtils.cs │ │ │ ├── KinectFaceUnityAddinUtils.cs.meta │ │ │ ├── RectI.cs │ │ │ ├── RectI.cs.meta │ │ │ ├── TrackingIdLostEventArgs.cs │ │ │ └── TrackingIdLostEventArgs.cs.meta │ │ │ ├── VisualGestureBuilder.meta │ │ │ └── VisualGestureBuilder │ │ │ ├── ContinuousGestureResult.cs │ │ │ ├── ContinuousGestureResult.cs.meta │ │ │ ├── DiscreteGestureResult.cs │ │ │ ├── DiscreteGestureResult.cs.meta │ │ │ ├── Gesture.cs │ │ │ ├── Gesture.cs.meta │ │ │ ├── GestureType.cs │ │ │ ├── GestureType.cs.meta │ │ │ ├── KinectVisualGestureBuilderUnityAddinUtils.cs │ │ │ ├── KinectVisualGestureBuilderUnityAddinUtils.cs.meta │ │ │ ├── TrackingIdLostEventArgs.cs │ │ │ ├── TrackingIdLostEventArgs.cs.meta │ │ │ ├── VisualGestureBuilderDatabase.cs │ │ │ ├── VisualGestureBuilderDatabase.cs.meta │ │ │ ├── VisualGestureBuilderFrame.cs │ │ │ ├── VisualGestureBuilderFrame.cs.meta │ │ │ ├── VisualGestureBuilderFrameArrivedEventArgs.cs │ │ │ ├── VisualGestureBuilderFrameArrivedEventArgs.cs.meta │ │ │ ├── VisualGestureBuilderFrameReader.cs │ │ │ ├── VisualGestureBuilderFrameReader.cs.meta │ │ │ ├── VisualGestureBuilderFrameReference.cs │ │ │ ├── VisualGestureBuilderFrameReference.cs.meta │ │ │ ├── VisualGestureBuilderFrameSource.cs │ │ │ └── VisualGestureBuilderFrameSource.cs.meta │ ├── NativeObjectCache.cs │ ├── NativeObjectCache.cs.meta │ ├── NativeWrapper.cs │ ├── NativeWrapper.cs.meta │ ├── SmartGCHandle.cs │ ├── SmartGCHandle.cs.meta │ ├── ThreadSafeDictionary.cs │ ├── ThreadSafeDictionary.cs.meta │ ├── Windows.meta │ └── Windows │ │ ├── Data.meta │ │ ├── Data │ │ ├── PropertyChangedEventArgs.cs │ │ └── PropertyChangedEventArgs.cs.meta │ │ ├── Kinect.meta │ │ └── Kinect │ │ ├── Activity.cs │ │ ├── Activity.cs.meta │ │ ├── Appearance.cs │ │ ├── Appearance.cs.meta │ │ ├── AudioBeam.cs │ │ ├── AudioBeam.cs.meta │ │ ├── AudioBeamFrame.cs │ │ ├── AudioBeamFrame.cs.meta │ │ ├── AudioBeamFrameArrivedEventArgs.cs │ │ ├── AudioBeamFrameArrivedEventArgs.cs.meta │ │ ├── AudioBeamFrameList.cs │ │ ├── AudioBeamFrameList.cs.meta │ │ ├── AudioBeamFrameReader.cs │ │ ├── AudioBeamFrameReader.cs.meta │ │ ├── AudioBeamFrameReference.cs │ │ ├── AudioBeamFrameReference.cs.meta │ │ ├── AudioBeamMode.cs │ │ ├── AudioBeamMode.cs.meta │ │ ├── AudioBeamSubFrame.cs │ │ ├── AudioBeamSubFrame.cs.meta │ │ ├── AudioBodyCorrelation.cs │ │ ├── AudioBodyCorrelation.cs.meta │ │ ├── AudioSource.cs │ │ ├── AudioSource.cs.meta │ │ ├── Body.cs │ │ ├── Body.cs.meta │ │ ├── BodyFrame.cs │ │ ├── BodyFrame.cs.meta │ │ ├── BodyFrameArrivedEventArgs.cs │ │ ├── BodyFrameArrivedEventArgs.cs.meta │ │ ├── BodyFrameReader.cs │ │ ├── BodyFrameReader.cs.meta │ │ ├── BodyFrameReference.cs │ │ ├── BodyFrameReference.cs.meta │ │ ├── BodyFrameSource.cs │ │ ├── BodyFrameSource.cs.meta │ │ ├── BodyIndexFrame.cs │ │ ├── BodyIndexFrame.cs.meta │ │ ├── BodyIndexFrameArrivedEventArgs.cs │ │ ├── BodyIndexFrameArrivedEventArgs.cs.meta │ │ ├── BodyIndexFrameReader.cs │ │ ├── BodyIndexFrameReader.cs.meta │ │ ├── BodyIndexFrameReference.cs │ │ ├── BodyIndexFrameReference.cs.meta │ │ ├── BodyIndexFrameSource.cs │ │ ├── BodyIndexFrameSource.cs.meta │ │ ├── CameraSpacePoint.cs │ │ ├── CameraSpacePoint.cs.meta │ │ ├── ColorCameraSettings.cs │ │ ├── ColorCameraSettings.cs.meta │ │ ├── ColorFrame.cs │ │ ├── ColorFrame.cs.meta │ │ ├── ColorFrameArrivedEventArgs.cs │ │ ├── ColorFrameArrivedEventArgs.cs.meta │ │ ├── ColorFrameReader.cs │ │ ├── ColorFrameReader.cs.meta │ │ ├── ColorFrameReference.cs │ │ ├── ColorFrameReference.cs.meta │ │ ├── ColorFrameSource.cs │ │ ├── ColorFrameSource.cs.meta │ │ ├── ColorImageFormat.cs │ │ ├── ColorImageFormat.cs.meta │ │ ├── ColorSpacePoint.cs │ │ ├── ColorSpacePoint.cs.meta │ │ ├── CoordinateMapper.cs │ │ ├── CoordinateMapper.cs.meta │ │ ├── CoordinateMappingChangedEventArgs.cs │ │ ├── CoordinateMappingChangedEventArgs.cs.meta │ │ ├── DepthFrame.cs │ │ ├── DepthFrame.cs.meta │ │ ├── DepthFrameArrivedEventArgs.cs │ │ ├── DepthFrameArrivedEventArgs.cs.meta │ │ ├── DepthFrameReader.cs │ │ ├── DepthFrameReader.cs.meta │ │ ├── DepthFrameReference.cs │ │ ├── DepthFrameReference.cs.meta │ │ ├── DepthFrameSource.cs │ │ ├── DepthFrameSource.cs.meta │ │ ├── DepthSpacePoint.cs │ │ ├── DepthSpacePoint.cs.meta │ │ ├── DetectionResult.cs │ │ ├── DetectionResult.cs.meta │ │ ├── Expression.cs │ │ ├── Expression.cs.meta │ │ ├── FrameCapturedEventArgs.cs │ │ ├── FrameCapturedEventArgs.cs.meta │ │ ├── FrameCapturedStatus.cs │ │ ├── FrameCapturedStatus.cs.meta │ │ ├── FrameDescription.cs │ │ ├── FrameDescription.cs.meta │ │ ├── FrameEdges.cs │ │ ├── FrameEdges.cs.meta │ │ ├── FrameSourceTypes.cs │ │ ├── FrameSourceTypes.cs.meta │ │ ├── HandState.cs │ │ ├── HandState.cs.meta │ │ ├── InfraredFrame.cs │ │ ├── InfraredFrame.cs.meta │ │ ├── InfraredFrameArrivedEventArgs.cs │ │ ├── InfraredFrameArrivedEventArgs.cs.meta │ │ ├── InfraredFrameReader.cs │ │ ├── InfraredFrameReader.cs.meta │ │ ├── InfraredFrameReference.cs │ │ ├── InfraredFrameReference.cs.meta │ │ ├── InfraredFrameSource.cs │ │ ├── InfraredFrameSource.cs.meta │ │ ├── IsAvailableChangedEventArgs.cs │ │ ├── IsAvailableChangedEventArgs.cs.meta │ │ ├── Joint.cs │ │ ├── Joint.cs.meta │ │ ├── JointOrientation.cs │ │ ├── JointOrientation.cs.meta │ │ ├── JointType.cs │ │ ├── JointType.cs.meta │ │ ├── KinectAudioCalibrationState.cs │ │ ├── KinectAudioCalibrationState.cs.meta │ │ ├── KinectCapabilities.cs │ │ ├── KinectCapabilities.cs.meta │ │ ├── KinectSensor.cs │ │ ├── KinectSensor.cs.meta │ │ ├── KinectUnityAddinUtils.cs │ │ ├── KinectUnityAddinUtils.cs.meta │ │ ├── LongExposureInfraredFrame.cs │ │ ├── LongExposureInfraredFrame.cs.meta │ │ ├── LongExposureInfraredFrameArrivedEventArgs.cs │ │ ├── LongExposureInfraredFrameArrivedEventArgs.cs.meta │ │ ├── LongExposureInfraredFrameReader.cs │ │ ├── LongExposureInfraredFrameReader.cs.meta │ │ ├── LongExposureInfraredFrameReference.cs │ │ ├── LongExposureInfraredFrameReference.cs.meta │ │ ├── LongExposureInfraredFrameSource.cs │ │ ├── LongExposureInfraredFrameSource.cs.meta │ │ ├── MultiSourceFrame.cs │ │ ├── MultiSourceFrame.cs.meta │ │ ├── MultiSourceFrameArrivedEventArgs.cs │ │ ├── MultiSourceFrameArrivedEventArgs.cs.meta │ │ ├── MultiSourceFrameReader.cs │ │ ├── MultiSourceFrameReader.cs.meta │ │ ├── MultiSourceFrameReference.cs │ │ ├── MultiSourceFrameReference.cs.meta │ │ ├── TrackingConfidence.cs │ │ ├── TrackingConfidence.cs.meta │ │ ├── TrackingState.cs │ │ ├── TrackingState.cs.meta │ │ ├── Vector4.cs │ │ └── Vector4.cs.meta ├── StreamingAssets.meta └── StreamingAssets │ ├── gesture_detector.gbd │ ├── gesture_detector.gbd.meta │ ├── wavehand_Right.gba │ └── wavehand_Right.gba.meta ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── Physics2DSettings.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── TagManager.asset ├── TimeManager.asset └── UnityConnectSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | [Ll]ibrary/ 2 | [Tt]emp/ 3 | [Oo]bj/ 4 | [Bb]uild/ 5 | [Bb]uilds/ 6 | Assets/AssetStoreTools* 7 | 8 | # Visual Studio cache directory 9 | .vs/ 10 | 11 | # Autogenerated VS/MD/Consulo solution and project files 12 | ExportedObj/ 13 | .consulo/ 14 | *.csproj 15 | *.unityproj 16 | *.sln 17 | *.suo 18 | *.tmp 19 | *.user 20 | *.userprefs 21 | *.pidb 22 | *.booproj 23 | *.svd 24 | *.pdb 25 | *.opendb 26 | 27 | # Unity3D generated meta files 28 | *.pidb.meta 29 | *.pdb.meta 30 | 31 | # Unity3D Generated File On Crash Reports 32 | sysinfo.txt 33 | 34 | # Builds 35 | *.apk 36 | *.unitypackage 37 | ~ 38 | -------------------------------------------------------------------------------- /Assets/CustomerSetting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 040027d3bafaac6459e7632ae5887eb0 3 | folderAsset: yes 4 | timeCreated: 1489307059 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Material.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13cf4530ea00f664cbdbe169b41b1864 3 | folderAsset: yes 4 | timeCreated: 1492504801 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Material/headImage.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/CustomerSetting/Material/headImage.mat -------------------------------------------------------------------------------- /Assets/CustomerSetting/Material/headImage.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84b2886c953f19742b27e0dac7ed79ee 3 | timeCreated: 1492846737 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Material/histogram.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/CustomerSetting/Material/histogram.mat -------------------------------------------------------------------------------- /Assets/CustomerSetting/Material/histogram.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46bfb449c415bdd40b7728068916eafc 3 | timeCreated: 1492504968 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Material/trackhead.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/CustomerSetting/Material/trackhead.mat -------------------------------------------------------------------------------- /Assets/CustomerSetting/Material/trackhead.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eda0f9c7d9092a648acdeeff4756cedf 3 | timeCreated: 1492850453 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36a9146bcf5a1c24fa9250ddafd61ec9 3 | folderAsset: yes 4 | timeCreated: 1489307073 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scenes/ShowDiagramOnCanvas.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/CustomerSetting/Scenes/ShowDiagramOnCanvas.unity -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scenes/ShowDiagramOnCanvas.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9f66b32a53494c4ca9b9a9098a9b8eb 3 | timeCreated: 1492508693 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scenes/ShowWithHistogram.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/CustomerSetting/Scenes/ShowWithHistogram.unity -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scenes/ShowWithHistogram.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 156875b3dd69cc94eada8a37a9681605 3 | timeCreated: 1492504863 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scenes/TrackHeadImage.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/CustomerSetting/Scenes/TrackHeadImage.unity -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scenes/TrackHeadImage.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cc906d07db07771408a0d7ecc4646c97 3 | timeCreated: 1492846545 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d549e62d03ed1b748a97a2a145b8d890 3 | folderAsset: yes 4 | timeCreated: 1489307065 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Diagram.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3dd8bfefbea0f204eb515312ba73af95 3 | folderAsset: yes 4 | timeCreated: 1492847973 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Diagram/BodyOnCanvas.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28dd0bd320de6a949948128ff863a618 3 | timeCreated: 1492513378 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Diagram/HistogramTexture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb78fd7a56559124397ec91d8963cb5d 3 | timeCreated: 1492505028 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Diagram/SetPropertyAttribute.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Luminary LLC 2 | // Licensed under The MIT License (See LICENSE for full text) 3 | using UnityEngine; 4 | using System.Collections; 5 | 6 | public class SetPropertyAttribute : PropertyAttribute 7 | { 8 | public string Name { get; private set; } 9 | public bool IsDirty { get; set; } 10 | 11 | public SetPropertyAttribute(string name) 12 | { 13 | this.Name = name; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Diagram/SetPropertyAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d67caee3ed11a1d48940d983460ded6f 3 | timeCreated: 1492505028 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Gesture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2c7876e38ea1f1f4082484e67a9d686e 3 | folderAsset: yes 4 | timeCreated: 1492847952 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Gesture/GestureController.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | 5 | public class GestureController : MonoBehaviour { 6 | 7 | private bool Righthand = false; 8 | private bool Lefthand = false; 9 | private GestureSourceManager manager; 10 | 11 | 12 | public void AddGesture(){ 13 | manager = GestureSourceManager.Instance; 14 | manager.OnGesture += wave_Righthand; 15 | manager.OnGesture += wave_Lefthand; 16 | } 17 | 18 | private void wave_Righthand (object sender,KinectGestureEvent e){ 19 | Debug.Log ("wavehand Right!!!"); 20 | if (e.name.Equals ("wavehand_Right")) { 21 | Debug.Log ("wavehand Right!!!"); 22 | Righthand = true; 23 | } else { 24 | Righthand = false; 25 | } 26 | } 27 | 28 | private void wave_Lefthand (object sender,KinectGestureEvent e){ 29 | if (e.name.Equals ("wavehand_Left")) { 30 | Debug.Log ("wavehand Left!!!"); 31 | Lefthand = true; 32 | } else { 33 | Lefthand = false; 34 | } 35 | } 36 | 37 | 38 | public bool IsWaingRightHand(){ 39 | return Righthand; 40 | } 41 | 42 | public bool IsWavingLeftHand(){ 43 | return Lefthand; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Gesture/GestureController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9fdb66934f12124d8a050173edaab9e 3 | timeCreated: 1490004501 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Gesture/GestureDetectors.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using UnityEngine; 4 | using Windows.Kinect; 5 | using System.IO; 6 | using Microsoft.Kinect.VisualGestureBuilder; 7 | 8 | public class GestureDetectors : MonoBehaviour { 9 | VisualGestureBuilderDatabase _gestureDatabase; 10 | VisualGestureBuilderFrameSource _gestureFrameSource; 11 | VisualGestureBuilderFrameReader _gestureFrameReader; 12 | KinectSensor _kinect; 13 | Gesture wavehand_right; 14 | DiscreteGestureResult result; 15 | // Use this for initialization 16 | void Start () { 17 | _kinect = KinectSensor.GetDefault (); 18 | _gestureDatabase = VisualGestureBuilderDatabase.Create (Application.streamingAssetsPath+"/wavehand_Right.gba"); 19 | _gestureFrameSource = VisualGestureBuilderFrameSource.Create (_kinect,0); 20 | foreach (var gesture in _gestureDatabase.AvailableGestures) { 21 | _gestureFrameSource.AddGesture (gesture); 22 | print("gesture available name : "+gesture.Name); 23 | if (gesture.Name == "wavehand_right") { 24 | wavehand_right = gesture; 25 | } 26 | } 27 | _gestureFrameReader = _gestureFrameSource.OpenReader (); 28 | _gestureFrameReader.IsPaused = true; 29 | } 30 | 31 | 32 | // Update is called once per frame 33 | void Update () { 34 | 35 | } 36 | 37 | 38 | void _gestureFrameReader_FrameArrived(object sender , VisualGestureBuilderFrameArrivedEventArgs e){ 39 | VisualGestureBuilderFrameReference frameReference = e.FrameReference; 40 | using (VisualGestureBuilderFrame frame = frameReference.AcquireFrame ()) { 41 | if (frame != null && frame.DiscreteGestureResults != null) { 42 | result = frame.DiscreteGestureResults [wavehand_right]; 43 | } 44 | if (result == null) { 45 | return; 46 | } 47 | if (result.Detected == true && result.Confidence > 0.95) { 48 | } 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Gesture/GestureDetectors.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d92bbc69aa497d4ca3c0f29f6919bac 3 | timeCreated: 1490004724 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Gesture/GestureSourceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a1caedcf6b7f034a8fca5cd043e8ac2 3 | timeCreated: 1489311935 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Gesture/KinectGestureEvent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using UnityEngine; 4 | 5 | public class KinectGestureEvent : EventArgs { 6 | 7 | public string name; 8 | public float confidence; 9 | public KinectGestureEvent(string _name, float _confidence) 10 | { 11 | name = _name; 12 | confidence = _confidence; 13 | } 14 | } 15 | 16 | public delegate void GestureEvent(object sender,KinectGestureEvent e); 17 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/Gesture/KinectGestureEvent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83922e190aba11d4584a9cb636ec57f4 3 | timeCreated: 1490014131 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/ShowHeadImage.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 95a3857ed71220d4db8b3a5f0dd39ece 3 | folderAsset: yes 4 | timeCreated: 1492847999 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/ShowHeadImage/HeadColorView.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using Windows.Kinect; 4 | using UnityEngine.UI; 5 | public class HeadColorView : MonoBehaviour 6 | { 7 | public GameObject ColorSourceManager; 8 | private ColorSourceManager _ColorManager; 9 | private ComputeBuffer keybuffer; 10 | private int[] keys = { 0, 0, 0, 0 }; 11 | private float[] computekeys= {0f,0f,0f,0f}; 12 | void Start () 13 | { 14 | ReleaseBuffers (); 15 | Texture2D renderTexture = ColorSourceManager.GetComponent().GetColorTexture(); 16 | if (renderTexture != null) 17 | { 18 | gameObject.GetComponent().material.SetTexture("_MainTex", renderTexture); 19 | //GameObject.Find("HeadImage").GetComponent().material.SetTexture("_MainTex", renderTexture); 20 | } else { 21 | Debug.LogError ("Texture is null !"); 22 | } 23 | keys = ColorSourceManager.GetComponent ().GetKey(); 24 | if (keys != null) { 25 | keybuffer = new ComputeBuffer (keys.Length, sizeof(float)); 26 | gameObject.GetComponent ().material.SetBuffer ("key", keybuffer); 27 | //gameObject.GetComponent ().material.SetFloatArray("key",computekeys); 28 | } 29 | 30 | 31 | } 32 | 33 | void Update() 34 | { 35 | 36 | // ComputeBuffers do not accept bytes, so we need to convert to float. 37 | updateKey (); 38 | } 39 | 40 | 41 | void updateKey(){ 42 | computekeys[0] = (float)(keys[1]-keys[0])/1920; 43 | computekeys [1] = (float)keys [0] / 1920; 44 | computekeys [2] = (float)(keys [3] - keys [2]) / 1080; 45 | computekeys [3] = (float)keys [2] / 1080; 46 | if (computekeys [0] < 0 || computekeys [1] < 0 || computekeys [2] < 0 || computekeys [3] < 0) { 47 | computekeys [0] = 0f; 48 | computekeys [1] = 0f; 49 | computekeys [2] = 0f; 50 | computekeys [3] = 0f; 51 | } 52 | // Debug.Log ("area is "+ computekeys[0]+","+computekeys[1]+","+computekeys[2]+","+computekeys[3]); 53 | keybuffer.SetData(computekeys); 54 | } 55 | 56 | private void ReleaseBuffers() 57 | { 58 | 59 | if (keybuffer != null) keybuffer.Release(); 60 | keybuffer = null; 61 | 62 | keys = null; 63 | } 64 | 65 | void OnDisable() 66 | { 67 | ReleaseBuffers (); 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/ShowHeadImage/HeadColorView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27fb60ac99e50544389c7666dd4e37c4 3 | timeCreated: 1492846733 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/ShowHeadImage/HeadShowManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb3132e577c1f784e8310f9af44de85e 3 | timeCreated: 1492930177 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: -100 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/ShowHeadImage/MineBodySourceView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7be21b3e1dd228947a8941b4fb3cc40f 3 | timeCreated: 1492847203 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/ShowHeadImage/TrackHeadColorView.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using Windows.Kinect; 4 | using UnityEngine.UI; 5 | public class TrackHeadColorView : MonoBehaviour 6 | { 7 | public GameObject ColorSourceManager; 8 | private ColorSourceManager _ColorManager; 9 | private ComputeBuffer maskbuffer; 10 | private byte[] mask; 11 | void Start () 12 | { 13 | ReleaseBuffers (); 14 | Texture2D renderTexture = ColorSourceManager.GetComponent().GetColorTexture(); 15 | if (renderTexture != null) { 16 | gameObject.GetComponent ().material.SetTexture ("_MainTex", renderTexture); 17 | } else { 18 | Debug.LogError ("Texture is null !"); 19 | } 20 | mask = ColorSourceManager.GetComponent ().GetMask (); 21 | // Debug.Log ("mask length is "+mask.Length); 22 | if (mask != null) { 23 | maskbuffer = new ComputeBuffer (mask.Length, sizeof(int)); 24 | gameObject.GetComponent ().material.SetBuffer ("_Mask", maskbuffer); 25 | } 26 | 27 | } 28 | 29 | void Update() 30 | { 31 | 32 | // ComputeBuffers do not accept bytes, so we need to convert to float. 33 | updateMask(); 34 | } 35 | 36 | void updateMask(){ 37 | int[] buffer = new int[1920 * 1080]; 38 | for (int i = 0; i < mask.Length; i++) 39 | { 40 | buffer[i] = (int)mask[i]; 41 | } 42 | maskbuffer.SetData(buffer); 43 | buffer = null; 44 | } 45 | 46 | private void ReleaseBuffers() 47 | { 48 | if (maskbuffer != null) maskbuffer.Release(); 49 | maskbuffer = null; 50 | 51 | mask = null; 52 | } 53 | 54 | void OnDisable() 55 | { 56 | ReleaseBuffers (); 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Scripts/ShowHeadImage/TrackHeadColorView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2de632b2e5c3e9241af298d86f4103e5 3 | timeCreated: 1492849791 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: caf2ebdd4d4e85e43b9098fe4225cff6 3 | folderAsset: yes 4 | timeCreated: 1492510732 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Shader/SelfGloss.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/SelfGloss" { 2 | Properties { 3 | _Color ("Color", Color) = (1,1,1,1) 4 | _MainTex ("Albedo (RGB)", 2D) = "white" {} 5 | _Glossiness ("Smoothness", Range(0,1)) = 0.5 6 | _Metallic ("Metallic", Range(0,1)) = 0.0 7 | } 8 | SubShader { 9 | Tags { "RenderType"="Opaque" } 10 | LOD 200 11 | 12 | CGPROGRAM 13 | // Physically based Standard lighting model, and enable shadows on all light types 14 | #pragma surface surf Standard fullforwardshadows 15 | 16 | // Use shader model 3.0 target, to get nicer looking lighting 17 | #pragma target 3.0 18 | 19 | sampler2D _MainTex; 20 | 21 | struct Input { 22 | float2 uv_MainTex; 23 | }; 24 | 25 | half _Glossiness; 26 | half _Metallic; 27 | fixed4 _Color; 28 | 29 | void surf (Input IN, inout SurfaceOutputStandard o) { 30 | // Albedo comes from a texture tinted by color 31 | fixed4 c = tex2D (_MainTex, IN.uv_MainTex) * _Color; 32 | o.Albedo = c.rgb; 33 | // Metallic and smoothness come from slider variables 34 | o.Metallic = _Metallic; 35 | o.Smoothness = _Glossiness; 36 | o.Alpha = c.a; 37 | } 38 | ENDCG 39 | } 40 | FallBack "Diffuse" 41 | } 42 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Shader/SelfGloss.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b7c9af3e2de566489473fc465ebcf78 3 | timeCreated: 1492510756 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Shader/ShowHead.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/ShowHead" { 2 | SubShader { 3 | //tags{"DisableBatching" = "True"} 4 | Pass { 5 | 6 | CGPROGRAM 7 | #pragma target 5.0 8 | 9 | #pragma vertex vert 10 | #pragma fragment frag 11 | 12 | #include "UnityCG.cginc" 13 | 14 | Texture2D _MainTex; 15 | 16 | sampler sampler_MainTex; 17 | 18 | struct vs_input { 19 | float4 pos : POSITION; 20 | float2 tex : TEXCOORD0; 21 | }; 22 | 23 | StructuredBuffer key; 24 | 25 | struct ps_input { 26 | float4 pos : SV_POSITION; 27 | float2 tex : TEXCOORD0; 28 | }; 29 | 30 | ps_input vert (vs_input v) 31 | { 32 | ps_input o; 33 | o.pos = mul (UNITY_MATRIX_MVP, v.pos); 34 | o.tex = v.tex; 35 | // Flip x texture coordinate to mimic mirror. 36 | o.tex.x = key[0]* (1-v.tex.x) + key[1]; 37 | o.tex.y = key[2] * v.tex.y+ key[3]; 38 | return o; 39 | } 40 | 41 | float4 frag (ps_input i, in uint id : SV_InstanceID) : COLOR 42 | { 43 | float4 o; 44 | o = _MainTex.Sample(sampler_MainTex, i.tex); 45 | 46 | return o; 47 | } 48 | 49 | ENDCG 50 | 51 | } 52 | } 53 | 54 | Fallback Off 55 | } -------------------------------------------------------------------------------- /Assets/CustomerSetting/Shader/ShowHead.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2313cf303cb2cf64e8858b42da4823df 3 | timeCreated: 1492846737 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Shader/TrackHead.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/TrackHead" { 2 | SubShader { 3 | //tags{"DisableBatching" = "True"} 4 | Pass { 5 | 6 | CGPROGRAM 7 | #pragma target 5.0 8 | 9 | #pragma vertex vert 10 | #pragma fragment frag 11 | 12 | #include "UnityCG.cginc" 13 | 14 | Texture2D _MainTex; 15 | 16 | sampler sampler_MainTex; 17 | 18 | struct vs_input { 19 | float4 pos : POSITION; 20 | float2 tex : TEXCOORD0; 21 | }; 22 | 23 | StructuredBuffer _Mask; 24 | 25 | struct ps_input { 26 | float4 pos : SV_POSITION; 27 | float2 tex : TEXCOORD0; 28 | }; 29 | 30 | ps_input vert (vs_input v) 31 | { 32 | ps_input o; 33 | o.pos = mul (UNITY_MATRIX_MVP, v.pos); 34 | o.tex = v.tex; 35 | o.tex.x = 1 - v.tex.x; 36 | return o; 37 | } 38 | 39 | float4 frag (ps_input i, in uint id : SV_InstanceID) : COLOR 40 | { 41 | float4 o; 42 | 43 | int colorWidth = (int)(i.tex.x * (float)1920); 44 | int colorHeight = (int)(i.tex.y * (float)1080); 45 | int colorIndex = (int)(colorWidth + colorHeight * (float)1920); 46 | 47 | o = float4(0, 0, 0, 1); 48 | if (_Mask[colorIndex] == 1) 49 | { 50 | o = _MainTex.Sample(sampler_MainTex, i.tex); 51 | } 52 | 53 | return o; 54 | } 55 | 56 | ENDCG 57 | 58 | } 59 | } 60 | 61 | Fallback Off 62 | } -------------------------------------------------------------------------------- /Assets/CustomerSetting/Shader/TrackHead.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41f43ea0b5184644ba330c1804122a70 3 | timeCreated: 1492850340 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Texture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c07a0c18c92d904438883cb059798b3a 3 | folderAsset: yes 4 | timeCreated: 1492522222 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/CustomerSetting/Texture/KinectDetect.renderTexture: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/CustomerSetting/Texture/KinectDetect.renderTexture -------------------------------------------------------------------------------- /Assets/CustomerSetting/Texture/KinectDetect.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 70fedda5d8abe6d4f916a2af92213bdb 3 | timeCreated: 1492522271 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e9c948dd181507042a14d9ab790af2e1 3 | folderAsset: yes 4 | timeCreated: 1492505027 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Editor/HistogramTextureEditor.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEngine; 3 | using System; 4 | 5 | [CustomEditor(typeof(HistogramTexture))] 6 | public class HistogramTextureEditor : Editor { 7 | 8 | override public void OnInspectorGUI(){ 9 | var myscript = target as HistogramTexture; 10 | myscript.iscanvas = EditorGUILayout.Toggle ("Is Canvas",myscript.iscanvas); 11 | if (!myscript.iscanvas) { 12 | myscript.material = (Material)EditorGUILayout.ObjectField("material",myscript.material,typeof(Material)); 13 | } 14 | myscript.textureWidth = EditorGUILayout.IntField ("Texture Width",myscript.textureWidth); 15 | myscript.rectangleColor = EditorGUILayout.ColorField ("Rectangle Color",myscript.rectangleColor); 16 | myscript.Count = EditorGUILayout.IntField ("Count",myscript.Count); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Editor/HistogramTextureEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d64d81f8178f2e3428bf4e362c62761e 3 | timeCreated: 1492516919 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/Editor/SetPropertyDrawer.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2014 Luminary LLC 2 | // Licensed under The MIT License (See LICENSE for full text) 3 | using UnityEngine; 4 | using UnityEditor; 5 | using System; 6 | using System.Collections; 7 | using System.Reflection; 8 | 9 | [CustomPropertyDrawer(typeof(SetPropertyAttribute))] 10 | public class SetPropertyDrawer : PropertyDrawer 11 | { 12 | public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) 13 | { 14 | // Rely on the default inspector GUI 15 | EditorGUI.BeginChangeCheck (); 16 | EditorGUI.PropertyField(position, property, label); 17 | 18 | // Update only when necessary 19 | SetPropertyAttribute setProperty = attribute as SetPropertyAttribute; 20 | if (EditorGUI.EndChangeCheck()) 21 | { 22 | // When a SerializedProperty is modified the actual field does not have the current value set (i.e. 23 | // FieldInfo.GetValue() will return the prior value that was set) until after this OnGUI call has completed. 24 | // Therefore, we need to mark this property as dirty, so that it can be updated with a subsequent OnGUI event 25 | // (e.g. Repaint) 26 | setProperty.IsDirty = true; 27 | } 28 | else if (setProperty.IsDirty) 29 | { 30 | // The propertyPath may reference something that is a child field of a field on this Object, so it is necessary 31 | // to find which object is the actual parent before attempting to set the property with the current value. 32 | object parent = GetParentObjectOfProperty(property.propertyPath, property.serializedObject.targetObject); 33 | Type type = parent.GetType(); 34 | PropertyInfo pi = type.GetProperty(setProperty.Name); 35 | if (pi == null) 36 | { 37 | Debug.LogError("Invalid property name: " + setProperty.Name + "\nCheck your [SetProperty] attribute"); 38 | } 39 | else 40 | { 41 | // Use FieldInfo instead of the SerializedProperty accessors as we'd have to deal with every 42 | // SerializedPropertyType and use the correct accessor 43 | pi.SetValue(parent, fieldInfo.GetValue(parent), null); 44 | } 45 | setProperty.IsDirty = false; 46 | } 47 | } 48 | 49 | private object GetParentObjectOfProperty(string path, object obj) 50 | { 51 | string[] fields = path.Split('.'); 52 | 53 | // We've finally arrived at the final object that contains the property 54 | if (fields.Length == 1) 55 | { 56 | return obj; 57 | } 58 | 59 | // We may have to walk public or private fields along the chain to finding our container object, so we have to allow for both 60 | FieldInfo fi = obj.GetType().GetField(fields[0], BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); 61 | obj = fi.GetValue(obj); 62 | 63 | // Keep searching for our object that contains the property 64 | return GetParentObjectOfProperty(string.Join(".", fields, 1, fields.Length - 1), obj); 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /Assets/Editor/SetPropertyDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b34d75964ac3ac4bb48aad72bbbbe7d 3 | timeCreated: 1492498311 4 | licenseType: Free 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/KinectView.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8aa169c3e84dfc14190769d8bdeba4a6 3 | folderAsset: yes 4 | timeCreated: 1489306858 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/KinectView/MainScene.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/KinectView/MainScene.unity -------------------------------------------------------------------------------- /Assets/KinectView/MainScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 457d139ffbb6aeb4babfa2a6abb0c25f 3 | timeCreated: 1489306858 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4989aa50e6bacf843b3e8412cc68a199 3 | folderAsset: yes 4 | timeCreated: 1489306858 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/KinectView/Materials/BoneMaterial.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/KinectView/Materials/BoneMaterial.mat -------------------------------------------------------------------------------- /Assets/KinectView/Materials/BoneMaterial.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2ea145c63353784985576f08398a815 3 | NativeFormatImporter: 4 | userData: 5 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b372987d69ca1cd4db83ef88706d03dd 3 | folderAsset: yes 4 | timeCreated: 1489306858 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/BodySourceManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using Windows.Kinect; 4 | 5 | public class BodySourceManager : MonoBehaviour 6 | { 7 | private KinectSensor _Sensor; 8 | private BodyFrameReader _Reader; 9 | private Body[] _Data = null; 10 | 11 | public Body[] GetData() 12 | { 13 | return _Data; 14 | } 15 | 16 | 17 | void Start () 18 | { 19 | _Sensor = KinectSensor.GetDefault(); 20 | 21 | if (_Sensor != null) 22 | { 23 | _Reader = _Sensor.BodyFrameSource.OpenReader(); 24 | 25 | if (!_Sensor.IsOpen) 26 | { 27 | _Sensor.Open(); 28 | } 29 | } 30 | } 31 | 32 | void Update () 33 | { 34 | if (_Reader != null) 35 | { 36 | var frame = _Reader.AcquireLatestFrame(); 37 | if (frame != null) 38 | { 39 | if (_Data == null) 40 | { 41 | _Data = new Body[_Sensor.BodyFrameSource.BodyCount]; 42 | } 43 | 44 | frame.GetAndRefreshBodyData(_Data); 45 | 46 | frame.Dispose(); 47 | frame = null; 48 | } 49 | } 50 | } 51 | 52 | void OnApplicationQuit() 53 | { 54 | if (_Reader != null) 55 | { 56 | _Reader.Dispose(); 57 | _Reader = null; 58 | } 59 | 60 | if (_Sensor != null) 61 | { 62 | if (_Sensor.IsOpen) 63 | { 64 | _Sensor.Close(); 65 | } 66 | 67 | _Sensor = null; 68 | } 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/BodySourceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e74aed0503c9d24290a1ae5438fddc3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/BodySourceView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8821130411451d343a1488e2a9db134e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/ColorSourceManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using Windows.Kinect; 4 | 5 | public class ColorSourceManager : MonoBehaviour 6 | { 7 | public int ColorWidth { get; private set; } 8 | public int ColorHeight { get; private set; } 9 | 10 | private KinectSensor _Sensor; 11 | private ColorFrameReader _Reader; 12 | private Texture2D _Texture; 13 | private byte[] _Data; 14 | 15 | public Texture2D GetColorTexture() 16 | { 17 | return _Texture; 18 | } 19 | 20 | void Start() 21 | { 22 | _Sensor = KinectSensor.GetDefault(); 23 | 24 | if (_Sensor != null) 25 | { 26 | _Reader = _Sensor.ColorFrameSource.OpenReader(); 27 | 28 | var frameDesc = _Sensor.ColorFrameSource.CreateFrameDescription(ColorImageFormat.Rgba); 29 | ColorWidth = frameDesc.Width; 30 | ColorHeight = frameDesc.Height; 31 | 32 | _Texture = new Texture2D(frameDesc.Width, frameDesc.Height, TextureFormat.RGBA32, false); 33 | _Data = new byte[frameDesc.BytesPerPixel * frameDesc.LengthInPixels]; 34 | 35 | if (!_Sensor.IsOpen) 36 | { 37 | _Sensor.Open(); 38 | } 39 | } 40 | } 41 | 42 | void Update () 43 | { 44 | if (_Reader != null) 45 | { 46 | var frame = _Reader.AcquireLatestFrame(); 47 | 48 | if (frame != null) 49 | { 50 | frame.CopyConvertedFrameDataToArray(_Data, ColorImageFormat.Rgba); 51 | _Texture.LoadRawTextureData(_Data); 52 | _Texture.Apply(); 53 | 54 | frame.Dispose(); 55 | frame = null; 56 | } 57 | } 58 | } 59 | 60 | void OnApplicationQuit() 61 | { 62 | if (_Reader != null) 63 | { 64 | _Reader.Dispose(); 65 | _Reader = null; 66 | } 67 | 68 | if (_Sensor != null) 69 | { 70 | if (_Sensor.IsOpen) 71 | { 72 | _Sensor.Close(); 73 | } 74 | 75 | _Sensor = null; 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/ColorSourceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92ab5bea6110edb4081e490c0982748d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/ColorSourceView.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using Windows.Kinect; 4 | 5 | public class ColorSourceView : MonoBehaviour 6 | { 7 | public GameObject ColorSourceManager; 8 | private ColorSourceManager _ColorManager; 9 | 10 | void Start () 11 | { 12 | gameObject.GetComponent().material.SetTextureScale("_MainTex", new Vector2(-1, 1)); 13 | } 14 | 15 | void Update() 16 | { 17 | if (ColorSourceManager == null) 18 | { 19 | return; 20 | } 21 | 22 | _ColorManager = ColorSourceManager.GetComponent(); 23 | if (_ColorManager == null) 24 | { 25 | return; 26 | } 27 | 28 | gameObject.GetComponent().material.mainTexture = _ColorManager.GetColorTexture(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/ColorSourceView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee5302fdf7d10e74fbbbe1a2f7503f46 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/DepthSourceManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using Windows.Kinect; 4 | 5 | public class DepthSourceManager : MonoBehaviour 6 | { 7 | private KinectSensor _Sensor; 8 | private DepthFrameReader _Reader; 9 | private ushort[] _Data; 10 | 11 | public ushort[] GetData() 12 | { 13 | return _Data; 14 | } 15 | 16 | void Start () 17 | { 18 | _Sensor = KinectSensor.GetDefault(); 19 | 20 | if (_Sensor != null) 21 | { 22 | _Reader = _Sensor.DepthFrameSource.OpenReader(); 23 | _Data = new ushort[_Sensor.DepthFrameSource.FrameDescription.LengthInPixels]; 24 | } 25 | } 26 | 27 | void Update () 28 | { 29 | if (_Reader != null) 30 | { 31 | var frame = _Reader.AcquireLatestFrame(); 32 | if (frame != null) 33 | { 34 | frame.CopyFrameDataToArray(_Data); 35 | frame.Dispose(); 36 | frame = null; 37 | } 38 | } 39 | } 40 | 41 | void OnApplicationQuit() 42 | { 43 | if (_Reader != null) 44 | { 45 | _Reader.Dispose(); 46 | _Reader = null; 47 | } 48 | 49 | if (_Sensor != null) 50 | { 51 | if (_Sensor.IsOpen) 52 | { 53 | _Sensor.Close(); 54 | } 55 | 56 | _Sensor = null; 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/DepthSourceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1cd019cdd7a54604b9ae8091d242d8a4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/DepthSourceView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 383e102cbe3bfb34d94c98ea3c2479b4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/DisableOnStart.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class DisableOnStart : MonoBehaviour { 5 | 6 | // Use this for initialization 7 | void Start () 8 | { 9 | gameObject.SetActive (false); 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/DisableOnStart.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61e5c93f5da1e324aa7fd9671db875bc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/InfraredSourceManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using Windows.Kinect; 4 | 5 | public class InfraredSourceManager : MonoBehaviour 6 | { 7 | private KinectSensor _Sensor; 8 | private InfraredFrameReader _Reader; 9 | private ushort[] _Data; 10 | private byte[] _RawData; 11 | 12 | // I'm not sure this makes sense for the Kinect APIs 13 | // Instead, this logic should be in the VIEW 14 | private Texture2D _Texture; 15 | 16 | public Texture2D GetInfraredTexture() 17 | { 18 | return _Texture; 19 | } 20 | 21 | void Start() 22 | { 23 | _Sensor = KinectSensor.GetDefault(); 24 | if (_Sensor != null) 25 | { 26 | _Reader = _Sensor.InfraredFrameSource.OpenReader(); 27 | var frameDesc = _Sensor.InfraredFrameSource.FrameDescription; 28 | _Data = new ushort[frameDesc.LengthInPixels]; 29 | _RawData = new byte[frameDesc.LengthInPixels * 4]; 30 | _Texture = new Texture2D(frameDesc.Width, frameDesc.Height, TextureFormat.BGRA32, false); 31 | 32 | if (!_Sensor.IsOpen) 33 | { 34 | _Sensor.Open(); 35 | } 36 | } 37 | } 38 | 39 | void Update () 40 | { 41 | if (_Reader != null) 42 | { 43 | var frame = _Reader.AcquireLatestFrame(); 44 | if (frame != null) 45 | { 46 | frame.CopyFrameDataToArray(_Data); 47 | 48 | int index = 0; 49 | foreach(var ir in _Data) 50 | { 51 | byte intensity = (byte)(ir >> 8); 52 | _RawData[index++] = intensity; 53 | _RawData[index++] = intensity; 54 | _RawData[index++] = intensity; 55 | _RawData[index++] = 255; // Alpha 56 | } 57 | 58 | _Texture.LoadRawTextureData(_RawData); 59 | _Texture.Apply(); 60 | 61 | frame.Dispose(); 62 | frame = null; 63 | } 64 | } 65 | } 66 | 67 | void OnApplicationQuit() 68 | { 69 | if (_Reader != null) 70 | { 71 | _Reader.Dispose(); 72 | _Reader = null; 73 | } 74 | 75 | if (_Sensor != null) 76 | { 77 | if (_Sensor.IsOpen) 78 | { 79 | _Sensor.Close(); 80 | } 81 | 82 | _Sensor = null; 83 | } 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/InfraredSourceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 63eff7f54e54aa049a2331755f3cb99c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/InfraredSourceView.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class InfraredSourceView : MonoBehaviour 5 | { 6 | public GameObject InfraredSourceManager; 7 | private InfraredSourceManager _InfraredManager; 8 | 9 | void Start () 10 | { 11 | gameObject.GetComponent().material.SetTextureScale("_MainTex", new Vector2(-1, 1)); 12 | } 13 | 14 | void Update() 15 | { 16 | if (InfraredSourceManager == null) 17 | { 18 | return; 19 | } 20 | 21 | _InfraredManager = InfraredSourceManager.GetComponent(); 22 | if (_InfraredManager == null) 23 | { 24 | return; 25 | } 26 | 27 | gameObject.GetComponent().material.mainTexture = _InfraredManager.GetInfraredTexture(); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/InfraredSourceView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 98f8736f9d8c8e44592c96e57d57c5d4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/MultiSourceManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f752c4e07617d8d4eb21d4975a2d7c61 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9b2898d81f1d8a46addc7ea75428059 3 | folderAsset: yes 4 | timeCreated: 1489306915 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Metro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 936374075e055374a89c773ec2594eef 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/Metro/KinectUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/Metro/KinectUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/Metro/KinectUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85bafbe9b14b18b45b445b304b1f3efc 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | DefaultValueInitialized: true 24 | - first: 25 | Windows Store Apps: WindowsStoreApps 26 | second: 27 | enabled: 1 28 | settings: 29 | CPU: x86 30 | userData: 31 | assetBundleName: 32 | assetBundleVariant: 33 | -------------------------------------------------------------------------------- /Assets/Plugins/Metro/KinectVisualGestureBuilderUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/Metro/KinectVisualGestureBuilderUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/Metro/KinectVisualGestureBuilderUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b51ad12a45add75438b0b8494a1b5bc0 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 0 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | DefaultValueInitialized: true 24 | - first: 25 | Windows Store Apps: WindowsStoreApps 26 | second: 27 | enabled: 1 28 | settings: 29 | CPU: x86 30 | userData: 31 | assetBundleName: 32 | assetBundleVariant: 33 | -------------------------------------------------------------------------------- /Assets/Plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09ad8d922ee577c4a955dd15c3d5c1a3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/Kinect20.VisualGestureBuilder.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86/Kinect20.VisualGestureBuilder.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86/Kinect20.VisualGestureBuilder.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1db2dc2b011493340af3c486814773b6 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 1 29 | settings: 30 | CPU: AnyCPU 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 0 35 | settings: 36 | CPU: None 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 1 65 | settings: 66 | CPU: AnyCPU 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: None 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/KinectUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86/KinectUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86/KinectUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b65facb0c9c68b647b8ca7435b5f35c4 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 1 29 | settings: 30 | CPU: AnyCPU 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 0 35 | settings: 36 | CPU: None 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 1 65 | settings: 66 | CPU: AnyCPU 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: None 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/KinectVisualGestureBuilderUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86/KinectVisualGestureBuilderUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86/KinectVisualGestureBuilderUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c16b6c4f21217940a45b0a7980bbaa4 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 1 29 | settings: 30 | CPU: AnyCPU 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 0 35 | settings: 36 | CPU: None 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 1 65 | settings: 66 | CPU: AnyCPU 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: None 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/vgbtechs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32bd428b5627223479837cde8efb7429 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/vgbtechs/AdaBoostTech.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86/vgbtechs/AdaBoostTech.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86/vgbtechs/AdaBoostTech.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e64ddea403d2dab41a0b9e06194e24a8 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 1 29 | settings: 30 | CPU: AnyCPU 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 0 35 | settings: 36 | CPU: None 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 1 65 | settings: 66 | CPU: AnyCPU 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: None 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/vgbtechs/RFRProgressTech.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86/vgbtechs/RFRProgressTech.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86/vgbtechs/RFRProgressTech.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b9258fe0bd5fa44fbb9b84edddc8a80 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 1 29 | settings: 30 | CPU: AnyCPU 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 0 35 | settings: 36 | CPU: None 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 1 41 | settings: 42 | CPU: x86 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 0 47 | settings: 48 | CPU: None 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 1 65 | settings: 66 | CPU: AnyCPU 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 0 71 | settings: 72 | CPU: None 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68bf26fb852e6a145a28f0e805e5741d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/Kinect20.VisualGestureBuilder.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86_64/Kinect20.VisualGestureBuilder.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/Kinect20.VisualGestureBuilder.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56fe3b4f6cf934645b95af4f873f5dae 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86_64 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: None 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 1 35 | settings: 36 | CPU: AnyCPU 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 1 47 | settings: 48 | CPU: x86_64 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86_64 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86_64 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: 72 | CPU: AnyCPU 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/KinectUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86_64/KinectUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/KinectUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82e143d16729051459ae6a54b37e9eab 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86_64 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: None 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 1 35 | settings: 36 | CPU: AnyCPU 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 1 47 | settings: 48 | CPU: x86_64 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86_64 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86_64 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: 72 | CPU: AnyCPU 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/KinectVisualGestureBuilderUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86_64/KinectVisualGestureBuilderUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/KinectVisualGestureBuilderUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd1efe6facd8abe48967be99b7e8bb6e 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86_64 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: None 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 1 35 | settings: 36 | CPU: AnyCPU 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 1 47 | settings: 48 | CPU: x86_64 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86_64 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86_64 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: 72 | CPU: AnyCPU 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/vgbtechs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9563b8159adac5b4b8e9615210d575f1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/vgbtechs/AdaBoostTech.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86_64/vgbtechs/AdaBoostTech.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/vgbtechs/AdaBoostTech.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92bd007400232df44a5145238b2ee5f7 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86_64 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: None 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 1 35 | settings: 36 | CPU: AnyCPU 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 1 47 | settings: 48 | CPU: x86_64 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86_64 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86_64 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: 72 | CPU: AnyCPU 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/vgbtechs/RFRProgressTech.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/Plugins/x86_64/vgbtechs/RFRProgressTech.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/vgbtechs/RFRProgressTech.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b23429c6264008d44b3e037dfa9712c4 3 | PluginImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | iconMap: {} 7 | executionOrder: {} 8 | defineConstraints: [] 9 | isPreloaded: 0 10 | isOverridable: 0 11 | isExplicitlyReferenced: 0 12 | platformData: 13 | - first: 14 | Any: 15 | second: 16 | enabled: 1 17 | settings: {} 18 | - first: 19 | Editor: Editor 20 | second: 21 | enabled: 0 22 | settings: 23 | CPU: x86_64 24 | DefaultValueInitialized: true 25 | - first: 26 | Facebook: Win 27 | second: 28 | enabled: 0 29 | settings: 30 | CPU: None 31 | - first: 32 | Facebook: Win64 33 | second: 34 | enabled: 1 35 | settings: 36 | CPU: AnyCPU 37 | - first: 38 | Standalone: Linux 39 | second: 40 | enabled: 0 41 | settings: 42 | CPU: None 43 | - first: 44 | Standalone: Linux64 45 | second: 46 | enabled: 1 47 | settings: 48 | CPU: x86_64 49 | - first: 50 | Standalone: LinuxUniversal 51 | second: 52 | enabled: 1 53 | settings: 54 | CPU: x86_64 55 | - first: 56 | Standalone: OSXUniversal 57 | second: 58 | enabled: 0 59 | settings: 60 | CPU: x86_64 61 | - first: 62 | Standalone: Win 63 | second: 64 | enabled: 0 65 | settings: 66 | CPU: None 67 | - first: 68 | Standalone: Win64 69 | second: 70 | enabled: 1 71 | settings: 72 | CPU: AnyCPU 73 | userData: 74 | assetBundleName: 75 | assetBundleVariant: 76 | -------------------------------------------------------------------------------- /Assets/Standard Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04d9025b5d5375840b50d9806036a47a 3 | folderAsset: yes 4 | timeCreated: 1489306915 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CameraIntrinsics.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.CameraIntrinsics 8 | // 9 | [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)] 10 | public struct CameraIntrinsics 11 | { 12 | public float FocalLengthX { get; set; } 13 | public float FocalLengthY { get; set; } 14 | public float PrincipalPointX { get; set; } 15 | public float PrincipalPointY { get; set; } 16 | public float RadialDistortionSecondOrder { get; set; } 17 | public float RadialDistortionFourthOrder { get; set; } 18 | public float RadialDistortionSixthOrder { get; set; } 19 | 20 | public override int GetHashCode() 21 | { 22 | return FocalLengthX.GetHashCode() ^ FocalLengthY.GetHashCode() ^ 23 | PrincipalPointX.GetHashCode() ^ PrincipalPointY.GetHashCode() ^ 24 | RadialDistortionSecondOrder.GetHashCode() ^ RadialDistortionFourthOrder.GetHashCode() ^ 25 | RadialDistortionSixthOrder.GetHashCode(); 26 | } 27 | 28 | public override bool Equals(object obj) 29 | { 30 | if (!(obj is CameraIntrinsics)) 31 | { 32 | return false; 33 | } 34 | 35 | return this.Equals((CameraIntrinsics)obj); 36 | } 37 | 38 | public bool Equals(CameraIntrinsics obj) 39 | { 40 | return FocalLengthX.Equals(obj.FocalLengthX) && FocalLengthY.Equals(obj.FocalLengthY) && 41 | PrincipalPointX.Equals(obj.PrincipalPointX) && PrincipalPointY.Equals(obj.PrincipalPointY) && 42 | RadialDistortionSecondOrder.Equals(obj.RadialDistortionSecondOrder) && 43 | RadialDistortionFourthOrder.Equals(obj.RadialDistortionFourthOrder) && 44 | RadialDistortionSixthOrder.Equals(obj.RadialDistortionSixthOrder); 45 | } 46 | 47 | public static bool operator ==(CameraIntrinsics a, CameraIntrinsics b) 48 | { 49 | return a.Equals(b); 50 | } 51 | 52 | public static bool operator !=(CameraIntrinsics a, CameraIntrinsics b) 53 | { 54 | return !(a.Equals(b)); 55 | } 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CameraIntrinsics.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df25a3cb14d1e5348932c50f0d9e4135 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CollectionMap.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Helper 7 | { 8 | class CollectionMap : Helper.ThreadSafeDictionary where TValue : new() 9 | { 10 | public bool TryAddDefault(TKey key) 11 | { 12 | lock (_impl) 13 | { 14 | if (!_impl.ContainsKey(key)) 15 | { 16 | _impl.Add(key, new TValue()); 17 | return true; 18 | } 19 | else 20 | { 21 | return false; 22 | } 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Assets/Standard Assets/CollectionMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a8ce70913a08c09488543580b791b597 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b46ed17b11600224184822b4cceda429 3 | folderAsset: yes 4 | timeCreated: 1489306915 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor/KinectCopyPluginDataHelper.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEditor; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.IO; 6 | 7 | public static class KinectCopyPluginDataHelper 8 | { 9 | private const string DataDirSuffix = "_Data"; 10 | private const string PluginsDirName = "Plugins"; 11 | 12 | private static Dictionary TargetToDirName = new Dictionary() 13 | { 14 | {BuildTarget.StandaloneWindows, "x86"}, 15 | {BuildTarget.StandaloneWindows64, "x86_64"} 16 | }; 17 | 18 | public static void CopyPluginData(BuildTarget target, string buildTargetPath, string subDirToCopy) 19 | { 20 | string subDirName; 21 | if (!TargetToDirName.TryGetValue (target, out subDirName)) 22 | { 23 | // No work to do 24 | return; 25 | } 26 | 27 | // Get Required Paths 28 | var buildName = Path.GetFileNameWithoutExtension(buildTargetPath); 29 | var targetDir = Directory.GetParent(buildTargetPath); 30 | var separator = Path.DirectorySeparatorChar; 31 | 32 | var buildDataDir = targetDir.FullName + separator + buildName + DataDirSuffix + separator; 33 | var tgtPluginsDir = buildDataDir + separator + PluginsDirName + separator + subDirToCopy + separator; 34 | var srcPluginsDir = Application.dataPath + separator + PluginsDirName + separator + subDirName + separator + subDirToCopy + separator; 35 | 36 | CopyAll (new DirectoryInfo (srcPluginsDir), new DirectoryInfo(tgtPluginsDir)); 37 | } 38 | 39 | /// 40 | /// Recursive Copy Directory Method 41 | /// 42 | private static void CopyAll(DirectoryInfo source, DirectoryInfo target) 43 | { 44 | // Check if the source directory exists, if not, don't do any work. 45 | if (!Directory.Exists(source.FullName)) 46 | { 47 | return; 48 | } 49 | 50 | // Check if the target directory exists, if not, create it. 51 | if (!Directory.Exists(target.FullName)) 52 | { 53 | Directory.CreateDirectory(target.FullName); 54 | } 55 | 56 | // Copy each file into it’s new directory. 57 | foreach (var fileInfo in source.GetFiles()) 58 | { 59 | fileInfo.CopyTo (Path.Combine (target.ToString (), fileInfo.Name), true); 60 | } 61 | 62 | // Copy each subdirectory using recursion. 63 | foreach (var subDirInfo in source.GetDirectories()) 64 | { 65 | DirectoryInfo nextTargetSubDir = target.CreateSubdirectory(subDirInfo.Name); 66 | CopyAll(subDirInfo, nextTargetSubDir); 67 | } 68 | } 69 | 70 | } 71 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor/KinectCopyPluginDataHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9ee29984fc08464c8fab8499b2cc1ea 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor/KinectFacePostBuildCopyPluginData.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEditor.Callbacks; 3 | using System; 4 | 5 | public static class KinectFacePostBuildCopyPluginData 6 | { 7 | [PostProcessBuild] 8 | public static void OnPostProcessBuild(BuildTarget target, string path) 9 | { 10 | KinectCopyPluginDataHelper.CopyPluginData (target, path, "NuiDatabase"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor/KinectFacePostBuildCopyPluginData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e16904c578aa28343a2e38b3c0147503 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor/KinectVisualGestureBuilderPostBuildCopyPluginData.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEditor.Callbacks; 3 | using System; 4 | 5 | public static class KinectVisualGestureBuilderPostBuildCopyPluginData 6 | { 7 | [PostProcessBuild] 8 | public static void OnPostProcessBuild(BuildTarget target, string path) 9 | { 10 | KinectCopyPluginDataHelper.CopyPluginData (target, path, "vgbtechs"); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Editor/KinectVisualGestureBuilderPostBuildCopyPluginData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b57003b3c57eec84685a31008f2876e4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/EventPump.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Runtime.InteropServices; 4 | using System.Linq; 5 | 6 | namespace Helper 7 | { 8 | internal class EventPump : UnityEngine.MonoBehaviour 9 | { 10 | private static object s_Lock = new object(); 11 | private Queue m_Queue = new Queue(); 12 | 13 | public static EventPump Instance 14 | { 15 | get; 16 | private set; 17 | } 18 | 19 | public static void EnsureInitialized() 20 | { 21 | try 22 | { 23 | if (EventPump.Instance == null) 24 | { 25 | lock (s_Lock) 26 | { 27 | if (EventPump.Instance == null) 28 | { 29 | UnityEngine.GameObject parent = new UnityEngine.GameObject("Kinect Desktop Event Pump"); 30 | EventPump.Instance = parent.AddComponent(); 31 | DontDestroyOnLoad(parent); 32 | } 33 | } 34 | } 35 | } 36 | catch 37 | { 38 | UnityEngine.Debug.LogError("Events must be registered on the main thread."); 39 | return; 40 | } 41 | } 42 | 43 | private void Update() 44 | { 45 | lock (m_Queue) 46 | { 47 | while (m_Queue.Count > 0) 48 | { 49 | var action = m_Queue.Dequeue(); 50 | try 51 | { 52 | action.Invoke(); 53 | } 54 | catch { } 55 | } 56 | } 57 | } 58 | 59 | private void OnApplicationQuit() 60 | { 61 | var sensor = Windows.Kinect.KinectSensor.GetDefault(); 62 | if (sensor != null && sensor.IsOpen) 63 | { 64 | sensor.Close(); 65 | } 66 | 67 | NativeObjectCache.Flush(); 68 | } 69 | 70 | public void Enqueue(Action action) 71 | { 72 | lock (m_Queue) 73 | { 74 | m_Queue.Enqueue(action); 75 | } 76 | } 77 | } 78 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/EventPump.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 701e0706c6b21ee4fab81bb9e69ef832 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/ExceptionHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace Helper 5 | { 6 | public static class ExceptionHelper 7 | { 8 | private const int E_NOTIMPL = unchecked((int)0x80004001); 9 | private const int E_OUTOFMEMORY = unchecked((int)0x8007000E); 10 | private const int E_INVALIDARG = unchecked((int)0x80070057); 11 | private const int E_POINTER = unchecked((int) 0x80004003); 12 | private const int E_PENDING = unchecked((int)0x8000000A); 13 | private const int E_FAIL = unchecked((int)0x80004005); 14 | 15 | public static void CheckLastError() 16 | { 17 | int hr = Marshal.GetLastWin32Error(); 18 | 19 | if ((hr == E_PENDING) || (hr == E_FAIL)) 20 | { 21 | // Ignore E_PENDING/E_FAIL - We use this to indicate no pending or missed frames 22 | return; 23 | } 24 | 25 | if (hr < 0) 26 | { 27 | Exception exception = Marshal.GetExceptionForHR(hr); 28 | string message = string.Format("This API has returned an exception from an HRESULT: 0x{0:X}", hr); 29 | 30 | switch (hr) 31 | { 32 | case E_NOTIMPL: 33 | throw new NotImplementedException(message, exception); 34 | 35 | case E_OUTOFMEMORY: 36 | throw new OutOfMemoryException(message, exception); 37 | 38 | case E_INVALIDARG: 39 | throw new ArgumentException(message, exception); 40 | 41 | case E_POINTER: 42 | throw new ArgumentNullException(message, exception); 43 | 44 | default: 45 | throw new InvalidOperationException(message, exception); 46 | } 47 | } 48 | } 49 | } 50 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/ExceptionHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c74717cd7640384083c1a01ef88993c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/INativeWrapper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Runtime.InteropServices; 4 | using System.Linq; 5 | 6 | namespace Helper 7 | { 8 | internal interface INativeWrapper 9 | { 10 | System.IntPtr nativePtr { get; } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/INativeWrapper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20715b97c56809d41991f09af4ca1791 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/KinectBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7bd6d021b09929e42ae72b49060bb91e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/KinectFaceSpecialCases.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7785145a24dddb2499dd2665acea482c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/KinectSpecialCases.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c59b79770236fae42a76e291570f2447 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/KinectVisualGestureBuilderSpecialCases.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 485600beef8b3194a94d471e24181020 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d594f85f45e31c74fa72b5ab471eb2bf 3 | folderAsset: yes 4 | timeCreated: 1489306967 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e164dac7cca44f489c4e8715cec32eb 3 | folderAsset: yes 4 | timeCreated: 1489306967 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eaad3d41072649e43bbc9002ab44170f 3 | folderAsset: yes 4 | timeCreated: 1489310097 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/CaptureStatusChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.CaptureStatusChangedEventArgs 8 | // 9 | public sealed partial class CaptureStatusChangedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal CaptureStatusChangedEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Microsoft_Kinect_Face_CaptureStatusChangedEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~CaptureStatusChangedEventArgs() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Microsoft_Kinect_Face_CaptureStatusChangedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Microsoft_Kinect_Face_CaptureStatusChangedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | Microsoft_Kinect_Face_CaptureStatusChangedEventArgs_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | 47 | // Public Properties 48 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 49 | private static extern Microsoft.Kinect.Face.FaceModelBuilderCaptureStatus Microsoft_Kinect_Face_CaptureStatusChangedEventArgs_get_PreviousCaptureStatus(RootSystem.IntPtr pNative); 50 | public Microsoft.Kinect.Face.FaceModelBuilderCaptureStatus PreviousCaptureStatus 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("CaptureStatusChangedEventArgs"); 57 | } 58 | 59 | return Microsoft_Kinect_Face_CaptureStatusChangedEventArgs_get_PreviousCaptureStatus(_pNative); 60 | } 61 | } 62 | 63 | private void __EventCleanup() 64 | { 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/CaptureStatusChangedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c87f41c9cfadd642b1f84d57b8c30a1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/CollectionStatusChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.CollectionStatusChangedEventArgs 8 | // 9 | public sealed partial class CollectionStatusChangedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal CollectionStatusChangedEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Microsoft_Kinect_Face_CollectionStatusChangedEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~CollectionStatusChangedEventArgs() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Microsoft_Kinect_Face_CollectionStatusChangedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Microsoft_Kinect_Face_CollectionStatusChangedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | Microsoft_Kinect_Face_CollectionStatusChangedEventArgs_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | 47 | // Public Properties 48 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 49 | private static extern Microsoft.Kinect.Face.FaceModelBuilderCollectionStatus Microsoft_Kinect_Face_CollectionStatusChangedEventArgs_get_PreviousCollectionStatus(RootSystem.IntPtr pNative); 50 | public Microsoft.Kinect.Face.FaceModelBuilderCollectionStatus PreviousCollectionStatus 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("CollectionStatusChangedEventArgs"); 57 | } 58 | 59 | return Microsoft_Kinect_Face_CollectionStatusChangedEventArgs_get_PreviousCollectionStatus(_pNative); 60 | } 61 | } 62 | 63 | private void __EventCleanup() 64 | { 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/CollectionStatusChangedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4497b254a9b1bae4ca5157ae35c47bf1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceAlignment.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c80d24038f4a4fc488149a1561ab1746 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceAlignmentQuality.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.FaceAlignmentQuality 8 | // 9 | public enum FaceAlignmentQuality : int 10 | { 11 | High =0, 12 | Low =1, 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceAlignmentQuality.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ed0a3df982bb6a144bc4cb50fb7de54c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32af9b5a7699c1b4982a148d371979dc 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf7d5b91561bf0f4b90b6d5ad431dbd9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceFrameFeatures.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.FaceFrameFeatures 8 | // 9 | [RootSystem.Flags] 10 | public enum FaceFrameFeatures : uint 11 | { 12 | None =0, 13 | BoundingBoxInInfraredSpace =1, 14 | PointsInInfraredSpace =2, 15 | BoundingBoxInColorSpace =4, 16 | PointsInColorSpace =8, 17 | RotationOrientation =16, 18 | Happy =32, 19 | RightEyeClosed =64, 20 | LeftEyeClosed =128, 21 | MouthOpen =256, 22 | MouthMoved =512, 23 | LookingAway =1024, 24 | Glasses =2048, 25 | FaceEngagement =4096, 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceFrameFeatures.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af8f77b9970b0af4082fad2f8b4d006a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a8b9a40c9922ec40b3ba51ded20c5db 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e050f8eb2e76d9a439db76307590ee74 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceFrameResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbeea8bdf5eb40e4495e75ff0632da4a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3321d9eae8e998f42ae3c7353a60ec22 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: baacdad647713fc498323c7cf8b096cb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModelBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd05589ae4bda0d47ad124736e6c85d3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModelBuilderAttributes.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.FaceModelBuilderAttributes 8 | // 9 | [RootSystem.Flags] 10 | public enum FaceModelBuilderAttributes : uint 11 | { 12 | None =0, 13 | SkinColor =1, 14 | HairColor =2, 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModelBuilderAttributes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a967da5edcd0594e9b63d0de18ee15a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModelBuilderCaptureStatus.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.FaceModelBuilderCaptureStatus 8 | // 9 | public enum FaceModelBuilderCaptureStatus : int 10 | { 11 | GoodFrameCapture =0, 12 | OtherViewsNeeded =1, 13 | LostFaceTrack =2, 14 | FaceTooFar =3, 15 | FaceTooNear =4, 16 | MovingTooFast =5, 17 | SystemError =6, 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModelBuilderCaptureStatus.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ff2988973e23a4479d7fddc98bbf540 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModelBuilderCollectionStatus.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.FaceModelBuilderCollectionStatus 8 | // 9 | [RootSystem.Flags] 10 | public enum FaceModelBuilderCollectionStatus : uint 11 | { 12 | Complete =0, 13 | MoreFramesNeeded =1, 14 | FrontViewFramesNeeded =2, 15 | LeftViewsNeeded =4, 16 | RightViewsNeeded =8, 17 | TiltedUpViewsNeeded =16, 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModelBuilderCollectionStatus.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19ca1a980cdafaf4ea49c8721d96e583 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceModelData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1a7c49637a61a440b84e64ea120bdaa 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FacePointType.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.FacePointType 8 | // 9 | public enum FacePointType : int 10 | { 11 | None =-1, 12 | EyeLeft =0, 13 | EyeRight =1, 14 | Nose =2, 15 | MouthCornerLeft =3, 16 | MouthCornerRight =4, 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FacePointType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8dd9bd9a4325d84592d293583823ba7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceProperty.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.FaceProperty 8 | // 9 | public enum FaceProperty : int 10 | { 11 | Happy =0, 12 | Engaged =1, 13 | WearingGlasses =2, 14 | LeftEyeClosed =3, 15 | RightEyeClosed =4, 16 | MouthOpen =5, 17 | MouthMoved =6, 18 | LookingAway =7, 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceProperty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2089438cf0c1eb948844bb8cb541d73d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceShapeAnimations.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.FaceShapeAnimations 8 | // 9 | public enum FaceShapeAnimations : int 10 | { 11 | JawOpen =0, 12 | LipPucker =1, 13 | JawSlideRight =2, 14 | LipStretcherRight =3, 15 | LipStretcherLeft =4, 16 | LipCornerPullerLeft =5, 17 | LipCornerPullerRight =6, 18 | LipCornerDepressorLeft =7, 19 | LipCornerDepressorRight =8, 20 | LeftcheekPuff =9, 21 | RightcheekPuff =10, 22 | LefteyeClosed =11, 23 | RighteyeClosed =12, 24 | RighteyebrowLowerer =13, 25 | LefteyebrowLowerer =14, 26 | LowerlipDepressorLeft =15, 27 | LowerlipDepressorRight =16, 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceShapeAnimations.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ffe6104a23e9c547bac6f21266c01c3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/FaceShapeDeformations.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d7f01266ac9f394db30e45707502cee 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/HighDefinitionFaceFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30c70c105e885b040bd16ad58f66b61e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/HighDefinitionFaceFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c3c061401eac3c945aa08c156ad10f76 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/HighDefinitionFaceFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a5dfa8669f9ac044bd9e30ad2bbc39c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/HighDefinitionFaceFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32c46c62cc735ee4ab92302c7f72f625 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/HighDefinitionFaceFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee29e558c22dba1449f6cb2338fc7b89 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/HighDetailFacePoints.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.HighDetailFacePoints 8 | // 9 | public enum HighDetailFacePoints : int 10 | { 11 | LefteyeInnercorner =210, 12 | LefteyeOutercorner =469, 13 | LefteyeMidtop =241, 14 | LefteyeMidbottom =1104, 15 | RighteyeInnercorner =843, 16 | RighteyeOutercorner =1117, 17 | RighteyeMidtop =731, 18 | RighteyeMidbottom =1090, 19 | LefteyebrowInner =346, 20 | LefteyebrowOuter =140, 21 | LefteyebrowCenter =222, 22 | RighteyebrowInner =803, 23 | RighteyebrowOuter =758, 24 | RighteyebrowCenter =849, 25 | MouthLeftcorner =91, 26 | MouthRightcorner =687, 27 | MouthUpperlipMidtop =19, 28 | MouthUpperlipMidbottom =1072, 29 | MouthLowerlipMidtop =10, 30 | MouthLowerlipMidbottom =8, 31 | NoseTip =18, 32 | NoseBottom =14, 33 | NoseBottomleft =156, 34 | NoseBottomright =783, 35 | NoseTop =24, 36 | NoseTopleft =151, 37 | NoseTopright =772, 38 | ForeheadCenter =28, 39 | LeftcheekCenter =412, 40 | RightcheekCenter =933, 41 | Leftcheekbone =458, 42 | Rightcheekbone =674, 43 | ChinCenter =4, 44 | LowerjawLeftend =1307, 45 | LowerjawRightend =1327, 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/HighDetailFacePoints.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c029e1545e717774180164006ad9df10 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/KinectFaceUnityAddinUtils.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.KinectFaceUnityAddinUtils 8 | // 9 | public sealed partial class KinectFaceUnityAddinUtils 10 | { 11 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 12 | private static extern void KinectFaceUnityAddin_FreeMemory(RootSystem.IntPtr pToDealloc); 13 | public static void FreeMemory(RootSystem.IntPtr pToDealloc) 14 | { 15 | KinectFaceUnityAddin_FreeMemory(pToDealloc); 16 | } 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/KinectFaceUnityAddinUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac81ba43f0d847e4292e11b97a26886e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/RectI.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.RectI 8 | // 9 | [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)] 10 | public struct RectI 11 | { 12 | public int Left { get; set; } 13 | public int Top { get; set; } 14 | public int Right { get; set; } 15 | public int Bottom { get; set; } 16 | 17 | public override int GetHashCode() 18 | { 19 | return Left.GetHashCode() ^ Top.GetHashCode() ^ Right.GetHashCode() ^ Bottom.GetHashCode(); 20 | } 21 | 22 | public override bool Equals(object obj) 23 | { 24 | if (!(obj is RectI)) 25 | { 26 | return false; 27 | } 28 | 29 | return this.Equals((RectI)obj); 30 | } 31 | 32 | public bool Equals(RectI obj) 33 | { 34 | return Left.Equals(obj.Left) && Top.Equals(obj.Top) && Right.Equals(obj.Right) && Bottom.Equals(obj.Bottom); 35 | } 36 | 37 | public static bool operator ==(RectI a, RectI b) 38 | { 39 | return a.Equals(b); 40 | } 41 | 42 | public static bool operator !=(RectI a, RectI b) 43 | { 44 | return !(a.Equals(b)); 45 | } 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/RectI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47c837346fc6f864c8b1b4a358b0b0ac 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/TrackingIdLostEventArgs.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.Face 5 | { 6 | // 7 | // Microsoft.Kinect.Face.TrackingIdLostEventArgs 8 | // 9 | public sealed partial class TrackingIdLostEventArgs : RootSystem.EventArgs, Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal TrackingIdLostEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Microsoft_Kinect_Face_TrackingIdLostEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~TrackingIdLostEventArgs() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Microsoft_Kinect_Face_TrackingIdLostEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Microsoft_Kinect_Face_TrackingIdLostEventArgs_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | Microsoft_Kinect_Face_TrackingIdLostEventArgs_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | 47 | // Public Properties 48 | [RootSystem.Runtime.InteropServices.DllImport("KinectFaceUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 49 | private static extern ulong Microsoft_Kinect_Face_TrackingIdLostEventArgs_get_TrackingId(RootSystem.IntPtr pNative); 50 | public ulong TrackingId 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("TrackingIdLostEventArgs"); 57 | } 58 | 59 | return Microsoft_Kinect_Face_TrackingIdLostEventArgs_get_TrackingId(_pNative); 60 | } 61 | } 62 | 63 | private void __EventCleanup() 64 | { 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/Face/TrackingIdLostEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d215640647c68db4297e6abc47e9b077 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd437d1b21f82e34daafa0d2fc879400 3 | folderAsset: yes 4 | timeCreated: 1489306967 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/ContinuousGestureResult.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.VisualGestureBuilder 5 | { 6 | // 7 | // Microsoft.Kinect.VisualGestureBuilder.ContinuousGestureResult 8 | // 9 | public sealed partial class ContinuousGestureResult : Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal ContinuousGestureResult(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Microsoft_Kinect_VisualGestureBuilder_ContinuousGestureResult_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~ContinuousGestureResult() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectVisualGestureBuilderUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Microsoft_Kinect_VisualGestureBuilder_ContinuousGestureResult_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectVisualGestureBuilderUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Microsoft_Kinect_VisualGestureBuilder_ContinuousGestureResult_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | Microsoft_Kinect_VisualGestureBuilder_ContinuousGestureResult_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | 47 | // Public Properties 48 | [RootSystem.Runtime.InteropServices.DllImport("KinectVisualGestureBuilderUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 49 | private static extern float Microsoft_Kinect_VisualGestureBuilder_ContinuousGestureResult_get_Progress(RootSystem.IntPtr pNative); 50 | public float Progress 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("ContinuousGestureResult"); 57 | } 58 | 59 | return Microsoft_Kinect_VisualGestureBuilder_ContinuousGestureResult_get_Progress(_pNative); 60 | } 61 | } 62 | 63 | private void __EventCleanup() 64 | { 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/ContinuousGestureResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39ba8f678e5073b44804c65fbbaf302c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/DiscreteGestureResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 348b878afc4a938499c34b47772438f3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/Gesture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a84b2c069de62a14c94940154ec6f7da 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/GestureType.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.VisualGestureBuilder 5 | { 6 | // 7 | // Microsoft.Kinect.VisualGestureBuilder.GestureType 8 | // 9 | public enum GestureType : int 10 | { 11 | None =0, 12 | Discrete =1, 13 | Continuous =2, 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/GestureType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75c13895e20797f4fadf7ce99a885eb9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/KinectVisualGestureBuilderUnityAddinUtils.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.VisualGestureBuilder 5 | { 6 | // 7 | // Microsoft.Kinect.VisualGestureBuilder.KinectVisualGestureBuilderUnityAddinUtils 8 | // 9 | public sealed partial class KinectVisualGestureBuilderUnityAddinUtils 10 | { 11 | [RootSystem.Runtime.InteropServices.DllImport("KinectVisualGestureBuilderUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 12 | private static extern void KinectVisualGestureBuilderUnityAddin_FreeMemory(RootSystem.IntPtr pToDealloc); 13 | public static void FreeMemory(RootSystem.IntPtr pToDealloc) 14 | { 15 | KinectVisualGestureBuilderUnityAddin_FreeMemory(pToDealloc); 16 | } 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/KinectVisualGestureBuilderUnityAddinUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d5a0b5ff72c39a4e95865b317bd147d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/TrackingIdLostEventArgs.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Microsoft.Kinect.VisualGestureBuilder 5 | { 6 | // 7 | // Microsoft.Kinect.VisualGestureBuilder.TrackingIdLostEventArgs 8 | // 9 | public sealed partial class TrackingIdLostEventArgs : RootSystem.EventArgs, Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal TrackingIdLostEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Microsoft_Kinect_VisualGestureBuilder_TrackingIdLostEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~TrackingIdLostEventArgs() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectVisualGestureBuilderUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Microsoft_Kinect_VisualGestureBuilder_TrackingIdLostEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectVisualGestureBuilderUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Microsoft_Kinect_VisualGestureBuilder_TrackingIdLostEventArgs_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | Microsoft_Kinect_VisualGestureBuilder_TrackingIdLostEventArgs_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | 47 | // Public Properties 48 | [RootSystem.Runtime.InteropServices.DllImport("KinectVisualGestureBuilderUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 49 | private static extern ulong Microsoft_Kinect_VisualGestureBuilder_TrackingIdLostEventArgs_get_TrackingId(RootSystem.IntPtr pNative); 50 | public ulong TrackingId 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("TrackingIdLostEventArgs"); 57 | } 58 | 59 | return Microsoft_Kinect_VisualGestureBuilder_TrackingIdLostEventArgs_get_TrackingId(_pNative); 60 | } 61 | } 62 | 63 | private void __EventCleanup() 64 | { 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/TrackingIdLostEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa8002d3a67f41f48bfaa702a83320ae 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/VisualGestureBuilderDatabase.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f131b0b4bd823f408e9f36fa0f4b620 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/VisualGestureBuilderFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47c323266c46b964493ab406ea288659 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/VisualGestureBuilderFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 487a1dbae6735f34695213eaf0e7486b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/VisualGestureBuilderFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92b159bf1aed2df4986d0398eda39fe7 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/VisualGestureBuilderFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba8bac3cd7bf2b841ad9dd3acb0b34e1 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Microsoft/Kinect/VisualGestureBuilder/VisualGestureBuilderFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 641d13669aad591478663a1e1aecf37d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/NativeObjectCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1f77dd67b03a6c43baea840653a8393 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/NativeWrapper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Runtime.InteropServices; 4 | using System.Linq; 5 | 6 | namespace Helper 7 | { 8 | public static class NativeWrapper 9 | { 10 | public static System.IntPtr GetNativePtr(Object obj) 11 | { 12 | if(obj == null) 13 | { 14 | return System.IntPtr.Zero; 15 | } 16 | 17 | var nativeWrapperIface = obj as INativeWrapper; 18 | if(nativeWrapperIface != null) 19 | { 20 | return nativeWrapperIface.nativePtr; 21 | } 22 | else 23 | { 24 | throw new ArgumentException("Object must wrap native type"); 25 | } 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/NativeWrapper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 28c081e2f607f374487741566d989c9b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/SmartGCHandle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Runtime.InteropServices; 4 | using System.Linq; 5 | 6 | namespace Helper 7 | { 8 | public class SmartGCHandle : IDisposable 9 | { 10 | private GCHandle handle; 11 | public SmartGCHandle(GCHandle handle) 12 | { 13 | this.handle = handle; 14 | } 15 | 16 | ~SmartGCHandle() 17 | { 18 | Dispose(false); 19 | } 20 | 21 | public System.IntPtr AddrOfPinnedObject() 22 | { 23 | return handle.AddrOfPinnedObject(); 24 | } 25 | 26 | public virtual void Dispose() 27 | { 28 | Dispose(true); 29 | } 30 | 31 | protected virtual void Dispose(bool disposing) 32 | { 33 | this.handle.Free(); 34 | } 35 | 36 | public static implicit operator GCHandle(SmartGCHandle other) 37 | { 38 | 39 | return other.handle; 40 | } 41 | } 42 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/SmartGCHandle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c80caf7da43ac94b9e8943bac67cd46 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/ThreadSafeDictionary.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Runtime.InteropServices; 4 | using System.Linq; 5 | 6 | namespace Helper 7 | { 8 | public class ThreadSafeDictionary 9 | { 10 | protected readonly Dictionary _impl = new Dictionary(); 11 | public TValue this[TKey key] 12 | { 13 | get 14 | { 15 | lock (_impl) 16 | { 17 | return _impl[key]; 18 | } 19 | } 20 | set 21 | { 22 | lock (_impl) 23 | { 24 | _impl[key] = value; 25 | } 26 | } 27 | } 28 | 29 | public void Add(TKey key, TValue value) 30 | { 31 | lock (_impl) 32 | { 33 | _impl.Add(key, value); 34 | } 35 | } 36 | 37 | public bool TryGetValue(TKey key, out TValue value) 38 | { 39 | lock (_impl) 40 | { 41 | return _impl.TryGetValue(key, out value); 42 | } 43 | } 44 | 45 | public bool Remove(TKey key) 46 | { 47 | lock (_impl) 48 | { 49 | return _impl.Remove(key); 50 | } 51 | } 52 | 53 | public void Clear() 54 | { 55 | lock (_impl) 56 | { 57 | _impl.Clear(); 58 | } 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /Assets/Standard Assets/ThreadSafeDictionary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 549c8d742f7bbe648a2c7090db7db367 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4433c363ee62bfb438199ac85f0ba66a 3 | folderAsset: yes 4 | timeCreated: 1489306915 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Data.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84508ddeafb1f7544ab98112d7b7e201 3 | folderAsset: yes 4 | timeCreated: 1489306915 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Data/PropertyChangedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f717bd2a5c39cc43a49fc8904889932 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e7642f6a7fe5864f8afa2d3574c7a2f 3 | folderAsset: yes 4 | timeCreated: 1489306915 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Activity.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.Activity 8 | // 9 | public enum Activity : int 10 | { 11 | EyeLeftClosed =0, 12 | EyeRightClosed =1, 13 | MouthOpen =2, 14 | MouthMoved =3, 15 | LookingAway =4, 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Activity.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec6785f19ac6c494a9957fa63f49fcf5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Appearance.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.Appearance 8 | // 9 | public enum Appearance : int 10 | { 11 | WearingGlasses =0, 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Appearance.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 00eb0d9c4964c0b4f9e3090704ff7201 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeam.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e64f7eb8de6f72e42874eb2ea7c01be5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ff93fd69396b944ea1e0d067cf5b091 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb78a9668fb2c694881a216e349cb1e9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamFrameList.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.AudioBeamFrameList 8 | // 9 | public sealed partial class AudioBeamFrameList : RootSystem.IDisposable, Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal AudioBeamFrameList(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Kinect_AudioBeamFrameList_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~AudioBeamFrameList() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Windows_Kinect_AudioBeamFrameList_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Windows_Kinect_AudioBeamFrameList_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | 42 | if (disposing) 43 | { 44 | Windows_Kinect_AudioBeamFrameList_Dispose(_pNative); 45 | } 46 | Windows_Kinect_AudioBeamFrameList_ReleaseObject(ref _pNative); 47 | 48 | _pNative = RootSystem.IntPtr.Zero; 49 | } 50 | 51 | 52 | // Public Methods 53 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 54 | private static extern void Windows_Kinect_AudioBeamFrameList_Dispose(RootSystem.IntPtr pNative); 55 | public void Dispose() 56 | { 57 | if (_pNative == RootSystem.IntPtr.Zero) 58 | { 59 | return; 60 | } 61 | 62 | Dispose(true); 63 | RootSystem.GC.SuppressFinalize(this); 64 | } 65 | 66 | private void __EventCleanup() 67 | { 68 | } 69 | } 70 | 71 | } 72 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamFrameList.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe7ef6722da9a6d42b589d3f8b35b6f9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df51c172437a76942a0ec4a4f1438a8f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0fe91384e0a914a4985b0cc2f1026a72 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamMode.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.AudioBeamMode 8 | // 9 | public enum AudioBeamMode : int 10 | { 11 | Automatic =0, 12 | Manual =1, 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamMode.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f287bc065b7e7a4faa7cf96c175eabb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBeamSubFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3bf3859145801247a7f6d4dcd90b2be 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBodyCorrelation.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.AudioBodyCorrelation 8 | // 9 | public sealed partial class AudioBodyCorrelation : Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal AudioBodyCorrelation(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Kinect_AudioBodyCorrelation_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~AudioBodyCorrelation() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Windows_Kinect_AudioBodyCorrelation_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Windows_Kinect_AudioBodyCorrelation_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | Windows_Kinect_AudioBodyCorrelation_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | 47 | // Public Properties 48 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 49 | private static extern ulong Windows_Kinect_AudioBodyCorrelation_get_BodyTrackingId(RootSystem.IntPtr pNative); 50 | public ulong BodyTrackingId 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("AudioBodyCorrelation"); 57 | } 58 | 59 | return Windows_Kinect_AudioBodyCorrelation_get_BodyTrackingId(_pNative); 60 | } 61 | } 62 | 63 | private void __EventCleanup() 64 | { 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioBodyCorrelation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f12e3715b57390a47aeecc0046c6d6ff 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/AudioSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb60632e999b8d44cb5cfd848e264abf 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Body.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2de6a71b01a15e740a2fb488ab8a1b07 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19d23b65a55461b4c8fcfc815e9a8be5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 676ce9850965f6d4fad5e20fa2a8da30 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3af2f300d248d614eb0f026c16be6e51 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 083a7736def5ad3429a51cc96a6c4564 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3679e372811a218438e365b6da52873c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyIndexFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31029a9c200fe984790d50a6d2875e32 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyIndexFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 673826e3a38138946b030da95a1d0f95 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyIndexFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a9ba9eb393e51241bb15db5d3bf3390 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyIndexFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ee08767e1297454a93a5759b975860d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/BodyIndexFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7568d115ed2fcca4ba26af8d7e3252c6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/CameraSpacePoint.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.CameraSpacePoint 8 | // 9 | [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)] 10 | public struct CameraSpacePoint 11 | { 12 | public float X { get; set; } 13 | public float Y { get; set; } 14 | public float Z { get; set; } 15 | 16 | public override int GetHashCode() 17 | { 18 | return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode(); 19 | } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | if (!(obj is CameraSpacePoint)) 24 | { 25 | return false; 26 | } 27 | 28 | return this.Equals((CameraSpacePoint)obj); 29 | } 30 | 31 | public bool Equals(CameraSpacePoint obj) 32 | { 33 | return X.Equals(obj.X) && Y.Equals(obj.Y) && Z.Equals(obj.Z); 34 | } 35 | 36 | public static bool operator ==(CameraSpacePoint a, CameraSpacePoint b) 37 | { 38 | return a.Equals(b); 39 | } 40 | 41 | public static bool operator !=(CameraSpacePoint a, CameraSpacePoint b) 42 | { 43 | return !(a.Equals(b)); 44 | } 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/CameraSpacePoint.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ef37675a811881f44be680e69695e9e3 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorCameraSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f199f6bb5e11b941b4c707a6783daaa 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e3ef938a829c1d4385d938971be0b73 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 383ab6b5e32edbc4ca3eca80db481330 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c8a043d45b0ce641bfe872c2654ec00 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05fb49d39d96f5a4ea512141fab5cff6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31be1a3a8cdc0d1408a7eada947fe966 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorImageFormat.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.ColorImageFormat 8 | // 9 | public enum ColorImageFormat : int 10 | { 11 | None =0, 12 | Rgba =1, 13 | Yuv =2, 14 | Bgra =3, 15 | Bayer =4, 16 | Yuy2 =5, 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorImageFormat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a203492c798220244927d338800eec2f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorSpacePoint.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.ColorSpacePoint 8 | // 9 | [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)] 10 | public struct ColorSpacePoint 11 | { 12 | public float X { get; set; } 13 | public float Y { get; set; } 14 | 15 | public override int GetHashCode() 16 | { 17 | return X.GetHashCode() ^ Y.GetHashCode(); 18 | } 19 | 20 | public override bool Equals(object obj) 21 | { 22 | if (!(obj is ColorSpacePoint)) 23 | { 24 | return false; 25 | } 26 | 27 | return this.Equals((ColorSpacePoint)obj); 28 | } 29 | 30 | public bool Equals(ColorSpacePoint obj) 31 | { 32 | return X.Equals(obj.X) && Y.Equals(obj.Y); 33 | } 34 | 35 | public static bool operator ==(ColorSpacePoint a, ColorSpacePoint b) 36 | { 37 | return a.Equals(b); 38 | } 39 | 40 | public static bool operator !=(ColorSpacePoint a, ColorSpacePoint b) 41 | { 42 | return !(a.Equals(b)); 43 | } 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/ColorSpacePoint.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9eb5711cb5d886b45883ead06f286283 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/CoordinateMapper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 452370c006443bb40bc44aa5d4bd8def 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/CoordinateMappingChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.CoordinateMappingChangedEventArgs 8 | // 9 | public sealed partial class CoordinateMappingChangedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal CoordinateMappingChangedEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Kinect_CoordinateMappingChangedEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~CoordinateMappingChangedEventArgs() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Windows_Kinect_CoordinateMappingChangedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Windows_Kinect_CoordinateMappingChangedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | Windows_Kinect_CoordinateMappingChangedEventArgs_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | private void __EventCleanup() 47 | { 48 | } 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/CoordinateMappingChangedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82cb5d8afd91cba43a5380999e22e2cb 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DepthFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1cc3d786ee7037e40b806839fdca184a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DepthFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c09496fb04e3d9c43b5fbf4ac998ff6e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DepthFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19e437f0dfc211640b0b56e1e0221a8f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DepthFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f53daf0889b08bf4494ecbd1914a99d6 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DepthFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ec16a6a3c150d4c479a008f45c1851ec 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DepthSpacePoint.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.DepthSpacePoint 8 | // 9 | [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)] 10 | public struct DepthSpacePoint 11 | { 12 | public float X { get; set; } 13 | public float Y { get; set; } 14 | 15 | public override int GetHashCode() 16 | { 17 | return X.GetHashCode() ^ Y.GetHashCode(); 18 | } 19 | 20 | public override bool Equals(object obj) 21 | { 22 | if (!(obj is DepthSpacePoint)) 23 | { 24 | return false; 25 | } 26 | 27 | return this.Equals((DepthSpacePoint)obj); 28 | } 29 | 30 | public bool Equals(DepthSpacePoint obj) 31 | { 32 | return X.Equals(obj.X) && Y.Equals(obj.Y); 33 | } 34 | 35 | public static bool operator ==(DepthSpacePoint a, DepthSpacePoint b) 36 | { 37 | return a.Equals(b); 38 | } 39 | 40 | public static bool operator !=(DepthSpacePoint a, DepthSpacePoint b) 41 | { 42 | return !(a.Equals(b)); 43 | } 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DepthSpacePoint.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87a047e9c131269479b899f8dd9cac89 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DetectionResult.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.DetectionResult 8 | // 9 | public enum DetectionResult : int 10 | { 11 | Unknown =0, 12 | No =1, 13 | Maybe =2, 14 | Yes =3, 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/DetectionResult.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6f242e10b172a6340a49529ef0ad2d90 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Expression.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.Expression 8 | // 9 | public enum Expression : int 10 | { 11 | Neutral =0, 12 | Happy =1, 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Expression.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13c84518ab4fa60499742f896207e91e 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/FrameCapturedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 085ec75a343f958408701e00ba2168ce 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/FrameCapturedStatus.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.FrameCapturedStatus 8 | // 9 | public enum FrameCapturedStatus : int 10 | { 11 | Unknown =0, 12 | Queued =1, 13 | Dropped =2, 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/FrameCapturedStatus.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ccf1cabe437c4764d9818a2fd30827f0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/FrameDescription.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 855fcb405500ab14b8902d15d27ed0ab 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/FrameEdges.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.FrameEdges 8 | // 9 | [RootSystem.Flags] 10 | public enum FrameEdges : uint 11 | { 12 | None =0, 13 | Right =1, 14 | Left =2, 15 | Top =4, 16 | Bottom =8, 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/FrameEdges.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34cd6f0c5382cd9458b3b1ef06e001ba 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/FrameSourceTypes.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.FrameSourceTypes 8 | // 9 | [RootSystem.Flags] 10 | public enum FrameSourceTypes : uint 11 | { 12 | None =0, 13 | Color =1, 14 | Infrared =2, 15 | LongExposureInfrared =4, 16 | Depth =8, 17 | BodyIndex =16, 18 | Body =32, 19 | Audio =64, 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/FrameSourceTypes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bbb237f869b7c684aa4bff904d74ceed 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/HandState.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.HandState 8 | // 9 | public enum HandState : int 10 | { 11 | Unknown =0, 12 | NotTracked =1, 13 | Open =2, 14 | Closed =3, 15 | Lasso =4, 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/HandState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61c6c0071af9a08459843e571124cbef 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/InfraredFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 716d52dd0cd344f439914ed99e62b0e5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/InfraredFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47e956b7b74fcd447a28c068f2fcaf56 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/InfraredFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0937005bb1a679a40a0bffab4f8fa84b 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/InfraredFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 89acda427f65cc64dbe156710db8760f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/InfraredFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b41da8047304434eb12d404c2f99979 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/IsAvailableChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.IsAvailableChangedEventArgs 8 | // 9 | public sealed partial class IsAvailableChangedEventArgs : RootSystem.EventArgs, Helper.INativeWrapper 10 | 11 | { 12 | internal RootSystem.IntPtr _pNative; 13 | RootSystem.IntPtr Helper.INativeWrapper.nativePtr { get { return _pNative; } } 14 | 15 | // Constructors and Finalizers 16 | internal IsAvailableChangedEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Kinect_IsAvailableChangedEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~IsAvailableChangedEventArgs() 23 | { 24 | Dispose(false); 25 | } 26 | 27 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 28 | private static extern void Windows_Kinect_IsAvailableChangedEventArgs_ReleaseObject(ref RootSystem.IntPtr pNative); 29 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 30 | private static extern void Windows_Kinect_IsAvailableChangedEventArgs_AddRefObject(ref RootSystem.IntPtr pNative); 31 | private void Dispose(bool disposing) 32 | { 33 | if (_pNative == RootSystem.IntPtr.Zero) 34 | { 35 | return; 36 | } 37 | 38 | __EventCleanup(); 39 | 40 | Helper.NativeObjectCache.RemoveObject(_pNative); 41 | Windows_Kinect_IsAvailableChangedEventArgs_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | 47 | // Public Properties 48 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 49 | private static extern bool Windows_Kinect_IsAvailableChangedEventArgs_get_IsAvailable(RootSystem.IntPtr pNative); 50 | public bool IsAvailable 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("IsAvailableChangedEventArgs"); 57 | } 58 | 59 | return Windows_Kinect_IsAvailableChangedEventArgs_get_IsAvailable(_pNative); 60 | } 61 | } 62 | 63 | private void __EventCleanup() 64 | { 65 | } 66 | } 67 | 68 | } 69 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/IsAvailableChangedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 65a7600b04976b84db9c9ec171a5d71f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Joint.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.Joint 8 | // 9 | [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)] 10 | public struct Joint 11 | { 12 | public Windows.Kinect.JointType JointType { get; set; } 13 | public Windows.Kinect.CameraSpacePoint Position { get; set; } 14 | public Windows.Kinect.TrackingState TrackingState { get; set; } 15 | 16 | public override int GetHashCode() 17 | { 18 | return JointType.GetHashCode() ^ Position.GetHashCode() ^ TrackingState.GetHashCode(); 19 | } 20 | 21 | public override bool Equals(object obj) 22 | { 23 | if (!(obj is Joint)) 24 | { 25 | return false; 26 | } 27 | 28 | return this.Equals((Joint)obj); 29 | } 30 | 31 | public bool Equals(Joint obj) 32 | { 33 | return JointType.Equals(obj.JointType) && Position.Equals(obj.Position) && TrackingState.Equals(obj.TrackingState); 34 | } 35 | 36 | public static bool operator ==(Joint a, Joint b) 37 | { 38 | return a.Equals(b); 39 | } 40 | 41 | public static bool operator !=(Joint a, Joint b) 42 | { 43 | return !(a.Equals(b)); 44 | } 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Joint.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6ab2966f653a9b439da02f3ae85c867 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/JointOrientation.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.JointOrientation 8 | // 9 | [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)] 10 | public struct JointOrientation 11 | { 12 | public Windows.Kinect.JointType JointType { get; set; } 13 | public Windows.Kinect.Vector4 Orientation { get; set; } 14 | 15 | public override int GetHashCode() 16 | { 17 | return JointType.GetHashCode() ^ Orientation.GetHashCode(); 18 | } 19 | 20 | public override bool Equals(object obj) 21 | { 22 | if (!(obj is JointOrientation)) 23 | { 24 | return false; 25 | } 26 | 27 | return this.Equals((JointOrientation)obj); 28 | } 29 | 30 | public bool Equals(JointOrientation obj) 31 | { 32 | return JointType.Equals(obj.JointType) && Orientation.Equals(obj.Orientation); 33 | } 34 | 35 | public static bool operator ==(JointOrientation a, JointOrientation b) 36 | { 37 | return a.Equals(b); 38 | } 39 | 40 | public static bool operator !=(JointOrientation a, JointOrientation b) 41 | { 42 | return !(a.Equals(b)); 43 | } 44 | } 45 | 46 | } 47 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/JointOrientation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d616618770c2c84469f5aaa5f72ca2ca 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/JointType.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.JointType 8 | // 9 | public enum JointType : int 10 | { 11 | SpineBase =0, 12 | SpineMid =1, 13 | Neck =2, 14 | Head =3, 15 | ShoulderLeft =4, 16 | ElbowLeft =5, 17 | WristLeft =6, 18 | HandLeft =7, 19 | ShoulderRight =8, 20 | ElbowRight =9, 21 | WristRight =10, 22 | HandRight =11, 23 | HipLeft =12, 24 | KneeLeft =13, 25 | AnkleLeft =14, 26 | FootLeft =15, 27 | HipRight =16, 28 | KneeRight =17, 29 | AnkleRight =18, 30 | FootRight =19, 31 | SpineShoulder =20, 32 | HandTipLeft =21, 33 | ThumbLeft =22, 34 | HandTipRight =23, 35 | ThumbRight =24, 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/JointType.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1791e2ee3f5ea1343a2694b4e1b3f00f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/KinectAudioCalibrationState.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.KinectAudioCalibrationState 8 | // 9 | public enum KinectAudioCalibrationState : int 10 | { 11 | Unknown =0, 12 | CalibrationRequired =1, 13 | Calibrated =2, 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/KinectAudioCalibrationState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87d856dfd833c524381664b12e58813a 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/KinectCapabilities.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.KinectCapabilities 8 | // 9 | [RootSystem.Flags] 10 | public enum KinectCapabilities : uint 11 | { 12 | None =0, 13 | Vision =1, 14 | Audio =2, 15 | Face =4, 16 | Expressions =8, 17 | Gamechat =16, 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/KinectCapabilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6dcba0f7ec870d94c849f4d8ed860377 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/KinectSensor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5a5ec3f3f1b0064fae54e1512e12887 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/KinectUnityAddinUtils.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.KinectUnityAddinUtils 8 | // 9 | public sealed partial class KinectUnityAddinUtils 10 | { 11 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 12 | private static extern void KinectUnityAddin_FreeMemory(RootSystem.IntPtr pToDealloc); 13 | public static void FreeMemory(RootSystem.IntPtr pToDealloc) 14 | { 15 | KinectUnityAddin_FreeMemory(pToDealloc); 16 | } 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/KinectUnityAddinUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 985cae59f29daa947acc082d310c3492 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/LongExposureInfraredFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 62e292d05e1f99d4695e2306db22e75f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/LongExposureInfraredFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbaaf8e0d23f24848ab81331f4379722 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/LongExposureInfraredFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78a6e9053bd545d4f948fa1d8ced5879 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/LongExposureInfraredFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91cd9161c056061438655504e2f2f7f4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/LongExposureInfraredFrameSource.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cdcf249c89943864ca06ab517b1d74f5 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/MultiSourceFrame.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eb5e1a9a4aa7a3f4b8190ab4fab84118 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/MultiSourceFrameArrivedEventArgs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1188dd030cd382340966a429c46ed4fe 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/MultiSourceFrameReader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a52acb4cdb90b3a4fa3937ab27ced4ff 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/MultiSourceFrameReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e2ed2961bcca974085bf9ddcaaac6a9 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/TrackingConfidence.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.TrackingConfidence 8 | // 9 | public enum TrackingConfidence : int 10 | { 11 | Low =0, 12 | High =1, 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/TrackingConfidence.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fc638ac4166d2945b7efa3e6699e510 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/TrackingState.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.TrackingState 8 | // 9 | public enum TrackingState : int 10 | { 11 | NotTracked =0, 12 | Inferred =1, 13 | Tracked =2, 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/TrackingState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7448c7529f8b6564bb3357abc07b1ccf 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Vector4.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.Vector4 8 | // 9 | [RootSystem.Runtime.InteropServices.StructLayout(RootSystem.Runtime.InteropServices.LayoutKind.Sequential)] 10 | public struct Vector4 11 | { 12 | public float X { get; set; } 13 | public float Y { get; set; } 14 | public float Z { get; set; } 15 | public float W { get; set; } 16 | 17 | public override int GetHashCode() 18 | { 19 | return X.GetHashCode() ^ Y.GetHashCode() ^ Z.GetHashCode() ^ W.GetHashCode(); 20 | } 21 | 22 | public override bool Equals(object obj) 23 | { 24 | if (!(obj is Vector4)) 25 | { 26 | return false; 27 | } 28 | 29 | return this.Equals((Vector4)obj); 30 | } 31 | 32 | public bool Equals(Vector4 obj) 33 | { 34 | return X.Equals(obj.X) && Y.Equals(obj.Y) && Z.Equals(obj.Z) && W.Equals(obj.W); 35 | } 36 | 37 | public static bool operator ==(Vector4 a, Vector4 b) 38 | { 39 | return a.Equals(b); 40 | } 41 | 42 | public static bool operator !=(Vector4 a, Vector4 b) 43 | { 44 | return !(a.Equals(b)); 45 | } 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Kinect/Vector4.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6722a9a2a7c5eaa4f98f57c7aca7cfab 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/StreamingAssets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6893bd713728d8b46b5ccdb5173b0299 3 | folderAsset: yes 4 | timeCreated: 1489309176 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/StreamingAssets/gesture_detector.gbd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/StreamingAssets/gesture_detector.gbd -------------------------------------------------------------------------------- /Assets/StreamingAssets/gesture_detector.gbd.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecd94f81a5b277c47add0c3cf86c11b8 3 | timeCreated: 1492505173 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/StreamingAssets/wavehand_Right.gba: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/Assets/StreamingAssets/wavehand_Right.gba -------------------------------------------------------------------------------- /Assets/StreamingAssets/wavehand_Right.gba.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4af97c532cb5e8f4696f13ac232e6067 3 | timeCreated: 1489309196 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.5.1f1 2 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArlexDu/UnityKinectMLTest/9cf80922c66b3d789a336751c5dcfc7c6c0237a6/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # UnityKinectMLTest 2 | 请查看unity 2018分支 3 | 项目对应博文:https://blog.csdn.net/nijiayy/article/details/68926979 4 | 若缺少插件或unity package则去官网 https://developer.microsoft.com/en-us/windows/kinect/ 5 | 下载这个官方的包:https://go.microsoft.com/fwlink/p/?LinkId=513177 6 | --------------------------------------------------------------------------------