Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Image tracking Not working ?

Discussion in 'AR' started by zyonneo, Mar 14, 2021.

  1. zyonneo

    zyonneo

    Joined:
    Apr 13, 2018
    Posts:
    386
    I downloaded the latest LTS version 2020.3.0f1 and ARFoundation 4.0.12, ARCore XRPlugin 4.012 .The next step added ARSession and ARSession origin. In ARsessionOrigin gameobject I added the ARTrackedManager script.I created an XR Reference Image Library with one image. Added a sphere in the tracked image prefab. In XR Plug-in Management ticked ARCore.Took build and showed the device camera onto the image but the sphere was not seen. Any change from old versions?.I dint see any errors on the logcat.

     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,795
    zyonneo likes this.
  3. Liminal-Ridges

    Liminal-Ridges

    Joined:
    Oct 21, 2015
    Posts:
    255
  4. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    791
    Generally speaking, AR Image Tracking only works if you use 2D images that exist in the world on 2-dimensional planes. Photographs of 3D objects will not work unless you print the photograph or render it on a 2D screen such as a computer monitor.

    To answer your question more completely, some images do work better than others. Image tracking guidance is specific to your provider (ARCore, ARKit, etc), but this explanation from Apple is widely applicable across multiple platforms:

    Not all images are equally suited for using them as ARReferenceImages. Good reference images typically have high contrast, good texture, clear edges, and are printed on a flat, non-glossy surface. Low-texture and low-contrast images will likely not work so well. When you add reference images to an ARResourceGroup in an Xcode asset catalog, Xcode will show quality estimation warnings, which may provide additional insights about the specific issue with that particular image.
     
  5. Liminal-Ridges

    Liminal-Ridges

    Joined:
    Oct 21, 2015
    Posts:
    255
    Thanks alot for the detailed explanation Andy. So if i want to detect objects or surfaces in the real world whats the best way to go? Maybe using geometry data (lidar, meshing) instead of visual? They are not high resolution unfortunately thats why i went with images..
     
  6. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    791