Game Development Reference
In-Depth Information
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: texture animation