PDA

View Full Version : GLSlang tutorial



krol
04-17-2003, 11:05 PM
Hello

I have just read ARB_fragment_program specification and I have noticed that author using GLslang samples - where can I find some usefull info about GLSlang (compilers, tutorials, examples)?? I alredy have glslang specificatoion!

thansk
Marcin

JD
04-18-2003, 01:52 AM
Have you tried 3dlabs site? They have quite a few gl2 stuff in there. I think their P10 card supports some of gl2/glslang if I'm not mistaken. Also, are you sure you haven't seen CG examples instead of glslang ones? I think CG outputs to arb_fragment_program if I'm not mistaken and you might have seen CG used instead. Just asking.

Mark Kilgard
04-22-2003, 12:01 AM
Originally posted by krol:
where can I find some usefull info about GLSlang (compilers, tutorials, examples)?? I alredy have glslang specificatoion!

As JD notes, Cg may work better for you since Cg works today.

You can download the compiler from:

http://developer.nvidia.com/view.asp?IO=cg_toolkit

If you want a tutorial, try "The Cg Tutorial" (ISBN 0321194969) published by Addison-Wesley. I am a co-author for the book. The book comes with a CD-ROM with example code but there are plenty of examples on the site above.

I hope this helps.

- Mark

dorbie
04-22-2003, 10:19 AM
The best starting point for Cg is Mark's, Cg in two pages, wonderful stuff :-).
http://www.cgshaders.org/articles/CgInTwoPages.pdf

Supplement it with this and you're well on your way:
http://www.cgshaders.org/articles/Cg_Specification.pdf

NicholasFrancis
04-22-2003, 01:38 PM
Having just read the 2-page introduction, I couldn't help noticing MJK pointing out that Cg is available for Mac OS X.

Any news as to when this might be more than vapourware?