Search Unity

Question How do I get viewMatrix for TryAcquireEnvironmentDepthCpuImage?

Discussion in 'AR' started by mmc135, Oct 5, 2021.

  1. mmc135

    mmc135

    Joined:
    Oct 5, 2021
    Posts:
    1
    Hi.

    How do I get the viewMatrix for TryAcquireEnvironmentDepthCpuImage?
    Like ARFrame.camera.viewMarix of Apple's ARKit.

    Camera.main.worldToCameraMatrix does not seems to match the depth data.

    Thanks.
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,822
    I connected with the team, and they wanted me to pass along that ARFrame.camera.viewMarix corresponds to both the background and the depth image.