Search Unity

Optics mystery: Objects that are farther dont scale correctly

Discussion in 'AR/VR (XR) Discussion' started by Kainkun, Mar 29, 2019.

  1. Kainkun

    Kainkun

    Joined:
    Jul 2, 2017
    Posts:
    3
    I've noticed in the unity 2D view (like through a normal camera) a sphere that is twice as far is half the size. This is how optics works in real life. However, I noticed that in VR that is not the case? Has anyone else noticed this? Any solutions to fix this?

    Left sphere is two units away from the camera, two spheres on the right are the same size but are twice as far from the camera. Since there is two stacked on each other they are the same height as the closer sphere. In VR, the closer sphere looks smaller (sorry there's no shading but that doesn't matter)
    upload_2019-3-28_17-28-57.png

    Cant show how it looks in VR so here's a recreation of what I see
    upload_2019-3-28_17-31-34.png
     
  2. JoeStrout

    JoeStrout

    Joined:
    Jan 14, 2011
    Posts:
    9,859
    I suggest figuring out how to take a screen shot on your VR device. I suspect what you think you see is just a visual illusion, caused by the stereo. Your brain is telling you how big the spheres actually are, taking into account that it knows (from the stereo) how far away they are; it's computing the inverse of the perspective transformation. In short, I don't believe your recreation. :)