Search Unity

Question ARFoundation Scale Not Matching Real World Dimensions

Discussion in 'AR' started by nithisha08, May 19, 2022.

  1. nithisha08

    nithisha08

    Joined:
    May 19, 2022
    Posts:
    3
    I have a desk that is about 72 cm tall.
    upload_2022-5-19_17-41-41.png

    I created a cube in Blender of size 72 cm x 72 cm x 72 cm and exported it as a .obj model:



    I placed the cube (with a scale factor of 1) next to the desk. The cube is a little shorter than the height it is supposed to be. You can check the cube's size in this video:


    This is the source code I have: https://github.com/nithishakumar/CubeAR/tree/main/Cube/Assets

    I use a modified version of the PlaceOnPlane.cs script (to prevent UI raycasting) to place the cube.

    Please check the "UI & AR scripts" folder for the modified PlaceOnPlane.cs script and the "Cube" folder for any other important info.

    I'm unsure of why the cube is not tall enough. Any help would be appreciated!
     

    Attached Files:

    Last edited: May 20, 2022