Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Locatable Camera not working on HoloLens 2

Discussion in 'AR/VR (XR) Discussion' started by AndyN_HH, Feb 19, 2020.

  1. AndyN_HH

    AndyN_HH

    Joined:
    Feb 19, 2020
    Posts:
    1
    The locatable camera API does not provide intrinsic or extrinsic camera parameters on HoloLens 2, only the texture is generated correctly. I am using Unity 2019.3.1 and Visual Studio 2019, but I experiences the same issue in Unity 2019.2. The debug output from visual studio is attached, I noticed some exceptions, which may be related.
    • onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(68)\Windows.Devices.Sensors.dll!00007FFF9D462038: (caller: 00007FFF9D4637C4) ReturnHr(1) tid(7bc) 80070490 Element not found.
    • Exception thrown at 0x00007FFFD5109A9C (KernelBase.dll) in CameraTest19.3.exe: 0x40080202: WinRT transform error (parameters: 0x000000008000000B, 0x0000000080070490, 0x0000000000000014, 0x000000B3BB7FD360).
    • Exception thrown at 0x00007FFFD5109A9C (KernelBase.dll) in CameraTest19.3.exe: WinRT originate error - 0xC00DABE0 : 'No capture devices are available.'.
    The printed message "Have photo!" is succeeded by photoCaptureFrame.hasLocationData, which is false, so that no intrinsics or camera pose are available.The script accessing the camera is attached as well.

    Is this a bug in the camera API, or am I doing something wrong? The code is working on HoloLens 1.
     

    Attached Files:

  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
  3. lapislazino

    lapislazino

    Joined:
    Aug 31, 2018
    Posts:
    4
    Will this be fixed / is there a workaround?
     
  4. Kevin_K

    Kevin_K

    Joined:
    Apr 21, 2014
    Posts:
    1
    jozhard likes this.