Table Of Content1. Overview of WebGL 2. Your First Step with WebGL 3. Drawing and Transforming Triangles 4. More Transformations and Basic Animation 5. Using Colors and Texture Images 6. The OpenGL ES Shading Language (GLSL ES) 7. Toward the 3D World 8. Lighting Objects 9. Hierarchical Objects 10. Advanced Techniques A. No Need to Swap Buffers in WebGL B. Built-in Functions of GLSL ES 1.0 C. Projection Matrices D. WebGL/OpenGL: Left or Right Handed? E. The Inverse Transpose Matrix F. Load Shader Programs from Files G. World Coordinate System Versus Local Coordinate System H. Web Browser Settings for WebGL Glossary References Index
SynopsisUsing WebGL(R), you can create sophisticated interactive 3D graphics inside web browsers, without plug-ins. WebGL makes it possible to build a new generation of 3D web games, user interfaces, and information visualization solutions that will run on any standard web browser, and on PCs, smartphones, tablets, game consoles, or other devices. WebGL Programming Guide will help you get started quickly with interactive WebGL 3D programming, even if you have no prior knowledge of HTML5, JavaScript, 3D graphics, mathematics, or OpenGL. You'll learn step-by-step, through realistic examples, building your skills as you move from simple to complex solutions for building visually appealing web pages and 3D applications with WebGL. Media, 3D graphics, and WebGL pioneers Dr. Kouichi Matsuda and Dr. Rodger Lea offer easy-to-understand tutorials on key aspects of WebGL, plus 100 downloadable sample programs, each demonstrating a specific WebGL topic. You'll move from basic techniques such as rendering, animating, and texturing triangles, all the way to advanced techniques such as fogging, shadowing, shader switching, and displaying 3D models generated by Blender or other authoring tools. This book won't just teach you WebGL best practices, it will give you a library of code to jumpstart your own projects. Coverage includes: - WebGL's origin, core concepts, features, advantages, and integration with other web standards - How and basic WebGL functions work together to deliver 3D graphics - Shader development with OpenGL ES Shading Language (GLSL ES) - 3D scene drawing: representing user views, controlling space volume, clipping, object creation, and perspective - Achieving greater realism through lighting and hierarchical objects - Advanced techniques: object manipulation, heads-up displays, alpha blending, shader switching, and more - Valuable reference appendixes covering key issues ranging from coordinate systems to matrices and shader loading to web browser settings This is the newest text in the OpenGL Technical Library, Addison-Wesley's definitive collection of programming guides an reference manuals for OpenGL and its related technologies. The Library enables programmers to gain a practical understanding of OpenGL and the other Khronos application-programming libraries including OpenGL ES and OpenCL. All of the technologies in the OpenGL Technical Library evolve under the auspices of the Khronos Group, the industry consortium guiding the evolution of modern, open-standards media APIs., With this book, students will learn step-by-step, through realistic examples, building their skills as they move from simple to complex solutions for building visually appealing web pages and 3D applications with WebGL. Media, 3D graphics, and WebGL pioneers Dr. Kouichi Matsuda and Dr. Rodger Lea offer easy-to-understand tutorials on key aspects of WebGL, plus 100 downloadable sample programs, each demonstrating a specific WebGL topic. Students will move from basic techniques such as rendering, animating, and texturing triangles, all the way to advanced techniques such as fogging, shadowing, shader switching, and displaying 3D models generated by Blender or other authoring tools. This book won't just teach WebGL best practices, it will give a library of code to jumpstart projects., Using WebGL®, you can create sophisticated interactive 3D graphics inside web browsers, without plug-ins. WebGL makes it possible to build a new generation of 3D web games, user interfaces, and information visualization solutions that will run on any standard web browser, and on PCs, smartphones, tablets, game consoles, or other devices. WebGL Programming Guide will help you get started quickly with interactive WebGL 3D programming, even if you have no prior knowledge of HTML5, JavaScript, 3D graphics, mathematics, or OpenGL. You'll learn step-by-step, through realistic examples, building your skills as you move from simple to complex solutions for building visually appealing web pages and 3D applications with WebGL. Media, 3D graphics, and WebGL pioneers Dr. Kouichi Matsuda and Dr. Rodger Lea offer easy-to-understand tutorials on key aspects of WebGL, plus 100 downloadable sample programs, each demonstrating a specific WebGL topic. You'll move from basic techniques such as rendering, animating, and texturing triangles, all the way to advanced techniques such as fogging, shadowing, shader switching, and displaying 3D models generated by Blender or other authoring tools. This book won't just teach you WebGL best practices, it will give you a library of code to jumpstart your own projects. Coverage includes: * WebGL's origin, core concepts, features, advantages, and integration with other web standards* How and basic WebGL functions work together to deliver 3D graphics* Shader development with OpenGL ES Shading Language (GLSL ES)* 3D scene drawing: representing user views, controlling space volume, clipping, object creation, and perspective* Achieving greater realism through lighting and hierarchical objects* Advanced techniques: object manipulation, heads-up displays, alpha blending, shader switching, and more* Valuable reference appendixes covering key issues ranging from coordinate systems to matrices and shader loading to web browser settings This is the newest text in the OpenGL Technical Library, Addison-Wesley's definitive collection of programming guides an reference manuals for OpenGL and its related technologies. The Library enables programmers to gain a practical understanding of OpenGL and the other Khronos application-programming libraries including OpenGL ES and OpenCL. All of the technologies in the OpenGL Technical Library evolve under the auspices of the Khronos Group, the industry consortium guiding the evolution of modern, open-standards media APIs., With this book, students will learn step-by-step, through realistic examples, building their skills as they move from simple to complex solutions for building visually appealing web pages and 3D applications with WebGL. Media, 3D graphics, and WebGL pioneers Dr. Kouichi Matsuda and Dr. Rodger Lea offer easy-to-understand tutorials on key aspects of WebGL, plus 100 downloadable sample programs, each demonstrating a specific WebGL topic. Students will move from basic techniques such as rendering, animating, and texturing triangles, all the way to advanced techniques such as fogging, shadowing, shader switching, and displaying 3D models generated by Blender or other authoring tools.