Log in or register to post comments

Virtual object turns black when goes behind cylinder

December 26, 2017 - 10:22pm #1

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

AttachmentSize
Package icon ARCup.zip60.31 MB
Image icon 1.jpg1.26 MB
Image icon 2.jpg1.34 MB
Image icon 3.jpg1.33 MB
Image icon 4.jpg1.31 MB
Image icon RocketBoosterTargetImage.png83.07 KB

Virtual object turns black when goes behind cylinder

February 25, 2019 - 12:22pm #6

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.

It's never been clear to us if the bug is Unity-specific or something else, but it is certainly device specific. For example, I saw the effect on the Samsung GS7 with Snapdragon, while on a GS7 with Exynos it works fine. Most likely it is a GPU driver issue and/or a Unity bug and/or a combination of the two.

One possible workaround is to change the material of the occluded object from opaque to transparent. Even if the object still appears as opaque (because its Alpha is 1), marking it as transparent will change its rendering queue, and this seems to fix (usually) the issue.

The Cylinder target in the Core samples uses a depth mask shader, so that's why the issue can reproduced in that app.

Thanks,

Vuforia Engine Support

 

Virtual object turns black when goes behind cylinder

February 20, 2019 - 1:35am #5

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

Virtual object turns black when goes behind cylinder

November 7, 2018 - 7:45am #4

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?

Virtual object turns black when goes behind cylinder

May 29, 2018 - 2:08am #3

Hi,

I have the same problem on a flat target. A 3D Building who is partly under the target gets black like you described. In I can see the black pixelated part just on the tablet but not on the smartphone application. Could it be a unity setting problem of the quality for different devices? Did you already found some solutions?

Regards,

Michael

Virtual object turns black when goes behind cylinder

December 28, 2017 - 9:52am #2

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

Log in or register to post comments