Start reading OpenGL 4.0 Shading Language Cookbook on the free Kindle Reading App or on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.

Deliver to your Kindle or other device

Enter a promotion code
or gift card
 
 
 

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Sorry, this item is not available in
Image not available for
Color:
Image not available
 

OpenGL 4.0 Shading Language Cookbook [Kindle Edition]

David Wolff
4.6 out of 5 stars  See all reviews (10 customer reviews)

Digital List Price: $29.99 What's this?
Print List Price: $49.99
Kindle Price: $18.49
You Save: $31.50 (63%)

If you buy a new print edition of this book (or purchased one in the past), you can buy the Kindle edition for only $2.99 (Save 84%). Print edition purchase must be sold by Amazon. Learn more.

Formats

Amazon Price New from Used from
Kindle Edition $18.49  
Paperback $44.99  
Shop the New Digital Design Bookstore
Check out the Digital Design Bookstore, a new hub for photographers, art directors, illustrators, web developers, and other creative individuals to find highly rated and highly relevant career resources. Shop books on web development and graphic design, or check out blog posts by authors and thought-leaders in the design industry. Shop now

Book Description

This hands-on guide cuts short the preamble and gets straight to the point – actually creating graphics, instead of just theoretical learning. Each recipe is specifically tailored to satisfy your appetite for producing real-time 3-D graphics using GLSL 4.0. If you are an OpenGL programmer looking to use the modern features of GLSL 4.0 to create real-time, three-dimensional graphics, then this book is for you. Familiarity with OpenGL programming, along with the typical 3D coordinate systems, projections, and transformations is assumed. It can also be useful for experienced GLSL programmers who are looking to implement the techniques that are presented here.


Editorial Reviews

About the Author

David Wolff David Wolff is an associate professor in the Computer Science and Computer Engineering Department at Pacific Lutheran University (PLU). He received his PhD in Physics from Oregon State University. He has a passion for computer graphics and the intersection between art and science. He has been teaching computer graphics to undergraduates at PLU for over 10 years, using OpenGL.

Product Details

  • File Size: 2410 KB
  • Print Length: 342 pages
  • Page Numbers Source ISBN: 1849514763
  • Publisher: Packt Publishing (July 26, 2011)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B005GV32H6
  • Text-to-Speech: Enabled
  • X-Ray:
  • Word Wise: Not Enabled
  • Lending: Not Enabled
  • Amazon Best Sellers Rank: #596,543 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?


Customer Reviews

Most Helpful Customer Reviews
4 of 4 people found the following review helpful
5.0 out of 5 stars Re-education for OpenGL veterans November 25, 2011
By Sol_HSA
Format:Paperback
I got a request from PACKT to review an OpenGL book they've published. It looked like a fun thing to do, so I said okay.

First off, this book is perfect for people who already know their way around OpenGL, but may not be too deep into shaders yet, and/or have some legacy bits in their engines.

The book does walk you through setting up a shader based application, and explains what kinds of support libraries you're going to need (always managing to pick the "other" lib than the ones I've used - they like glew more than glee, for instance - but the libs they picked still work as advertised, so I'm not saying they're bad choises. Oddly, there's no mention of SDL or SFML though), but knowing how OpenGL generally works as well as how the math generally works is taken for granted.

On the positive side you won't have to browse through hundred pages of basic matrix and vector math, or compilation basics, which I feel is a good thing.

After the basics the book gets to the fun stuff, explaining lighting, texture use, screen space trickery (like bloom and deferred shading), geometry shaders and tesselation, practical shadows (i.e, shadow mapping and PCT filters, but doesn't waste pages on anything "more advanced"), noise and some particle tricks.

All in all I think it's a rather good resource for anyone who wants to upgrade their OpenGL knowledge to more "modern OpenGL", dropping all legacy stuff, but it doesn't mean you don't still have to get your hands on the orange book.
Comment | 
Was this review helpful to you?
5 of 6 people found the following review helpful
5.0 out of 5 stars Excellent overview of modern GLSL October 1, 2011
Format:Kindle Edition
This book covers OpenGL Shading Language Core profile 4 and modern OpenGL usage. It does assume some familiarity with OpenGL and C++, which helps to cut down on a lot of introductory boilerplate. It's best to start reading from the beginning, as examples and recipes build on information from previous chapters and Wolff doesn't waste space repeating the same stuff over and over, which I really appreciated.
All of the examples use the newer OpenGL APIs, and there is some basic background information on how to use them. I found this useful for people like me who have been using the fixed-function API for so long. The examples also use OpenGL Mathematics (GLM), an Open Source toolkit for working with OpenGL-style vectors and matrices. I had been unaware of this toolkit, and I'll most likely be switching to it for my next project. Wolff's style is short and to the point and keeps things moving along.
The meat of the book are the recipes, covering a wide range of shading topics, including emulating the OpenGL 2.0 fixed function pipeline, image processing, soft shadows, synthetic texture generation, and particle systems. There is a lot of information here and it is well written, though it assumes the reader is not a complete novice. Be warned, this is NOT a book for beginners.
I had a couple of minor issues with the book. Most of the examples use C++ and the STL but in a few cases Wolff falls back to using malloc/free for temporary buffers. All of the recipes are based on using geometry, and even in the image processing section it is assumed we'll be processing a 3D scene. It would be nice to have some examples focused entirely on doing 2D image processing of images directly.
Those points are very minor though and in all I thought the book was exactly what I needed to bring my skills up to the most recent OpenGL and GLSL standards.
Comment | 
Was this review helpful to you?
6 of 8 people found the following review helpful
4.0 out of 5 stars Good luck getting the source code working February 8, 2012
Format:Paperback|Verified Purchase
I've read a number of books on OpenGL Shading Language, most of them cover the same things and David Wolff is no different.

He definitely cuts back on a lot of 'fluff' (as in you don't need an explanation of a function if you're reading this book).

I was disappointed however by a very poor preparation of the hands on part of this cookbook.

My UI background goes way back to win32 to most recent WPF (and number of embedded, plus web stuff). However, I have only seen Qt in passing, and seeing this in the readme file is disheartening:
"It includes a qmake project file, so building the examples should be
very straightforward as long as you have the Qt SDK installed.
It should also load into Qt Creator quite readily."

It is not straightforward.

The problems so far and counting:
The location for glew and glm are assumed to be on c:\OpenGL ... and are not consistent from chapter to chapter.
This is not mentioned anywhere. README is a good place for that.

GLM version 0.9.0.7 is used. Granted not the author's fault, but easily preventable by including GLM with your source files or at least make a note in the README.

Chapter 9 is missing a header file. Granted you can recreate it yourself from the existing .cpp, but this only speaks poorly on the author's attitude towards cookbook-ing

I have expected a higher level of readiness from a cookbook.

If you're looking for a reference on some algorithms this book is fine, but a better choice is "OpenGL Supper Bible 5th edition" which is self sustained and you can pass it along to a complete novice.
Read more ›
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars Excellent starting point for shaders and did get into some ...
Excellent starting point for shaders and did get into some pretty advanced stuff. I would recommend this book for those who want to get a grasp on basic shading.
Published 3 months ago by Hallucinagenii
4.0 out of 5 stars Good but too short
The book offers an effective take on OpenGL 4.0 and got me started, but the book stands up poorly against the resources available for free online. Read more
Published 11 months ago by Misha
5.0 out of 5 stars Perfect for learning GLSL 4.0+
I found David Wolff's book to be very helpful in learning the foundations of GLSL programming with OpenGL. There are some nice advance techniques covered in this book also. Read more
Published 15 months ago by Dustin Biser
5.0 out of 5 stars Super Awesome and Really Great Value
Really awesome book and incredibly good value. Makes a change to a lot of the really long OpenGL books because you can find the OpenGL nugget you're interested in learning about or... Read more
Published on January 9, 2012 by JamesBedford
4.0 out of 5 stars OpenGL 4.0 Shading Language Cookbook
Title: OpenGL 4.0 Shading Language Cookbook
Author: David Wolf
Publisher: Packt Publishing Ltd. Read more
Published on November 30, 2011 by Invictus
5.0 out of 5 stars Best OpenGL 4 Book
This is one of the few books that I owned both paper and digital versions. It is the best book on modern OpenGL (non-fixed pipeline). Read more
Published on September 25, 2011 by Anhui Feidong
5.0 out of 5 stars excellent book on core glsl programming
Finally, I[ve found a book that explains very well the in and out of glsl programming.
The book is core profile all the way, without any opengl 2.1 stub. Read more
Published on August 20, 2011 by A C++/C# programer
Search Customer Reviews
Search these reviews only

More About the Author

Discover books, learn about writers, read author blogs, and more.

What Other Items Do Customers Buy After Viewing This Item?


Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Look for Similar Items by Category