Search Unity

Question Revealing Image with AR – Hovering over image

Discussion in 'AR' started by blahblahblahblah_, Jun 3, 2023.

  1. blahblahblahblah_

    blahblahblahblah_

    Joined:
    Apr 2, 2023
    Posts:
    3
    Hello, I need help urgently.
    I am currently trying to make a poster with AR integration, where the viewer can move the smartphone over the poster and then the image section underneath becomes visible - like when you move a magnifying glass over an image.
    The AR content should also only be visible when the smartphone is close to the image.
    Is there a solution for this, or at least a partial solution?
    I would be extremely grateful!
    Thanks a lot!
    Blah
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,043
    You can use image detection to detect the image, and then if the distance between the image anchor and camera is under a treshhold spawn the object (or enable the renderer)
     
  3. makaka-org

    makaka-org

    Joined:
    Dec 1, 2013
    Posts:
    1,023
    Maybe this gives you some inspiration in your case: AR Portal.
    I believe this can be combined with Image Tracking as well.

    There is also a kind of AR Visiting Card example.
     
    blahblahblahblah_ likes this.