Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

AR appearing before target recognition

Discussion in 'Vuforia' started by Zagaz, Nov 1, 2017.

  1. Zagaz

    Zagaz

    Joined:
    Dec 30, 2015
    Posts:
    52
    Hi guys!

    Everything is working fine! But I have just a liitle issue.

    When I press play, the AR apear on scrren, before the target get caught by the camera.
    How do I set Vuforia in a way that the AR only appear after the Target get recognized.

    When the game opens, it shows the dinosaur paw.



    Whem it hits the Target.




    Thanks in advance!
     
    Last edited: Nov 1, 2017
  2. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Hey @Zagaz,

    It looks like your images failed to attach, could you re-attach them so I can see the issue you're having?

    Thanks!
     
  3. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Are you disabling the dinosaur and/or its renderer before the target is detected? Could you share a screenshot of the dinosaur's gameobject in the Unity scene?
     
  4. Zagaz

    Zagaz

    Joined:
    Dec 30, 2015
    Posts:
    52



    ....

     
  5. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    It doesn't look like you have anything that would be hiding the dinosaur before detection happens. I've attached a screenshot from the samples of a standard way to set up a 3D model to hide until it is detected. If you set the model to be a child of the Image Target and include the "TurnOffBehaviour" script, it will hide the model until the detection occurs.

    If you don't want the dinosaur to be a child object of the Image Target, my recommendation would be to default the dinosaur to be disabled and have a script on your Image Target to find and enable the dinosaur object on detection.

    Please give this a try and let me know if it works for you.

    Thanks!
     

    Attached Files:

  6. Zagaz

    Zagaz

    Joined:
    Dec 30, 2015
    Posts:
    52
    Solved!! Thanks


    SOLVED!!!!


     
    Vuforia-Strasza likes this.
  7. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Happy to hear :)
     
  8. RaphaelHofman

    RaphaelHofman

    Joined:
    May 10, 2019
    Posts:
    1
    Hi guys, I've used UMA to make an avatar. The Uma model is a child of the image target and also the Turn Off Behaviour is activated in the target Image. Still, i can see the legs, when i press play or start the app.
    Any ideas? Greets and thank you!
     

    Attached Files: