I am having a linux ubuntu 10.10 version enabled PC and now as OpenGL is using shaders instead of fixed functionality. I want to know whats the bes开发者_开发问答t way to learn that . Am i choose OpenGL-es 2.0 or webgl or openGL 3.x or some other thing to learn it.
Whatever your suggestion please give me a reference to install and how to run codes on that .
P.S : I have done coding on OpenGL 1.0 through glut .
What is your goal? The most general way to go is just learning the OpenGL 3.x API by using a language that has the API bindings. In my case that was C/C++. Make sure you get a recent driver for your video card, I'm not so sure about the OpenGL 3.x support of the open source drivers on Ubuntu.
On a desptop, definitely OpenGL, without Web before or ES after.
You also don't need to worry if your system doesn't have a 3.x driver or you don't have 3.x hardware, as you can use shaders and all the like in OpenGL 2.0/2.1, too. So the answer is definitely OpenGL 3.x/2.x!
When you're working on a desktop and don't need to program embedded systems or websites, then there is just completely no reason to use WebGL or OpenGL ES, as these are just subsets of OpenGL 2.0 for specific purposes.
There are many questions on StackOverflow about "getting started with OpenGL". These lead to many materials you can use. Just ignore any suggestions that use the fixed function pipeline.
The OpenGL Wiki keeps links to a number of tutorials. That's a good place to start.
If you want to learn WebGL, then start at http://learningwebgl.com/. And you may also want to visit WebGL Dev List at Google Groups.
And all you need is Chrome (preferred 11+) or Firefox (4+).
精彩评论