By HannyT
on Tue, 05/06/2014 - 16:06
I am detecting a cylindrical target using Vuforia extension for Unity 3D. I show a 3D object, a bottle, beside that cylinder when detected. The problem is that When I rotate the cylinder object in real world, bottle moves with it as well. But the problem is when bottle tends to enter the background. I hope the image link can explain the issue.
https://www.dropbox.com/s/rrfxd4w4p05byit/2014-04-28%2011.52.00.png
Issue with moving 3D object with detected Cylindrical Target by
You can achieve this using a "Depth Mask" shader (same as the one already used for the Cylinder target occlusion)
Issue with moving 3D object with detected Cylindrical Target by
Thank you for your response. I applied the the "Depth Mask" shader to the whole bottle(3D object in .FBX format) but this shader hides the bottle by making it invisible and when the ARCamera tracks the real object, my bottle is not visible on the screen anymore.
Issue with moving 3D object with detected Cylindrical Target by
Ok, let me explain it better:
you need to add a second 3D bottle; this second 3d model must be aligned (overlapping) the Cylinder target (i.e. it must exactly overlap the bottle label).