Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

ARCore Occlusion

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

  1. yuemco

    yuemco

    Joined:
    Jul 1, 2018
    Posts:
    36
    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:
    7
    6d.ai request their sdk, they build a mesh of the world then you can use this for total occlusion