Log in or register to post comments

Access Overlay Views from EAGLView

September 25, 2011 - 4:35pm #5

I've created an overlay viewcontroller (InfoViewController) with UI Controls over EAGLView, so also added to the main window.
I would like to control (hide, show) the overlay view from inside the loop FOR of EAGLView, where the engine detects the markers.

To access the overlay view from EAGLView I use the delegate property of UIApplication:
appDelegate = (ImageTargetsAppDelegate *) [[UIApplication sharedApplication] delegate];
appDelegate.infoViewController.view.hidden = YES;

For some reason, when I try to hidden the overlay view from the FOR EAGLView, it doesn't work, but for example the buttons inside that view gets unresponsive.

Can anyone help me, trying to understand where is the issue?

many thanks,

Re: Access Overlay Views from EAGLView

September 25, 2011 - 4:58pm #4

I've already found the solution:

inside the loop FOR do:
[self performSelectorOnMainThread:@selector(hideLayers) withObject:nil waitUntilDone:NO];

Re: Access Overlay Views from EAGLView

October 4, 2011 - 2:22pm #3

Hello,

I have multiple questions and thanks in advance for your help.

1. We have a cocos2d game. We want to add QCar AR. Can we do it? We tried integrating both but faced issue as both uses OpenGL View (EaglView). Is there any solution to it?

2. Procedure to add blender / any other 3d model object except unity.

3. How to identify the center coordinate of the marker? That means, i want to find out the centroid (x and y axis) of matched marker image in iPhone / iPad.

Thanks & Regards,
Bhabani

Re: Access Overlay Views from EAGLView

October 5, 2011 - 12:56am #2

3) http://ar.qualcomm.at/node/2000738

If anybody else on the forum has experience of cocos2d, please advise Bhabini - we're seeing if we have any experience in house.

BTW - since this is a new topic, it would be A Good Thing to have started a new thread.

Re: Access Overlay Views from EAGLView

October 5, 2011 - 11:46am #1

Thanks for responding to my queries. As you have suggested i have created a new thread on cocos2d integration. Looking forward to have some solutions.

http://ar.qualcomm.at/node/2000980

Regards,
Bhabani
FuGenX

Log in or register to post comments