Giter Site home page Giter Site logo

Comments (6)

armenbadalyan avatar armenbadalyan commented on June 26, 2024 1

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

from react-native-webgl.

skizzo avatar skizzo commented on June 26, 2024

+1

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

from react-native-webgl.

anthony-skr avatar anthony-skr commented on June 26, 2024

+1

from react-native-webgl.

AlexDM0 avatar AlexDM0 commented on June 26, 2024

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?

from react-native-webgl.

skizzo avatar skizzo commented on June 26, 2024

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

from react-native-webgl.

gre avatar gre commented on June 26, 2024

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

from react-native-webgl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.