Search Unity

Question AR Foundation: Disabling native ToF depth sensor

Discussion in 'AR' started by t_lith85, Sep 23, 2021.

  1. t_lith85

    t_lith85

    Joined:
    Nov 9, 2020
    Posts:
    3
    Hi,

    I have a Samsung S20 and it has a time-of-flight depth camera.
    When ARCore sees that this depth camera is available it will generate its depth map from it.

    But then the depth map is sluggish/not in sync with the RGB frame, because the depth sensor works only at 5 fps.

    In ARCore sdk itself there is a flag that I can disable the use of hardware depth sensors and my problem is solved.
    But I cannot seem to find this option in ARFoundation in order to disable native depth sensor.

    Question 1: Where is the option in order to disable the native depth sensor (like in ARCore SDK)?

    Question 2: I also cannot seem to find the lens intrinsics of the depth image in AR foundation...
     
  2. t_lith85

    t_lith85

    Joined:
    Nov 9, 2020
    Posts:
    3
    Ok, it seems with "ARCore Extensions" I can disable the ToF sensor.
     
    DemonFangZ and KyryloKuzyk like this.