"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Virtual object turns black when goes behind cylinder

Hi,

I'm new to Vuforia and Unity. I created Cylinder image target and tested in Android devices. The Virtual Cube created in Unity renders fine when its in front of Cylinder. When i rotate the Cylinder physically the Cube moves behind the target and turns to black. Pls find the attached screenshots and Unity file. Kindly advice where i went wrong.

regards

iliyas

Hello mdiliyas,

Our core samples contain an example of rotating an object around a cylinder target and it does not encounter this issue. Can you please refer to this sample?

Thanks,

Vuforia Support

waldgeist

Wed, 11/07/2018 - 15:45

I have the same problem. In my case, the whole target "ghost" image turned black, independent of its position. I noticed that this is caused by the "Mask Out Behaviour" skript. If I disable it, I can see the ghost back again. What is this "Mask Out Behaviour" needed for?

Hi,

Does anyone find the solution to this issue? I can see the black pixelated part of the object that is behind the cylinder target though it is working fine on unity editor but not on mobile.

Thanks,

Bharat

medabit

Mon, 02/25/2019 - 20:22

In reply to by bharat31

Hello,

We've observed this during device testing. The problem occurs on some devices when a 3D mesh is occluded by another 3D mesh on which a "depth mask" shader is applied.

Attachment