Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Vuforia Hololens Sample (Image Targeting) Not Working in Hololens

Discussion in 'AR/VR (XR) Discussion' started by EmilioAngeles-VW, Oct 9, 2019.

  1. EmilioAngeles-VW

    EmilioAngeles-VW

    Joined:
    Oct 9, 2019
    Posts:
    2
    I have developed with the Vuforia plugin in Unity before, using the image targeting on my android phone and it works fine. Now I am trying to develop on Hololens, doing the same thing, but I'm having some issues. Ive been following this walk through - https://library.vuforia.com/articles/Solution/Working-with-the-HoloLens-sample-in-Unity.

    When I run the project in Unity Editor Play Mode, it works fine with the webcam (the virtual objects get placed over the image targets). And I can deploy the project without any issues and open it in my Hololens - the main menu opens and I can choose what scene to go to next. The app also prompts me to allow my Hololens microphone and camera.

    My problem arises when I select the "Image Targeting" scene. The voice commands stop working, I can't open the help menu or go back to the main menu, and when I look at the image targets with the Hololens, no virtual object appears. I've gone through the project and player settings multiple times to assure they're set properly according to that walk through. I'm assuming there's a problem where the camera in the Hololens and app can't communicate, but I'm really not sure. I don't know how to debug this to find and resolve the issue.

    If anyone has any tips or things to point me in the right direction, I'd really appreciate it.
     
  2. EmilioAngeles-VW

    EmilioAngeles-VW

    Joined:
    Oct 9, 2019
    Posts:
    2
    Solution Found: Pretty basic setting that I had to change, but I didn't know it existed because the tutorials I had seen didn't mention it. Window -> Vuforia Vonfiguration -> Digital Eyewear Drop Down -> Set Device Type to "Digital Eyewear" and Device Config to "Hololens". It's defaulted to handheld I guess.
     
  3. mrunalmohadikar

    mrunalmohadikar

    Joined:
    Dec 2, 2021
    Posts:
    1
    I am facing a similar issue. They have removed this option of Digital Eyewear with the Vuforia Engine version 10.13.3. I used the Vuforia HoloLens 2 Sample from the Unity Store, and it works for the Image Target (note: the app license key was not required for the sample app). Then, I used the same sample file to create an image target with an app license key. The recognition does not work in this case on HoloLens. However, it is working on the Webcam.
    Do you know what the potential reason for this can be?

    Thanks
    Mrunal