What language should I learn to prepare for WebGL?

I am thinking of creating a 3D game with WebGL (only for conceptual purposes at the moment), but everything that I have never done in 3D, and only programmed in PHP for the most part. As far as I understand, WebGL is Javascript that I use in all my projects, but I also understand that it is very different from regular JavaScript. If I wanted to start thinking about how to create 3D applications using WebGL, would there be a specific language that would help me understand how to do this better?

+7
opengl-es 3d webgl
source share
6 answers

Honestly, you are probably better off diving rather than trying to learn another language first. Most WebGL programs are in JavaScript, but some of them are in GLSL (GL Shader Language, for the part of the code that runs on your graphics card), and although you may find out that by trying another version of OpenGL, this will not have obvious advantages over simple immersion directly in WebGL. It’s easy to download a browser that supports it.

I taught myself WebGL to translate some of the old OpenGL tutorials and document things as you go ; like you, I don't have a real 3D background, so you may find them useful.

+18
source share

There is only one language to learn. Javascript This is the only language you can use WebGL in.

If you are new to 3D, use the library. Three.js is very popular. 2 other GLGE and SceneJS

+4
source share

I recommend making some JavaScript programs that use the Canvas2D function before moving on to 3D. The WebGL API is interesting, but there will be other components to your programs.

+1
source share

Take a look at C, the native language of OpenGL, buy a red book and play a little. It's nice to see what WebGL affects.

+1
source share

Processing is a good sandbox for learning OpenGL.
It is available for Windows, Linux, and Mac OS X.
He offers:

and he is free

0
source share

WebGL is no different from JavaScript, it is JavaScript. If you want to learn WebGL, just dive. I suggest attending WebGL tutorials . Then select the WebGL library or framework. This answer from StackOverflow.com contains a list of WebGL libraries.

0
source share

All Articles