Log in or register to post comments

Overlay View On Top Of Tracked Image.

August 5, 2011 - 11:41pm #1

Hi All,

I understood the concept of tracking an image in Image Targets sample code.
I am able to track the image which I uploaded using Target Management Tool.

I need to add some overlay view wih controls on top of image which got tracked.

I tried to add overlay view to EAGLView, RootViewController and also to the window in renderFrameQCAR method, but my overly view is not displalying.

UIView *overlay_View = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 200, 400)];
overlay_View.backgroundColor = [UIColor redColor];
ImageTargetsAppDelegate *appDelegate = (ImageTargetsAppDelegate *)[[UIApplication sharedApplication]delegate];
[appDelegate.window addSubview:overlay_View];
[appDelegate.window bringSubviewToFront:overlay_View];

I am using ImageTargets smple code.

please give your valuable suggestions.

thanks in advance.

Re: Overlay View On Top Of Tracked Image.

August 8, 2011 - 7:46am #3
MoSR wrote:

Hi shivintu,

Please see the answer to your overlaid video question - it is essentially the same solution.

Rather than use the EAGLView to parent additional UI, create a parent view that parents both the EAGLView and other views you wish to display.

Hi MoSR,

Yep i got it, thank you very much for spending your valuable time, it was very helpful.

Re: Overlay View On Top Of Tracked Image.

August 8, 2011 - 3:41am #2

Hi shivintu,

Please see the answer to your overlaid video question - it is essentially the same solution.

Rather than use the EAGLView to parent additional UI, create a parent view that parents both the EAGLView and other views you wish to display.

Log in or register to post comments