Log in or register to post comments

Object inside a Circle Mask

December 28, 2012 - 6:43am #1


phaco how to make a 3D object appear only inside a mask in a circle, outside that circle the 3D object does not appear. all this on top of the target image

UNity Vuforia.


Awesome! glad I could help

December 31, 2012 - 3:15am #4

Awesome! glad I could help :)


Works Great, Thank you very

December 28, 2012 - 9:01am #3

Works Great, Thank you very much!!!

You need to follow the

December 28, 2012 - 8:26am #2

You need to follow the discussion on Depth Masking here:


For convenience here are the steps to provide a square cutout:


  • Just create some simple plane objects - four to cover top, bottom,left and right leaving a square/rectangle with a hold in the middle.
  • Make these children of the ARCamera and apply the DepthMask material in QCAR materials to these.  Note if you do not want the video outside of the rectangle/square and you want your own frame instead then simply use your own material here.
  • Also, ensure that they are as close to the camera as you can get so the Z value is useable with respect to the expected distance of the Image Target, otherwise it will never mask.
  • Another thing to check is that the ARCamera is set to clear Depth Only

If you wanted a circle cutout then you would need to create a mesh in a modelling program and import it into Unity, instead of the four planes approach above.



Log in or register to post comments