"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

Hiding Augmented Layer

Hi,

I am using the CloudReco sample app, and I want to be able to control the visibilty of the augmented layer.

What I understand so far is that:

  1. The layer is initially created in CROverlayViewController -> targetfound, where adds a subview to arview
  2. Then in EAGLView it converts the layer into a UIImage and renders it on the target.

I would really appreciate it if someone can point me in the right direction as to how I can set the rendered image to either visible or hidden.

TIA!

In EAGLView.mm when it shows the overlay layer for the first time it sets the following state variable:

 

The render state doesnt help me achieve what I am trying to do.

I have two "rendered layers" and I am trying to swap between them.

In CROverlayViewController I create the two layers like this: