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

Summary


In gaming applications, textures are the key factors that affect the performance as well as the look of the game. The size of the texture and intelligent use of concepts, such as mipmapping, will decide how your game would perform. Also, we learned how to map texture coordinates to vertex coordinates, which is a very important concept to control the overall memory footprint of your objects in the GPU. If you plan to use open source WebGL libraries to create your games, these concepts will come in handy as you might have to tweak them to get the last bit of performance from your game.

In the next chapter, we will learn about the different types of camera used in 3D games. We will also write a new Camera class to view our world in 5000 AD with different perspectives.