qian256 / HoloLensARToolKit

Marker tracking using the front-facing camera of HoloLens (both 1 and 2) and Unity, with a wrapper of ARToolKit built for UWP (Windows Universal Platform)
GNU Lesser General Public License v3.0
349 stars 92 forks source link

Demo doesn't work on Hololens2 #52

Closed whirwind closed 4 years ago

whirwind commented 4 years ago

Hi I am finding ways to get video stream from HL2. I just loaded the demo for HL2 and deployed it to my device. There is no image on top left coner and Video/Track FPS display show "Infinity ms".

Unity asked me if I want to update Asset Database Version from 1.0 to 2.0. I tried both Version 1 and 2. In version 1 preview window return me a white screen and in version 2 there is nothing.

I am not sure why. Or what adjustment I need to do to make it work?

Unity: 2019.3.15f1 MRTK: 2.4 (I also tried to use original Unity project without MRTK)

ericalbers commented 4 years ago

Be sure to import the unitypackage! It contains files in StreamingAssets which are required for the camera to work.

qian256 commented 4 years ago

@whirwind Please check the latest commits. The camera configuration files were not pushed to the Assets (ignored by .gitignore). @ericalbers Thank you for helping out. That probably works too! I have changed the code structure recently, to avoid "import" if the users only want to run the samples.

whirwind commented 4 years ago

Thanks. The dome runs and I finnally see video stream of HL2 for the first time. I will try to make it work in my own project next.