Hi, I’m a newbie in webGL, and I’m very excited to use it after looking at what it can do on a browser. I’ve just set it up on my browser a day ago (Tested on http://learningwebgl.com/blog/).
I’ve been researching all over the web, but still clueless to start.
I have a bit of background knowledge in python, java and javascript, but had never touched on OpenGL and C++ before.
So currently I’m looking for what path can I go through to use this wonderful tool.
Secondly, did anyone go to this tutorial before c3dl tutorial 2? I can’t get it worked. I did everything of what it said, and I got this message.
18:40:5 Error: vert shader: ERROR: 0:1: ‘gl_FrontColor’ : undeclared identifier ERROR: 0:1: ‘assign’ : cannot convert from ‘uniform mediump 4-component vector of float’ to ‘float’ ERROR: 0:1: ‘gl_TexCoord’ : undeclared identifier ERROR: 0:1: ‘gl_TexCoord’ : left of ‘[’ is not of type array, matrix, or vector ERROR: 0:1: ‘assign’ : cannot convert from ‘4-component vector of float’ to ‘float’ ERROR: 0:1: ‘gl_TexCoord’ : left of ‘[’ is not of type array, matrix, or vector ERROR: 0:1: ‘s’ : field selection requires structure, vector, or matrix on left hand side ERROR: 0:1: ‘gl_TexCoord’ : left of ‘[’ is not of type array, matrix, or vector ERROR: 0:1: ‘t’ : field selection requires structure, vector, or matrix on left hand side ERROR: 9 compilation errors. No code generated.
I’m really clueless now, good suggestions are really appreciated.
Summary:
- What are the paths of learning I should go through before I can use webGL?
- Is there anything wrong with that tutorial? Or something wrong with my set up?