Log in or register to post comments

to create a overlay view on image recognition

April 4, 2012 - 12:19am #1

Hello Folks,
I started playing with the imagetarget sample app and i tried creating a new overlay .
1)i created a image overlay view "imageOverlay" in the ARParentViewController(as a sub view) within the loadview().The visibility is hidden.
2)in the renderframe function i call a function showView() of ARParentViewController
3)within showView()
im setting the visibility of imageOverlay to true.
im also checking for the value of the visibility and it says true but i don see the image at all :(

Simplyfyin my issue,n ignoring my work, how can i create a overlay on recognition of a image target :)in ios. please tel me wht function to be modified.Thanks a ton

Re: to create a overlay view on image recognition

April 4, 2012 - 3:27pm #2

1) Where did you insert your view in the view hierarchy? Make sure you add it after the arViewController.view.

2) You can't change the UI from the renderFrame method directly (it's on the wrong thread). Try using the performSelectorOnMainThread method.

- Kim

Log in or register to post comments