PDA

View Full Version : Can we use WebGL only by Javascript?



lfyos
11-19-2011, 10:14 AM
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

drteseract
11-19-2011, 10:28 AM
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.

lfyos
11-19-2011, 10:57 AM
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

drteseract
11-20-2011, 06:55 AM
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.

lfyos
11-20-2011, 04:11 PM
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

gliniak
11-30-2011, 07:56 AM
if I use WebGL and javascript, it's very complex to manage scene data.
I'm sorry but what is more complex in structures in JS than in C/C++?