Skip to content

Commit d435038

Browse files
committed
Fixed UI objects to display in the optimal zone for hologram placement (between 1.25m and 5m).
1 parent 2dc927e commit d435038

14 files changed

+2048
-1355
lines changed

Assets/HoloLensWithOpenCVForUnityExample/HoloLensArUcoExample/HoloLensArUcoCameraCalibrationExample.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ private void InitializeCalibraton(Mat frameMat)
321321
texture.wrapMode = TextureWrapMode.Clamp;
322322

323323
previewQuad.GetComponent<MeshRenderer>().material.mainTexture = texture;
324-
previewQuad.transform.localScale = new Vector3 (1, height/width, 1);
324+
previewQuad.transform.localScale = new Vector3 (0.2f * width / height, 0.2f, 1);
325325

326326
float imageSizeScale = 1.0f;
327327

0 commit comments

Comments
 (0)