Transparent GLSurfaceView

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

Transparent GLSurfaceView

Postby carperto » Wed Nov 25, 2009 9:15 am

The goal is to put some 3D objects on top of the camera.
I have created a Camera View and another smaller GLSurfaceView (wich renders the basic 3D Cube) on top of the camera preview.

I can see the 3d Cube spining correctly however it is framed inside its GLSurface, wich is black. I want these frame to be transparent in order to see the cubes as if they were spining on top of the camera preview.

Is this possible? No idea of OpenGL.
carperto
Junior Developer
Junior Developer
 
Posts: 12
Joined: Tue Feb 24, 2009 12:28 pm

Top

Postby nhenze » Mon Jan 11, 2010 4:11 pm

Yeah this is possible. You basically have to paint the OpenGL scene using a transparent background. You can check out an example I wrote that is exactly doing that.
nhenze
Freshman
Freshman
 
Posts: 9
Joined: Thu Dec 10, 2009 10:34 am

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: Exabot [Bot] and 2 guests