PDA

View Full Version : Getting Started with fragment programs.



MrShoe
10-02-2003, 10:23 PM
I would like to learn about fragment programs. I know the theary behind them, but there are basically no concrete examples on the internet on how to get a simple program up and running, and trying to learn this from the spec for ARB_fragment_program is VERY frustrating... Does anyone know of any good examples? Or am i simply going to have to plow on with the official spec?

PanzerSchreck
10-02-2003, 11:07 PM
There isn't much material on GL_ARB_Fragment_Program floating around the net.That may be because of glSlang coming soon (hopefully),but ATI have this (http://mirror.ati.com/developer/gdc/GDC2003_OGL_ARBFragmentProgram.pdf) PDF on this extension that maybe helpfull.
And also take a look at any material that deals with GL_ARB_Vertex_Program,as the syntax of vertex- and fragmentprograms are very similar.

jonasmr
10-03-2003, 07:52 AM
Check the spec. It has some samples
hidden, just above the revision history.

pkaler
10-03-2003, 08:35 AM
Check out Humus' demos. Probably the best place to go. http://esprit.campus.luth.se/~humus/
The OpenGL Extensions Guide is supposed to be pretty good too. http://www3.addall.com/New/compare.cgi?&isbn=1584502940 http://www.charlesriver.com/titles/opengl.html