Search Unity

Vuforia AR test not working?

Discussion in 'Vuforia' started by Tezelian, Oct 18, 2017.

  1. Tezelian

    Tezelian

    Joined:
    Oct 22, 2013
    Posts:
    256
    Hey,

    I have followed every simple tutorial to get AR working and I think that I have set everything u correctly but for some reason nothing is working on the webcam editor play view unless there is something wrong with my webcam? I get this warning message
    1.png

    Here is my setup.

    2.png

    3.png

    As I'm using the latest version of unity the vuforia was already inbuilt. The only reason I can think of is either I missed something or the webcam is not tracking/working from the warning?

    Other than that I did download the database called test and I did copy paste the license key so why do you think it may not be working :(

    Could it be the positioning of the camera and or image?
     
  2. Vuforia-Strasza

    Vuforia-Strasza

    Official Vuforia Employee Vuforia

    Joined:
    Jun 13, 2017
    Posts:
    548
    Are you not seeing the camera feed from your webcam when you run playmode? That warning doesn't necessarily mean the webcam won't function.
    You can try adding your webcam to the profiles.xml, the path in the error message is incorrect. You can find the file at this path: <Unity Install Directory>\Data\PlaybackEngines\VuforiaSupport\VuforiaResources

    Are you able to deploy to a device?

    Thanks!
     
  3. Tezelian

    Tezelian

    Joined:
    Oct 22, 2013
    Posts:
    256
    Hey thanks for your reply

    Yes I can see the Web cam feed and I also tried on another laptop and still not working :(

    I'll try your solution when I return home but I wonder what else it can be if it doesn't work
     
  4. gabytala

    gabytala

    Joined:
    Feb 1, 2018
    Posts:
    1
    el mismo problema... sin solución.. ayuda
     
  5. VIZARTEC

    VIZARTEC

    Joined:
    Aug 16, 2016
    Posts:
    1
    Same problem, help!!
     
  6. dasfuhrer

    dasfuhrer

    Joined:
    Apr 29, 2017
    Posts:
    11
    help!!!!!!!!!!!!
     
  7. Tajibaev

    Tajibaev

    Joined:
    Aug 4, 2018
    Posts:
    1
    help me too
     
  8. Taha121

    Taha121

    Joined:
    Jul 28, 2018
    Posts:
    2
    help me 3
     
  9. Aretus

    Aretus

    Joined:
    Aug 7, 2018
    Posts:
    1
    same problem
     
  10. unity_4x5Fh6ewd-m_8A

    unity_4x5Fh6ewd-m_8A

    Joined:
    Jan 5, 2018
    Posts:
    16
    HI All
    Is everyone here running the current version of Unity and Vuforia? (Unity 2018.2.2f1 and Vuforia 7.2.24). Since updating from previous version, I have the same problem - cannot see the mesh displayed on the target image. Here's a link to my post (no solution yet) https://forum.unity.com/threads/unity-vuforia-ar-not-working.544868/
     
  11. unity_4x5Fh6ewd-m_8A

    unity_4x5Fh6ewd-m_8A

    Joined:
    Jan 5, 2018
    Posts:
    16
    Hi. Do you have any feedback for us?
     
  12. geehealey

    geehealey

    Joined:
    Jun 2, 2015
    Posts:
    1
    Try this link here. It's from the same guy who put together the original 'Trump' tutorial:
     
  13. samra2494

    samra2494

    Joined:
    Nov 23, 2015
    Posts:
    21
    The issue is resolved. :) The following solution works for me.. i think it helps you too. just put this script on camera
    using UnityEngine;
    using UnityEngine.Android;


    public class permissionscript : MonoBehaviour
    {
    GameObject dialog = null;
    void Start()
    {
    #if PLATFORM_ANDROID
    if (!Permission.HasUserAuthorizedPermission(Permission.Camera))
    {
    Permission.RequestUserPermission(Permission.Camera);
    }
    #endif
    }
    }


    // here is my device camera script

    using UnityEngine;
    using UnityEngine.UI;

    public class simplecamera : MonoBehaviour
    {
    static WebCamTexture backCam;

    void Start()
    {
    WebCamDevice[] devices = WebCamTexture.devices;
    if(backCam == null)
    {
    backCam = new WebCamTexture();
    }
    GetComponent<RawImage>().texture = backCam;
    backCam.Play();
    }
    }
     
    Bujupah likes this.
  14. unity_hMv45ToPU0VAiQ

    unity_hMv45ToPU0VAiQ

    Joined:
    Apr 2, 2020
    Posts:
    1
    how to install this script can you please help me out
     
  15. Sika_MC

    Sika_MC

    Vuforia

    Joined:
    Jul 17, 2019
    Posts:
    96
    Hi @unity_hMv45ToPU0VAiQ
    Steps below on how to "install" the script:
    Create a new script name simplecamera, add the code to the script. Go the AR Camera -> Add Component and choose the simplecamera.cs

    However please note that the Warning usually can be ignored. Do you see the feed of the camera?
    Thank you.
    Vuforia Engine Suppory
     
  16. Chetan666

    Chetan666

    Joined:
    Apr 16, 2020
    Posts:
    1
    I tried to add cs file this is the message I received. Please help!

    Asset Packages/com.ptc.vuforia.engine/Vuforia/Scripts/simplecamera.cs has no meta file, but it's in an immutable folder. The asset will be ignored.
     
  17. unity_gOmhDfzFA5wh9w

    unity_gOmhDfzFA5wh9w

    Joined:
    Mar 23, 2020
    Posts:
    1
    I live the same problem, I can not add .cs file as component. help pls!