Search Unity

Question 4 Trackables generate one Output Gameobject

Discussion in 'AR' started by Schoni, Jun 26, 2022.

Thread Status:
Not open for further replies.
  1. Schoni

    Schoni

    Joined:
    Dec 10, 2021
    Posts:
    32
    Hey Pals,

    for my next project I want to track 4 Image Tracker to set on top of them a Gameobject plane with one Image. So basically I want to scale the Plane based on the distance between the Image Tracker.
    Is this possible?
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,063
    Yes, just track the anchors and generate 2 triangles (quad) using the anchors if you have 4
     
  3. Schoni

    Schoni

    Joined:
    Dec 10, 2021
    Posts:
    32
    Hi thanks for the hint! But then I have to use Object Tracking since I cant set an anchor to an Image Tracker?
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,063
    Why can't you use image tracking?
     
  5. Schoni

    Schoni

    Joined:
    Dec 10, 2021
    Posts:
    32
    I thought an Anchor can just get stick to a gameobject and with my ImageTracking system I am not instantiating gameobjects (Just using ARTrackedImageManager)
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,063
    Then make a system which will instatiate a gameobject at the position when seeing an image
     
  7. ankur-unity

    ankur-unity

    Unity Technologies

    Joined:
    Aug 12, 2021
    Posts:
    34
Thread Status:
Not open for further replies.