Log in or register to post comments

Depth maskin doesn't work on android

March 26, 2016 - 12:48pm #1

Hello to everyone

First of all, sorry for my bad English, I don't speak that language

I have a problem with some shaders on android. The default videobackground doesn't work on my device, but I can solve that changing the AR camera background shader to Unlit/Texture or Mobile/Diffuse. The problem now is that if I assign to an arbitrary plane the material Depth mask, with the depth map shader, is rendered as black plane in my android device (in other android devices too). I tried disabling 32 bit Display Buffer on player settings, Setting the clear flags of the camera to "Depth Only" (in that case the plane renders trhe videobackground texture, but some weird glitches appears when the camera moves, definitely not a solution). I tried the deferred rendering path, changing the Geometry queue in the depth mask shader... Nothing works

I need urgently a workaround for mask a certain part of the scene (my augmented scene is located in the interior of a box, a real box), not necessary using the depth mask, perhaps a layer mask and placing the augmented scene in one layer and the camera in another layer, but I don't know how to do that in Unity

Thanks for the help



I tried different verions of unity 5 and different versions of vuforia 5

Log in or register to post comments