Log in or register to post comments

Create transparent EAGLView?

September 6, 2013 - 8:52am #1

Seems renderer does not respect alpha channel yet.

I have set the EAGL layer to opaque, but I still cannot clear with (0, 0, 0, 0), and pixel values seems simply overmultiplied upon the background.

Where should I begin?

Do I have to incorporate a custom blending? 

Create transparent EAGLView?

September 9, 2013 - 5:16am #8

Great :)

Create transparent EAGLView?

September 9, 2013 - 5:04am #7

Just worked around with a glClear(); with (0,0,0,0) in the end. :(

It has nothing to do with blendings, just works fine with this clear anyway.

 

Create transparent EAGLView?

September 9, 2013 - 3:28am #6

NalinS wrote:

Can you explain what you are trying to achieve?

N

 

'Course (and thanks for the brief reply).

An Augmented Reality view without the actual camera preview, but the OpenGL render should be alpha blended over anything that is behind it (like a whole UIKit hierarchy for example).

Create transparent EAGLView?

September 9, 2013 - 3:22am #5

Can you explain what you are trying to achieve?

N

Create transparent EAGLView?

September 9, 2013 - 3:17am #4

Errgh, now I actually cannot omit rendering camera view. :D
Commenting out camera rendering somehow wrecks the rendering pipeline.

Create transparent EAGLView?

September 9, 2013 - 3:04am #3

Thanks for sharing :)

N

Create transparent EAGLView?

September 6, 2013 - 9:00am #2

Yap. A Premultiplied alpha blending...

glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA);

...just solved.

Log in or register to post comments