In this chapter, we will cover:
Controlling a model with the help of trackball rotation
Translating the model in world coordinates
Scaling a model
Viewing the model hierarchy information
Highlighting individual meshes of a model
Implementing a rigid model animation
Creating a terrain with texture mapping
Customizing vertex formats
Calculating the normal vectors from a model vertex
Simulating an ocean on your CPU
3D games are almost the main stream in modern times; StarCraft 2 has been transformed from 2D to 3D, the same with Diablo 3. 3D games are different from their 2D counterparts in that they provide more realistic experiences for players. You can easily explore the entire game world just with your eyes, and also drive a Porsche Boxster Spyder around San Francisco at high speed, which is not allowed in real life. To make a 3D game on your own is amazing and fun. In every 3D game, the models from the modeling software are the vital...