Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Image tracking and scaling

Discussion in 'AR' started by ANTONBORODA, Nov 6, 2019.

  1. ANTONBORODA

    ANTONBORODA

    Joined:
    Nov 16, 2017
    Posts:
    52
    Hello everyone,
    I'm trying to make image tracking work with scaling and it seems like something is wrong with the AR Foundation itself.
    I have no problem with image tracking if I set the AR Session Origin scale to 1 and scale down my content. But as soon as I try to follow the "proper" scaling route, everything brakes.
    I tried using MakeContentAppearAt with first transform being my content and second and third parameters taken from Image anchor positions. I tried reparenting my content to image anchor gameObject, neither of those ways works.
    Is it currently broken or I'm doing something really wrong?
     
  2. ANTONBORODA

    ANTONBORODA

    Joined:
    Nov 16, 2017
    Posts:
    52
    This can be closed. The issue was that I was attaching Image tracking subsystem during runtime and the gameobject I was attaching it too was not AR Session Origin