Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Don't miss out on the Unite LA Keynote for the latest information from Unity! Set a reminder!
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

UNITY / VUFORIA - AR NOT WORKING

Discussion in 'AR' started by unity_4x5Fh6ewd-m_8A, Aug 11, 2018.

  1. unity_4x5Fh6ewd-m_8A

    unity_4x5Fh6ewd-m_8A

    Joined:
    Jan 5, 2018
    Posts:
    16
    I upgraded to UNITY 2018.2.2f1 as well as VUFORIA 7.2.24 and since then I cannot get any AR to work. I was successful with the previous versions of Unity and Vuforia. I have a simple letter "Z" target image with a Trump low poly model. I have created and inserted a Vuforia license key with the associated "Z" target manager database. I followed the identical steps that I did for my previous AR project using this tutorial (
    ). I noticed the automatically loaded databases change that Vuforia has implemented. I have my database loaded and Image target activated and loaded under the ImageTarget Inspector options. Previously I was able to test using my webcam BUT this time nothing happens when I try test using the Webcam. I also did a "Build & Run" onto my android device and that too didn't work. I'm really at a loss.
     

    Attached Files:

  2. unity_4x5Fh6ewd-m_8A

    unity_4x5Fh6ewd-m_8A

    Joined:
    Jan 5, 2018
    Posts:
    16
    .....or if someone has an updated tutorial for the new Unity and New Vuforia, that might help as well.
     
  3. unity_4x5Fh6ewd-m_8A

    unity_4x5Fh6ewd-m_8A

    Joined:
    Jan 5, 2018
    Posts:
    16
    My step-by-step methodology:-

    1) Open Unity - start new project
    2) Delete main camera
    3) Create Vuforia AR camera
    4) Create Vuforia Image Target
    5) Go to File/Build Settings - switch platform to android and setup android settings. Also tick on Vuforia under XR settings
    6) Login to Vuforia online - create Development key
    7) In Unity - select AR Camera and open Vurofia configuration settings and copy and paste development key from Vuforia website
    8) back to Vuforia website - Create Target and upload target image. Download the package into Unity.
    9) in Unity - select ImageTarget. Check that the correct database is selected and that the image target is selected.
    10) Drag whatever mesh is being used onto the ImageTarget as a child.
    11) PREVIOUSLY - I was able to click play and hold my printed image target in front of my webcam and see the mesh in AR on my PC screen. This doesn't happen anymore. Building to android device also doesn't work.

    Is there something new I'm suppose to check / switch on or off?
     
  4. meedabit

    meedabit

    Official Vuforia Employee Vuforia

    Joined:
    Dec 8, 2016
    Posts:
    70
    Hello @unity_4x5Fh6ewd-m_8A,

    Thanks for the report. I attempted to replicate the issue as follows:
    1. Downloaded Unity 2018.2.2f1
    2. Enabled Vuforia in XR settings
    3. Upgraded to Vuforia 7.2.24 via installer
    4. Imported Vuforia Core Samples from the Asset Store
    5. Placed "3-ImageTargets" scene in the heirarchy - deleted all other scenes
    6. Verified "Fissure" target can be detected in PlayMode
    7. Inserted Developer License in ARCamera Inspector
    8. Created new device database on Vuforia Developer Portal
    9. Imported device database into Unity Editor
    10. Updated "ImageTarget_Astronaut" prefab with newly imported database
    11. Verified that new target could be detected in PlayMode
    12. Deleted all other scenes from build (except 3-ImageTargets)
    13. Build and deployed to device
    14. Verified that new target could be detected on device
    Basically, I was not able to find any issue with the above workflow.

    I followed this up by following your workflow (more of less, just not in the same exact order) and also was not able to see any issue. I was able to run in PlayMode and detect the new target.

    A few things to try:
    • Use a better target, something other than the letter "Z"? We don't recommend using printed characters as 2D planar targets
    • Check your clipping plane settings in the ARCamera inspector. Mine is set to Near=0.05, Far=2000
    Thanks,
    Vuforia Support
     
  5. unity_4x5Fh6ewd-m_8A

    unity_4x5Fh6ewd-m_8A

    Joined:
    Jan 5, 2018
    Posts:
    16
    Thank you so much. I only had a chance now to go through your workflow and can confirm that all of the above works for me as well. So I guess I have a specific problem with my project. >< Oh, debugging is just not fun!! Thanks again
     
  6. ThisIsAnUser

    ThisIsAnUser

    Joined:
    Jun 28, 2018
    Posts:
    1
    All works fine for me until i integrate with google cardboard, i get black screen, I tried to do those steps with previous versions, AR with google cardboard works well on Unity Play Mode, but on device, the image is not recognized, what should i do ?

    More specific, unity 2017.2 with vuforia package not working on android, but on unity 2018.2, i have blackscreen when adding google cardboard on unity and on android ... Please help
     
    Last edited: Sep 15, 2018