Search Unity

Question Is it possible to "turn on" getting a depth map (sceneDepth) from LiDAR using AR Foundation (ARKit)?

Discussion in 'AR' started by adammpolak, Jul 21, 2021.

  1. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    How can I get the sceneDepth configuration on ARKit subsystem using AR Foundation?

    From ARKit documentation:

    Add the sceneDepth frame semantic to your configuration’s frameSemantics to instruct the framework to populate this value with ARDepthData captured by the LiDAR scanner.​

    I would like to be able to grab the "sceneDepth", how do I configure this on?

    Something like:

    configuration.frameSemantics = ARFrameSemanticSceneDepth;

    upload_2021-7-21_15-21-56.png
     
    Last edited: Jul 21, 2021
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,142
    adammpolak likes this.
  3. adammpolak

    adammpolak

    Joined:
    Sep 9, 2018
    Posts:
    450
    Thank you!