Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Alpha Background on android #41

Closed
fdecampredon opened this issue Jan 19, 2018 · 6 comments
Closed

Alpha Background on android #41

fdecampredon opened this issue Jan 19, 2018 · 6 comments

Comments

@fdecampredon
Copy link

Is there a way to have transparent surface background on android ?

@skizzo
Copy link

skizzo commented Mar 16, 2018

+1

renderer.setClearColor (0x000000, 0); works just fine on iOS, anybody got an idea why it won't work on Android?

@anthony-skr
Copy link

+1

@AlexDM0
Copy link

AlexDM0 commented Jun 11, 2018

I'm also trying to get this done. Is there any way to do this? If I simply render an empty webglView with

      gl.enable( gl.BLEND );
      gl.blendEquationSeparate( gl.FUNC_ADD, gl.FUNC_ADD );
      gl.blendFuncSeparate( gl.SRC_ALPHA, gl.ONE_MINUS_SRC_ALPHA, gl.ONE, gl.ONE_MINUS_SRC_ALPHA );

      gl.colorMask(true, true, true, true);
      gl.clearColor(0.0,0.0, 0.0, 0.0);
      gl.clear(gl.COLOR_BUFFER_BIT);
      // ignore texture drawing for this test
      // gl.drawArrays(gl.TRIANGLES, 0, 3);
      gl.flush();
      rngl.endFrame();

all I get is a black background.. Any suggestions?

@skizzo
Copy link

skizzo commented Jun 11, 2018

Yeah, I‘m about to look for somebody on Upwork or something, this is a dealbreaker for an app I was working on..

@gre
Copy link
Collaborator

gre commented Jun 11, 2018

is this problem fixed in current expo GLView implementation? If yes, maybe worth trying to port latest stuff. actually maybe you guys want to take a look at #63 . i have very few time to work on this & maintain this right now, but hopefully I'll have more during this summer

@armenbadalyan
Copy link

Check my fork armenbadalyan@830b213
It makes GLSurfaceView transparent at the cost of placing it above everything else on that view.

@gre gre closed this as completed Jan 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants