Skip to content
ISBN: 1558608532
ISBN13: 9781558608535

Real-Time Shader Programming (The Morgan Kaufmann Series in Computer Graphics)

$69.79List Price: $89.95
Save $20.16!
ISBN: 1558608532
ISBN13: 9781558608535
Formats

Conditions

A readable copy with all pages intact.

Formats

Conditions

A readable copy with all pages intact.

See all 1 editionsfrom $69.79

Book Overview

Now that PC users have entered the realm of programmable hardware, graphics programmers can create 3D images and animations comparable to those produced by RenderMan's procedural programs---but in real time. Here is a book that will bring this cutting-edge technology to your computer. Beginning with the mathematical basics of vertex and pixel shaders, and building to detailed accounts of programmable shader operations, Real-Time Shader Programming provides the foundation and techniques necessary for replicating popular cinema-style 3D graphics as well as creating your own real-time procedural shaders. A compelling writing style, color illustrations throughout, and scores of online resources make Real-Time Shader Programming an indispensable tutorial/reference for the game developer, graphics programmer, game artist, or visualization programmer, to create countless real-time 3D effects. This description may be from another edition of this product.
Format:
Paperback
Language:
English
ISBN:
1558608532
ISBN13:
9781558608535
Release Date:
January 2003
Publisher:
Elsevier Science & Technology
Length:
424 Pages
Weight:
2.15 lbs.
Dimensions:
9.0″ × 1.0″ × 7.3″
ComputersComputers & TechnologyStructured Design

More by Ron Fosner

Customer Reviews

3 customer ratings | 3 reviews
Write a Review

A nice introduction to a complex subject

In "Real-Time Shader Programming", Ron Fosner describes the essential elements necessary for developing shaders in a very approachable full color book that spans just over 400 pages. The book includes a CD with a beta version ATI's RenderMonkey and coded examples of many of the shaders discussed in the text.Shaders are a relatively new option in the rendering pipeline. By taking explicit control over how vertices and pixels are processed by the graphics hardware, a virtually unlimited number of special effects are available to the programmer. Generally, custom lighting, coloring, or texture mapping are used to create a unique look for an application.Beginning with elementary vector math, the book moves quickly into lighting theory. The lighting chapter highlights the mathematical approximation of physically based lighting using the traditional ambient, specular, diffuse, and emissive colors in a scene. Representations for reflection and refraction are derived from Snell's Law, and Fresnel equations. Finally, non-photo realistic rendering (from cel shading, tonal art maps, and hatching) is covered through pictures and a wealth of external references. The chapter makes for an enjoyable read by providing an understandable background to lighting techniques to non-seasoned graphics programmers.Fosner describes how to set up the DirectX pipeline to use shaders. While he touches on some of the nuances you're likely to encounter, the DirectX section seemed a bit sparse compared to the earlier chapters. The DirectX setup calls specific to shaders were well documented, however the chapter didn't dwell on creating the pipeline.In the subsequent chapter, Fosner discusses several current shader creation and visualization tools. The chapter is relatively short in length perhaps due in part to the volatility and newness of cutting edge shader tools. While high level shader tools, like Nvidia's Cg or Microsoft's High Level Shader Language were briefly mentioned, the book instead focused on the shader language primitives. As such, it provided a sound fundamental shader approach that is universal to all higher-level shader implementations.Having the groundwork firmly in place, Fosner provides a wealth of shader examples. Starting with the minimal vertex shader, additional functionality is layered to build more complex shaders. Sample shaders are developed using the lighting equations presented earlier. While it may take a little time to digest some of the more sophisticated examples, like the cartoon shader, the text provides adequate descriptive detail coupled with helpful color pictures to make it easier.The final chapter provides a vertex and pixel command reference. Each command describes the supported shader version, usage, and a short example. The book covers shader implementations for both DirectX 8.x and DirectX 9. Differences between the two versions are noted throughout the sample code and reference section. When appropriate, additional

0

Excellent introduction to DirectX shaders

If you know very little about DirectX 8 or 9 shader programming this book is an excellent introduction. It is low level assembly only, no Cg or HLSL, but in my opinion you need to know the assembly programming to ensure the best performance of your shaders. The introductory material is good, covering basic things you should know, ambient, diffuse, specular, and Fresnel equations. The second section builds working shaders implementing these basic concepts. The third section is a shader assembler reference. IMO this book is well written and an easy read.

0

A good shader intro book

I picked up some of the other book on shaders for DX and it turned out to be a cookie cutter book. There was little explanation on what the shaders were DOING - just source code. I found that frustrating. This book gois into much more explanation of what a shader does and how you program them, so its good for someone leaning how to program shaders. The other book and the new Cg book are more if youre looking for cut and paste. This book did not cover hlsl since hlsl wasnt finished when the book was, but, oddly enough, it does talk about using DX9 and about the DX9 low level language.If you already know shaders or just want source code then look at the other books. This could have had more examples. It did have a big section on the mathematics of light which I found interesting.

0