ymstym / min3d

Automatically exported from code.google.com/p/min3d
0 stars 0 forks source link

Add Support for transparent GLSurfaceView #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I am creating a kind of Augmented Reality app which paints opengl ontop of the 
camera.
However this required a change in your library.

Please add support for this.

The change i made was:

in Renderer.drawSetup i removed the following code:

// Background color

        if (_scene.backgroundColor().isDirty())
        {
            _gl.glClearColor( 
                (float)_scene.backgroundColor().r() / 255f, 
                (float)_scene.backgroundColor().g() / 255f, 
                (float)_scene.backgroundColor().b() / 255f, 
                (float)_scene.backgroundColor().a() / 255f);
            _scene.backgroundColor().clearDirtyFlag();
        }

Original issue reported on code.google.com by tje...@gmail.com on 27 Oct 2010 at 8:53

GoogleCodeExporter commented 8 years ago
Thanks for reporting this. I've added a new property to the Scene class called 
"backgroundTransparent". When set to true it won't set the background color.

Original comment by ippeldv@gmail.com on 1 Nov 2010 at 3:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi , I am trying to create an activity containing one button and  glsurfaceview 
on top of the button.I want to  display the button below the surface view .As 
listed here I also  deleted the specified line from the render class but it's 
not working.The button below the model is not visible i tried everything to 
make it transparent but not helping ...please tell how u made the background of 
the surfaceview transparent.

Original comment by mh.mahmo...@gmail.com on 6 Oct 2013 at 10:29