Search Issue Tracker

Fixed in 2020.2

Fixed in 2018.4, 2019.4

Votes

14

Found in

2019.2.17f1

Issue ID

1207427

Regression

No

PhotoCaptureFrame Fails to Provide Camera Matrices on HoloLens 2

XR

-

1. With the same Unity App built on top of Unity PhotoCapture and PhotoCaptureFrame API, it is able to take photo and retrieve CameraToWorld and CameraProjection matrices on HoloLens 1. The app works fine taking photo data, however, always fails to provide CameraToWorld and CameraProjection matrices on HoloLens 2.

2. How we can reproduce it using the example you attached
1) Have Windows SDK 18362 and VS2019 installed
2) Load UnityPhotoCapture scene into Unity 2019.2.17f1
3) Choose Universal Windows Platform as platform, and ensure capabilities WebCam, Microphone, Location and SpatialPerception are enabled, and Virtual Reality Supprt - Windows Mixed Reality is enabled as well.
4) Build and deploy the app onto Hololens 2
5) Once app gets launched, air-tap to take a photo and watch debug log. It prints out "Failed to get camera to world matrix!" and "Failed to get camera projection matrix!"

  1. Response avatar

    Resolution Note (fix version 2020.2):

    Legacy WMR is not available in 2020.2, but we will be adding this feature for XR WMR plugin within the next month.

Comments (23)

  1. 4b2536c390882ce0941c2aebf5993b55?d=mm

    csrussell

    Jun 08, 2020 15:54

    Hey, so this:
    https://issuetracker.unity3d.com/issues/webcamtexture-doesnt-work-on-hololens-2

    was marked as a "duplicate" of this issue.

    What does that mean for that other bug? That the webcamtexture is not going to be fixed?

  2. 6822b05f57656148ccc1fc1ae69143f0?d=mm

    roalchaq

    Jun 03, 2020 18:25

    Hi there,

    People have been reporting issues with PhotoCapture in Unity @HoloLens2 for several months now:

    1. https://issuetracker.unity3d.com/issues/photocaptureframe-fails-to-provide-camera-matrices-on-hololens-2
    2. https://holodevelopers.slack.com/archives/C1CQKRQM6/p1580916605219700
    3. https://forum.unity.com/threads/photocapture-createasync-not-running-on-hololens-2.762626/

    In my case I am not getting the CameraToWorldMatrix or ProjectionMatrix when I run my app on the HoloLens 2 while the app works just fine on the HoloLens 1.

    Is there any walk around for this or is there a fix comming soon?

  3. Ce8cdd3d21b69ceb2052568c77fd8a8d?d=mm

    gwendalbroudin

    May 13, 2020 16:25

    Is there any updates on this fix ? When will it be released ?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.