PDA

View Full Version : getting started with shader programming



Babblin Joe
01-19-2007, 07:16 AM
Hi everyone. I'd like to get started on learning how to program various shaders. I was wondering if anyone could recommend some good books or websites to get started with.

Books besides the orange book of course.

thanks!

zeoverlord
01-19-2007, 09:23 AM
May be this (http://www.flashbang.se/index.php?id=20) one stop crash course in glsl that i wrote will do, it's not that in depth, but it will give you a basic framework to work on.

Then there is clockworkcoders (http://www.clockworkcoders.com/oglsl/) .
It's where i learned glsl.

wgj000
01-19-2007, 01:54 PM
I found http://www.lighthouse3d.com/opengl/glsl/ to be very helpful in getting started.

MZIskandar
01-20-2007, 12:13 AM
Nice tutorial zeoverlord.

Tried to run the pixel shader example.

Error:

Error: 0:19: 'max' no matching overloaded function found.
Error: 1: Compilation errors. No code generated.

Ran. But the tank colored green.

Tried to edit the code. Failed to compiled in vc8. Changed some header..

#include <fstream>

adding,

using namespace std;

Thank you.

zeoverlord
01-20-2007, 03:28 AM
Yea i know, it's coded for vc6, and vc8 doesn't like that, i will probably fix that when the new NeHe lessons are out.