14

I've recently purchased the Orange book( GLSL ) and am wondering if it is important at all to read through the red and blue books as well?

Any thoughts?

Joey Green
  • 2,509
  • 4
  • 26
  • 46

5 Answers5

8

GLSL is just the shading language. It doesn't deal with where vertex data comes from, where textures come from, fragment blending, depth testing, the viewport, framebuffer objects, etc. Shaders are important, but they're not everything.

While I'm sure the Orange Book talks about these, as necessary for discussing GLSL, it doesn't go into the detail that other books would.

Nicol Bolas
  • 26,068
  • 3
  • 76
  • 104
3

It seems like the last version of the blue book is from 2007(Open GL 2.1) and the last version of the red book is from 2009 (Open GL 3.0 - 3.1).

The current version of Open GL is 4.1 (Edit: 4.2)

I would try getting my hands on something newer, although knowing legacy Open GL might be useful if you're going to read and maintain old open gl code.

Hope this helps.

Nailer
  • 1,318
  • 8
  • 10
  • The current version of OpenGL is 4.2. – Nicol Bolas Aug 16 '11 at 21:18
  • Ah yeah. I actually read this article here when I did research for my answer. Brainfart I guess. http://developers.slashdot.org/story/11/08/08/2048201/Khronos-Releases-OpenGL-42-Specification – Nailer Aug 17 '11 at 08:14
2

I found my first edition (June 1993) copy of the red book (covering OpenGL 1.0) was sufficient and roughly equivalent to GLES 1 on the iPhone. GLSL and OpenGL 3+ are very different (no more fixed pipelines), and I wouldn't bother with the red book unless you need to support GLES 1.

Daniel Blezek
  • 223
  • 1
  • 8
2

The red book is fine, like others said you can still get value from it for a lot of things, particularly if you ever need to code for embedded and/or downlevel hardware that may not support shaders. Beware though that the free version online is hideously outdated.

I also make occasional use of the blue book, but that's because I like a good reference manual with everything in the one place, and I prefer dead tree to electronic for this kind of thing.

Maximus Minimus
  • 20,144
  • 2
  • 38
  • 66
2

I'd wait to get the red book(if you are going to buy it), a new version is on the way (December?) that covers OpenGL 4.2. The current (7th edition) red book covers both 3.0 and 3.1 and talks about the deprecated fixed function pipeline stuff. The new book will only talk about the current programmable pipeline.

If you really need a book to learn the new OpenGL API the OpenGL Superbible 5th edition is the only book in the series that covers the new OpenGL pipeline (3.1 and higher).

Nicolas K.
  • 163
  • 4