|
Post by angros47 on Nov 10, 2016 9:59:14 GMT -5
Has anyone considered building a version of Basic4GL for Emscripten?
|
|
|
Post by Tom Mulgrew on Nov 10, 2016 23:33:28 GMT -5
I looked into it briefly once, but didn't get the time to follow it through. The tricky bit is what to do about all the legacy OpenGL 1.1 commands. Last time I looked (which was a while ago) it appeared to have some legacy OpenGL emulation, but I don't know how good it was.
Even without OpenGL 1.1 commands it would be pretty cool though imo. I'm considering using it for the mobile version if I get time and interest.
|
|
|
Post by angros47 on Nov 11, 2016 9:22:20 GMT -5
It can emulate OpenGL 1.1, although it's not recommended. And WebGL is much harder to use, because you have to deal directly with matrices (that are not so intuitive, for a beginner), with no more glTranslate, glRotate and so on. There is no immediate mode, so you need to store the complete mesh in video memory before rendering it, and you always need to load a shader (so, part of the program has to be written in GLSL, that is similar to C, it's not possible to write everything in Basic). WebGL is not user-friendly at all, it's not a 3d library any more, in my opinion, it's a driver.
I learned it in the harsh way, by porting OpenB3D to Emscripten (I had to write a set of shaders, for it)
Anyway, you would have to deal with it, if you are developing a mobile version, because GLES 2 has the same issues of WebGL, so you can't avoid the issue with legacy commands. And they are going to deprecate the legacy commands from regular OpenGL, too, so a new version of Basic4GL will have to remove them, soon or later, and to replace them with something else.
|
|