Skip to content

Commit

Permalink
Fixed UI objects to display in the optimal zone for hologram placemen…
Browse files Browse the repository at this point in the history
…t (between 1.25m and 5m).
  • Loading branch information
EnoxSoftware committed Jan 29, 2019
1 parent 2dc927e commit d435038
Show file tree
Hide file tree
Showing 14 changed files with 2,048 additions and 1,355 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ private void InitializeCalibraton(Mat frameMat)
texture.wrapMode = TextureWrapMode.Clamp;

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

float imageSizeScale = 1.0f;

Expand Down
Loading

0 comments on commit d435038

Please sign in to comment.