By ronnyvdb
on Wed, 05/29/2013 - 22:10
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:
- The layer is initially created in CROverlayViewController -> targetfound, where adds a subview to arview
- 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!
Hiding Augmented Layer
In EAGLView.mm when it shows the overlay layer for the first time it sets the following state variable:
Hiding Augmented Layer
Thanks for the reply! I will look into it.
Hiding Augmented Layer
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:
Hiding Augmented Layer
Presumably you have tried setting the opacity of the layers?
N
Hiding Augmented Layer
No I have not tried this because I don't know how you.
Hiding Augmented Layer
opacity is a member of CALayer.
From XCode docs:
Hiding Augmented Layer
Thanks for the suggestion NalinS, however if I understand you correctly then this solution would not work.
Hiding Augmented Layer
In this case are you able to control the blending via OpenGL ES right before the image is rendered in RenderFrameQCAR?
N