Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I learn WebGL the fast way? [closed]

Tags:

webgl

I am learning WebGL these days, but I found that it's really hard to understand the pipeline.

  1. Is there any head first WebGL tutorial online ?
  2. Should I learn GLSL ?
  3. The code to draw something with WebGL is too complex, is there any way to reduce the code lines?
like image 237
WoooHaaaa Avatar asked May 06 '13 02:05

WoooHaaaa


People also ask

How long does it take to learn WebGL?

It takes time (1-2 months to learn only basics), but be persistent. Hope this helps.

How do I start learning WebGL?

You start development with a simple working program and use a simple cycle of implement/test, implement/test, implement/test, ... until you reach your goal. Rarely, if ever, should you program a complex WebGL program “from scratch.” Always start with a working program and add complexity slowly.

Is WebGL good to learn?

WebGL is blindingly fast and fully utilizes hardware acceleration, making it suitable for games or complex visualizations. Although other options can benefit from hardware acceleration, WebGL is written with performance in mind and should perform better than other options in many cases.


2 Answers

  1. http://learningwebgl.com/blog/?p=11 (dead link as of Nov 2018, backup: https://web.archive.org/web/20180615095219/http://learningwebgl.com/blog/?p=11)
  2. Yes, I could recommend Light House 3D: http://www.lighthouse3d.com/tutorials/glsl-core-tutorial/
  3. It's not that complex, just focus on the code written on Learning webGL. I wouldn't recommend working with some other library/engine at the start. Learn basics and later use libraries to speed up your coding.

Learning webGL is great place to start, probably best. Don't hesitate to read from as many resources you can. Opera developer, Mozilla Hacks, Light House 3D, Scratch a Pixel, Aerotwist (http://www.aerotwist.com/tutorials/an-introduction-to-shaders-part-1/ more shaders)... It's very difficult at the beginning, but later you'll get the grasp of the pipeline and way of thinking. It takes time (1-2 months to learn only basics), but be persistent.

Hope this helps.

like image 129
Dragan Okanovic Avatar answered Nov 11 '22 17:11

Dragan Okanovic


There are interactive tutorials here: http://www.webglacademy.com
I think it's cool because you can change your code, test it again, and it is step by step.

You can also check webgl lesson on http://www.learningwebgl.com
Then, when I want to search some help about a specific webgl API/GLSL command, I search on http://www.opengl.org/sdk/docs/manglsl/

like image 34
Mike Avatar answered Nov 11 '22 18:11

Mike