├── LICENSE
├── LICENSE.meta
├── Materials.meta
├── Materials
├── AugmentaObjectDebug.mat
├── AugmentaObjectDebug.mat.meta
├── AugmentaOrientationDebug.mat
├── AugmentaOrientationDebug.mat.meta
├── AugmentaSceneDebug.mat
├── AugmentaSceneDebug.mat.meta
├── AugmentaVelocityDebug.mat
└── AugmentaVelocityDebug.mat.meta
├── Plugins.meta
├── Plugins
├── UnityOSC.meta
└── UnityOSC
│ ├── Lib.meta
│ ├── Lib
│ ├── OSC.meta
│ ├── OSC
│ │ ├── OSCBundle.cs
│ │ ├── OSCBundle.cs.meta
│ │ ├── OSCClient.cs
│ │ ├── OSCClient.cs.meta
│ │ ├── OSCMessage.cs
│ │ ├── OSCMessage.cs.meta
│ │ ├── OSCPacket.cs
│ │ ├── OSCPacket.cs.meta
│ │ ├── OSCReceiver.cs
│ │ ├── OSCReceiver.cs.meta
│ │ ├── OSCServer.cs
│ │ └── OSCServer.cs.meta
│ ├── OSCHandler.cs
│ └── OSCHandler.cs.meta
│ ├── OSCMaster.cs
│ ├── OSCMaster.cs.meta
│ ├── README.md
│ └── README.md.meta
├── Prefabs.meta
├── Prefabs
├── Augmenta.prefab
├── Augmenta.prefab.meta
├── AugmentaVideoOutput.prefab
├── AugmentaVideoOutput.prefab.meta
├── AugmentaVideoOutputWithCamera.prefab
├── AugmentaVideoOutputWithCamera.prefab.meta
├── AugmentaWithCamera.prefab
├── AugmentaWithCamera.prefab.meta
├── Debug.meta
└── Debug
│ ├── AugmentaObject.prefab
│ ├── AugmentaObject.prefab.meta
│ ├── AugmentaScene.prefab
│ └── AugmentaScene.prefab.meta
├── README.md
├── README.md.meta
├── Scripts.meta
├── Scripts
├── AugmentaCamera.cs
├── AugmentaCamera.cs.meta
├── AugmentaManager.cs
├── AugmentaManager.cs.meta
├── AugmentaObject.cs
├── AugmentaObject.cs.meta
├── AugmentaObjectBehaviour.cs
├── AugmentaObjectBehaviour.cs.meta
├── AugmentaScene.cs
├── AugmentaScene.cs.meta
├── AugmentaSceneCamera.cs
├── AugmentaSceneCamera.cs.meta
├── AugmentaVideoOutput.cs
├── AugmentaVideoOutput.cs.meta
├── AugmentaVideoOutputCamera.cs
├── AugmentaVideoOutputCamera.cs.meta
├── Editor.meta
└── Editor
│ ├── AugmentaManagerEditor.cs
│ ├── AugmentaManagerEditor.cs.meta
│ ├── AugmentaSceneCameraEditor.cs
│ ├── AugmentaSceneCameraEditor.cs.meta
│ ├── AugmentaVideoOutputCameraEditor.cs
│ ├── AugmentaVideoOutputCameraEditor.cs.meta
│ ├── AugmentaVideoOutputEditor.cs
│ └── AugmentaVideoOutputEditor.cs.meta
├── Shaders.meta
├── Shaders
├── CameraDisplayTexture.shader
├── CameraDisplayTexture.shader.meta
├── UnlitTextureAlwaysOnTop.shader
├── UnlitTextureAlwaysOnTop.shader.meta
├── UnlitTextureColor.shader
└── UnlitTextureColor.shader.meta
├── Textures.meta
└── Textures
├── Black.png
├── Black.png.meta
├── Transparent.png
├── Transparent.png.meta
├── White.png
├── White.png.meta
├── checker.png
├── checker.png.meta
├── cross.png
├── cross.png.meta
├── cross_borders.png
└── cross_borders.png.meta
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 THÉORIZ
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/LICENSE.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 7aee17a356e07db4f8f2c0dd10cffcba
3 | DefaultImporter:
4 | externalObjects: {}
5 | userData:
6 | assetBundleName:
7 | assetBundleVariant:
8 |
--------------------------------------------------------------------------------
/Materials.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: da3b317cfea82f4448539067a96d5c58
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Materials/AugmentaObjectDebug.mat:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!21 &2100000
4 | Material:
5 | serializedVersion: 6
6 | m_ObjectHideFlags: 0
7 | m_CorrespondingSourceObject: {fileID: 0}
8 | m_PrefabInstance: {fileID: 0}
9 | m_PrefabAsset: {fileID: 0}
10 | m_Name: AugmentaObjectDebug
11 | m_Shader: {fileID: 4800000, guid: 0eea18b359b788a46bd2301d86894c00, type: 3}
12 | m_ShaderKeywords: _USEBORDER_ON _USETEXTURE_ON
13 | m_LightmapFlags: 4
14 | m_EnableInstancingVariants: 0
15 | m_DoubleSidedGI: 0
16 | m_CustomRenderQueue: -1
17 | stringTagMap: {}
18 | disabledShaderPasses: []
19 | m_SavedProperties:
20 | serializedVersion: 3
21 | m_TexEnvs:
22 | - _BumpMap:
23 | m_Texture: {fileID: 0}
24 | m_Scale: {x: 1, y: 1}
25 | m_Offset: {x: 0, y: 0}
26 | - _DetailAlbedoMap:
27 | m_Texture: {fileID: 0}
28 | m_Scale: {x: 1, y: 1}
29 | m_Offset: {x: 0, y: 0}
30 | - _DetailMask:
31 | m_Texture: {fileID: 0}
32 | m_Scale: {x: 1, y: 1}
33 | m_Offset: {x: 0, y: 0}
34 | - _DetailNormalMap:
35 | m_Texture: {fileID: 0}
36 | m_Scale: {x: 1, y: 1}
37 | m_Offset: {x: 0, y: 0}
38 | - _EmissionMap:
39 | m_Texture: {fileID: 0}
40 | m_Scale: {x: 1, y: 1}
41 | m_Offset: {x: 0, y: 0}
42 | - _MainTex:
43 | m_Texture: {fileID: 2800000, guid: dc8326fbacbbea1429b478e3d7bb4f08, type: 3}
44 | m_Scale: {x: 1, y: 1}
45 | m_Offset: {x: 0, y: 0}
46 | - _MetallicGlossMap:
47 | m_Texture: {fileID: 0}
48 | m_Scale: {x: 1, y: 1}
49 | m_Offset: {x: 0, y: 0}
50 | - _OcclusionMap:
51 | m_Texture: {fileID: 0}
52 | m_Scale: {x: 1, y: 1}
53 | m_Offset: {x: 0, y: 0}
54 | - _ParallaxMap:
55 | m_Texture: {fileID: 0}
56 | m_Scale: {x: 1, y: 1}
57 | m_Offset: {x: 0, y: 0}
58 | m_Floats:
59 | - _BorderThickness: 0.05
60 | - _BumpScale: 1
61 | - _Cutoff: 0.5
62 | - _DetailNormalMapScale: 1
63 | - _DstBlend: 0
64 | - _GlossMapScale: 1
65 | - _Glossiness: 0.5
66 | - _GlossyReflections: 1
67 | - _Metallic: 0
68 | - _Mode: 0
69 | - _OcclusionStrength: 1
70 | - _Parallax: 0.02
71 | - _SmoothnessTextureChannel: 0
72 | - _SpecularHighlights: 1
73 | - _SrcBlend: 1
74 | - _Transparency: 1
75 | - _UVSec: 0
76 | - _UseBorder: 1
77 | - _UseTexture: 1
78 | - _ZWrite: 1
79 | m_Colors:
80 | - _BorderColor: {r: 1, g: 0, b: 0, a: 1}
81 | - _CenterColor: {r: 1, g: 1, b: 1, a: 1}
82 | - _Color: {r: 1, g: 1, b: 1, a: 1}
83 | - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
84 |
--------------------------------------------------------------------------------
/Materials/AugmentaObjectDebug.mat.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 5565f52ee1ec29741ae6add23be6671b
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Materials/AugmentaOrientationDebug.mat:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!21 &2100000
4 | Material:
5 | serializedVersion: 6
6 | m_ObjectHideFlags: 0
7 | m_CorrespondingSourceObject: {fileID: 0}
8 | m_PrefabInstance: {fileID: 0}
9 | m_PrefabAsset: {fileID: 0}
10 | m_Name: AugmentaOrientationDebug
11 | m_Shader: {fileID: 4800000, guid: 0eea18b359b788a46bd2301d86894c00, type: 3}
12 | m_ShaderKeywords: _EMISSION _NORMALMAP_TANGENT_SPACE
13 | m_LightmapFlags: 1
14 | m_EnableInstancingVariants: 0
15 | m_DoubleSidedGI: 0
16 | m_CustomRenderQueue: -1
17 | stringTagMap: {}
18 | disabledShaderPasses:
19 | - DistortionVectors
20 | - MOTIONVECTORS
21 | - TransparentDepthPrepass
22 | - TransparentDepthPostpass
23 | - TransparentBackface
24 | m_SavedProperties:
25 | serializedVersion: 3
26 | m_TexEnvs:
27 | - _AnisotropyMap:
28 | m_Texture: {fileID: 0}
29 | m_Scale: {x: 1, y: 1}
30 | m_Offset: {x: 0, y: 0}
31 | - _BaseColorMap:
32 | m_Texture: {fileID: 0}
33 | m_Scale: {x: 1, y: 1}
34 | m_Offset: {x: 0, y: 0}
35 | - _BentNormalMap:
36 | m_Texture: {fileID: 0}
37 | m_Scale: {x: 1, y: 1}
38 | m_Offset: {x: 0, y: 0}
39 | - _BentNormalMapOS:
40 | m_Texture: {fileID: 0}
41 | m_Scale: {x: 1, y: 1}
42 | m_Offset: {x: 0, y: 0}
43 | - _BumpMap:
44 | m_Texture: {fileID: 0}
45 | m_Scale: {x: 1, y: 1}
46 | m_Offset: {x: 0, y: 0}
47 | - _CoatMaskMap:
48 | m_Texture: {fileID: 0}
49 | m_Scale: {x: 1, y: 1}
50 | m_Offset: {x: 0, y: 0}
51 | - _DetailAlbedoMap:
52 | m_Texture: {fileID: 0}
53 | m_Scale: {x: 1, y: 1}
54 | m_Offset: {x: 0, y: 0}
55 | - _DetailMap:
56 | m_Texture: {fileID: 0}
57 | m_Scale: {x: 1, y: 1}
58 | m_Offset: {x: 0, y: 0}
59 | - _DetailMask:
60 | m_Texture: {fileID: 0}
61 | m_Scale: {x: 1, y: 1}
62 | m_Offset: {x: 0, y: 0}
63 | - _DetailNormalMap:
64 | m_Texture: {fileID: 0}
65 | m_Scale: {x: 1, y: 1}
66 | m_Offset: {x: 0, y: 0}
67 | - _DistortionVectorMap:
68 | m_Texture: {fileID: 0}
69 | m_Scale: {x: 1, y: 1}
70 | m_Offset: {x: 0, y: 0}
71 | - _EmissionMap:
72 | m_Texture: {fileID: 0}
73 | m_Scale: {x: 1, y: 1}
74 | m_Offset: {x: 0, y: 0}
75 | - _EmissiveColorMap:
76 | m_Texture: {fileID: 0}
77 | m_Scale: {x: 1, y: 1}
78 | m_Offset: {x: 0, y: 0}
79 | - _HeightMap:
80 | m_Texture: {fileID: 0}
81 | m_Scale: {x: 1, y: 1}
82 | m_Offset: {x: 0, y: 0}
83 | - _IridescenceMaskMap:
84 | m_Texture: {fileID: 0}
85 | m_Scale: {x: 1, y: 1}
86 | m_Offset: {x: 0, y: 0}
87 | - _IridescenceThicknessMap:
88 | m_Texture: {fileID: 0}
89 | m_Scale: {x: 1, y: 1}
90 | m_Offset: {x: 0, y: 0}
91 | - _MainTex:
92 | m_Texture: {fileID: 0}
93 | m_Scale: {x: 1, y: 1}
94 | m_Offset: {x: 0, y: 0}
95 | - _MaskMap:
96 | m_Texture: {fileID: 0}
97 | m_Scale: {x: 1, y: 1}
98 | m_Offset: {x: 0, y: 0}
99 | - _MetallicGlossMap:
100 | m_Texture: {fileID: 0}
101 | m_Scale: {x: 1, y: 1}
102 | m_Offset: {x: 0, y: 0}
103 | - _NormalMap:
104 | m_Texture: {fileID: 0}
105 | m_Scale: {x: 1, y: 1}
106 | m_Offset: {x: 0, y: 0}
107 | - _NormalMapOS:
108 | m_Texture: {fileID: 0}
109 | m_Scale: {x: 1, y: 1}
110 | m_Offset: {x: 0, y: 0}
111 | - _OcclusionMap:
112 | m_Texture: {fileID: 0}
113 | m_Scale: {x: 1, y: 1}
114 | m_Offset: {x: 0, y: 0}
115 | - _ParallaxMap:
116 | m_Texture: {fileID: 0}
117 | m_Scale: {x: 1, y: 1}
118 | m_Offset: {x: 0, y: 0}
119 | - _SpecularColorMap:
120 | m_Texture: {fileID: 0}
121 | m_Scale: {x: 1, y: 1}
122 | m_Offset: {x: 0, y: 0}
123 | - _SubsurfaceMaskMap:
124 | m_Texture: {fileID: 0}
125 | m_Scale: {x: 1, y: 1}
126 | m_Offset: {x: 0, y: 0}
127 | - _TangentMap:
128 | m_Texture: {fileID: 0}
129 | m_Scale: {x: 1, y: 1}
130 | m_Offset: {x: 0, y: 0}
131 | - _TangentMapOS:
132 | m_Texture: {fileID: 0}
133 | m_Scale: {x: 1, y: 1}
134 | m_Offset: {x: 0, y: 0}
135 | - _ThicknessMap:
136 | m_Texture: {fileID: 0}
137 | m_Scale: {x: 1, y: 1}
138 | m_Offset: {x: 0, y: 0}
139 | - _TransmittanceColorMap:
140 | m_Texture: {fileID: 0}
141 | m_Scale: {x: 1, y: 1}
142 | m_Offset: {x: 0, y: 0}
143 | m_Floats:
144 | - _AORemapMax: 1
145 | - _AORemapMin: 0
146 | - _ATDistance: 1
147 | - _AddPrecomputedVelocity: 0
148 | - _AlbedoAffectEmissive: 0
149 | - _AlphaCutoff: 0.5
150 | - _AlphaCutoffEnable: 0
151 | - _AlphaCutoffPostpass: 0.5
152 | - _AlphaCutoffPrepass: 0.5
153 | - _AlphaCutoffShadow: 0.5
154 | - _AlphaDstBlend: 0
155 | - _AlphaSrcBlend: 1
156 | - _Anisotropy: 0
157 | - _BlendMode: 0
158 | - _BumpScale: 1
159 | - _CoatMask: 0
160 | - _CullMode: 2
161 | - _CullModeForward: 2
162 | - _Cutoff: 0.5
163 | - _DepthOffsetEnable: 0
164 | - _DetailAlbedoScale: 1
165 | - _DetailNormalMapScale: 1
166 | - _DetailNormalScale: 1
167 | - _DetailSmoothnessScale: 1
168 | - _DiffusionProfile: 0
169 | - _DiffusionProfileHash: 0
170 | - _DisplacementLockObjectScale: 1
171 | - _DisplacementLockTilingScale: 1
172 | - _DisplacementMode: 0
173 | - _DistortionBlendMode: 0
174 | - _DistortionBlurBlendMode: 0
175 | - _DistortionBlurDstBlend: 1
176 | - _DistortionBlurRemapMax: 1
177 | - _DistortionBlurRemapMin: 0
178 | - _DistortionBlurScale: 1
179 | - _DistortionBlurSrcBlend: 1
180 | - _DistortionDepthTest: 1
181 | - _DistortionDstBlend: 1
182 | - _DistortionEnable: 0
183 | - _DistortionScale: 1
184 | - _DistortionSrcBlend: 1
185 | - _DistortionVectorBias: -1
186 | - _DistortionVectorScale: 2
187 | - _DoubleSidedEnable: 0
188 | - _DoubleSidedNormalMode: 1
189 | - _DstBlend: 0
190 | - _EmissiveColorMode: 1
191 | - _EmissiveExposureWeight: 1
192 | - _EmissiveIntensity: 1
193 | - _EmissiveIntensityUnit: 0
194 | - _EnableBlendModePreserveSpecularLighting: 1
195 | - _EnableFogOnTransparent: 1
196 | - _EnableGeometricSpecularAA: 0
197 | - _EnergyConservingSpecularColor: 1
198 | - _GlossMapScale: 1
199 | - _Glossiness: 0.5
200 | - _GlossyReflections: 1
201 | - _HeightAmplitude: 0.02
202 | - _HeightCenter: 0.5
203 | - _HeightMapParametrization: 0
204 | - _HeightMax: 1
205 | - _HeightMin: -1
206 | - _HeightOffset: 0
207 | - _HeightPoMAmplitude: 2
208 | - _HeightTessAmplitude: 2
209 | - _HeightTessCenter: 0.5
210 | - _InvTilingScale: 1
211 | - _Ior: 1.5
212 | - _IridescenceMask: 1
213 | - _IridescenceThickness: 1
214 | - _LinkDetailsWithBase: 0
215 | - _MaterialID: 1
216 | - _Metallic: 0
217 | - _Mode: 0
218 | - _NormalMapSpace: 0
219 | - _NormalScale: 1
220 | - _OcclusionStrength: 1
221 | - _PPDLodThreshold: 5
222 | - _PPDMaxSamples: 15
223 | - _PPDMinSamples: 5
224 | - _PPDPrimitiveLength: 1
225 | - _PPDPrimitiveWidth: 1
226 | - _Parallax: 0.02
227 | - _ReceivesSSR: 1
228 | - _RefractionModel: 0
229 | - _SSRefractionProjectionModel: 0
230 | - _Smoothness: 0.5
231 | - _SmoothnessRemapMax: 0.5
232 | - _SmoothnessRemapMin: 0
233 | - _SmoothnessTextureChannel: 0
234 | - _SpecularAAScreenSpaceVariance: 0.1
235 | - _SpecularAAThreshold: 0.2
236 | - _SpecularHighlights: 1
237 | - _SpecularOcclusionMode: 1
238 | - _SrcBlend: 1
239 | - _StencilRef: 0
240 | - _StencilRefDepth: 8
241 | - _StencilRefDistortionVec: 4
242 | - _StencilRefGBuffer: 10
243 | - _StencilRefMV: 40
244 | - _StencilWriteMask: 6
245 | - _StencilWriteMaskDepth: 8
246 | - _StencilWriteMaskDistortionVec: 4
247 | - _StencilWriteMaskGBuffer: 14
248 | - _StencilWriteMaskMV: 40
249 | - _SubsurfaceMask: 1
250 | - _SupportDecals: 1
251 | - _SurfaceType: 0
252 | - _TexWorldScale: 1
253 | - _TexWorldScaleEmissive: 1
254 | - _Thickness: 1
255 | - _TransmissionEnable: 1
256 | - _TransparentBackfaceEnable: 0
257 | - _TransparentCullMode: 2
258 | - _TransparentDepthPostpassEnable: 0
259 | - _TransparentDepthPrepassEnable: 0
260 | - _TransparentSortPriority: 0
261 | - _TransparentWritingMotionVec: 0
262 | - _TransparentZWrite: 0
263 | - _UVBase: 0
264 | - _UVDetail: 0
265 | - _UVEmissive: 0
266 | - _UVSec: 0
267 | - _UseEmissiveIntensity: 0
268 | - _UseShadowThreshold: 0
269 | - _ZTestDepthEqualForOpaque: 3
270 | - _ZTestGBuffer: 4
271 | - _ZTestModeDistortion: 4
272 | - _ZTestTransparent: 4
273 | - _ZWrite: 1
274 | m_Colors:
275 | - _BaseColor: {r: 1, g: 1, b: 1, a: 1}
276 | - _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
277 | - _Color: {r: 1, g: 0.26666668, b: 0, a: 1}
278 | - _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
279 | - _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
280 | - _EmissionColor: {r: 1, g: 0.26666668, b: 0, a: 1}
281 | - _EmissiveColor: {r: 1, g: 0.27507278, b: 0, a: 1}
282 | - _EmissiveColorLDR: {r: 0, g: 0, b: 0, a: 1}
283 | - _InvPrimScale: {r: 1, g: 1, b: 0, a: 0}
284 | - _IridescenceThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
285 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
286 | - _ThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
287 | - _TransmittanceColor: {r: 1, g: 1, b: 1, a: 1}
288 | - _UVDetailsMappingMask: {r: 1, g: 0, b: 0, a: 0}
289 | - _UVMappingMask: {r: 1, g: 0, b: 0, a: 0}
290 | - _UVMappingMaskEmissive: {r: 1, g: 0, b: 0, a: 0}
291 | m_BuildTextureStacks: []
292 | --- !u!114 &9180404367684576145
293 | MonoBehaviour:
294 | m_ObjectHideFlags: 11
295 | m_CorrespondingSourceObject: {fileID: 0}
296 | m_PrefabInstance: {fileID: 0}
297 | m_PrefabAsset: {fileID: 0}
298 | m_GameObject: {fileID: 0}
299 | m_Enabled: 1
300 | m_EditorHideFlags: 0
301 | m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
302 | m_Name:
303 | m_EditorClassIdentifier:
304 | version: 2
305 |
--------------------------------------------------------------------------------
/Materials/AugmentaOrientationDebug.mat.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 720106550ad579446883f2c8f5a30219
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Materials/AugmentaSceneDebug.mat:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!21 &2100000
4 | Material:
5 | serializedVersion: 6
6 | m_ObjectHideFlags: 0
7 | m_CorrespondingSourceObject: {fileID: 0}
8 | m_PrefabInstance: {fileID: 0}
9 | m_PrefabAsset: {fileID: 0}
10 | m_Name: AugmentaSceneDebug
11 | m_Shader: {fileID: 4800000, guid: 0eea18b359b788a46bd2301d86894c00, type: 3}
12 | m_ShaderKeywords:
13 | m_LightmapFlags: 4
14 | m_EnableInstancingVariants: 0
15 | m_DoubleSidedGI: 0
16 | m_CustomRenderQueue: -1
17 | stringTagMap: {}
18 | disabledShaderPasses:
19 | - DistortionVectors
20 | - MOTIONVECTORS
21 | m_SavedProperties:
22 | serializedVersion: 3
23 | m_TexEnvs:
24 | - _BumpMap:
25 | m_Texture: {fileID: 0}
26 | m_Scale: {x: 1, y: 1}
27 | m_Offset: {x: 0, y: 0}
28 | - _DetailAlbedoMap:
29 | m_Texture: {fileID: 0}
30 | m_Scale: {x: 1, y: 1}
31 | m_Offset: {x: 0, y: 0}
32 | - _DetailMask:
33 | m_Texture: {fileID: 0}
34 | m_Scale: {x: 1, y: 1}
35 | m_Offset: {x: 0, y: 0}
36 | - _DetailNormalMap:
37 | m_Texture: {fileID: 0}
38 | m_Scale: {x: 1, y: 1}
39 | m_Offset: {x: 0, y: 0}
40 | - _DistortionVectorMap:
41 | m_Texture: {fileID: 0}
42 | m_Scale: {x: 1, y: 1}
43 | m_Offset: {x: 0, y: 0}
44 | - _EmissionMap:
45 | m_Texture: {fileID: 0}
46 | m_Scale: {x: 1, y: 1}
47 | m_Offset: {x: 0, y: 0}
48 | - _EmissiveColorMap:
49 | m_Texture: {fileID: 0}
50 | m_Scale: {x: 1, y: 1}
51 | m_Offset: {x: 0, y: 0}
52 | - _MainTex:
53 | m_Texture: {fileID: 2800000, guid: b779b90a173440d4ea9971d2257d2cd8, type: 3}
54 | m_Scale: {x: 1, y: 1}
55 | m_Offset: {x: 0, y: 0}
56 | - _MetallicGlossMap:
57 | m_Texture: {fileID: 0}
58 | m_Scale: {x: 1, y: 1}
59 | m_Offset: {x: 0, y: 0}
60 | - _OcclusionMap:
61 | m_Texture: {fileID: 0}
62 | m_Scale: {x: 1, y: 1}
63 | m_Offset: {x: 0, y: 0}
64 | - _ParallaxMap:
65 | m_Texture: {fileID: 0}
66 | m_Scale: {x: 1, y: 1}
67 | m_Offset: {x: 0, y: 0}
68 | - _UnlitColorMap:
69 | m_Texture: {fileID: 10309, guid: 0000000000000000f000000000000000, type: 0}
70 | m_Scale: {x: 1, y: 1}
71 | m_Offset: {x: 0, y: 0}
72 | m_Floats:
73 | - _AddPrecomputedVelocity: 0
74 | - _AlbedoAffectEmissive: 0
75 | - _AlphaCutoff: 0.5
76 | - _AlphaCutoffEnable: 0
77 | - _AlphaDstBlend: 0
78 | - _AlphaSrcBlend: 1
79 | - _BlendMode: 0
80 | - _BumpScale: 1
81 | - _CullMode: 2
82 | - _Cutoff: 0.5
83 | - _DetailNormalMapScale: 1
84 | - _DistortionBlendMode: 0
85 | - _DistortionBlurBlendMode: 0
86 | - _DistortionBlurDstBlend: 1
87 | - _DistortionBlurRemapMax: 1
88 | - _DistortionBlurRemapMin: 0
89 | - _DistortionBlurScale: 1
90 | - _DistortionBlurSrcBlend: 1
91 | - _DistortionDepthTest: 1
92 | - _DistortionDstBlend: 1
93 | - _DistortionEnable: 0
94 | - _DistortionOnly: 0
95 | - _DistortionScale: 1
96 | - _DistortionSrcBlend: 1
97 | - _DistortionVectorBias: -1
98 | - _DistortionVectorScale: 2
99 | - _DoubleSidedEnable: 0
100 | - _DstBlend: 0
101 | - _EmissiveExposureWeight: 1
102 | - _EmissiveIntensity: 1
103 | - _EmissiveIntensityUnit: 0
104 | - _EnableFogOnTransparent: 0
105 | - _GlossMapScale: 1
106 | - _Glossiness: 0.5
107 | - _GlossyReflections: 1
108 | - _IncludeIndirectLighting: 1
109 | - _Metallic: 0
110 | - _Mode: 0
111 | - _OcclusionStrength: 1
112 | - _Parallax: 0.02
113 | - _SmoothnessTextureChannel: 0
114 | - _SpecularHighlights: 1
115 | - _SrcBlend: 1
116 | - _StencilRef: 0
117 | - _StencilRefDepth: 0
118 | - _StencilRefDistortionVec: 4
119 | - _StencilRefMV: 32
120 | - _StencilWriteMask: 6
121 | - _StencilWriteMaskDepth: 8
122 | - _StencilWriteMaskDistortionVec: 4
123 | - _StencilWriteMaskMV: 40
124 | - _SurfaceType: 0
125 | - _TransparentCullMode: 2
126 | - _TransparentSortPriority: 0
127 | - _TransparentZWrite: 0
128 | - _UVSec: 0
129 | - _UseEmissiveIntensity: 0
130 | - _ZTestDepthEqualForOpaque: 3
131 | - _ZTestModeDistortion: 4
132 | - _ZTestTransparent: 4
133 | - _ZWrite: 1
134 | m_Colors:
135 | - _Color: {r: 1, g: 1, b: 1, a: 1}
136 | - _EmissionColor: {r: 1, g: 1, b: 1, a: 1}
137 | - _EmissiveColor: {r: 0, g: 0, b: 0, a: 1}
138 | - _EmissiveColorLDR: {r: 0, g: 0, b: 0, a: 1}
139 | - _UnlitColor: {r: 1, g: 1, b: 1, a: 1}
140 | - _UnlitColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
141 | m_BuildTextureStacks: []
142 | --- !u!114 &8072735581076853413
143 | MonoBehaviour:
144 | m_ObjectHideFlags: 11
145 | m_CorrespondingSourceObject: {fileID: 0}
146 | m_PrefabInstance: {fileID: 0}
147 | m_PrefabAsset: {fileID: 0}
148 | m_GameObject: {fileID: 0}
149 | m_Enabled: 1
150 | m_EditorHideFlags: 0
151 | m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
152 | m_Name:
153 | m_EditorClassIdentifier:
154 | version: 2
155 |
--------------------------------------------------------------------------------
/Materials/AugmentaSceneDebug.mat.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d895c72d4749de34c910f12e6fc4048b
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Materials/AugmentaVelocityDebug.mat:
--------------------------------------------------------------------------------
1 | %YAML 1.1
2 | %TAG !u! tag:unity3d.com,2011:
3 | --- !u!21 &2100000
4 | Material:
5 | serializedVersion: 6
6 | m_ObjectHideFlags: 0
7 | m_CorrespondingSourceObject: {fileID: 0}
8 | m_PrefabInstance: {fileID: 0}
9 | m_PrefabAsset: {fileID: 0}
10 | m_Name: AugmentaVelocityDebug
11 | m_Shader: {fileID: 4800000, guid: 0eea18b359b788a46bd2301d86894c00, type: 3}
12 | m_ShaderKeywords: _EMISSION _NORMALMAP_TANGENT_SPACE
13 | m_LightmapFlags: 1
14 | m_EnableInstancingVariants: 0
15 | m_DoubleSidedGI: 0
16 | m_CustomRenderQueue: -1
17 | stringTagMap: {}
18 | disabledShaderPasses:
19 | - DistortionVectors
20 | - MOTIONVECTORS
21 | - TransparentDepthPrepass
22 | - TransparentDepthPostpass
23 | - TransparentBackface
24 | m_SavedProperties:
25 | serializedVersion: 3
26 | m_TexEnvs:
27 | - _AnisotropyMap:
28 | m_Texture: {fileID: 0}
29 | m_Scale: {x: 1, y: 1}
30 | m_Offset: {x: 0, y: 0}
31 | - _BaseColorMap:
32 | m_Texture: {fileID: 0}
33 | m_Scale: {x: 1, y: 1}
34 | m_Offset: {x: 0, y: 0}
35 | - _BentNormalMap:
36 | m_Texture: {fileID: 0}
37 | m_Scale: {x: 1, y: 1}
38 | m_Offset: {x: 0, y: 0}
39 | - _BentNormalMapOS:
40 | m_Texture: {fileID: 0}
41 | m_Scale: {x: 1, y: 1}
42 | m_Offset: {x: 0, y: 0}
43 | - _BumpMap:
44 | m_Texture: {fileID: 0}
45 | m_Scale: {x: 1, y: 1}
46 | m_Offset: {x: 0, y: 0}
47 | - _CoatMaskMap:
48 | m_Texture: {fileID: 0}
49 | m_Scale: {x: 1, y: 1}
50 | m_Offset: {x: 0, y: 0}
51 | - _DetailAlbedoMap:
52 | m_Texture: {fileID: 0}
53 | m_Scale: {x: 1, y: 1}
54 | m_Offset: {x: 0, y: 0}
55 | - _DetailMap:
56 | m_Texture: {fileID: 0}
57 | m_Scale: {x: 1, y: 1}
58 | m_Offset: {x: 0, y: 0}
59 | - _DetailMask:
60 | m_Texture: {fileID: 0}
61 | m_Scale: {x: 1, y: 1}
62 | m_Offset: {x: 0, y: 0}
63 | - _DetailNormalMap:
64 | m_Texture: {fileID: 0}
65 | m_Scale: {x: 1, y: 1}
66 | m_Offset: {x: 0, y: 0}
67 | - _DistortionVectorMap:
68 | m_Texture: {fileID: 0}
69 | m_Scale: {x: 1, y: 1}
70 | m_Offset: {x: 0, y: 0}
71 | - _EmissionMap:
72 | m_Texture: {fileID: 0}
73 | m_Scale: {x: 1, y: 1}
74 | m_Offset: {x: 0, y: 0}
75 | - _EmissiveColorMap:
76 | m_Texture: {fileID: 0}
77 | m_Scale: {x: 1, y: 1}
78 | m_Offset: {x: 0, y: 0}
79 | - _HeightMap:
80 | m_Texture: {fileID: 0}
81 | m_Scale: {x: 1, y: 1}
82 | m_Offset: {x: 0, y: 0}
83 | - _IridescenceMaskMap:
84 | m_Texture: {fileID: 0}
85 | m_Scale: {x: 1, y: 1}
86 | m_Offset: {x: 0, y: 0}
87 | - _IridescenceThicknessMap:
88 | m_Texture: {fileID: 0}
89 | m_Scale: {x: 1, y: 1}
90 | m_Offset: {x: 0, y: 0}
91 | - _MainTex:
92 | m_Texture: {fileID: 0}
93 | m_Scale: {x: 1, y: 1}
94 | m_Offset: {x: 0, y: 0}
95 | - _MaskMap:
96 | m_Texture: {fileID: 0}
97 | m_Scale: {x: 1, y: 1}
98 | m_Offset: {x: 0, y: 0}
99 | - _MetallicGlossMap:
100 | m_Texture: {fileID: 0}
101 | m_Scale: {x: 1, y: 1}
102 | m_Offset: {x: 0, y: 0}
103 | - _NormalMap:
104 | m_Texture: {fileID: 0}
105 | m_Scale: {x: 1, y: 1}
106 | m_Offset: {x: 0, y: 0}
107 | - _NormalMapOS:
108 | m_Texture: {fileID: 0}
109 | m_Scale: {x: 1, y: 1}
110 | m_Offset: {x: 0, y: 0}
111 | - _OcclusionMap:
112 | m_Texture: {fileID: 0}
113 | m_Scale: {x: 1, y: 1}
114 | m_Offset: {x: 0, y: 0}
115 | - _ParallaxMap:
116 | m_Texture: {fileID: 0}
117 | m_Scale: {x: 1, y: 1}
118 | m_Offset: {x: 0, y: 0}
119 | - _SpecularColorMap:
120 | m_Texture: {fileID: 0}
121 | m_Scale: {x: 1, y: 1}
122 | m_Offset: {x: 0, y: 0}
123 | - _SubsurfaceMaskMap:
124 | m_Texture: {fileID: 0}
125 | m_Scale: {x: 1, y: 1}
126 | m_Offset: {x: 0, y: 0}
127 | - _TangentMap:
128 | m_Texture: {fileID: 0}
129 | m_Scale: {x: 1, y: 1}
130 | m_Offset: {x: 0, y: 0}
131 | - _TangentMapOS:
132 | m_Texture: {fileID: 0}
133 | m_Scale: {x: 1, y: 1}
134 | m_Offset: {x: 0, y: 0}
135 | - _ThicknessMap:
136 | m_Texture: {fileID: 0}
137 | m_Scale: {x: 1, y: 1}
138 | m_Offset: {x: 0, y: 0}
139 | - _TransmittanceColorMap:
140 | m_Texture: {fileID: 0}
141 | m_Scale: {x: 1, y: 1}
142 | m_Offset: {x: 0, y: 0}
143 | m_Floats:
144 | - _AORemapMax: 1
145 | - _AORemapMin: 0
146 | - _ATDistance: 1
147 | - _AddPrecomputedVelocity: 0
148 | - _AlbedoAffectEmissive: 0
149 | - _AlphaCutoff: 0.5
150 | - _AlphaCutoffEnable: 0
151 | - _AlphaCutoffPostpass: 0.5
152 | - _AlphaCutoffPrepass: 0.5
153 | - _AlphaCutoffShadow: 0.5
154 | - _AlphaDstBlend: 0
155 | - _AlphaSrcBlend: 1
156 | - _Anisotropy: 0
157 | - _BlendMode: 0
158 | - _BumpScale: 1
159 | - _CoatMask: 0
160 | - _CullMode: 2
161 | - _CullModeForward: 2
162 | - _Cutoff: 0.5
163 | - _DepthOffsetEnable: 0
164 | - _DetailAlbedoScale: 1
165 | - _DetailNormalMapScale: 1
166 | - _DetailNormalScale: 1
167 | - _DetailSmoothnessScale: 1
168 | - _DiffusionProfile: 0
169 | - _DiffusionProfileHash: 0
170 | - _DisplacementLockObjectScale: 1
171 | - _DisplacementLockTilingScale: 1
172 | - _DisplacementMode: 0
173 | - _DistortionBlendMode: 0
174 | - _DistortionBlurBlendMode: 0
175 | - _DistortionBlurDstBlend: 1
176 | - _DistortionBlurRemapMax: 1
177 | - _DistortionBlurRemapMin: 0
178 | - _DistortionBlurScale: 1
179 | - _DistortionBlurSrcBlend: 1
180 | - _DistortionDepthTest: 1
181 | - _DistortionDstBlend: 1
182 | - _DistortionEnable: 0
183 | - _DistortionScale: 1
184 | - _DistortionSrcBlend: 1
185 | - _DistortionVectorBias: -1
186 | - _DistortionVectorScale: 2
187 | - _DoubleSidedEnable: 0
188 | - _DoubleSidedNormalMode: 1
189 | - _DstBlend: 0
190 | - _EmissiveColorMode: 1
191 | - _EmissiveExposureWeight: 1
192 | - _EmissiveIntensity: 1
193 | - _EmissiveIntensityUnit: 0
194 | - _EnableBlendModePreserveSpecularLighting: 1
195 | - _EnableFogOnTransparent: 1
196 | - _EnableGeometricSpecularAA: 0
197 | - _EnergyConservingSpecularColor: 1
198 | - _GlossMapScale: 1
199 | - _Glossiness: 0.5
200 | - _GlossyReflections: 1
201 | - _HeightAmplitude: 0.02
202 | - _HeightCenter: 0.5
203 | - _HeightMapParametrization: 0
204 | - _HeightMax: 1
205 | - _HeightMin: -1
206 | - _HeightOffset: 0
207 | - _HeightPoMAmplitude: 2
208 | - _HeightTessAmplitude: 2
209 | - _HeightTessCenter: 0.5
210 | - _InvTilingScale: 1
211 | - _Ior: 1.5
212 | - _IridescenceMask: 1
213 | - _IridescenceThickness: 1
214 | - _LinkDetailsWithBase: 0
215 | - _MaterialID: 1
216 | - _Metallic: 0
217 | - _Mode: 0
218 | - _NormalMapSpace: 0
219 | - _NormalScale: 1
220 | - _OcclusionStrength: 1
221 | - _PPDLodThreshold: 5
222 | - _PPDMaxSamples: 15
223 | - _PPDMinSamples: 5
224 | - _PPDPrimitiveLength: 1
225 | - _PPDPrimitiveWidth: 1
226 | - _Parallax: 0.02
227 | - _ReceivesSSR: 1
228 | - _RefractionModel: 0
229 | - _SSRefractionProjectionModel: 0
230 | - _Smoothness: 0.5
231 | - _SmoothnessRemapMax: 0.5
232 | - _SmoothnessRemapMin: 0
233 | - _SmoothnessTextureChannel: 0
234 | - _SpecularAAScreenSpaceVariance: 0.1
235 | - _SpecularAAThreshold: 0.2
236 | - _SpecularHighlights: 1
237 | - _SpecularOcclusionMode: 1
238 | - _SrcBlend: 1
239 | - _StencilRef: 0
240 | - _StencilRefDepth: 8
241 | - _StencilRefDistortionVec: 4
242 | - _StencilRefGBuffer: 10
243 | - _StencilRefMV: 40
244 | - _StencilWriteMask: 6
245 | - _StencilWriteMaskDepth: 8
246 | - _StencilWriteMaskDistortionVec: 4
247 | - _StencilWriteMaskGBuffer: 14
248 | - _StencilWriteMaskMV: 40
249 | - _SubsurfaceMask: 1
250 | - _SupportDecals: 1
251 | - _SurfaceType: 0
252 | - _TexWorldScale: 1
253 | - _TexWorldScaleEmissive: 1
254 | - _Thickness: 1
255 | - _TransmissionEnable: 1
256 | - _TransparentBackfaceEnable: 0
257 | - _TransparentCullMode: 2
258 | - _TransparentDepthPostpassEnable: 0
259 | - _TransparentDepthPrepassEnable: 0
260 | - _TransparentSortPriority: 0
261 | - _TransparentWritingMotionVec: 0
262 | - _TransparentZWrite: 0
263 | - _UVBase: 0
264 | - _UVDetail: 0
265 | - _UVEmissive: 0
266 | - _UVSec: 0
267 | - _UseEmissiveIntensity: 0
268 | - _UseShadowThreshold: 0
269 | - _ZTestDepthEqualForOpaque: 3
270 | - _ZTestGBuffer: 4
271 | - _ZTestModeDistortion: 4
272 | - _ZTestTransparent: 4
273 | - _ZWrite: 1
274 | m_Colors:
275 | - _BaseColor: {r: 1, g: 1, b: 1, a: 1}
276 | - _BaseColorMap_MipInfo: {r: 0, g: 0, b: 0, a: 0}
277 | - _Color: {r: 0, g: 1, b: 0.9333334, a: 1}
278 | - _DiffusionProfileAsset: {r: 0, g: 0, b: 0, a: 0}
279 | - _DoubleSidedConstants: {r: 1, g: 1, b: -1, a: 0}
280 | - _EmissionColor: {r: 0, g: 1, b: 0.9333334, a: 1}
281 | - _EmissiveColor: {r: 0, g: 1, b: 0.9381459, a: 1}
282 | - _EmissiveColorLDR: {r: 0, g: 0, b: 0, a: 1}
283 | - _InvPrimScale: {r: 1, g: 1, b: 0, a: 0}
284 | - _IridescenceThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
285 | - _SpecularColor: {r: 1, g: 1, b: 1, a: 1}
286 | - _ThicknessRemap: {r: 0, g: 1, b: 0, a: 0}
287 | - _TransmittanceColor: {r: 1, g: 1, b: 1, a: 1}
288 | - _UVDetailsMappingMask: {r: 1, g: 0, b: 0, a: 0}
289 | - _UVMappingMask: {r: 1, g: 0, b: 0, a: 0}
290 | - _UVMappingMaskEmissive: {r: 1, g: 0, b: 0, a: 0}
291 | m_BuildTextureStacks: []
292 | --- !u!114 &2928486075919050732
293 | MonoBehaviour:
294 | m_ObjectHideFlags: 11
295 | m_CorrespondingSourceObject: {fileID: 0}
296 | m_PrefabInstance: {fileID: 0}
297 | m_PrefabAsset: {fileID: 0}
298 | m_GameObject: {fileID: 0}
299 | m_Enabled: 1
300 | m_EditorHideFlags: 0
301 | m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
302 | m_Name:
303 | m_EditorClassIdentifier:
304 | version: 2
305 |
--------------------------------------------------------------------------------
/Materials/AugmentaVelocityDebug.mat.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 26e3b8924c944a04f9c8eb7610036aa9
3 | NativeFormatImporter:
4 | externalObjects: {}
5 | mainObjectFileID: 0
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Plugins.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 83cdb01540df6c7478b61ca234acef08
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 673a15a3736df9d4d9cd1c5c37e6c508
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: af37efb1d03d82c47bb7dd273c043fdb
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib/OSC.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: bd288184d5e20a0419a679bf76fffa7f
3 | folderAsset: yes
4 | DefaultImporter:
5 | externalObjects: {}
6 | userData:
7 | assetBundleName:
8 | assetBundleVariant:
9 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib/OSC/OSCBundle.cs:
--------------------------------------------------------------------------------
1 | //
2 | // UnityOSC - Open Sound Control interface for the Unity3d game engine
3 | //
4 | // Copyright (c) 2012 Jorge Garcia Martin
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
7 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
8 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
9 | // and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 | //
11 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions
12 | // of the Software.
13 | //
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
15 | // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
17 | // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18 | // IN THE SOFTWARE.
19 | //
20 |
21 | using System;
22 | using System.Net;
23 | using System.Text;
24 | using System.Collections.Generic;
25 | using System.Diagnostics;
26 |
27 | namespace Augmenta.UnityOSC
28 | {
29 | ///
30 | /// Models a Bundle of the OSC protocol.
31 | /// Derived from a OSC Packet over a OSC Stream.
32 | ///
33 | public sealed class OSCBundle : OSCPacket
34 | {
35 |
36 | #region Constructors
37 | public OSCBundle()
38 | {
39 | _address = BUNDLE;
40 | }
41 |
42 | public OSCBundle(long timestamp)
43 | {
44 | _address = BUNDLE;
45 | _timeStamp = timestamp;
46 | }
47 | #endregion
48 |
49 | #region Member Variables
50 | private const string BUNDLE = "#bundle";
51 |
52 | #endregion
53 |
54 | #region Properties
55 | #endregion
56 |
57 | #region Methods
58 |
59 | ///
60 | /// Specifies if the packet is an OSC bundle.
61 | ///
62 | override public bool IsBundle() { return true; }
63 |
64 | ///
65 | /// Packs a bundle to be transported over an OSC stream.
66 | ///
67 | override public void Pack()
68 | {
69 | // TODO: Pack bundle with timestamp in NTP format
70 |
71 | throw new NotImplementedException("OSCBundle.Pack() : Not implemented method.");
72 | }
73 |
74 | ///
75 | /// Unpacks an OSC bundle from a data stream.
76 | ///
77 | ///
78 | /// A
79 | ///
80 | ///
81 | /// A
82 | ///
83 | ///
84 | /// A
85 | ///
86 | ///
87 | /// A
88 | ///
89 | public new static OSCBundle Unpack(byte[] data, ref int start, int end)
90 | {
91 | string address = OSCPacket.UnpackValue(data, ref start);
92 | Trace.Assert(address == BUNDLE);
93 |
94 | long timeStamp = OSCPacket.UnpackValue(data, ref start);
95 | OSCBundle bundle = new OSCBundle(timeStamp);
96 |
97 | while(start < end)
98 | {
99 | int length = OSCPacket.UnpackValue(data, ref start);
100 | int packetEnd = start + length;
101 | bundle.Append(OSCPacket.Unpack(data, ref start, packetEnd));
102 | }
103 |
104 | return bundle;
105 | }
106 |
107 | ///
108 | /// Appends an OSC message to a bundle.
109 | ///
110 | ///
111 | /// A
112 | ///
113 | public override void Append (T msgvalue)
114 | {
115 | Trace.Assert(msgvalue is OSCMessage);
116 | _data.Add(msgvalue);
117 | }
118 | #endregion
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib/OSC/OSCBundle.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 16e515372e242f347a5cc91bd276a024
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib/OSC/OSCClient.cs:
--------------------------------------------------------------------------------
1 | //
2 | // UnityOSC - Open Sound Control interface for the Unity3d game engine
3 | //
4 | // Copyright (c) 2012 Jorge Garcia Martin
5 | //
6 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
7 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
8 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
9 | // and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10 | //
11 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions
12 | // of the Software.
13 | //
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
15 | // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
17 | // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
18 | // IN THE SOFTWARE.
19 | //
20 |
21 | using System;
22 | using System.Net;
23 | using System.Net.Sockets;
24 |
25 | namespace Augmenta.UnityOSC
26 | {
27 | ///
28 | /// Dispatches OSC messages to the specified destination address and port.
29 | ///
30 |
31 | public class OSCClient
32 | {
33 | #region Constructors
34 | public OSCClient (IPAddress address, int port)
35 | {
36 | _ipAddress = address;
37 | _port = port;
38 | Connect();
39 | }
40 | #endregion
41 |
42 | #region Member Variables
43 | private IPAddress _ipAddress;
44 | private int _port;
45 | private UdpClient _udpClient;
46 | #endregion
47 |
48 | #region Properties
49 |
50 | public string Name;
51 | public bool LogOutgoing;
52 |
53 | public IPAddress ClientIPAddress
54 | {
55 | get
56 | {
57 | return _ipAddress;
58 | }
59 | }
60 |
61 | public int Port
62 | {
63 | get
64 | {
65 | return _port;
66 | }
67 | }
68 | #endregion
69 |
70 | #region Methods
71 | ///
72 | /// Connects the client to a given remote address and port.
73 | ///
74 | public void Connect()
75 | {
76 | if(_udpClient != null) Close();
77 | _udpClient = new UdpClient();
78 | try
79 | {
80 | _udpClient.Connect(_ipAddress, _port);
81 | }
82 | catch
83 | {
84 | throw new Exception(String.Format("Can't create client at IP address {0} and port {1}.", _ipAddress,_port));
85 | }
86 | }
87 |
88 | ///
89 | /// Closes the client.
90 | ///
91 | public void Close()
92 | {
93 | if (_udpClient != null) {
94 | _udpClient.Close();
95 | _udpClient = null;
96 | }
97 | }
98 |
99 | ///
100 | /// Sends an OSC packet to the defined destination and address of the client.
101 | ///
102 | ///
103 | /// A
104 | ///
105 | public void Send(OSCPacket packet)
106 | {
107 | byte[] data = packet.BinaryData;
108 | try
109 | {
110 | _udpClient.Send(data, data.Length);
111 | }
112 | catch
113 | {
114 | //throw new Exception(String.Format("Can't send OSC packet to client {0} : {1}", _ipAddress, _port));
115 | UnityEngine.Debug.LogError("Cannot send OSC packet to client " + _ipAddress + ":" + _port);
116 | }
117 | }
118 |
119 | public void SendTo(OSCPacket packet, string host, int port)
120 | {
121 | byte[] data = packet.BinaryData;
122 | try
123 | {
124 | //Debug.Log("SendTo :"+host+"/"+port);
125 | _ipAddress = IPAddress.Parse(host);
126 | _port = port;
127 |
128 | //Connect ();
129 | var tmpUdpClient = new UdpClient(); //BOF BOF
130 | tmpUdpClient.Send(data, data.Length, host, port);
131 | //Debug.Log ("Sent");
132 |
133 | }
134 | catch(Exception e)
135 | {
136 | throw new Exception(String.Format("Can't send OSC packet to client {0} : {1} | {2}", _ipAddress, _port, e.ToString()));
137 | }
138 | }
139 | #endregion
140 | }
141 | }
142 |
143 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib/OSC/OSCClient.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: 1c3572eefca9bbd40a5045a780171ad5
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib/OSC/OSCMessage.cs:
--------------------------------------------------------------------------------
1 | //
2 | // UnityOSC - Open Sound Control interface for the Unity3d game engine
3 | //
4 | // Copyright (c) 2012 Jorge Garcia Martin
5 | // Last edit: Gerard Llorach 2nd August 2017
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10 | // and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions
13 | // of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
16 | // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
18 | // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 | // IN THE SOFTWARE.
20 | //
21 |
22 | using System;
23 | using System.Collections.Generic;
24 | using System.Net;
25 | using System.Text;
26 |
27 | namespace Augmenta.UnityOSC
28 | {
29 | public sealed class OSCMessage : OSCPacket
30 | {
31 | #region Constructors
32 | public OSCMessage (string address)
33 | {
34 | _typeTag = DEFAULT.ToString();
35 | this.Address = address;
36 | }
37 |
38 | public OSCMessage (string address, object msgvalue)
39 | {
40 | _typeTag = DEFAULT.ToString();
41 | this.Address = address;
42 | Append(msgvalue);
43 | }
44 | #endregion
45 |
46 | #region Member Variables
47 | private const char INTEGER = 'i';
48 | private const char FLOAT = 'f';
49 | private const char LONG = 'h';
50 | private const char DOUBLE = 'd';
51 | private const char STRING = 's';
52 | private const char BYTE = 'b';
53 | private const char DEFAULT = ',';
54 |
55 | private string _typeTag;
56 |
57 | #endregion
58 |
59 | #region Properties
60 | #endregion
61 |
62 | #region Methods
63 |
64 | ///
65 | /// Specifies if the message is an OSC bundle.
66 | ///
67 | ///
68 | /// A
69 | ///
70 | override public bool IsBundle() { return false; }
71 |
72 | ///
73 | /// Packs the OSC message to binary data.
74 | ///
75 | override public void Pack()
76 | {
77 | List data = new List();
78 |
79 | data.AddRange(OSCPacket.PackValue(_address));
80 | OSCPacket.PadNull(data);
81 |
82 | data.AddRange(OSCPacket.PackValue(_typeTag));
83 | OSCPacket.PadNull(data);
84 |
85 | foreach (object value in _data)
86 | {
87 | data.AddRange(OSCPacket.PackValue(value));
88 | if (value is string || value is byte[])
89 | {
90 | OSCPacket.PadNull(data);
91 | }
92 | }
93 |
94 | this._binaryData = data.ToArray();
95 | }
96 |
97 | ///
98 | /// Unpacks an OSC message.
99 | ///
100 | ///
101 | /// A
102 | ///
103 | ///
104 | /// A
105 | ///
106 | ///
107 | /// A
108 | ///
109 | public static OSCMessage Unpack(byte[] data, ref int start)
110 | {
111 | string address = OSCPacket.UnpackValue(data, ref start);
112 | OSCMessage message = new OSCMessage(address);
113 |
114 | char[] tags = OSCPacket.UnpackValue(data, ref start).ToCharArray();
115 | foreach (char tag in tags)
116 | {
117 | object value;
118 | switch (tag)
119 | {
120 | case DEFAULT:
121 | continue;
122 |
123 | case INTEGER:
124 | value = OSCPacket.UnpackValue(data, ref start);
125 | break;
126 |
127 | case LONG:
128 | value = OSCPacket.UnpackValue(data, ref start);
129 | break;
130 |
131 | case FLOAT:
132 | value = OSCPacket.UnpackValue(data, ref start);
133 | break;
134 |
135 | case DOUBLE:
136 | value = OSCPacket.UnpackValue(data, ref start);
137 | break;
138 |
139 | case STRING:
140 | value = OSCPacket.UnpackValue(data, ref start);
141 | break;
142 |
143 | case BYTE:
144 | value = OSCPacket.UnpackValue(data, ref start);
145 | break;
146 |
147 | default:
148 | Console.WriteLine("Unknown tag: " + tag);
149 | continue;
150 | }
151 |
152 | message.Append(value);
153 | }
154 |
155 | if(message.TimeStamp == 0)
156 | {
157 | message.TimeStamp = DateTime.Now.Ticks;
158 | }
159 |
160 | return message;
161 | }
162 |
163 | ///
164 | /// Appends a value to an OSC message.
165 | ///
166 | ///
167 | /// A
168 | ///
169 | public override void Append (T value)
170 | {
171 | Type type = value.GetType();
172 | char typeTag = DEFAULT;
173 |
174 | switch (type.Name)
175 | {
176 | case "Int32":
177 | typeTag = INTEGER;
178 | break;
179 |
180 | case "Int64":
181 | typeTag = LONG;
182 | break;
183 |
184 | case "Single":
185 | typeTag = FLOAT;
186 | break;
187 |
188 | case "Double":
189 | typeTag = DOUBLE;
190 | break;
191 |
192 | case "String":
193 | typeTag = STRING;
194 | break;
195 |
196 | case "Byte[]":
197 | typeTag = BYTE;
198 | break;
199 |
200 | default:
201 | throw new Exception("Unsupported data type.");
202 | }
203 |
204 | _typeTag += typeTag;
205 | _data.Add(value);
206 | }
207 | #endregion
208 | }
209 | }
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib/OSC/OSCMessage.cs.meta:
--------------------------------------------------------------------------------
1 | fileFormatVersion: 2
2 | guid: d3afda59a121123408759af0c81b8cfc
3 | MonoImporter:
4 | externalObjects: {}
5 | serializedVersion: 2
6 | defaultReferences: []
7 | executionOrder: 0
8 | icon: {instanceID: 0}
9 | userData:
10 | assetBundleName:
11 | assetBundleVariant:
12 |
--------------------------------------------------------------------------------
/Plugins/UnityOSC/Lib/OSC/OSCPacket.cs:
--------------------------------------------------------------------------------
1 | //
2 | // UnityOSC - Open Sound Control interface for the Unity3d game engine
3 | //
4 | // Copyright (c) 2012 Jorge Garcia Martin
5 | // Last edit: Gerard Llorach 2nd August 2017
6 | //
7 | // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
8 | // documentation files (the "Software"), to deal in the Software without restriction, including without limitation
9 | // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
10 | // and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11 | //
12 | // The above copyright notice and this permission notice shall be included in all copies or substantial portions
13 | // of the Software.
14 | //
15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
16 | // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 | // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
18 | // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 | // IN THE SOFTWARE.
20 | //
21 |
22 | using System;
23 | using System.Diagnostics;
24 | using System.Collections.Generic;
25 | using System.Text;
26 |
27 | namespace Augmenta.UnityOSC
28 | {
29 | ///
30 | /// Models a OSC Packet over an OSC stream.
31 | ///
32 | abstract public class OSCPacket
33 | {
34 | #region Member Variables
35 | protected List