Search Unity

ARCore Occlusion

Discussion in 'ARCore' started by yuemco, Mar 27, 2019.

  1. yuemco

    yuemco

    Joined:
    Jul 1, 2018
    Posts:
    1
    Hi,

    I'm trying to implement a shader which handles occlusions using unity and ARCore. I did not get it that when I placed my virtual object to the surface, how can I hide it when a real object occluded my virtual object? I know that I need to use depth-test (z-buffer) and occlusion mask (z-mask) however I don't know how can I write that code. Could you explain it?
     
  2. twiggs1

    twiggs1

    Joined:
    Jul 6, 2018
    Posts:
    2
    6d.ai request their sdk, they build a mesh of the world then you can use this for total occlusion