By vmferreira81
on Wed, 04/17/2019 - 02:43
Hi,
I'm trying to make my virtual objects hide when they get behind the model target. The idea is to have the virtual object stationary as the user moves the camera around. The virtual object must disappear when its behind the real object.
I'm trying to do this with ZMask. Any ideas?
Thank you
Vitor
Just in case anyone else was
Just in case anyone else was wondering about this, in Unity there is a material included in the basic Vuforia assets called DepthMask. Apply this material to your model target and it will become invisible, but will hide anything that is behind it.