Can we use WebGL only by Javascript?

Can we use WebGL only by Javascript?
Can we use WebGL by other language such as C,c++,Java,.etc?
Javascript is too simple, it can not construct complex data structure.
if we use it, how to manage complex scene data?
anyone knows give some proposal?

thanks a lot.

lfyos

The short answer is that webgl only supports javascript.

WebGL is a means of using 3D graphics in a web application. It depends on OpenGL which is basically a library for generating 3D graphics. WebGL only implements a subset of OpenGL. When programming in C, C++ OpenGL is a more flexible choice. Java applications can also use the full OpenGL library via the JOGL bindings.

The real virtue of WebGL is that a user can run 3D graphics in a browser. Using javascript in a browser is less complicated and less of a security risk than downloading a C or C++ program.

Thank you very much for your reply.

what I want is to implement 3D rendering in web browser.

if I use WebGL and javascript, it’s very complex to manage scene data.

if I use OpenGL, which programing language we employ in web browser?

would please give me some advices?

thanks a lot.

lfyos

I do not know of any good ways to use general OpenGL in a web browsers so WebGL and javascript will probably be your best choice. You might look through the other posts for help on managing your screen data. I remember seeing posts that deal with that subject.

thank you very much.

lfyos

I’m sorry but what is more complex in structures in JS than in C/C++?