Search Unity

ARFoundation ARKit3 - humanSegmentationDepthMode

Discussion in 'AR' started by InakiAndres, Jun 19, 2019.

  1. InakiAndres

    InakiAndres

    Joined:
    Jan 9, 2019
    Posts:
    19
    Hello!
    I want to know the depth of the human, and I have the texture2D dephthuman (m_HumanBodyManager.humanDepthTexture) with TextureFormat.RFloat.

    But I don't know how can I read the RFloat to know the distance that I have in unity. Is it in meters, centimeters? And I have the sensation that is only a range 0-1.

    Help please! Thanks!
     
  2. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    See https://forum.unity.com/threads/how-to-setup-people-occlusion.691789/#post-4661492