├── .gitattributes ├── .gitignore ├── Assets ├── Example.unity ├── Example.unity.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 ├── Materials.meta ├── Materials │ ├── Cup.mat │ ├── Cup.mat.meta │ ├── Material.mat │ ├── Material.mat.meta │ ├── Material_001.mat │ ├── Material_001.mat.meta │ ├── Material_002.mat │ ├── Material_002.mat.meta │ ├── VertexColor.mat │ ├── VertexColor.mat.meta │ ├── Water.mat │ ├── Water.mat.meta │ ├── glowy1.mat │ ├── glowy1.mat.meta │ ├── glowy2.mat │ └── glowy2.mat.meta ├── Models.meta ├── Models │ ├── desk.blend │ ├── desk.blend.meta │ ├── desk.blend1 │ └── desk.blend1.meta ├── Plugins.meta ├── Plugins │ ├── Metro.meta │ ├── Metro │ │ ├── KinectUnityAddin.dll │ │ └── KinectUnityAddin.dll.meta │ ├── x86.meta │ ├── x86 │ │ ├── KinectUnityAddin.dll │ │ └── KinectUnityAddin.dll.meta │ ├── x86_64.meta │ └── x86_64 │ │ ├── KinectUnityAddin.dll │ │ └── KinectUnityAddin.dll.meta ├── RealityStream.prefab ├── RealityStream.prefab.meta ├── Scripts.meta ├── Scripts │ ├── CircleAround.cs │ ├── CircleAround.cs.meta │ ├── LockTo.cs │ ├── LockTo.cs.meta │ ├── SmoothMotion.cs │ └── SmoothMotion.cs.meta ├── Shaders.meta ├── Shaders │ ├── CubeShader.shader │ ├── CubeShader.shader.meta │ ├── HSB.cginc │ ├── HSB.cginc.meta │ ├── QuadShader.shader │ ├── QuadShader.shader.meta │ ├── VertexColor.shader │ └── VertexColor.shader.meta ├── Standard Assets.meta ├── Standard Assets │ ├── CameraIntrinsics.cs │ ├── CameraIntrinsics.cs.meta │ ├── CollectionMap.cs │ ├── CollectionMap.cs.meta │ ├── Editor.meta │ ├── Editor │ │ ├── KinectCopyPluginDataHelper.cs │ │ └── KinectCopyPluginDataHelper.cs.meta │ ├── EventPump.cs │ ├── EventPump.cs.meta │ ├── ExceptionHelper.cs │ ├── ExceptionHelper.cs.meta │ ├── INativeWrapper.cs │ ├── INativeWrapper.cs.meta │ ├── KinectBuffer.cs │ ├── KinectBuffer.cs.meta │ ├── KinectSpecialCases.cs │ ├── KinectSpecialCases.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 ├── SteamVR.meta ├── SteamVR │ ├── Editor.meta │ ├── Editor │ │ ├── SteamVR_Editor.cs │ │ ├── SteamVR_Editor.cs.meta │ │ ├── SteamVR_RenderModelEditor.cs │ │ ├── SteamVR_RenderModelEditor.cs.meta │ │ ├── SteamVR_Settings.cs │ │ ├── SteamVR_Settings.cs.meta │ │ ├── SteamVR_SkyboxEditor.cs │ │ ├── SteamVR_SkyboxEditor.cs.meta │ │ ├── SteamVR_Update.cs │ │ └── SteamVR_Update.cs.meta │ ├── Extras.meta │ ├── Extras │ │ ├── SteamVR_GazeTracker.cs │ │ ├── SteamVR_GazeTracker.cs.meta │ │ ├── SteamVR_LaserPointer.cs │ │ ├── SteamVR_LaserPointer.cs.meta │ │ ├── SteamVR_Teleporter.cs │ │ ├── SteamVR_Teleporter.cs.meta │ │ ├── SteamVR_TestIK.unity │ │ ├── SteamVR_TestIK.unity.meta │ │ ├── SteamVR_TestThrow.cs │ │ ├── SteamVR_TestThrow.cs.meta │ │ ├── SteamVR_TestThrow.unity │ │ ├── SteamVR_TestThrow.unity.meta │ │ ├── SteamVR_TestTrackedCamera.cs │ │ ├── SteamVR_TestTrackedCamera.cs.meta │ │ ├── SteamVR_TestTrackedCamera.mat │ │ ├── SteamVR_TestTrackedCamera.mat.meta │ │ ├── SteamVR_TestTrackedCamera.unity │ │ ├── SteamVR_TestTrackedCamera.unity.meta │ │ ├── SteamVR_TrackedController.cs │ │ └── SteamVR_TrackedController.cs.meta │ ├── Materials.meta │ ├── Materials │ │ ├── workshop.mat │ │ └── workshop.mat.meta │ ├── Plugins.meta │ ├── Plugins │ │ ├── openvr_api.cs │ │ └── openvr_api.cs.meta │ ├── Prefabs.meta │ ├── Prefabs │ │ ├── [CameraRig].prefab │ │ ├── [CameraRig].prefab.meta │ │ ├── [Status].prefab │ │ ├── [Status].prefab.meta │ │ ├── [SteamVR].prefab │ │ └── [SteamVR].prefab.meta │ ├── Resources.meta │ ├── Resources │ │ ├── SteamVR_AlphaOut.shader │ │ ├── SteamVR_AlphaOut.shader.meta │ │ ├── SteamVR_ClearAll.shader │ │ ├── SteamVR_ClearAll.shader.meta │ │ ├── SteamVR_ColorOut.shader │ │ ├── SteamVR_ColorOut.shader.meta │ │ ├── SteamVR_ExternalCamera.prefab │ │ ├── SteamVR_ExternalCamera.prefab.meta │ │ ├── SteamVR_Fade.shader │ │ ├── SteamVR_Fade.shader.meta │ │ ├── SteamVR_SphericalProjection.shader │ │ └── SteamVR_SphericalProjection.shader.meta │ ├── Scenes.meta │ ├── Scenes │ │ ├── example.unity │ │ └── example.unity.meta │ ├── Scripts.meta │ ├── Scripts │ │ ├── SteamVR.cs │ │ ├── SteamVR.cs.meta │ │ ├── SteamVR_Camera.cs │ │ ├── SteamVR_Camera.cs.meta │ │ ├── SteamVR_CameraFlip.cs │ │ ├── SteamVR_CameraFlip.cs.meta │ │ ├── SteamVR_CameraMask.cs │ │ ├── SteamVR_CameraMask.cs.meta │ │ ├── SteamVR_Controller.cs │ │ ├── SteamVR_Controller.cs.meta │ │ ├── SteamVR_ControllerManager.cs │ │ ├── SteamVR_ControllerManager.cs.meta │ │ ├── SteamVR_Ears.cs │ │ ├── SteamVR_Ears.cs.meta │ │ ├── SteamVR_ExternalCamera.cs │ │ ├── SteamVR_ExternalCamera.cs.meta │ │ ├── SteamVR_Fade.cs │ │ ├── SteamVR_Fade.cs.meta │ │ ├── SteamVR_Frustum.cs │ │ ├── SteamVR_Frustum.cs.meta │ │ ├── SteamVR_GameView.cs │ │ ├── SteamVR_GameView.cs.meta │ │ ├── SteamVR_IK.cs │ │ ├── SteamVR_IK.cs.meta │ │ ├── SteamVR_LoadLevel.cs │ │ ├── SteamVR_LoadLevel.cs.meta │ │ ├── SteamVR_Menu.cs │ │ ├── SteamVR_Menu.cs.meta │ │ ├── SteamVR_Overlay.cs │ │ ├── SteamVR_Overlay.cs.meta │ │ ├── SteamVR_PlayArea.cs │ │ ├── SteamVR_PlayArea.cs.meta │ │ ├── SteamVR_Render.cs │ │ ├── SteamVR_Render.cs.meta │ │ ├── SteamVR_RenderModel.cs │ │ ├── SteamVR_RenderModel.cs.meta │ │ ├── SteamVR_Skybox.cs │ │ ├── SteamVR_Skybox.cs.meta │ │ ├── SteamVR_SphericalProjection.cs │ │ ├── SteamVR_SphericalProjection.cs.meta │ │ ├── SteamVR_Stats.cs │ │ ├── SteamVR_Stats.cs.meta │ │ ├── SteamVR_Status.cs │ │ ├── SteamVR_Status.cs.meta │ │ ├── SteamVR_StatusText.cs │ │ ├── SteamVR_StatusText.cs.meta │ │ ├── SteamVR_TestController.cs │ │ ├── SteamVR_TestController.cs.meta │ │ ├── SteamVR_TrackedCamera.cs │ │ ├── SteamVR_TrackedCamera.cs.meta │ │ ├── SteamVR_TrackedObject.cs │ │ ├── SteamVR_TrackedObject.cs.meta │ │ ├── SteamVR_UpdatePoses.cs │ │ ├── SteamVR_UpdatePoses.cs.meta │ │ ├── SteamVR_Utils.cs │ │ └── SteamVR_Utils.cs.meta │ ├── Textures.meta │ ├── Textures │ │ ├── arrow.png │ │ ├── arrow.png.meta │ │ ├── background.png │ │ ├── background.png.meta │ │ ├── logo.png │ │ ├── logo.png.meta │ │ ├── overlay.renderTexture │ │ ├── overlay.renderTexture.meta │ │ ├── workshop.png │ │ └── workshop.png.meta │ ├── quickstart.pdf │ ├── quickstart.pdf.meta │ ├── readme.txt │ └── readme.txt.meta ├── smcs.rsp └── smcs.rsp.meta ├── LICENSE.txt ├── 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 ├── UnityAdsSettings.asset └── UnityConnectSettings.asset ├── README.md └── img ├── gorilla1.jpg ├── mixed-reality.gif └── mr-rig.jpg /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /[Ll]ibrary/ 2 | /[Tt]emp/ 3 | /[Oo]bj/ 4 | /[Bb]uild/ 5 | /[Bb]uilds/ 6 | /Assets/AssetStoreTools* 7 | 8 | # Autogenerated VS/MD solution and project files 9 | ExportedObj/ 10 | *.csproj 11 | *.unityproj 12 | *.sln 13 | *.suo 14 | *.tmp 15 | *.user 16 | *.userprefs 17 | *.pidb 18 | *.booproj 19 | *.svd 20 | 21 | 22 | # Unity3D generated meta files 23 | *.pidb.meta 24 | 25 | # Unity3D Generated File On Crash Reports 26 | sysinfo.txt 27 | 28 | # Builds 29 | *.apk 30 | *.unitypackage 31 | 32 | # ========================= 33 | # Operating System Files 34 | # ========================= 35 | 36 | # OSX 37 | # ========================= 38 | 39 | .DS_Store 40 | .AppleDouble 41 | .LSOverride 42 | 43 | # Thumbnails 44 | ._* 45 | 46 | # Files that might appear in the root of a volume 47 | .DocumentRevisions-V100 48 | .fseventsd 49 | .Spotlight-V100 50 | .TemporaryItems 51 | .Trashes 52 | .VolumeIcon.icns 53 | 54 | # Directories potentially created on remote AFP share 55 | .AppleDB 56 | .AppleDesktop 57 | Network Trash Folder 58 | Temporary Items 59 | .apdisk 60 | 61 | # Windows 62 | # ========================= 63 | 64 | # Windows image file caches 65 | Thumbs.db 66 | ehthumbs.db 67 | 68 | # Folder config file 69 | Desktop.ini 70 | 71 | # Recycle Bin used on file shares 72 | $RECYCLE.BIN/ 73 | 74 | # Windows Installer files 75 | *.cab 76 | *.msi 77 | *.msm 78 | *.msp 79 | 80 | # Windows shortcuts 81 | *.lnk 82 | -------------------------------------------------------------------------------- /Assets/Example.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Example.unity -------------------------------------------------------------------------------- /Assets/Example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9b0a5bc0fe14c44dae6fccc2d91ce06 3 | timeCreated: 1481743891 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/KinectView.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae163877da18a2641a9754201dbbc7dd 3 | folderAsset: yes 4 | timeCreated: 1470676787 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/KinectView/MainScene.unity: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/KinectView/MainScene.unity -------------------------------------------------------------------------------- /Assets/KinectView/MainScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc155cb59c51dc94787732491b6d30ca 3 | timeCreated: 1470676787 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/KinectView/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b297fa6eddd74f84cb243783cf75bda7 3 | folderAsset: yes 4 | timeCreated: 1470676787 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/KinectView/Materials/BoneMaterial.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/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: 40c07d0f24d392c44ad587e8330d94c4 3 | folderAsset: yes 4 | timeCreated: 1470676787 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 | unsafe void Update () 43 | { 44 | if (_Reader != null) 45 | { 46 | var frame = _Reader.AcquireLatestFrame(); 47 | 48 | if (frame != null) 49 | { 50 | fixed (byte* pData = _Data) 51 | { 52 | frame.CopyConvertedFrameDataToIntPtr(new System.IntPtr(pData), (uint)_Data.Length, ColorImageFormat.Rgba); 53 | } 54 | frame.Dispose(); 55 | frame = null; 56 | 57 | _Texture.LoadRawTextureData(_Data); 58 | _Texture.Apply(); 59 | } 60 | } 61 | } 62 | 63 | void OnApplicationQuit() 64 | { 65 | if (_Reader != null) 66 | { 67 | _Reader.Dispose(); 68 | _Reader = null; 69 | } 70 | 71 | if (_Sensor != null) 72 | { 73 | if (_Sensor.IsOpen) 74 | { 75 | _Sensor.Close(); 76 | } 77 | 78 | _Sensor = null; 79 | } 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /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 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /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 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Assets/KinectView/Scripts/DepthSourceManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using Windows.Kinect; 4 | 5 | public class DepthSourceManager : MonoBehaviour 6 | { 7 | 8 | 9 | private KinectSensor _Sensor; 10 | private DepthFrameReader _Reader; 11 | 12 | private Texture2D _Texture; 13 | public Texture2D GetDepthTexture() 14 | { 15 | return _Texture; 16 | } 17 | 18 | private byte[] _Data; 19 | 20 | private int _DepthWidth; 21 | public int GetDepthWidth() 22 | { 23 | return _DepthWidth; 24 | } 25 | 26 | private int _DepthHeight; 27 | public int GetDepthHeight() 28 | { 29 | return _DepthHeight; 30 | } 31 | 32 | void Start () 33 | { 34 | _Sensor = KinectSensor.GetDefault(); 35 | 36 | if (_Sensor != null) 37 | { 38 | _Reader = _Sensor.DepthFrameSource.OpenReader(); 39 | 40 | var frameDesc = _Sensor.DepthFrameSource.FrameDescription; 41 | 42 | _DepthWidth = frameDesc.Width; 43 | _DepthHeight = frameDesc.Height; 44 | 45 | // Use ARGB4444 as there's no handier 16 bit texture format readily available 46 | _Texture = new Texture2D(_DepthWidth, _DepthHeight, TextureFormat.ARGB4444, false); 47 | _Data = new byte[_Sensor.DepthFrameSource.FrameDescription.LengthInPixels * _Sensor.DepthFrameSource.FrameDescription.BytesPerPixel]; 48 | } 49 | } 50 | 51 | unsafe void Update () 52 | { 53 | if (_Reader != null) 54 | { 55 | var frame = _Reader.AcquireLatestFrame(); 56 | 57 | if (frame != null) 58 | { 59 | fixed (byte* pData = _Data) 60 | { 61 | frame.CopyFrameDataToIntPtr(new System.IntPtr(pData), (uint)_Data.Length); 62 | } 63 | frame.Dispose(); 64 | frame = null; 65 | 66 | _Texture.LoadRawTextureData(_Data); 67 | _Texture.Apply(); 68 | } 69 | } 70 | } 71 | 72 | void OnApplicationQuit() 73 | { 74 | if (_Reader != null) 75 | { 76 | _Reader.Dispose(); 77 | _Reader = null; 78 | } 79 | 80 | if (_Sensor != null) 81 | { 82 | if (_Sensor.IsOpen) 83 | { 84 | _Sensor.Close(); 85 | } 86 | 87 | _Sensor = null; 88 | } 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /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 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /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 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /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/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e866c69bbe03b174f880c56418f8635d 3 | folderAsset: yes 4 | timeCreated: 1479919454 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Materials/Cup.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Materials/Cup.mat -------------------------------------------------------------------------------- /Assets/Materials/Cup.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d3bdf26d8543a5c4db49a9c2450af40e 3 | timeCreated: 1479925028 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/Material.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Materials/Material.mat -------------------------------------------------------------------------------- /Assets/Materials/Material.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ff974cdc16fa7748a37a12742b344ac 3 | timeCreated: 1479919454 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/Material_001.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Materials/Material_001.mat -------------------------------------------------------------------------------- /Assets/Materials/Material_001.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb86afe4a67ab9d45823e66c4c652e40 3 | timeCreated: 1479919454 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/Material_002.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Materials/Material_002.mat -------------------------------------------------------------------------------- /Assets/Materials/Material_002.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c601dd797b803342b13df86e3ca96d4 3 | timeCreated: 1479920586 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/VertexColor.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Materials/VertexColor.mat -------------------------------------------------------------------------------- /Assets/Materials/VertexColor.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 693c4196156fb53418bede00328961a6 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/Materials/Water.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Materials/Water.mat -------------------------------------------------------------------------------- /Assets/Materials/Water.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31f83ef32153eec4a84647579a7596b7 3 | timeCreated: 1479925076 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/glowy1.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Materials/glowy1.mat -------------------------------------------------------------------------------- /Assets/Materials/glowy1.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ca22feeb528bb55429c8ca6e03913811 3 | timeCreated: 1480434441 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/glowy2.mat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Materials/glowy2.mat -------------------------------------------------------------------------------- /Assets/Materials/glowy2.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 830771127394fa44586bb44a550fe566 3 | timeCreated: 1480434441 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Models.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3872f1fe585ba441aa9b43e23863aea 3 | folderAsset: yes 4 | timeCreated: 1481744936 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Models/desk.blend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Models/desk.blend -------------------------------------------------------------------------------- /Assets/Models/desk.blend.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 600a158d648683148901b8351ea7c6c8 3 | timeCreated: 1479919454 4 | licenseType: Free 5 | ModelImporter: 6 | serializedVersion: 19 7 | fileIDToRecycleName: 8 | 100000: Cube 9 | 100002: Cube_001 10 | 100004: //RootNode 11 | 100006: Cube_002 12 | 100008: Cube_003 13 | 100010: Cube_004 14 | 100012: Cube_006 15 | 100014: Cylinder 16 | 400000: Cube 17 | 400002: Cube_001 18 | 400004: //RootNode 19 | 400006: Cube_002 20 | 400008: Cube_003 21 | 400010: Cube_004 22 | 400012: Cube_006 23 | 400014: Cylinder 24 | 2300000: Cube 25 | 2300002: Cube_001 26 | 2300004: Cube_002 27 | 2300006: Cube_003 28 | 2300008: Cube_004 29 | 2300010: Cube_006 30 | 2300012: Cylinder 31 | 3300000: Cube 32 | 3300002: Cube_001 33 | 3300004: Cube_002 34 | 3300006: Cube_003 35 | 3300008: Cube_004 36 | 3300010: Cube_006 37 | 3300012: Cylinder 38 | 4300000: Cube_001 39 | 4300002: Cube 40 | 4300004: Cube_002 41 | 4300006: Cube_006 42 | 4300008: Cube_004 43 | 4300010: Cube_003 44 | 4300012: Cylinder 45 | 7400000: Default Take 46 | 9500000: //RootNode 47 | materials: 48 | importMaterials: 1 49 | materialName: 0 50 | materialSearch: 1 51 | animations: 52 | legacyGenerateAnimations: 4 53 | bakeSimulation: 0 54 | resampleCurves: 1 55 | optimizeGameObjects: 0 56 | motionNodeName: 57 | animationImportErrors: 58 | animationImportWarnings: 59 | animationRetargetingWarnings: 60 | animationDoRetargetingWarnings: 0 61 | animationCompression: 1 62 | animationRotationError: 0.5 63 | animationPositionError: 0.5 64 | animationScaleError: 0.5 65 | animationWrapMode: 0 66 | extraExposedTransformPaths: [] 67 | clipAnimations: [] 68 | isReadable: 1 69 | meshes: 70 | lODScreenPercentages: [] 71 | globalScale: 1 72 | meshCompression: 0 73 | addColliders: 0 74 | importBlendShapes: 1 75 | swapUVChannels: 0 76 | generateSecondaryUV: 0 77 | useFileUnits: 1 78 | optimizeMeshForGPU: 1 79 | keepQuads: 0 80 | weldVertices: 1 81 | secondaryUVAngleDistortion: 8 82 | secondaryUVAreaDistortion: 15.000001 83 | secondaryUVHardAngle: 88 84 | secondaryUVPackMargin: 4 85 | useFileScale: 1 86 | tangentSpace: 87 | normalSmoothAngle: 60 88 | normalImportMode: 0 89 | tangentImportMode: 3 90 | importAnimation: 1 91 | copyAvatar: 0 92 | humanDescription: 93 | human: [] 94 | skeleton: [] 95 | armTwist: 0.5 96 | foreArmTwist: 0.5 97 | upperLegTwist: 0.5 98 | legTwist: 0.5 99 | armStretch: 0.05 100 | legStretch: 0.05 101 | feetSpacing: 0 102 | rootMotionBoneName: 103 | hasTranslationDoF: 0 104 | lastHumanDescriptionAvatarSource: {instanceID: 0} 105 | animationType: 2 106 | humanoidOversampling: 1 107 | additionalBone: 0 108 | userData: 109 | assetBundleName: 110 | assetBundleVariant: 111 | -------------------------------------------------------------------------------- /Assets/Models/desk.blend1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Models/desk.blend1 -------------------------------------------------------------------------------- /Assets/Models/desk.blend1.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cbeade80620f5a148867dc01e56d28c1 3 | timeCreated: 1479919448 4 | licenseType: Free 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a41dc49f7e776a4dadfcb1aa84c2dca 3 | folderAsset: yes 4 | timeCreated: 1470676609 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Metro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f8957d8aab922649bb2356f946218b3 3 | folderAsset: yes 4 | timeCreated: 1470676609 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/Metro/KinectUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Plugins/Metro/KinectUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/Metro/KinectUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85bafbe9b14b18b45b445b304b1f3efc 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/x86.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c10f602dc04dc44ba52cd9ac2654ecc 3 | folderAsset: yes 4 | timeCreated: 1470676609 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/x86/KinectUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Plugins/x86/KinectUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86/KinectUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b65facb0c9c68b647b8ca7435b5f35c4 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9baa654d0b49eb844baabc0342be3912 3 | folderAsset: yes 4 | timeCreated: 1470676609 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/KinectUnityAddin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/Plugins/x86_64/KinectUnityAddin.dll -------------------------------------------------------------------------------- /Assets/Plugins/x86_64/KinectUnityAddin.dll.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 82e143d16729051459ae6a54b37e9eab 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /Assets/RealityStream.prefab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/RealityStream.prefab -------------------------------------------------------------------------------- /Assets/RealityStream.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5d823098a68d2b459586929c888f2b3 3 | timeCreated: 1481745174 4 | licenseType: Free 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6c62a9df4158ba4485dc357e8257a8d 3 | folderAsset: yes 4 | timeCreated: 1481744918 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Scripts/CircleAround.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class CircleAround : MonoBehaviour { 5 | public float ht = 1.5f; 6 | public float rate = 180f; 7 | public float radius = 1.0f; 8 | // Use this for initialization 9 | void Start () { 10 | 11 | } 12 | 13 | // Update is called once per frame 14 | void Update () { 15 | transform.position = Quaternion.Euler(0, Time.time * rate, 0) * (Vector3.forward * radius) + Vector3.up * ht; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Assets/Scripts/CircleAround.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b247843e7d308114cbb35c420a557ea1 3 | timeCreated: 1480434785 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/Scripts/LockTo.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class LockTo : MonoBehaviour { 5 | public GameObject target; 6 | // Use this for initialization 7 | void Start () { 8 | 9 | } 10 | 11 | // Update is called once per frame 12 | void Update () { 13 | transform.position = target.transform.position; 14 | transform.rotation = target.transform.rotation; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Scripts/LockTo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fcae9b1ae3e1cc409e683ba46909d1d 3 | timeCreated: 1478902532 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/Scripts/SmoothMotion.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | 4 | public class SmoothMotion : MonoBehaviour { 5 | public Transform trackTo; 6 | // Use this for initialization 7 | void Start () { 8 | //_oldParent = transform.parent; 9 | 10 | //transform.parent = null; 11 | } 12 | 13 | // Update is called once per frame 14 | void Update () { 15 | transform.position = Vector3.Lerp(transform.position, trackTo.position, Time.deltaTime * 7.0f); 16 | transform.rotation = Quaternion.Lerp(transform.rotation, trackTo.rotation, Time.deltaTime * 7.0f); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Assets/Scripts/SmoothMotion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ff539b8b0aca9b4cbb5678dd039512e 3 | timeCreated: 1478902532 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/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81ba067bfcdfa1146ae0b71f03ff6159 3 | folderAsset: yes 4 | timeCreated: 1478800182 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Shaders/CubeShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2dbb19b9b51b16644b59d566ae9bacc5 3 | timeCreated: 1479316129 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Shaders/HSB.cginc: -------------------------------------------------------------------------------- 1 | inline float3 applyHue(float3 aColor, float aHue) 2 | { 3 | float angle = radians(aHue); 4 | float3 k = float3(0.57735, 0.57735, 0.57735); 5 | float cosAngle = cos(angle); 6 | //Rodrigues' rotation formula 7 | return aColor * cosAngle + cross(k, aColor) * sin(angle) + k * dot(k, aColor) * (1 - cosAngle); 8 | } 9 | 10 | 11 | inline float4 applyHSBEffect(float4 startColor, fixed4 hsbc) 12 | { 13 | float _Hue = 360 * hsbc.r; 14 | float _Brightness = hsbc.g * 2 - 1; 15 | float _Contrast = hsbc.b * 2; 16 | float _Saturation = hsbc.a * 2; 17 | 18 | float4 outputColor = startColor; 19 | outputColor.rgb = applyHue(outputColor.rgb, _Hue); 20 | outputColor.rgb = (outputColor.rgb - 0.5f) * (_Contrast) + 0.5f; 21 | outputColor.rgb = outputColor.rgb + _Brightness; 22 | float3 intensity = dot(outputColor.rgb, float3(0.299,0.587,0.114)); 23 | outputColor.rgb = lerp(intensity, outputColor.rgb, _Saturation); 24 | 25 | return outputColor; 26 | } -------------------------------------------------------------------------------- /Assets/Shaders/HSB.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 110b7b6a292218f43b0ad36258721b0f 3 | timeCreated: 1480432688 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Shaders/QuadShader.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbe544cf5098631489baccbb7c503cbe 3 | timeCreated: 1479316129 4 | licenseType: Free 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Shaders/VertexColor.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/VertexColor" { 2 | Properties{ 3 | point_size("Point Size", Float) = 5.0 4 | } 5 | SubShader { 6 | Pass { 7 | 8 | 9 | CGPROGRAM 10 | #pragma vertex vert 11 | #pragma fragment frag 12 | 13 | #include "UnityCG.cginc" 14 | 15 | float point_size; 16 | 17 | struct VertexInput { 18 | float4 v : POSITION; 19 | float4 color: COLOR; 20 | }; 21 | 22 | struct VertexOutput { 23 | float4 pos : SV_POSITION; 24 | float4 col : COLOR; 25 | float4 size : PSIZE; 26 | }; 27 | 28 | VertexOutput vert(VertexInput v) { 29 | 30 | VertexOutput o; 31 | o.pos = mul(UNITY_MATRIX_MVP, v.v); 32 | ///o.pos[0] += 1; 33 | //o.pos[1] -= 1; 34 | o.col = v.color; 35 | o.size = point_size; 36 | return o; 37 | } 38 | 39 | float4 frag(VertexOutput o) : COLOR { 40 | return o.col; 41 | } 42 | 43 | ENDCG 44 | } 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /Assets/Shaders/VertexColor.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae2910b40e8de534d8a6ddd8e2c2a8e4 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Standard Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b03a21825bb7a01499c3f6a9b730698c 3 | folderAsset: yes 4 | timeCreated: 1470676609 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: bc11ab9581163ba44b721acb44ce8763 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: b404867256ddca245871a9152fd54294 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: 411a655f309e1554091530d680698fc1 3 | folderAsset: yes 4 | timeCreated: 1470676609 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: a103df75c03c9c54096627354fdb1398 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: debd3e6b79ccfa7439ef3bc59b8d30e6 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: 86085617855511d45b0648e6b62e1584 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: 010db25b57d940546a60549c96171b70 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: a27f97f1b27134f4bbee290cf18c791c 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/NativeObjectCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 96cf7d466b0b0bb4d92fb09d817ad613 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: 0eb32acf7ae62044194131ae0f7e4516 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: adc912eeb5de2014f9ca670eca6ac808 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: b31ad795626855f41842734c10d2a41f 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: 8c66e34b62f3a824ea53fb58e608c697 3 | folderAsset: yes 4 | timeCreated: 1470676609 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Data.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c92cd46d2fca49c4d8efc4689f5d6258 3 | folderAsset: yes 4 | timeCreated: 1470676609 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/Standard Assets/Windows/Data/PropertyChangedEventArgs.cs: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Data 5 | { 6 | // 7 | // Windows.Data.PropertyChangedEventArgs 8 | // 9 | public sealed partial class PropertyChangedEventArgs : 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 PropertyChangedEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Data_PropertyChangedEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~PropertyChangedEventArgs() 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_Data_PropertyChangedEventArgs_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_Data_PropertyChangedEventArgs_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_Data_PropertyChangedEventArgs_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 RootSystem.IntPtr Windows_Data_PropertyChangedEventArgs_get_PropertyName(RootSystem.IntPtr pNative); 50 | public string PropertyName 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("PropertyChangedEventArgs"); 57 | } 58 | 59 | RootSystem.IntPtr objectPointer = Windows_Data_PropertyChangedEventArgs_get_PropertyName(_pNative); 60 | Helper.ExceptionHelper.CheckLastError(); 61 | 62 | var managedString = RootSystem.Runtime.InteropServices.Marshal.PtrToStringUni(objectPointer); 63 | RootSystem.Runtime.InteropServices.Marshal.FreeCoTaskMem(objectPointer); 64 | return managedString; 65 | } 66 | } 67 | 68 | private void __EventCleanup() 69 | { 70 | } 71 | } 72 | 73 | } 74 | -------------------------------------------------------------------------------- /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: 8b534dc519fbfa34b9079dfb18cc27f1 3 | folderAsset: yes 4 | timeCreated: 1470676609 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: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.BodyFrameArrivedEventArgs 8 | // 9 | public sealed partial class BodyFrameArrivedEventArgs : 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 BodyFrameArrivedEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Kinect_BodyFrameArrivedEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~BodyFrameArrivedEventArgs() 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_BodyFrameArrivedEventArgs_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_BodyFrameArrivedEventArgs_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_BodyFrameArrivedEventArgs_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 RootSystem.IntPtr Windows_Kinect_BodyFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative); 50 | public Windows.Kinect.BodyFrameReference FrameReference 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("BodyFrameArrivedEventArgs"); 57 | } 58 | 59 | RootSystem.IntPtr objectPointer = Windows_Kinect_BodyFrameArrivedEventArgs_get_FrameReference(_pNative); 60 | Helper.ExceptionHelper.CheckLastError(); 61 | if (objectPointer == RootSystem.IntPtr.Zero) 62 | { 63 | return null; 64 | } 65 | 66 | return Helper.NativeObjectCache.CreateOrGetObject(objectPointer, n => new Windows.Kinect.BodyFrameReference(n)); 67 | } 68 | } 69 | 70 | private void __EventCleanup() 71 | { 72 | } 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /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: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.ColorFrameArrivedEventArgs 8 | // 9 | public sealed partial class ColorFrameArrivedEventArgs : 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 ColorFrameArrivedEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Kinect_ColorFrameArrivedEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~ColorFrameArrivedEventArgs() 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_ColorFrameArrivedEventArgs_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_ColorFrameArrivedEventArgs_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_ColorFrameArrivedEventArgs_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 RootSystem.IntPtr Windows_Kinect_ColorFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative); 50 | public Windows.Kinect.ColorFrameReference FrameReference 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("ColorFrameArrivedEventArgs"); 57 | } 58 | 59 | RootSystem.IntPtr objectPointer = Windows_Kinect_ColorFrameArrivedEventArgs_get_FrameReference(_pNative); 60 | Helper.ExceptionHelper.CheckLastError(); 61 | if (objectPointer == RootSystem.IntPtr.Zero) 62 | { 63 | return null; 64 | } 65 | 66 | return Helper.NativeObjectCache.CreateOrGetObject(objectPointer, n => new Windows.Kinect.ColorFrameReference(n)); 67 | } 68 | } 69 | 70 | private void __EventCleanup() 71 | { 72 | } 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /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: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.DepthFrameArrivedEventArgs 8 | // 9 | public sealed partial class DepthFrameArrivedEventArgs : 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 DepthFrameArrivedEventArgs(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Kinect_DepthFrameArrivedEventArgs_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~DepthFrameArrivedEventArgs() 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_DepthFrameArrivedEventArgs_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_DepthFrameArrivedEventArgs_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_DepthFrameArrivedEventArgs_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 RootSystem.IntPtr Windows_Kinect_DepthFrameArrivedEventArgs_get_FrameReference(RootSystem.IntPtr pNative); 50 | public Windows.Kinect.DepthFrameReference FrameReference 51 | { 52 | get 53 | { 54 | if (_pNative == RootSystem.IntPtr.Zero) 55 | { 56 | throw new RootSystem.ObjectDisposedException("DepthFrameArrivedEventArgs"); 57 | } 58 | 59 | RootSystem.IntPtr objectPointer = Windows_Kinect_DepthFrameArrivedEventArgs_get_FrameReference(_pNative); 60 | Helper.ExceptionHelper.CheckLastError(); 61 | if (objectPointer == RootSystem.IntPtr.Zero) 62 | { 63 | return null; 64 | } 65 | 66 | return Helper.NativeObjectCache.CreateOrGetObject(objectPointer, n => new Windows.Kinect.DepthFrameReference(n)); 67 | } 68 | } 69 | 70 | private void __EventCleanup() 71 | { 72 | } 73 | } 74 | 75 | } 76 | -------------------------------------------------------------------------------- /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: -------------------------------------------------------------------------------- 1 | using RootSystem = System; 2 | using System.Linq; 3 | using System.Collections.Generic; 4 | namespace Windows.Kinect 5 | { 6 | // 7 | // Windows.Kinect.MultiSourceFrameReference 8 | // 9 | public sealed partial class MultiSourceFrameReference : 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 MultiSourceFrameReference(RootSystem.IntPtr pNative) 17 | { 18 | _pNative = pNative; 19 | Windows_Kinect_MultiSourceFrameReference_AddRefObject(ref _pNative); 20 | } 21 | 22 | ~MultiSourceFrameReference() 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_MultiSourceFrameReference_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_MultiSourceFrameReference_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_MultiSourceFrameReference_ReleaseObject(ref _pNative); 42 | 43 | _pNative = RootSystem.IntPtr.Zero; 44 | } 45 | 46 | 47 | // Public Methods 48 | [RootSystem.Runtime.InteropServices.DllImport("KinectUnityAddin", CallingConvention=RootSystem.Runtime.InteropServices.CallingConvention.Cdecl, SetLastError=true)] 49 | private static extern RootSystem.IntPtr Windows_Kinect_MultiSourceFrameReference_AcquireFrame(RootSystem.IntPtr pNative); 50 | public Windows.Kinect.MultiSourceFrame AcquireFrame() 51 | { 52 | if (_pNative == RootSystem.IntPtr.Zero) 53 | { 54 | throw new RootSystem.ObjectDisposedException("MultiSourceFrameReference"); 55 | } 56 | 57 | RootSystem.IntPtr objectPointer = Windows_Kinect_MultiSourceFrameReference_AcquireFrame(_pNative); 58 | Helper.ExceptionHelper.CheckLastError(); 59 | if (objectPointer == RootSystem.IntPtr.Zero) 60 | { 61 | return null; 62 | } 63 | 64 | return Helper.NativeObjectCache.CreateOrGetObject(objectPointer, n => new Windows.Kinect.MultiSourceFrame(n)); 65 | } 66 | 67 | private void __EventCleanup() 68 | { 69 | } 70 | } 71 | 72 | } 73 | -------------------------------------------------------------------------------- /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/SteamVR.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4b85e50b864a4a4a9a5d6f6facabef0 3 | folderAsset: yes 4 | timeCreated: 1478727976 5 | licenseType: Free 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c33af0785775d7548b22541da37936fe 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/SteamVR/Editor/SteamVR_Editor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ba22c80948c94e44a82b9fd1b3abd0d 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Editor/SteamVR_RenderModelEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67867a20919f7db45a2e7034fda1c28e 3 | timeCreated: 1433373945 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Editor/SteamVR_Settings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2244eee8a3a4784fb40d1123ff69301 3 | timeCreated: 1438809573 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Editor/SteamVR_SkyboxEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 80087fbbf7bf93a46bb4aea276b19568 3 | timeCreated: 1446765449 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Editor/SteamVR_Update.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73a0556bda803bf4e898751dcfcf21a8 3 | timeCreated: 1433880062 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61f4796ee4f00314e8d8b1ad39a78c28 3 | folderAsset: yes 4 | timeCreated: 1438797390 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_GazeTracker.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | using UnityEngine; 3 | using System.Collections; 4 | 5 | public struct GazeEventArgs 6 | { 7 | public float distance; 8 | } 9 | 10 | public delegate void GazeEventHandler(object sender, GazeEventArgs e); 11 | 12 | public class SteamVR_GazeTracker : MonoBehaviour 13 | { 14 | public bool isInGaze = false; 15 | public event GazeEventHandler GazeOn; 16 | public event GazeEventHandler GazeOff; 17 | public float gazeInCutoff = 0.15f; 18 | public float gazeOutCutoff = 0.4f; 19 | 20 | // Contains a HMD tracked object that we can use to find the user's gaze 21 | Transform hmdTrackedObject = null; 22 | 23 | // Use this for initialization 24 | void Start () 25 | { 26 | 27 | } 28 | 29 | public virtual void OnGazeOn(GazeEventArgs e) 30 | { 31 | if (GazeOn != null) 32 | GazeOn(this, e); 33 | } 34 | 35 | public virtual void OnGazeOff(GazeEventArgs e) 36 | { 37 | if (GazeOff != null) 38 | GazeOff(this, e); 39 | } 40 | 41 | // Update is called once per frame 42 | void Update () 43 | { 44 | // If we haven't set up hmdTrackedObject find what the user is looking at 45 | if (hmdTrackedObject == null) 46 | { 47 | SteamVR_TrackedObject[] trackedObjects = FindObjectsOfType(); 48 | foreach (SteamVR_TrackedObject tracked in trackedObjects) 49 | { 50 | if (tracked.index == SteamVR_TrackedObject.EIndex.Hmd) 51 | { 52 | hmdTrackedObject = tracked.transform; 53 | break; 54 | } 55 | } 56 | } 57 | 58 | if (hmdTrackedObject) 59 | { 60 | Ray r = new Ray(hmdTrackedObject.position, hmdTrackedObject.forward); 61 | Plane p = new Plane(hmdTrackedObject.forward, transform.position); 62 | 63 | float enter = 0.0f; 64 | if (p.Raycast(r, out enter)) 65 | { 66 | Vector3 intersect = hmdTrackedObject.position + hmdTrackedObject.forward * enter; 67 | float dist = Vector3.Distance(intersect, transform.position); 68 | //Debug.Log("Gaze dist = " + dist); 69 | if (dist < gazeInCutoff && !isInGaze) 70 | { 71 | isInGaze = true; 72 | GazeEventArgs e; 73 | e.distance = dist; 74 | OnGazeOn(e); 75 | } 76 | else if (dist >= gazeOutCutoff && isInGaze) 77 | { 78 | isInGaze = false; 79 | GazeEventArgs e; 80 | e.distance = dist; 81 | OnGazeOff(e); 82 | } 83 | } 84 | 85 | } 86 | 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_GazeTracker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 501eb8b744f73714fbe7dbdd5e3ef66e 3 | timeCreated: 1426193800 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_LaserPointer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4e8a839a7c5b7e4580c59e305fb5f01 3 | timeCreated: 1430337756 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_Teleporter.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | using UnityEngine; 3 | using System.Collections; 4 | 5 | public class SteamVR_Teleporter : MonoBehaviour 6 | { 7 | public enum TeleportType 8 | { 9 | TeleportTypeUseTerrain, 10 | TeleportTypeUseCollider, 11 | TeleportTypeUseZeroY 12 | } 13 | 14 | public bool teleportOnClick = false; 15 | public TeleportType teleportType = TeleportType.TeleportTypeUseZeroY; 16 | 17 | Transform reference 18 | { 19 | get 20 | { 21 | var top = SteamVR_Render.Top(); 22 | return (top != null) ? top.origin : null; 23 | } 24 | } 25 | 26 | void Start () 27 | { 28 | var trackedController = GetComponent(); 29 | if (trackedController == null) 30 | { 31 | trackedController = gameObject.AddComponent(); 32 | } 33 | 34 | trackedController.TriggerClicked += new ClickedEventHandler(DoClick); 35 | 36 | if (teleportType == TeleportType.TeleportTypeUseTerrain) 37 | { 38 | // Start the player at the level of the terrain 39 | var t = reference; 40 | if (t != null) 41 | t.position = new Vector3(t.position.x, Terrain.activeTerrain.SampleHeight(t.position), t.position.z); 42 | } 43 | } 44 | 45 | void DoClick(object sender, ClickedEventArgs e) 46 | { 47 | if (teleportOnClick) 48 | { 49 | var t = reference; 50 | if (t == null) 51 | return; 52 | 53 | float refY = t.position.y; 54 | 55 | Plane plane = new Plane(Vector3.up, -refY); 56 | Ray ray = new Ray(this.transform.position, transform.forward); 57 | 58 | bool hasGroundTarget = false; 59 | float dist = 0f; 60 | if (teleportType == TeleportType.TeleportTypeUseTerrain) 61 | { 62 | RaycastHit hitInfo; 63 | TerrainCollider tc = Terrain.activeTerrain.GetComponent(); 64 | hasGroundTarget = tc.Raycast(ray, out hitInfo, 1000f); 65 | dist = hitInfo.distance; 66 | } 67 | else if (teleportType == TeleportType.TeleportTypeUseCollider) 68 | { 69 | RaycastHit hitInfo; 70 | Physics.Raycast(ray, out hitInfo); 71 | dist = hitInfo.distance; 72 | } 73 | else 74 | { 75 | hasGroundTarget = plane.Raycast(ray, out dist); 76 | } 77 | 78 | if (hasGroundTarget) 79 | { 80 | Vector3 headPosOnGround = new Vector3(SteamVR_Render.Top().head.localPosition.x, 0.0f, SteamVR_Render.Top().head.localPosition.z); 81 | t.position = ray.origin + ray.direction * dist - new Vector3(t.GetChild(0).localPosition.x, 0f, t.GetChild(0).localPosition.z) - headPosOnGround; 82 | } 83 | } 84 | } 85 | } 86 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_Teleporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 24c7d7d77dd0d2a4b8e1ad129b170ee3 3 | timeCreated: 1430337756 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TestIK.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b6669fb4e4df9c48926f02b694be9d1 3 | timeCreated: 1437433018 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TestThrow.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | using UnityEngine; 3 | using System.Collections; 4 | 5 | [RequireComponent(typeof(SteamVR_TrackedObject))] 6 | public class SteamVR_TestThrow : MonoBehaviour 7 | { 8 | public GameObject prefab; 9 | public Rigidbody attachPoint; 10 | 11 | SteamVR_TrackedObject trackedObj; 12 | FixedJoint joint; 13 | 14 | void Awake() 15 | { 16 | trackedObj = GetComponent(); 17 | } 18 | 19 | void FixedUpdate() 20 | { 21 | var device = SteamVR_Controller.Input((int)trackedObj.index); 22 | if (joint == null && device.GetTouchDown(SteamVR_Controller.ButtonMask.Trigger)) 23 | { 24 | var go = GameObject.Instantiate(prefab); 25 | go.transform.position = attachPoint.transform.position; 26 | 27 | joint = go.AddComponent(); 28 | joint.connectedBody = attachPoint; 29 | } 30 | else if (joint != null && device.GetTouchUp(SteamVR_Controller.ButtonMask.Trigger)) 31 | { 32 | var go = joint.gameObject; 33 | var rigidbody = go.GetComponent(); 34 | Object.DestroyImmediate(joint); 35 | joint = null; 36 | Object.Destroy(go, 15.0f); 37 | 38 | // We should probably apply the offset between trackedObj.transform.position 39 | // and device.transform.pos to insert into the physics sim at the correct 40 | // location, however, we would then want to predict ahead the visual representation 41 | // by the same amount we are predicting our render poses. 42 | 43 | var origin = trackedObj.origin ? trackedObj.origin : trackedObj.transform.parent; 44 | if (origin != null) 45 | { 46 | rigidbody.velocity = origin.TransformVector(device.velocity); 47 | rigidbody.angularVelocity = origin.TransformVector(device.angularVelocity); 48 | } 49 | else 50 | { 51 | rigidbody.velocity = device.velocity; 52 | rigidbody.angularVelocity = device.angularVelocity; 53 | } 54 | 55 | rigidbody.maxAngularVelocity = rigidbody.angularVelocity.magnitude; 56 | } 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TestThrow.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff4f36585e15b1942827390ff1a92502 3 | timeCreated: 1437513988 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TestThrow.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0d936163b5e9a5047b5e4ba5afaf5126 3 | timeCreated: 1437513966 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TestTrackedCamera.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | using UnityEngine; 3 | 4 | public class SteamVR_TestTrackedCamera : MonoBehaviour 5 | { 6 | public Material material; 7 | public Transform target; 8 | public bool undistorted = true; 9 | public bool cropped = true; 10 | 11 | void OnEnable() 12 | { 13 | // The video stream must be symmetrically acquired and released in 14 | // order to properly disable the stream once there are no consumers. 15 | var source = SteamVR_TrackedCamera.Source(undistorted); 16 | source.Acquire(); 17 | 18 | // Auto-disable if no camera is present. 19 | if (!source.hasCamera) 20 | enabled = false; 21 | } 22 | 23 | void OnDisable() 24 | { 25 | // Clear the texture when no longer active. 26 | material.mainTexture = null; 27 | 28 | // The video stream must be symmetrically acquired and released in 29 | // order to properly disable the stream once there are no consumers. 30 | var source = SteamVR_TrackedCamera.Source(undistorted); 31 | source.Release(); 32 | } 33 | 34 | void Update() 35 | { 36 | var source = SteamVR_TrackedCamera.Source(undistorted); 37 | var texture = source.texture; 38 | if (texture == null) 39 | { 40 | return; 41 | } 42 | 43 | // Apply the latest texture to the material. This must be performed 44 | // every frame since the underlying texture is actually part of a ring 45 | // buffer which is updated in lock-step with its associated pose. 46 | // (You actually really only need to call any of the accessors which 47 | // internally call Update on the SteamVR_TrackedCamera.VideoStreamTexture). 48 | material.mainTexture = texture; 49 | 50 | // Adjust the height of the quad based on the aspect to keep the texels square. 51 | var aspect = (float)texture.width / texture.height; 52 | 53 | // The undistorted video feed has 'bad' areas near the edges where the original 54 | // square texture feed is stretched to undo the fisheye from the lens. 55 | // Therefore, you'll want to crop it to the specified frameBounds to remove this. 56 | if (cropped) 57 | { 58 | var bounds = source.frameBounds; 59 | material.mainTextureOffset = new Vector2(bounds.uMin, bounds.vMin); 60 | 61 | var du = bounds.uMax - bounds.uMin; 62 | var dv = bounds.vMax - bounds.vMin; 63 | material.mainTextureScale = new Vector2(du, dv); 64 | 65 | aspect *= Mathf.Abs(du / dv); 66 | } 67 | else 68 | { 69 | material.mainTextureOffset = Vector2.zero; 70 | material.mainTextureScale = new Vector2(1, -1); 71 | } 72 | 73 | target.localScale = new Vector3(1, 1.0f / aspect, 1); 74 | 75 | // Apply the pose that this frame was recorded at. 76 | if (source.hasTracking) 77 | { 78 | var t = source.transform; 79 | target.localPosition = t.pos; 80 | target.localRotation = t.rot; 81 | } 82 | } 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TestTrackedCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b18b36a995ecb04599f35c2741be8d5 3 | timeCreated: 1465946679 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TestTrackedCamera.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99ee8d48ccf36264e9d9a72baa681249 3 | timeCreated: 1465950289 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TestTrackedCamera.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fb811b0ffe615b4dbf1d5e6ced385fd 3 | timeCreated: 1464227836 4 | licenseType: Store 5 | DefaultImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SteamVR/Extras/SteamVR_TrackedController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7346a42905a29b347b1f492e8ad7b49f 3 | timeCreated: 1430337756 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1459d94e0a5b7af4a8a3fa067ae575e9 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/SteamVR/Materials/workshop.mat: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!21 &2100000 4 | Material: 5 | serializedVersion: 5 6 | m_ObjectHideFlags: 0 7 | m_PrefabParentObject: {fileID: 0} 8 | m_PrefabInternal: {fileID: 0} 9 | m_Name: workshop 10 | m_Shader: {fileID: 10752, guid: 0000000000000000f000000000000000, type: 0} 11 | m_ShaderKeywords: 12 | m_LightmapFlags: 5 13 | m_CustomRenderQueue: -1 14 | m_SavedProperties: 15 | serializedVersion: 2 16 | m_TexEnvs: 17 | data: 18 | first: 19 | name: _MainTex 20 | second: 21 | m_Texture: {fileID: 2800000, guid: a57cd5c56c9d75c4ba0ee9fbc6e1d8df, type: 3} 22 | m_Scale: {x: 1, y: 1} 23 | m_Offset: {x: 0, y: 0} 24 | m_Floats: {} 25 | m_Colors: {} 26 | -------------------------------------------------------------------------------- /Assets/SteamVR/Materials/workshop.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 712cd3a70a5a1da41a6594aac6a97abe 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/SteamVR/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2a747d8f314a8449a70c1fb1807f8dd 3 | folderAsset: yes 4 | timeCreated: 1462480362 5 | licenseType: Store 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Plugins/openvr_api.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d26b9eddedb33d48be044bb268a57c7 3 | timeCreated: 1429123043 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e2543c4beea3eb4e9ea1e02a4bc2df2 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/SteamVR/Prefabs/[CameraRig].prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d293c8e162f3874b982baadd71153d2 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/SteamVR/Prefabs/[Status].prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 255333d57084e4e46b3d948279746a47 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/SteamVR/Prefabs/[SteamVR].prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f35fa249b5008c44ac2998be6f82d4d 3 | timeCreated: 1429757514 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40af2f692be87864ba388a27fcac9ed8 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_AlphaOut.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/SteamVR_AlphaOut" { 2 | Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } 3 | 4 | CGINCLUDE 5 | 6 | #include "UnityCG.cginc" 7 | 8 | sampler2D _MainTex; 9 | 10 | struct v2f { 11 | float4 pos : SV_POSITION; 12 | float2 tex : TEXCOORD0; 13 | }; 14 | 15 | v2f vert(appdata_base v) { 16 | v2f o; 17 | o.pos = mul(UNITY_MATRIX_MVP, v.vertex); 18 | o.tex = v.texcoord; 19 | return o; 20 | } 21 | 22 | float luminance(float3 color) 23 | { 24 | return 0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b; 25 | } 26 | 27 | float4 frag(v2f i) : COLOR { 28 | float4 color = tex2D(_MainTex, i.tex); 29 | float a = saturate(color.a + luminance(color.rgb)); 30 | return float4(a, a, a, a); 31 | } 32 | 33 | ENDCG 34 | 35 | SubShader { 36 | Pass { 37 | ZTest Always Cull Off ZWrite Off 38 | Fog { Mode Off } 39 | 40 | CGPROGRAM 41 | #pragma vertex vert 42 | #pragma fragment frag 43 | ENDCG 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_AlphaOut.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: da25bb0dccfd3894181fc5e84714cd17 3 | timeCreated: 1456189850 4 | licenseType: Store 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_ClearAll.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/SteamVR_ClearAll" { 2 | Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } 3 | 4 | CGINCLUDE 5 | 6 | #include "UnityCG.cginc" 7 | 8 | sampler2D _MainTex; 9 | 10 | struct v2f { 11 | float4 pos : SV_POSITION; 12 | float2 tex : TEXCOORD0; 13 | }; 14 | 15 | v2f vert(appdata_base v) { 16 | v2f o; 17 | o.pos = mul(UNITY_MATRIX_MVP, v.vertex); 18 | o.tex = v.texcoord; 19 | return o; 20 | } 21 | 22 | float4 frag(v2f i) : COLOR { 23 | return float4(0, 0, 0, 0); 24 | } 25 | 26 | ENDCG 27 | 28 | SubShader { 29 | Tags{ "Queue" = "Background" } 30 | Pass { 31 | ZTest Always Cull Off ZWrite On 32 | Fog { Mode Off } 33 | 34 | CGPROGRAM 35 | #pragma vertex vert 36 | #pragma fragment frag 37 | ENDCG 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_ClearAll.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1eded52540dd0a4988d5d4d76382da9 3 | timeCreated: 1457042024 4 | licenseType: Store 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_ColorOut.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/SteamVR_ColorOut" { 2 | Properties { _MainTex ("Base (RGB)", 2D) = "white" {} } 3 | 4 | CGINCLUDE 5 | 6 | #include "UnityCG.cginc" 7 | 8 | sampler2D _MainTex; 9 | 10 | struct v2f { 11 | float4 pos : SV_POSITION; 12 | float2 tex : TEXCOORD0; 13 | }; 14 | 15 | v2f vert(appdata_base v) { 16 | v2f o; 17 | o.pos = mul(UNITY_MATRIX_MVP, v.vertex); 18 | o.tex = v.texcoord; 19 | return o; 20 | } 21 | 22 | float luminance(float3 color) 23 | { 24 | return 0.2126 * color.r + 0.7152 * color.g + 0.0722 * color.b; 25 | } 26 | 27 | float4 frag(v2f i) : COLOR { 28 | float4 color = tex2D(_MainTex, i.tex); 29 | return float4(color.rgb, 1); 30 | } 31 | 32 | ENDCG 33 | 34 | SubShader { 35 | Pass { 36 | ZTest Always Cull Off ZWrite Off 37 | Fog { Mode Off } 38 | 39 | CGPROGRAM 40 | #pragma vertex vert 41 | #pragma fragment frag 42 | ENDCG 43 | } 44 | } 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_ColorOut.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 04d03a6e2ff64bf47911d08912140c31 3 | timeCreated: 1456866489 4 | licenseType: Store 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_ExternalCamera.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6b259143c09ffc447ad059e5b8d8cf89 3 | timeCreated: 1456288801 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_Fade.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/SteamVR_Fade" 2 | { 3 | SubShader 4 | { 5 | Pass 6 | { 7 | Blend SrcAlpha OneMinusSrcAlpha 8 | ZTest Always 9 | Cull Off 10 | ZWrite Off 11 | 12 | CGPROGRAM 13 | #pragma vertex MainVS 14 | #pragma fragment MainPS 15 | 16 | float4 fadeColor; 17 | 18 | float4 MainVS( float4 vertex : POSITION ) : SV_POSITION 19 | { 20 | return vertex.xyzw; 21 | } 22 | 23 | float4 MainPS() : SV_Target 24 | { 25 | return fadeColor.rgba; 26 | } 27 | ENDCG 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_Fade.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f884441bea153347be721454dc13716 3 | timeCreated: 1433284862 4 | licenseType: Store 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_SphericalProjection.shader: -------------------------------------------------------------------------------- 1 | Shader "Custom/SteamVR_SphericalProjection" { 2 | Properties { 3 | _MainTex ("Base (RGB)", 2D) = "white" {} 4 | _N ("N (normal of plane)", Vector) = (0,0,0,0) 5 | _Phi0 ("Phi0", Float) = 0 6 | _Phi1 ("Phi1", Float) = 1 7 | _Theta0 ("Theta0", Float) = 0 8 | _Theta1 ("Theta1", Float) = 1 9 | _UAxis ("uAxis", Vector) = (0,0,0,0) 10 | _VAxis ("vAxis", Vector) = (0,0,0,0) 11 | _UOrigin ("uOrigin", Vector) = (0,0,0,0) 12 | _VOrigin ("vOrigin", Vector) = (0,0,0,0) 13 | _UScale ("uScale", Float) = 1 14 | _VScale ("vScale", Float) = 1 15 | } 16 | 17 | CGINCLUDE 18 | 19 | #include "UnityCG.cginc" 20 | 21 | sampler2D _MainTex; 22 | float4 _N; 23 | float _Phi0, _Phi1, _Theta0, _Theta1; 24 | float4 _UAxis, _VAxis; 25 | float4 _UOrigin, _VOrigin; 26 | float _UScale, _VScale; 27 | 28 | struct v2f { 29 | float4 pos : SV_POSITION; 30 | float2 tex : TEXCOORD0; 31 | }; 32 | 33 | v2f vert(appdata_base v) { 34 | v2f o; 35 | o.pos = mul(UNITY_MATRIX_MVP, v.vertex); 36 | o.tex = float2( 37 | lerp(_Phi0, _Phi1, v.texcoord.x), 38 | lerp(_Theta0, _Theta1, v.texcoord.y)); 39 | return o; 40 | } 41 | 42 | float3 cartesian(float phi, float theta) 43 | { 44 | float sinTheta = sin(theta); 45 | return float3( 46 | sinTheta * sin(phi), 47 | cos(theta), 48 | sinTheta * cos(phi)); 49 | } 50 | 51 | float4 frag(v2f i) : COLOR { 52 | float3 V = cartesian(i.tex.x, i.tex.y); 53 | float3 P = V / dot(V, _N.xyz); // intersection point on plane 54 | float2 uv = float2( 55 | dot(P - _UOrigin.xyz, _UAxis.xyz) * _UScale, 56 | dot(P - _VOrigin.xyz, _VAxis.xyz) * _VScale); 57 | return tex2D(_MainTex, uv); 58 | } 59 | 60 | ENDCG 61 | 62 | SubShader { 63 | Pass { 64 | ZTest Always Cull Off ZWrite Off 65 | Fog { Mode Off } 66 | 67 | CGPROGRAM 68 | #pragma vertex vert 69 | #pragma fragment frag 70 | ENDCG 71 | } 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /Assets/SteamVR/Resources/SteamVR_SphericalProjection.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43b10deca54ca524c8cd9a0fcb622325 3 | timeCreated: 1462380123 4 | licenseType: Store 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1c7547f24e8b4864d87d59903b1f8c40 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scenes/example.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 274ae687a94e2444b85ce2bcf56c1df3 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d88af1b1098a33a42bc43c910c864102 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fae0ddab09ac324c85494471274d6a4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Camera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bca9ccf900ccc84c887d783321d27e2 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_CameraFlip.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Flips the camera output back to normal for D3D. 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | 9 | [ExecuteInEditMode] 10 | public class SteamVR_CameraFlip : MonoBehaviour 11 | { 12 | void Awake() 13 | { 14 | Debug.Log("SteamVR_CameraFlip is deprecated in Unity 5.4 - REMOVING"); 15 | DestroyImmediate(this); 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_CameraFlip.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5be45115742b07478e21c85fcc233ec 3 | timeCreated: 1430851231 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_CameraMask.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Masks out pixels that cannot be seen through the connected hmd. 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | 9 | [ExecuteInEditMode] 10 | public class SteamVR_CameraMask : MonoBehaviour 11 | { 12 | void Awake() 13 | { 14 | Debug.Log("SteamVR_CameraMask is deprecated in Unity 5.4 - REMOVING"); 15 | DestroyImmediate(this); 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_CameraMask.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5828f252c3c228f4b931f66c21e525c4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Controller.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f9c6e0c408020c341b3c329ec30355a1 3 | timeCreated: 1429900414 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_ControllerManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3b47c2980b93bc48844a54641dab5b8 3 | timeCreated: 1437430318 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Ears.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Handles aligning audio listener when using speakers. 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | using Valve.VR; 9 | 10 | [RequireComponent(typeof(AudioListener))] 11 | public class SteamVR_Ears : MonoBehaviour 12 | { 13 | public SteamVR_Camera vrcam; 14 | 15 | bool usingSpeakers; 16 | Quaternion offset; 17 | 18 | private void OnNewPosesApplied(params object[] args) 19 | { 20 | var origin = vrcam.origin; 21 | var baseRotation = origin != null ? origin.rotation : Quaternion.identity; 22 | transform.rotation = baseRotation * offset; 23 | } 24 | 25 | void OnEnable() 26 | { 27 | usingSpeakers = false; 28 | 29 | var settings = OpenVR.Settings; 30 | if (settings != null) 31 | { 32 | var error = EVRSettingsError.None; 33 | if (settings.GetBool(OpenVR.k_pch_SteamVR_Section, OpenVR.k_pch_SteamVR_UsingSpeakers_Bool, false, ref error)) 34 | { 35 | usingSpeakers = true; 36 | 37 | var yawOffset = settings.GetFloat(OpenVR.k_pch_SteamVR_Section, OpenVR.k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float, 0.0f, ref error); 38 | offset = Quaternion.Euler(0.0f, yawOffset, 0.0f); 39 | } 40 | } 41 | 42 | if (usingSpeakers) 43 | SteamVR_Utils.Event.Listen("new_poses_applied", OnNewPosesApplied); 44 | } 45 | 46 | void OnDisable() 47 | { 48 | if (usingSpeakers) 49 | SteamVR_Utils.Event.Remove("new_poses_applied", OnNewPosesApplied); 50 | } 51 | } 52 | 53 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Ears.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 49a86c1078ce4314b9c4224560e031b9 3 | timeCreated: 1457243016 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_ExternalCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9da270df5147d24597cc106058c1fa7 3 | timeCreated: 1455761349 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Fade.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ad1e469d4e3e04489f9a36419f1a4f8 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Frustum.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2d1785fa0c551e408b6c94398847b76 3 | timeCreated: 1427400484 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_GameView.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Handles rendering to the game view window 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | 9 | [ExecuteInEditMode] 10 | public class SteamVR_GameView : MonoBehaviour 11 | { 12 | void Awake() 13 | { 14 | Debug.Log("SteamVR_GameView is deprecated in Unity 5.4 - REMOVING"); 15 | DestroyImmediate(this); 16 | } 17 | } 18 | 19 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_GameView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be96d45fe21847a4a805d408a8015c84 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_IK.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ea22dba3baf2ecc4d886bf2444444228 3 | timeCreated: 1437502789 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_LoadLevel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a5a6a70209b6e6345bfe18b02314a54e 3 | timeCreated: 1446783318 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Menu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7afc8c74d1f73b458705e0b946292a0 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Overlay.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 46fe9e0b23166454c8cb73040321d78c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_PlayArea.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f0522eaef74d984591c060d05a095c8 3 | timeCreated: 1438043592 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Render.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e979227f3384fac4b8ca0b3550bf005c 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: -32000 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_RenderModel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5890e3cad70bea64d91aef9145ba3454 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Skybox.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Sets cubemap to use in the compositor. 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | using Valve.VR; 9 | 10 | public class SteamVR_Skybox : MonoBehaviour 11 | { 12 | // Note: Unity's Left and Right Skybox shader variables are switched. 13 | public Texture front, back, left, right, top, bottom; 14 | 15 | public enum CellSize 16 | { 17 | x1024, x64, x32, x16, x8 18 | } 19 | public CellSize StereoCellSize = CellSize.x32; 20 | 21 | public float StereoIpdMm = 64.0f; 22 | 23 | public void SetTextureByIndex(int i, Texture t) 24 | { 25 | switch (i) 26 | { 27 | case 0: 28 | front = t; 29 | break; 30 | case 1: 31 | back = t; 32 | break; 33 | case 2: 34 | left = t; 35 | break; 36 | case 3: 37 | right = t; 38 | break; 39 | case 4: 40 | top = t; 41 | break; 42 | case 5: 43 | bottom = t; 44 | break; 45 | } 46 | } 47 | 48 | public Texture GetTextureByIndex(int i) 49 | { 50 | switch (i) 51 | { 52 | case 0: 53 | return front; 54 | case 1: 55 | return back; 56 | case 2: 57 | return left; 58 | case 3: 59 | return right; 60 | case 4: 61 | return top; 62 | case 5: 63 | return bottom; 64 | } 65 | return null; 66 | } 67 | 68 | static public void SetOverride( 69 | Texture front = null, 70 | Texture back = null, 71 | Texture left = null, 72 | Texture right = null, 73 | Texture top = null, 74 | Texture bottom = null ) 75 | { 76 | var compositor = OpenVR.Compositor; 77 | if (compositor != null) 78 | { 79 | var handles = new Texture[] { front, back, left, right, top, bottom }; 80 | var textures = new Texture_t[6]; 81 | for (int i = 0; i < 6; i++) 82 | { 83 | textures[i].handle = (handles[i] != null) ? handles[i].GetNativeTexturePtr() : System.IntPtr.Zero; 84 | textures[i].eType = SteamVR.instance.graphicsAPI; 85 | textures[i].eColorSpace = EColorSpace.Auto; 86 | } 87 | var error = compositor.SetSkyboxOverride(textures); 88 | if (error != EVRCompositorError.None) 89 | { 90 | Debug.LogError("Failed to set skybox override with error: " + error); 91 | if (error == EVRCompositorError.TextureIsOnWrongDevice) 92 | Debug.Log("Set your graphics driver to use the same video card as the headset is plugged into for Unity."); 93 | else if (error == EVRCompositorError.TextureUsesUnsupportedFormat) 94 | Debug.Log("Ensure skybox textures are not compressed and have no mipmaps."); 95 | } 96 | } 97 | } 98 | 99 | static public void ClearOverride() 100 | { 101 | var compositor = OpenVR.Compositor; 102 | if (compositor != null) 103 | compositor.ClearSkyboxOverride(); 104 | } 105 | 106 | void OnEnable() 107 | { 108 | SetOverride(front, back, left, right, top, bottom); 109 | } 110 | 111 | void OnDisable() 112 | { 113 | ClearOverride(); 114 | } 115 | } 116 | 117 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Skybox.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 13a43e992568b8e48b4bd489b9d96f40 3 | timeCreated: 1439344311 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_SphericalProjection.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Applies spherical projection to output. 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | 9 | [ExecuteInEditMode] 10 | public class SteamVR_SphericalProjection : MonoBehaviour 11 | { 12 | static Material material; 13 | 14 | public void Set(Vector3 N, 15 | float phi0, float phi1, float theta0, float theta1, // in degrees 16 | Vector3 uAxis, Vector3 uOrigin, float uScale, 17 | Vector3 vAxis, Vector3 vOrigin, float vScale) 18 | { 19 | if (material == null) 20 | material = new Material(Shader.Find("Custom/SteamVR_SphericalProjection")); 21 | 22 | material.SetVector("_N", new Vector4(N.x, N.y, N.z)); 23 | material.SetFloat("_Phi0", phi0 * Mathf.Deg2Rad); 24 | material.SetFloat("_Phi1", phi1 * Mathf.Deg2Rad); 25 | material.SetFloat("_Theta0", theta0 * Mathf.Deg2Rad + Mathf.PI / 2); 26 | material.SetFloat("_Theta1", theta1 * Mathf.Deg2Rad + Mathf.PI / 2); 27 | material.SetVector("_UAxis", uAxis); 28 | material.SetVector("_VAxis", vAxis); 29 | material.SetVector("_UOrigin", uOrigin); 30 | material.SetVector("_VOrigin", vOrigin); 31 | material.SetFloat("_UScale", uScale); 32 | material.SetFloat("_VScale", vScale); 33 | } 34 | 35 | void OnRenderImage(RenderTexture src, RenderTexture dest) 36 | { 37 | Graphics.Blit(src, dest, material); 38 | } 39 | } 40 | 41 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_SphericalProjection.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f4097fabec5d2b4da2b861750319952 3 | timeCreated: 1462380202 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Stats.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Helper to display various hmd stats via GUIText 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | using Valve.VR; 9 | 10 | public class SteamVR_Stats : MonoBehaviour 11 | { 12 | public GUIText text; 13 | 14 | public Color fadeColor = Color.black; 15 | public float fadeDuration = 1.0f; 16 | 17 | void Awake() 18 | { 19 | if (text == null) 20 | { 21 | text = GetComponent(); 22 | text.enabled = false; 23 | } 24 | 25 | if (fadeDuration > 0) 26 | { 27 | SteamVR_Fade.Start(fadeColor, 0); 28 | SteamVR_Fade.Start(Color.clear, fadeDuration); 29 | } 30 | } 31 | 32 | double lastUpdate = 0.0f; 33 | 34 | void Update() 35 | { 36 | if (text != null) 37 | { 38 | if (Input.GetKeyDown(KeyCode.I)) 39 | { 40 | text.enabled = !text.enabled; 41 | } 42 | 43 | if (text.enabled) 44 | { 45 | var compositor = OpenVR.Compositor; 46 | if (compositor != null) 47 | { 48 | var timing = new Compositor_FrameTiming(); 49 | timing.m_nSize = (uint)System.Runtime.InteropServices.Marshal.SizeOf(typeof(Compositor_FrameTiming)); 50 | compositor.GetFrameTiming(ref timing, 0); 51 | 52 | var update = timing.m_flSystemTimeInSeconds; 53 | if (update > lastUpdate) 54 | { 55 | var framerate = (lastUpdate > 0.0f) ? 1.0f / (update - lastUpdate) : 0.0f; 56 | lastUpdate = update; 57 | text.text = string.Format("framerate: {0:N0}\ndropped frames: {1}", framerate, (int)timing.m_nNumDroppedFrames); 58 | } 59 | else 60 | { 61 | lastUpdate = update; 62 | } 63 | } 64 | } 65 | } 66 | } 67 | } 68 | 69 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Stats.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c3faa610c019764a81eb8497109e2d4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Status.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Base class for fading things based on SteamVR events 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | 9 | public abstract class SteamVR_Status : MonoBehaviour 10 | { 11 | public string message; // name of event to respond to 12 | public float duration, fade; 13 | 14 | protected float timer; 15 | protected bool status; 16 | 17 | public enum Mode 18 | { 19 | OnTrue, 20 | OnFalse, 21 | WhileTrue, 22 | WhileFalse 23 | } 24 | 25 | public Mode mode; 26 | 27 | protected abstract void SetAlpha(float a); 28 | 29 | void OnEnable() 30 | { 31 | SteamVR_Utils.Event.Listen(message, OnEvent); 32 | } 33 | 34 | void OnDisable() 35 | { 36 | SteamVR_Utils.Event.Remove(message, OnEvent); 37 | } 38 | 39 | void OnEvent(params object[] args) 40 | { 41 | status = (bool)args[0]; 42 | if (status) 43 | { 44 | if (mode == Mode.OnTrue) 45 | timer = duration; 46 | } 47 | else 48 | { 49 | if (mode == Mode.OnFalse) 50 | timer = duration; 51 | } 52 | } 53 | 54 | void Update() 55 | { 56 | if (mode == Mode.OnTrue || mode == Mode.OnFalse) 57 | { 58 | timer -= Time.deltaTime; 59 | if (timer < 0.0f) 60 | { 61 | SetAlpha(0.0f); 62 | } 63 | else 64 | { 65 | var a = 1.0f; 66 | if (timer < fade) 67 | a = timer / fade; 68 | if (timer > duration - fade) 69 | a = Mathf.InverseLerp(duration, duration - fade, timer); 70 | SetAlpha(a); 71 | } 72 | } 73 | else 74 | { 75 | var show = (mode == Mode.WhileTrue && status == true) || (mode == Mode.WhileFalse && status == false); 76 | timer = show ? Mathf.Min(fade, timer + Time.deltaTime) : Mathf.Max(0.0f, timer - Time.deltaTime); 77 | SetAlpha(timer / fade); 78 | } 79 | } 80 | } 81 | 82 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Status.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 58bbdee1309aef543ac92df1576bfe23 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_StatusText.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Used to display SteamVR status messages 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | 9 | [RequireComponent(typeof(GUIText))] 10 | public class SteamVR_StatusText : SteamVR_Status 11 | { 12 | GUIText text; 13 | 14 | void Awake() 15 | { 16 | text = GetComponent(); 17 | 18 | if (mode == Mode.WhileTrue || mode == Mode.WhileFalse) 19 | timer = fade * text.color.a; 20 | } 21 | 22 | protected override void SetAlpha(float a) 23 | { 24 | if (a > 0.0f) 25 | { 26 | text.enabled = true; 27 | text.color = new Color(text.color.r, text.color.g, text.color.b, a); 28 | } 29 | else 30 | { 31 | text.enabled = false; 32 | } 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_StatusText.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 734380cdf472d0948a48549e5d5e7aa4 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_TestController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0811e240274b8ea4a8469e82b86747b4 3 | timeCreated: 1432764931 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_TrackedCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55da3adbb5d30254c97687991608dda0 3 | timeCreated: 1464217571 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_TrackedObject.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: For controlling in-game objects with tracked devices. 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | using Valve.VR; 9 | 10 | public class SteamVR_TrackedObject : MonoBehaviour 11 | { 12 | public enum EIndex 13 | { 14 | None = -1, 15 | Hmd = (int)OpenVR.k_unTrackedDeviceIndex_Hmd, 16 | Device1, 17 | Device2, 18 | Device3, 19 | Device4, 20 | Device5, 21 | Device6, 22 | Device7, 23 | Device8, 24 | Device9, 25 | Device10, 26 | Device11, 27 | Device12, 28 | Device13, 29 | Device14, 30 | Device15 31 | } 32 | 33 | public EIndex index; 34 | public Transform origin; // if not set, relative to parent 35 | public bool isValid = false; 36 | 37 | private void OnNewPoses(params object[] args) 38 | { 39 | if (index == EIndex.None) 40 | return; 41 | 42 | var i = (int)index; 43 | 44 | isValid = false; 45 | var poses = (Valve.VR.TrackedDevicePose_t[])args[0]; 46 | if (poses.Length <= i) 47 | return; 48 | 49 | if (!poses[i].bDeviceIsConnected) 50 | return; 51 | 52 | if (!poses[i].bPoseIsValid) 53 | return; 54 | 55 | isValid = true; 56 | 57 | var pose = new SteamVR_Utils.RigidTransform(poses[i].mDeviceToAbsoluteTracking); 58 | 59 | if (origin != null) 60 | { 61 | pose = new SteamVR_Utils.RigidTransform(origin) * pose; 62 | pose.pos.x *= origin.localScale.x; 63 | pose.pos.y *= origin.localScale.y; 64 | pose.pos.z *= origin.localScale.z; 65 | transform.position = pose.pos; 66 | transform.rotation = pose.rot; 67 | } 68 | else 69 | { 70 | transform.localPosition = pose.pos; 71 | transform.localRotation = pose.rot; 72 | } 73 | } 74 | 75 | void OnEnable() 76 | { 77 | var render = SteamVR_Render.instance; 78 | if (render == null) 79 | { 80 | enabled = false; 81 | return; 82 | } 83 | 84 | SteamVR_Utils.Event.Listen("new_poses", OnNewPoses); 85 | } 86 | 87 | void OnDisable() 88 | { 89 | SteamVR_Utils.Event.Remove("new_poses", OnNewPoses); 90 | isValid = false; 91 | } 92 | 93 | public void SetDeviceIndex(int index) 94 | { 95 | Debug.Log(index); 96 | if (System.Enum.IsDefined(typeof(EIndex), index)) 97 | this.index = (EIndex)index; 98 | } 99 | } 100 | 101 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_TrackedObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d37c2cf88f7c59f4c8cf5d3812568143 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_UpdatePoses.cs: -------------------------------------------------------------------------------- 1 | //======= Copyright (c) Valve Corporation, All rights reserved. =============== 2 | // 3 | // Purpose: Helper to update poses when using native OpenVR integration. 4 | // 5 | //============================================================================= 6 | 7 | using UnityEngine; 8 | using Valve.VR; 9 | 10 | [RequireComponent(typeof(Camera))] 11 | public class SteamVR_UpdatePoses : MonoBehaviour 12 | { 13 | void Awake() 14 | { 15 | var camera = GetComponent(); 16 | camera.stereoTargetEye = StereoTargetEyeMask.None; 17 | camera.clearFlags = CameraClearFlags.Nothing; 18 | camera.useOcclusionCulling = false; 19 | camera.cullingMask = 0; 20 | camera.depth = -9999; 21 | } 22 | 23 | void OnPreCull() 24 | { 25 | var compositor = OpenVR.Compositor; 26 | if (compositor != null) 27 | { 28 | var render = SteamVR_Render.instance; 29 | compositor.GetLastPoses(render.poses, render.gamePoses); 30 | SteamVR_Utils.Event.Send("new_poses", render.poses); 31 | SteamVR_Utils.Event.Send("new_poses_applied"); 32 | } 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_UpdatePoses.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b61cd59d8f02e454186a61a5f55c21b9 3 | timeCreated: 1457229804 4 | licenseType: Store 5 | MonoImporter: 6 | serializedVersion: 2 7 | defaultReferences: [] 8 | executionOrder: 0 9 | icon: {instanceID: 0} 10 | userData: 11 | assetBundleName: 12 | assetBundleVariant: 13 | -------------------------------------------------------------------------------- /Assets/SteamVR/Scripts/SteamVR_Utils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be3c3a084f7b29b4880b42b4cfbf4d8f 3 | MonoImporter: 4 | serializedVersion: 2 5 | defaultReferences: [] 6 | executionOrder: 0 7 | icon: {instanceID: 0} 8 | userData: 9 | assetBundleName: 10 | -------------------------------------------------------------------------------- /Assets/SteamVR/Textures.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: abfc00e0350ad744083849e2d7ae06ee 3 | folderAsset: yes 4 | DefaultImporter: 5 | userData: 6 | assetBundleName: 7 | -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/arrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/SteamVR/Textures/arrow.png -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/arrow.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2db89a771043d7b4eb9d26622f6b97c7 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 2 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/SteamVR/Textures/background.png -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/background.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb00cc87e146a414fbf2c4d3c0d31151 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -1 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 2 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/SteamVR/Textures/logo.png -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/logo.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09db43b3b77bf744287ba587fea02f8b 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 0 9 | linearTexture: 1 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -3 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: -1 31 | aniso: 1 32 | mipBias: -1 33 | wrapMode: 1 34 | nPOTScale: 0 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 1 46 | textureType: 2 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | assetBundleVariant: 54 | -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/overlay.renderTexture: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!84 &8400000 4 | RenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_PrefabParentObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: overlay 9 | m_ImageContentsHash: 10 | serializedVersion: 2 11 | Hash: 00000000000000000000000000000000 12 | m_Width: 2048 13 | m_Height: 2048 14 | m_AntiAliasing: 8 15 | m_DepthFormat: 0 16 | m_ColorFormat: 0 17 | m_MipMap: 0 18 | m_GenerateMips: 1 19 | m_SRGB: 0 20 | m_TextureSettings: 21 | m_FilterMode: 2 22 | m_Aniso: 9 23 | m_MipBias: 0 24 | m_WrapMode: 1 25 | -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/overlay.renderTexture.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 005ed5a6df2f5ff468efd6497d37fefa 3 | NativeFormatImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/workshop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/SteamVR/Textures/workshop.png -------------------------------------------------------------------------------- /Assets/SteamVR/Textures/workshop.png.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a57cd5c56c9d75c4ba0ee9fbc6e1d8df 3 | TextureImporter: 4 | fileIDToRecycleName: {} 5 | serializedVersion: 2 6 | mipmaps: 7 | mipMapMode: 0 8 | enableMipMap: 1 9 | linearTexture: 0 10 | correctGamma: 0 11 | fadeOut: 0 12 | borderMipMap: 0 13 | mipMapFadeDistanceStart: 1 14 | mipMapFadeDistanceEnd: 3 15 | bumpmap: 16 | convertToNormalMap: 0 17 | externalNormalMap: 0 18 | heightScale: .25 19 | normalMapFilter: 0 20 | isReadable: 0 21 | grayScaleToAlpha: 0 22 | generateCubemap: 0 23 | cubemapConvolution: 0 24 | cubemapConvolutionSteps: 8 25 | cubemapConvolutionExponent: 1.5 26 | seamlessCubemap: 0 27 | textureFormat: -3 28 | maxTextureSize: 1024 29 | textureSettings: 30 | filterMode: 2 31 | aniso: 9 32 | mipBias: -1 33 | wrapMode: -1 34 | nPOTScale: 1 35 | lightmap: 0 36 | rGBM: 0 37 | compressionQuality: 50 38 | spriteMode: 0 39 | spriteExtrude: 1 40 | spriteMeshType: 1 41 | alignment: 0 42 | spritePivot: {x: .5, y: .5} 43 | spriteBorder: {x: 0, y: 0, z: 0, w: 0} 44 | spritePixelsToUnits: 100 45 | alphaIsTransparency: 0 46 | textureType: -1 47 | buildTargetSettings: [] 48 | spriteSheet: 49 | sprites: [] 50 | spritePackingTag: 51 | userData: 52 | assetBundleName: 53 | -------------------------------------------------------------------------------- /Assets/SteamVR/quickstart.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/Assets/SteamVR/quickstart.pdf -------------------------------------------------------------------------------- /Assets/SteamVR/quickstart.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7e681076fb2fad47bed246936de90bf 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/SteamVR/readme.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a51c3dbd81ecb6741b7a2c5b06dbcb2e 3 | TextScriptImporter: 4 | userData: 5 | assetBundleName: 6 | -------------------------------------------------------------------------------- /Assets/smcs.rsp: -------------------------------------------------------------------------------- 1 | -unsafe 2 | -------------------------------------------------------------------------------- /Assets/smcs.rsp.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e1dab48a06183e4c9c0adcee8fb7581 3 | DefaultImporter: 4 | userData: 5 | assetBundleName: 6 | assetBundleVariant: 7 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 The Archer Group 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 4 | 5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 6 | 7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/AudioManager.asset -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/ClusterInputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/DynamicsManager.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/EditorBuildSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/EditorSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/GraphicsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/GraphicsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/InputManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/InputManager.asset -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/NavMeshAreas.asset -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/NetworkManager.asset -------------------------------------------------------------------------------- /ProjectSettings/Physics2DSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/Physics2DSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/ProjectSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 5.4.0f3 2 | m_StandardAssetsVersion: 0 3 | -------------------------------------------------------------------------------- /ProjectSettings/QualitySettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/QualitySettings.asset -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/TagManager.asset -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/TimeManager.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityAdsSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/UnityAdsSettings.asset -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/ProjectSettings/UnityConnectSettings.asset -------------------------------------------------------------------------------- /img/gorilla1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/img/gorilla1.jpg -------------------------------------------------------------------------------- /img/mixed-reality.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/img/mixed-reality.gif -------------------------------------------------------------------------------- /img/mr-rig.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dwarcher/KinectMixedReality/1d85d605859d1a48f0107eb6dc8dbb52ab057b8e/img/mr-rig.jpg --------------------------------------------------------------------------------