EnoxSoftware / HoloLensWithOpenCVForUnityExample

HoloLens With OpenCVforUnity Example (Support for Hololens1 and Hololens2)
MIT License
262 stars 50 forks source link

Works in Unity, not on HoloLens 2 #33

Closed A00107408 closed 3 years ago

A00107408 commented 3 years ago

I have followed the setup instructions.

Unity 2018.4.28f MRTK 2.2

The scenes run fine in Unity with a web camera on PC, which should mean everything is configured correctly.

But when I build an deploy this to the HL2, the menus all work fine but nothing else works. For example, when I enable camera preview in the ArUco scene, I just get a blank white quad with no video feed.

In the player Publishing Settings I have explicitly enabled WebCam capabilities.

Some hints:

On the HL2, the scene quads remain white and appear in my left eye only. Although using MRTK 2.2 in Unity 2019.4.15f, the quad did have the oval appearance in the comic filter scene. Otherwise they are square and white and in my left eye only.

The camera intrinsics scene scrollable window seems to show data on four cameras.

Am I missing some setting? Does the headset need to be in research mode?

I have also tried Unity version 2019.3.16f, 2019.4.15f, and 2020.2.4f and I have also tried MRTK 5.1.

In Visual Studio I build for ARM.

Any suggestion greatly appreciated.

A00107408 commented 3 years ago

Now I see the solution in the other thread. Just leaving this issue open while I work on it : )