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


Realistic games are impossible to create without physics engines. This chapter introduced you to the most exciting areas in game development using WebGL and physics. We started our journey by creating terrain geometry and finished it by making the geometry an active physics static rigid body. We also covered how a physics engine is decoupled from the rendering code and demonstrated how 3D graphics objects are linked to the physics object. The concepts such as collisions, forces, and impulse are in the core of each game.

We used JigLib as a reference library to implement physics in our game.

In the next chapter, we will introduce you to your enemy Mr. Green and animate his body using bones and joints.