views:

565

answers:

0

Hey so I found this great post that details how to integrate Video behind openGL without much work. I've got the same setup and even the same starting framework, but it just doesn't work. It looks like he started with version 2.2.1 and then moved to 3.0.1, but even when I go back to use 3.0 it doesn't render the camera behind the openGL scene. What I see is a cube spinning over a grey background (without depth-testing) and no camera feedback at all.

I can see it going at 41 fps, so I know it is rendering the camera, but it doesn't display. I've enabled depth testing, alpha blending, and the background color is set to gray with 0 alpha. My blend function is GL_ONE_MINUS_SRC_ALPHA.

I can programmatically set the alpha of the UIViews to 0.5 to see both images translucent, but the point is to superimpose the openGL scene overtop of the camera's background.

Any Ideas?