Search Unity

MTG scale is interpreted wildly in Unity.

Discussion in 'Vuforia' started by IARI, Apr 9, 2018.

  1. IARI

    IARI

    Joined:
    May 8, 2014
    Posts:
    70
    Hello,

    I am using
    • Unity 2017.3.1f1
    • Vuforia 7.0.47
    • MTG 7.0.50
    In my MTG Project I am using a model (imported obj) of a car, where scale dimensions are set to cm.
    The resulting MTG Display: upload_2018-4-9_15-44-43.png
    upload_2018-4-9_15-43-19.png

    However, this is what I get in Unity:
    upload_2018-4-9_15-45-33.png

    293km corresponds to a factor of 10^6 - this seems wrong.
    Also notice that the "Show Bounding Box" checkbox is checked - however in the scene the bounding box is not visible, unless you zoom in: it actually seems to have a much smaller scale than the visualization of the model (but not as small as 10^-6 in relation).
    upload_2018-4-9_15-54-57.png

    In the Thread "Known issues with Vuforia 7 Model Target Generator" you recommend to
    "use meters for all target dimensions."


    This also seems very little information. Is this a different issue?
    Please let me know how i should proceed.
     
    Last edited: Apr 10, 2018
  2. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    This looks like a different issue. Which version of Unity, Vuforia, and the MTG are you using for this? Are you able to share your model + dataset (can direct message this if you don't want to share the data publicly) so we can attempt to reproduce this locally?

    Thanks
     
  3. IARI

    IARI

    Joined:
    May 8, 2014
    Posts:
    70
    Unity 2017.3.1f1
    Vuforia 7.0.47
    MTG 7.0.50

    (I also updated the original threadpost with this info)
     
  4. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Thanks for providing this information. Would you be able to share the model file you imported into the MTG with me?
     
    IARI likes this.
  5. IARI

    IARI

    Joined:
    May 8, 2014
    Posts:
    70
    Just to be sure, I would like to send you the model file in private - is there any possibility to avoid posting it here in public?
     
  6. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Yeah sending it to me privately is fine. You can send me a download link via a direct message or using a support form on our dev portal.

    There have also been numerous releases of the MTG and Vuforia since your original post. It would be worth testing this again on 7.1.34.