Log in or register to post comments

Use hololens camera instead of build-in webcam when in Unity holographic remote to device

February 15, 2019 - 4:20am #1

When using the option holographic remote to device in Unity when Vuforia is also being used I get the build-in webcam from the laptop rather then the hololens camera. Using Unity 201.3.5f1 with Vuforia 8.0.10. In the VuforiaConfiguration the hololens camera does not show up, only the build-in webcam.

How can I get to use the hololens camera?

Cheers

Mr. Jigs

Use hololens camera instead of build-in webcam when in Unity holographic remote to device

April 16, 2019 - 5:07am #4

Already fixed this issue? I'm getting the same problem, it will pick the build-in webcam instead of the HoloLens Camera.

Use hololens camera instead of build-in webcam when in Unity holographic remote to device

February 19, 2019 - 12:42am #3

Thanks Medabit for the expansive answer. I certainly learned about the possibility of live recording. A question that happened to pop-up yesterday, such serendipity :-)

 

The Unity Hololens Emulator. As I understand it there are two options. There's the full software emulation where no hololens is involved at all. That's what I would call an emulator. Then there's also a hololens remoting option where the hololens is connected through an usb cable and can be used from the Unity editor. This works with the Vuforia SDK installed as well until the you enable tracking. Then the camera switches on but uses the build in webcam rather then the hololens camera. I have come across one situation where it looked like the setup could not decide which camera to use. The light on the hololens camera was flickering and the webcam was on as well but no trackers were being recognised. Perhaps I need to add the hololens camera to the list of webcams in the VuforiaConfiguration? But where would I find the devicename for the hololens camera as required by the webcamprofiles.xml?

 

Cheers

 

Mr. Jigs

Use hololens camera instead of build-in webcam when in Unity holographic remote to device

February 15, 2019 - 2:48pm #2

Hello,

Are you talking about the Unity HoloLens Emulator? If so, Vuforia Engine does not support it.

If your talking about Mixed Reality Capture (MRC) feature, here's what we've found on HoloLens device running RS4:

  • You can record videos of Vuforia apps running on HoloLens. Note that for this to work, the Vuforia performance mode must be set to MODE_OPTIMIZE_SPEED, which sets the camera capture resolution to be 720p, e.g. 1280x720.
  • The app running Vuforia must be started *before* you started to record with HL’s MRC. If you start recording first, the video will abruptly stop once Vuforia gets access to the HL camera.
  • The MRC capture resolution must be set to the same as the Vuforia performance mode (720p)
  • You *cannot* do MRC Live preview while a Vuforia app is running in any case. If you try to start Live preview while a Vuforia-based app is running on HL, you will get an error in MRC. If you try to start a Vuforia-based app while Live preview is running, the app will not start.

We've had mixed success with these steps in RS4, with results in that it works every time to it works once in a while.

The limitations above are related to real-time camera access for apps running on the HoloLens. In order to guarantee optimal detection and tracking performance, Vuforia is granted sole access to the live camera feed. This is similar to other platforms that we support, such as Android and iOS. You can see that it also works the other way around for apps that do not run Vuforia. The Live preview app requires real-time camera access, so while it is running Vuforia is blocked from accessing the camera.

Thanks,

Vuforia Engine Support

Log in or register to post comments