[osg-users] Running OSG with Emscripten

michael kapelko kornerr at gmail.com
Thu Feb 9 08:31:17 PST 2017


Hi.
I've just finished getting OSG to render a cube with the simplest shaders
in Web (see attached image).
However, I got it working only with a so-called FULL_ES2 emulation (
http://kripken.github.io/emscripten-site/docs/porting/multimedia_and_graphics/OpenGL-support.html#opengl-support-opengl-es2-0-emulation
)

Without the emulation, I get the following error:
Error: WebGL: drawElements: Must have element array buffer binding.

I wonder if OSG has an option to make those buffers bound, so that WebGL is
happy with it.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170209/b3e70302/attachment-0002.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 20170209_osg_web.png
Type: image/png
Size: 173388 bytes
Desc: not available
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20170209/b3e70302/attachment-0002.png>


More information about the osg-users mailing list