Search Unity

Depth Data camera feed

Discussion in 'AR' started by sticklezz, Oct 16, 2018.

  1. sticklezz

    sticklezz

    Joined:
    Oct 27, 2015
    Posts:
    33
    Are you able to use (Apple's) Depth Data in Unity?

    Curious if anyone has tried to use Depth Data as a blurry occlusion mask for nearby camera items? Imagine it is probably hard (impossible?) to tie it to the actual scene depth .

    From DepthCam app, rear facing camera depth.jpg
     
    Last edited: Oct 17, 2018
  2. Jelmersb

    Jelmersb

    Joined:
    Jul 12, 2016
    Posts:
    66
    There's no depth camera so you can't get that sort of depth map.
    The camera is just a "normal" camera that does feature tracking. Features are then compared to movement from he accelerateter to determine where in space those features are. This means that's you (by far) will not get depth data for every pixel on the screen, just a few (see point cloud examples), which is not enough to create such a blurry depth effect. You'd need to make your own AI.