Genome2D in React Native with react-native-webgl

35 views
Skip to first unread message

David G Ortega

unread,
Aug 3, 2018, 12:47:34 AM8/3/18
to Genome2D
Hi,

I'm actually looking for libraries that can be used in native gl/webgl context, specially if they have a Flash api.

Would I be able to use Genome2D with https://github.com/react-community/react-native-webgl ?
I have tried Pixi but the latest has lots of dependencies with DOM so it's its not ready for a abstract purely native webgl/gl context.


There are some caveats in the WebGL implementation as well like not having implemented this yet:

Here is the methods that are not supported yet:

  • framebufferRenderbuffer
  • getFramebufferAttachmentParameter
  • bindRenderbuffer
  • createRenderbuffer
  • deleteRenderbuffer
  • getRenderbufferParameter
  • renderbufferStorage
  • compressedTexImage2D
  • compressedTexSubImage2D
  • getTexParameter
  • texSubImage2D
  • getUniform
  • getVertexAttrib
  • getVertexAttribOffset

Here is the methods that are partially supported:

  • texImage2D : works with a few formats only (refer to current implementation). You might want to use rngl.loadTexture to load images/camera/videos/whatever textures.

David G Ortega

unread,
Sep 3, 2018, 8:47:23 AM9/3/18
to Genome2D
Seems that this project is dead... no one has reply in one month...

sHTiF

unread,
Sep 3, 2018, 8:57:38 AM9/3/18
to Genome2D
Not dead but surely on a downhill, we still do have quite a few projects live built using Genome2D and they will live for a couple of more years surely but all new projects are moving to Unity as we no longer see web platform as viable (nor flash or webgl). As for your question I didn't answer it as I am not React user so didn't feel competent to answer, the GWebGLContext in the repo is not that complicated and pretty self-explanatory, thats pretty much the main point of contact between the high level Genome2D and its context for WebGL. The question if it can be used with a 3rd party framework. It always depends on the usecase, I've seen a ton of different usages of Genome2D in places I wouldn't imagine but so far didn't hear about anyone using it with React sorry.

David G Ortega

unread,
Sep 12, 2018, 10:46:05 AM9/12/18
to Genome2D
Interesting... I truly believe that webgl is going to push a lot, specially since react native. It's a very convenient way of creating custom UI. I don't see Unity filling that space.
My question is if Genome2D code depends is HTML document agnostic. If that the case I would try it.
Reply all
Reply to author
Forward
0 new messages