"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Overlay Orientation Off

I'm creating an overlay application similar to the Cloudreco application which provides an overlay once an image is recognized.  The application scans the image and inserts and overlay.  My problem is that the overlay is off by 90 degrees and that it is about 3 times the size of the image that is scanned so it overlaps the edges of the screen.  Let me know if you have any suggestions to correct this problem?

Thanks!

Note that this behavior only occurs for the overlay layer.  It does not occur when the image is added as a subview.

 

Sure and thanks for your help.

I am simply creating my own overlay in place of the Books overlay by replacing the targetOverlayView.xib and TargetOverlayView.h & m files with my own.  

I could, but I'm wondering what would trigger the orientation of the overlay view to be off by 90 degrees (ie:landscape vs portrait) and what controls the size of the overlay in that it is probably 3x the image size when it is first shown.

Some more feedback on what I'm seeing.  In the sample CloudReco app, the layer is shown and then there is a seamless transition to the subview as an overlay.

Are you able to try this with a fixed orientation at all e.g. Portrait or Landscape ?

This might help to determine whether the in-built rotation handling code is affecting it or if the problem is at the OpenGL ES level.

N

The same problem is present in both portrait and landscape.  Separately, I noticed that when I upload portrait style images to the TargetManager, they show up in landscape after I upload them.

Thanks!

Attached are links to the original oversized image offset by 90 degrees (the layer) and the image (subview) that follows once the camera is moved away from the scanned image.