close menu
Bookswagon-24x7 online bookstore
close menu
My Account
The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics(English)

The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics(English)

          
5
4
3
2
1

Out of Stock


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the Book

"Cg is the key to unlocking the power of a new generation of programmable graphics hardware. This book is the definitive introduction to Cg, and will be essential for anyone programming high-quality real-time graphics. The Cg Tutorial will teach you to use Cg to create effects never before available for real-time applications." --Larry Gritz, Author of Advanced RenderMan (Morgan Kaufmann, 2000) "An important and timely book: Pixel-level procedural textures--animated clouds, fire, water, the whole bag of procedural tricks--finally go from the movie screen to the desktop. Access to computation of this power through a C-like language will usher in an exciting new era for the graphics community." --Ken Perlin, Professor, New York University Cg (C for graphics) is a complete programming environment for the fast creation of special effects and real-time cinematic quality experiences on multiple platforms. By providing a new level of abstraction, Cg lets developers more directly target OpenGL , DirectX , Windows , Linux, Mac OS X , and console platforms, such as the Xbox , without having to program directly to the graphics hardware assembly language. Cg was developed by NVIDIA Corporation in close collaboration with Microsoft Corporation, and is compatible with both the OpenGL API and Microsoft's HLSL for DirectX 9.0. The Cg Tutorial explains how to implement both basic and advanced techniques for today's programmable GPU architectures. Major topics covered include: 3D transformations Per-vertex and per-pixel lighting Skinning and key-frame interpolation Environment mapping Bump mapping Fog Performance optimization Projective texturing Cartoon shading Compositing The accompanying CD-ROM includes the tools needed to run the sample programs in the book. 0321194969B02192003

Table of Contents:
Figures and Plates. Examples. Tables. Equations. Foreword. Preface. 1. Introduction. What Is Cg? A Language for Programming Graphics Hardware. Cg's Data-Flow Model. GPU Specialization and CPU Generalization. The Performance Rationale for Cg. Coexistence with Conventional Languages. Other Aspects of Cg. The Limited Execution Environment of Cg Programs. Vertices, Fragments, and the Graphics Pipeline. The Evolution of Computer Graphics Hardware. Four Generations of Computer Graphics Hardware. The Graphics Hardware Pipeline. The Programmable Graphics Pipeline. Cg Provides Vertex and Fragment Programmability. Cg's Historical Development. Microsoft and NVIDIA's Collaboration to Develop Cg and HLSL. Noninteractive Shading Languages. Programming Interfaces for 3D Graphics. The Cg Environment. Standard 3D Programming Interfaces: OpenGL and Direct3D. The Cg Compiler and Runtime. The CgFX Toolkit and File Format. Exercises. Further Reading. 2. The Simplest Programs. A Simple Vertex Program. Output Structures. Identifiers. Structure Members. Vectors. Matrices. Semantics. Functions. Input and Output Semantics Are Different. The Function Body. Compiling Your Example. Vertex Program Profiles. Classes of Cg Compilation Errors. Profile-Dependent Errors. The Norm: Multiple Entry Functions. Downloading and Configuring Vertex and Fragment Programs. A Simple Fragment Program. Fragment Program Profiles. Rendering with Your Vertex and Fragment Program Examples. Rendering a Triangle with OpenGL. Rendering a Triangle with Direct3D. Getting the Same Results. Exercises. Further Reading. 3. Parameters, Textures, and Expressions. Parameters. Uniform Parameters. The const Type Qualifier. Varying Parameters. Texture Samplers. Sampler Objects. Sampling Textures. Sending Texture Coordinates While Sampling a Texture. Math Expressions. Operators. Profile-Dependent Numeric Data Types. Standard Library Built-In Functions. 2D Twisting. Double Vision. Exercises. Further Reading. 4. Transformations. Coordinate Systems. Object Space. Homogeneous Coordinates. World Space. The Modeling Transform. Eye Space. The View Transform. Clip Space. The Projection Transform. Normalized Device Coordinates. Window Coordinates. Applying the Theory Exercises. Further Reading. 5. Lighting. Lighting and Lighting Models. Implementing the Basic Per-Vertex Lighting Model. The Basic Lighting Model. A Vertex Program for Basic Per-Vertex Lighting. The Fragment Program for Per-Vertex Lighting. Per-Vertex Lighting Results. Per-Fragment Lighting. Implementing Per-Fragment Lighting. The Vertex Program for Per-Fragment Lighting. The Fragment Program for Per-Fragment Lighting. Creating a Lighting Function. Declaring a Function. A Lighting Function Structures. Arrays. Flow Control. Computing the Diffuse and Specular Lighting. Extending the Basic Model. Distance Attenuation. Adding a Spotlight Effect. Directional Lights. Exercises. Further Reading. 6. Animation. Movement in Time. A Pulsating Object. The Vertex Program. Displacement Calculation. Particle Systems. Initial Conditions. Vectorized Computations. The Particle System Parameters. The Vertex Program. Dressing Up Your Particle System. Key-Frame Interpolation. Key-Framing Background. Interpolation Approaches. Basic Key-Frame Interpolation. Key-Frame Interpolation with Lighting. Vertex Skinning. The Theory of Vertex Skinning. Vertex Skinning in a Vertex Program. Exercises. Further Reading. 7. Environment Mapping Techniques. Environment Mapping. Cube Map Textures. Generating Cube Maps. The Environment Mapping Concept. Computing Reflection Vectors. Assumptions for Environment Mapping. Reflective Environment Mapping. Application-Specified Parameters. The Vertex Program. The Fragment Program. Control Maps. Vertex Program vs. Fragment Program. Refractive Environment Mapping. The Physics of Refraction. The Vertex Program. The Fragment Program. The Fresnel Effect and Chromatic Dispersion. The Fresnel Effect. Chromatic Dispersion. Application-Specified Parameters. The Vertex Program. The Fragment Program. Exercises. Further Reading. 8. Bump Mapping. Bump Mapping a Brick Wall. The Brick Wall Normal Map. Storing Bump Maps As Normal Map Textures. Simple Bump Mapping for a Brick Wall. Specular Bump Mapping. Bump Mapping Other Geometry. Bump Mapping a Brick Floor. The Vertex Program for Rendering a Brick Floor. Bump Mapping a Torus. The Mathematics of the Torus. The Bump-Mapped Torus Vertex Program. Bump Mapping Textured Polygonal Meshes. Examining a Single Triangle. Caveats. Generalizing to a Polygonal Mesh. Combining Bump Mapping with Other Effects. Decal Maps. Gloss Maps. Geometric Self-Shadowing. Exercises. Further Reading. 9. Advanced Topics. Fog. Uniform Fog. The Attributes of Fog. The Mathematics of Fog. Intuiting the Equations. Creating Uniform Fog with Cg. Nonphotorealistic Rendering. Toon Shading. Implementing Toon Shading. Putting It All Together. Problems with This Technique. Projective Texturing. How Projective Texturing Works. Implementing Projective Texturing. The Code for Projective Texturing. Shadow Mapping. Compositing. Mapping Input to Output Pixels. Basic Compositing Operations. Exercises. Further Reading. 10. Profiles and Performance. Profile Descriptions. The Vertex Shader Profile for DirectX 8. The Basic NVIDIA Vertex Program Profile for OpenGL. The ARB Vertex Program Profile for OpenGL. The Vertex Shader Profiles for DirectX 9. The Advanced NVIDIA Vertex Program Profile for OpenGL. The Pixel Shader Profiles for DirectX 8. The Basic NVIDIA Fragment Program Profile for OpenGL. The DirectX 9 Pixel Shader Profiles. The ARB Fragment Program Profile for OpenGL. The Advanced NVIDIA Fragment Program Profile for OpenGL. Performance. Use the Cg Standard Library. Take Advantage of Uniform Parameters. Using Vertex Programs vs. Fragment Programs. Data Types and Their Impact on Performance. Take Advantage of Vectorization. Use Textures to Encode Functions. Use Swizzling and Negation Freely. Shade Only the Pixels That You Must. Shorter Assembly Is Not Necessarily Faster. Exercises. Further Reading. Appendix A. Getting Started with Cg. Getting This Book's Accompanying Software. Getting the Cg Toolkit. Appendix B. The Cg Runtime. What Is the Cg Runtime? Why Use the Cg Runtime? Future-Proofing. No Dependency Issues. Input Parameter Management. How Does the Cg Runtime Work?. Header Files. Creating a Context. Compiling a Program. Loading a Program. Modifying the Program Parameters. Executing a Program. Releasing Resources. Handling Errors. More Details. Appendix C. The CgFX File Format. What Is CgFX? Format Overview. Techniques. Passes. Render States. Variables and Semantics. Annotations. A Sample CgFX File. Cg Plug-Ins Supporting the CgFX Format. Learning More About CgFX. Appendix D. Cg Keywords. Cg Keyword List. Appendix E. Cg Standard Library Functions. Mathematical Functions. Geometric Functions. Texture Map Functions. Derivative Functions. Debugging Function. Index. 0321194969T02192003


Best Seller

| | See All

Product Details
  • ISBN-13: 9780321194961
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison-Wesley Educational Publishers Inc
  • Height: 186 mm
  • No of Pages: 384
  • Spine Width: 26 mm
  • Weight: 821 gr
  • ISBN-10: 0321194969
  • Publisher Date: 06 Mar 2003
  • Binding: SA
  • Language: English
  • Series Title: English
  • Sub Title: The Definitive Guide to Programmable Real-Time Graphics
  • Width: 232 mm


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Be The First to Review
The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics(English)
Pearson Education (US) -
The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics(English)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

The Cg Tutorial: The Definitive Guide to Programmable Real-Time Graphics(English)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | | See All


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA