ebook img

Shaders for Game Programmers and Artists (Premier Press Game Development (Paperback)) PDF

513 Pages·2004·6.78 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Shaders for Game Programmers and Artists (Premier Press Game Development (Paperback))

TEAM LinG - Live, Informative, Non-cost and Genuine ! TEAM LinG - Live, Informative, Non-cost and Genuine ! This page intentionally left blank TEAM LinG - Live, Informative, Non-cost and Genuine ! TEAM LinG - Live, Informative, Non-cost and Genuine ! ©2004 by Thomson Course Technology PTR.All rights reserved.No part ofthis SVP,Thomson Course book may be reproduced or transmitted in any form or by any means,electronic Technology PTR: or mechanical,including photocopying,recording,or by any information stor- AndyShafran age or retrieval system without written permission from Thomson Course Tech- Publisher: nology PTR,except for the inclusion ofbriefquotations in a review. Stacy L.Hiquet The Premier Press and Thomson Course Technology PTR logo and related Senior Marketing Manager: trade dress are trademarks ofThomson Course Technology PTR and may not Sarah O’Donnell be used without written permission. Marketing Manager: NVIDIA® is a registered trademark ofNVIDIA Corporation. Heather Hurley RenderMonkey™ is a trademark ofATI Technologies,Inc. Manager ofEditorial Services: DirectX® is a registered trademark ofMicrosoft Corporation. Heather Talbot All other trademarks are the propertyoftheir respective owners. Acquisitions Editor: Mitzi Foster Important: Thomson Course Technology PTR cannot provide software sup- port.Please contact the appropriate software manufacturer’s technical support Senior Editor: line or Web site for assistance. Mark Garvey Thomson Course Technology PTR and the author have attempted throughout Associate Marketing Managers: this book to distinguish proprietary trademarks from descriptive terms by fol- Kristin Eisenzopfand lowing the capitalization style used by the manufacturer. Sarah Dubois Information contained in this book has been obtained by Thomson Course Project Editor: Technology PTR from sources believed to be reliable.However,because ofthe Sandy Doell possibility of human or mechanical error by our sources, Thomson Course Technical Reviewer: Technology PTR,or others,the Publisher does not guarantee the accuracy,ade- Mathieu Mazerolle quacy,or completeness ofany information and is not responsible for any errors or omissions or the results obtained from use of such information. Readers Thomson Course Technology should be particularly aware of the fact that the Internet is an ever-changing PTR Market Coordinator: entity.Some facts may have changed since this book went to press. Amanda Weaver Educational facilities, companies, and organizations interested in multiple Interior Layout Tech: copies or licensing ofthis book should contact the publisher for quantity dis- Marian Hartsough count information.Training manuals,CD-ROMs,and portions ofthis book are Cover Designer: also available individually or can be tailored for specific needs. MikeTanamachi ISBN:1-59200-092-4 CD-ROM Producer: Library ofCongress Catalog Card Number:2004105651 Brandon Penticuff Printed in the United States ofAmerica Indexer: 04 05 06 07 08 BH 10 9 8 7 6 5 4 3 2 1 Kelly Talbot Proofreader: Sean Medlock Thomson Course Technology PTR, a division ofThomson Course Technology 25 Thomson Place Boston,MA 02210 http://www.courseptr.com TEAM LinG - Live, Informative, Non-cost and Genuine ! To my wife, Nicole, for all her love and support while I wrote this book. TEAM LinG - Live, Informative, Non-cost and Genuine ! Acknowledgments F irst and foremost,I want to thank my wife Nicole for all of her support through- out this project.Writing a book can be a major undertaking,and without her help and love,I would never have completed this one or might have lost my sanity doing so.I love you! I also want to extend a big thanks to the Thomson Course Technology PTR team,first for giving me the opportunity to write this book, but also for all your help and support in making it come true. Mathieu Mazerolle also deserves special mention for his efforts as a longtime friend and technical editor.His help proved invaluable in making sure I was in line and ensuring this book was the best possible book it could be.I also want to send my thanks to the kind peo- ple at NVIDIA and ATI Technologies for their technical information, which helped immensely with this production. Finally,I want to thank everyone who has taught me in some way,including the awesome teachers at Sherbrooke University and,more importantly,Larry Landry and Glen Eagan for offering me an internship as part of the video game industry; thus launching my career. vi TEAM LinG - Live, Informative, Non-cost and Genuine ! About the Author SEBASTIEN ST-LAURENT has been programming games professionally for several years, working on titles for the Xbox,PlayStation 2,GameCube,and PC.He started in the video game industry while studying computer engineering at Sherbrooke University in Sher- brooke,Quebec.By interning in a small company called Future Endeavors during his col- lege years,he got into the industry and stood out in the line of graphics engineering. After graduating from college, he moved to California to work full time with Z-Axis as lead Xbox engineer,where he worked on several titles including the Dave Mirra Freestyle BMX series. He is a graphics engineer in the ACES group at Microsoft, Inc, where he is currently working on the next incarnation of Microsoft’s Flight Simulator product. About the Series Editor ANDRÉ LAMOTHE, CEO, Xtreme Games LLC, has been involved in the computing industry for more than 25 years. He wrote his first game for the TRS-80 and has been hooked ever since! His experience includes 2D/3D graphics,AI research at NASA,com- piler design,robotics,virtual reality,and telecommunications.His books are top sellers in the game programming genre,and his experience is echoed in the Thomson Course Technology PTR Game Developmentseries. vii TEAM LinG - Live, Informative, Non-cost and Genuine ! Letter from the Series Editor You may have noticed that the Thomson Course Technology PTR Game Develop- ment series has not published a book on shaders until this one.This is no mistake. We were waiting for a number of things to occur: first and foremost, for the tech- nology to mature.If you recall the initial release of DirectX,you know that the soft- ware was revised almost on a quarterly basis,and worse yet,everything you learned was nearly useless until DirectX 5.0 stabilized a number of the systems.Shader pro- gramming is a similar animal; it’s been changing very quickly; however, both NVIDIA and ATI seem to have the hardware down,and Microsoft has stepped up to take a leadership role in the development ofHLSL (High Level Shader Language) to make programming shaders as effortless as possible. The second,and probably most important,reason we have held offon a book in this area is that,as the series editor,I wanted to have a book that was the quintessential guide to beginning to intermediate shader programming.Finding the right author to do that has taken a long time,but the wait was well worth it.Sebastien St-Laurent is expert at shader programming,but even more important is his ability to make the topic interesting and engaging. Moreover, the information you read in this book will not be out of date in six months;this is core material,and 90 percent ofit will be applicable three to five years from now, so you are going to get an incredible return on your time investment. There are a lot of shader books on the market. I have read all of them. When Sebastien and I developed the outline and table of contents for this book,we both wanted to make sure to cover the important material that others had covered while filling the holes and gaps that other books haverepeatedly left out. In the final analysis, this is one of my favorite Thomson Course Technology PTR Game Development books. Not only does the book move at a fast (although not a blinding) pace, the writing style is fun, and the author continually gives examples and suggestions of how to use the technology.In addition,because the book relies heavily on ATI’s RenderMonkey shader tool,non-programmers and artists can learn a lot as well. On a technical note, the progress of graphics technology over the last 25 years is rather cyclic.Ifyou recall,the first 3D games were software-based with software ras- terizers: DOOM, QUAKE, and related games. Then, as 3D fixed pipeline hardware matured, games started taking advantage and became hardware-based, and the pipeline moved to the hardware with the result that a huge loss of control ensued. TEAM LinG - Live, Informative, Non-cost and Genuine ! Now,however,we can run software on a per pixel basis,and that’s a mind-blowing concept.So shaders bring us full circle;we have the speed ofhardware with the flex- ibility of software.I suppose the next step will be for the hardware to be completely reconfigurable via reprogrammable logic cores embedded in the GPUs . . . we will see. Inconclusion,if you had to pick a single book on pixel and vertex shader program- ming, this is the complete solution. You will learn everything from the tools, the technology,and actual implementation details.And of course this is all freshmater- ial,not regurgitated,updated material from articles or other books.Hence,without hesitation, I recommend this book if you are interested at all in shader technology. Sincerely, André LaMothe Thomson Course Technology PTR Game DevelopmentSeries Editor 2004 TEAM LinG - Live, Informative, Non-cost and Genuine !

Description:
This is the first book approaching the topic of shaders in such an accessible manner. By taking a simple, easy-to-follow approach to the high-level language of this topic and separating itself from 3D API's "Shaders for Game Programmers and Artists" brings the world of real-time shading to a broad a
See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.