O'Reilly logo

WebGL Game Development by Sumeet Arora

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Applying Textures and Simple Animations to Our Scene

Until now, we have only added static objects to our scene, but in this chapter, we will animate our objects. We need simple animations in all our games. We will start by simulating a first-person camera and take it forward by giving weapons to our character in 5000 AD. We will introduce you to different animation techniques used in game engines. Then we will apply the most common animation techniques used in HTML based games. The topics we will cover are as follows:

  • Architectural update: add textures to our scene
  • Animation types in 3D games
  • First-person camera
  • Simple bullet action: linear animation
  • Multiple bullets: how to reuse objects
  • Grenade action: B-spline interpolation
  • Explosion effect: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required