Log in or register to post comments

on target found

November 6, 2013 - 1:14am #1

Hi al,

i have an image target with 20px width, i want to draw a box / border to the image target when it's found..
could you tell me how ?

 

thanks

on target found

November 6, 2013 - 6:49am #3

on target found

November 6, 2013 - 1:59am #2

If you are using Unity, there are various ways to achieve this; one way would be to draw the lines connecting the 4 corners of the quad, using the GL draw functions:

http://docs.unity3d.com/Documentation/ScriptReference/GL.html

The code for drawing couldbe triggered from within your own implementation of the  ITrackableEventHandler, which allows you detecting when a target is found or lost, and which  should be attached to the Image target (see also the DefaultTrackableEventHandler script, as an eample, attached to each Image Target)

 

Log in or register to post comments