0

How to hide image target while objects get detected in unity using VuforiaAPI

There is only one answer I found but didn't know how to implement it. "Take a look at our Occlusion Management sample. The effect that you're looking for requires a shader applied to a mesh that will create the illusion that the target surface is transparent. The OM sample uses a cube, but the same effect can be applied to a plane - try adding a plane to the OM scene and add the same shader and shader setup script that is used for the box mesh."

derHugo
  • 83,094
  • 9
  • 75
  • 115

2 Answers2

0

Make a new Material for your plane and to that material change the shader to Legacy Shaders/Transparent/Cutout/Diffuse . Now you can select the mainColor and change the aplha value in color picker window to 0. This will hide your image.

Nain
  • 1,204
  • 1
  • 12
  • 17
  • From this the plane color will be visible but I want to completely hide the Image target, so if person see the image it will make illusion that there is no image target. – user6792934 Mar 25 '17 at 09:08
  • why the plaen color will be visible? – Nain Mar 26 '17 at 17:10
0

by doing what u told, the effect of such would be like this and if I set alpha value 0 than no plane is visible but I want to hide my cylinder or image target So if any one see that it create illusion that I m holding nothing

derHugo
  • 83,094
  • 9
  • 75
  • 115