Book Image

WebGL Game Development

By : Sumeet Arora
Book Image

WebGL Game Development

By: Sumeet Arora

Overview of this book

<p>WebGL, the web implementation of Open GL, is a JavaScript API used to render interactive 3D graphics within any compatible web browser, without the need for plugins. It helps you create detailed, high-quality graphical 3D objects easily. WebGL elements can be mixed with other HTML elements and composites to create high-quality, interactive, creative, innovative graphical 3D objects.</p> <p>This book begins with collecting coins in Super Mario, killing soldiers in Contra, and then quickly evolves to working out strategies in World of Warcraft. You will be guided through creating animated characters, image processing, and adding effects as part of the web page canvas to the 2D/3D graphics. Pour life into your gaming characters and learn how to create special effects seen in the most powerful 3D games. Each chapter begins by showing you the underlying mathematics and its programmatic implementation, ending with the creation of a complete game scene to build a wonderful virtual world.</p>
Table of Contents (17 chapters)
WebGL Game Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Understanding WebGL


WebGL is a JavaScript API based on OpenGL ES 2.0. OpenGL ES 2.0 is the API for 3D rendering on smartphones running on the iPhone and Android platforms. WebGL enables web content to perform 3D rendering in HTML canvas in browsers that support it. Hence, to learn game development using WebGL, you need to understand JavaScript and HTML basics. If you have an understanding of the mathematics involved in 3D graphics, that's great. However, it is not a must to understand this book. The WebGL program consists of a JavaScript control code and a shader code. The shader code executes on the computer's GPU.