View Full Version : GLSL Starting Point
11-08-2006, 11:57 AM
I'm lagging way behind the technology curve and so far I haven't done anything at all with shaders. In fact, I really don't understand much about them at all. I now have a couple of free days here at work and would like to take a 'Shaders Crash Course'. Where should I start? Is there a good book that would hold my hand and lead me through all the issues? Is there a better resource on the web? Where did you start at when you first started learning about shaders?
Thanks in advance,
11-08-2006, 01:19 PM
I got my hands on my friend's Addison Weseley "OpenGL Shading Language" - that was all I needed.
Instead of ordering a book and waiting for it you could use google - I searched for "GLSL tutorial" and first page found is this one:
This page is very good - it has everything described. If you read it carefully then you wil know almost everything you need to know.
11-09-2006, 04:10 AM
Thanks, I ordered that book from amazon.com last night.
I turn up all sorts of tutorials when I google for help and I found that site too. Did you learn by perusing that site?
I can google thousands of sites but it will take me days to sift through them all and find those that are worthwhile.
I guess what I am asking is "what books/sites did you find helpful in learning GLSL"?
11-09-2006, 06:49 AM
When I started I had a basic idea what shaders are, so I only needed to learn the API and shading language.
Did you learn by perusing that site?No, I relied entirely on the book, but I still recommend you that tutorial.
The book has one advantage over tutorial - you will find a list of all built-in variables and functions. This is very helpful.
As for contents of the book - it's complete, compact and accurate in my opinion. Complete, because nothing important is missing there. Compact, because it doesn't take too much time to get through this book. Accurate, because I haven't found a single conflict between this book and the specs when I had doubts. When I wrote my code by this book and it didn't work then it was a driver bug (3 years ago there were lots of bugs in GLSL implementations).
For example - most tutorials won't say that you can call glDetachShader after you link your program - that's because it would destroy your program on ATI GPU's.
The same way, most tutorials won't say that you should use glBindAttribLocation, because NVIDIA has some locations reserved.
So, the tutorial is shorter, and you don't have to wait for it - it can get you started right away.
The book will arrive in a few days and then you will fortify your skills and knowledge.
One more thing - you can skip the whole API thing and use tools like Shader Designer ( http://www2.typhoonlabs.com/ )to write your own shaders without creating your own OpenGL application with support for shaders. This way you can avoid learning everything at once.
11-10-2006, 12:45 PM
I also used that lighthouse tutorial. These were also of use
GLSL Brick Shader tutorial (http://www.awprofessional.com/articles/article.asp?p=171029&rl=1)
GLSL NeHe tutorial (http://nehe.gamedev.net/data/articles/article.asp?article=21)
And of course read the specification.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.