Skip to content

Commit 23747fa

Browse files
committed
Added comment to projectionMatrix.
1 parent 1cd9f54 commit 23747fa

5 files changed

Lines changed: 8 additions & 0 deletions

Assets/HoloLensWithOpenCVForUnityExample/Scripts/HoloLensAnonymousFaceExample.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ public void OnWebCamTextureToMatHelperInited ()
151151
// quad_renderer = gameObject.GetComponent<Renderer> () as Renderer;
152152
// quad_renderer.sharedMaterial.SetTexture ("_MainTex", texture);
153153

154+
//This value is obtained from PhotoCapture's TryGetProjectionMatrix() method.I do not know whether this method is good.
155+
//Please see the discussion of this thread.Https://forums.hololens.com/discussion/782/live-stream-of-locatable-camera-webcam-in-unity
154156
projectionMatrix = Matrix4x4.identity;
155157
projectionMatrix.m00 = 2.31029f;
156158
projectionMatrix.m01 = 0.00000f;

Assets/HoloLensWithOpenCVForUnityExample/Scripts/HoloLensComicFilterExample.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ public void OnWebCamTextureToMatHelperInited ()
130130
quad_renderer.sharedMaterial.SetTexture ("_MainTex", texture);
131131
quad_renderer.sharedMaterial.SetVector ("_VignetteOffset", new Vector4(clippingOffset.x, clippingOffset.y));
132132

133+
//This value is obtained from PhotoCapture's TryGetProjectionMatrix() method.I do not know whether this method is good.
134+
//Please see the discussion of this thread.Https://forums.hololens.com/discussion/782/live-stream-of-locatable-camera-webcam-in-unity
133135
Matrix4x4 projectionMatrix = Matrix4x4.identity;
134136
projectionMatrix.m00 = 2.31029f;
135137
projectionMatrix.m01 = 0.00000f;

Assets/HoloLensWithOpenCVForUnityExample/Scripts/HoloLensWebCamTextureAsyncDetectFaceExample.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ public void OnWebCamTextureToMatHelperInited ()
166166
quad_renderer.sharedMaterial.SetTexture ("_MainTex", texture);
167167
quad_renderer.sharedMaterial.SetVector ("_VignetteOffset", new Vector4(clippingOffset.x, clippingOffset.y));
168168

169+
//This value is obtained from PhotoCapture's TryGetProjectionMatrix() method.I do not know whether this method is good.
170+
//Please see the discussion of this thread.Https://forums.hololens.com/discussion/782/live-stream-of-locatable-camera-webcam-in-unity
169171
Matrix4x4 projectionMatrix = Matrix4x4.identity;
170172
projectionMatrix.m00 = 2.31029f;
171173
projectionMatrix.m01 = 0.00000f;

Assets/HoloLensWithOpenCVForUnityExample/Scripts/HoloLensWebCamTextureAsyncDetectFaceOverlayExample.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ public void OnWebCamTextureToMatHelperInited ()
172172
// quad_renderer = gameObject.GetComponent<Renderer> () as Renderer;
173173
// quad_renderer.sharedMaterial.SetTexture ("_MainTex", texture);
174174

175+
//This value is obtained from PhotoCapture's TryGetProjectionMatrix() method.I do not know whether this method is good.
176+
//Please see the discussion of this thread.Https://forums.hololens.com/discussion/782/live-stream-of-locatable-camera-webcam-in-unity
175177
projectionMatrix = Matrix4x4.identity;
176178
projectionMatrix.m00 = 2.31029f;
177179
projectionMatrix.m01 = 0.00000f;
732 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)