Book Image

C++ Game Animation Programming - Second Edition

By : Michael Dunsky, Gabor Szauer
4.5 (2)
Book Image

C++ Game Animation Programming - Second Edition

4.5 (2)
By: Michael Dunsky, Gabor Szauer

Overview of this book

If you‘re fascinated by the complexities of animating video game characters and are curious about the transformation of model files into 3D avatars and NPCs that can explore virtual worlds, then this book is for you. In this new edition, you’ll learn everything you need to know about game animation, from a simple graphical window to a large crowd of smoothly animated characters. First, you’ll learn how to use modern high-performance graphics, dig into the details of how virtual characters are stored, and load the models and animations into a minimalistic game-like application. Then, you’ll get an overview of the components of an animation system, how to play the animations and combine them, and how to blend from one animation into another. You’ll also get an introduction to topics that will make your programming life easier, such as debugging your code or stripping down the graphical output. By the end of this book, you’ll have gained deep insights into all the parts of game animation programming and how they work together, revealing the magic that brings life to the virtual worlds on your screen.
Table of Contents (22 chapters)
1
Part 1:Building a Graphics Renderer
7
Part 2: Mathematics Roundup
10
Part 3: Working with Models and Animations
15
Part 4: Advancing Your Code to the Next Level

Basic anatomy of a Vulkan application

Vulkan was released in 2016 as a successor to OpenGL. The goal was to develop a modern, scalable, low-overhead, cross-platform, 3D graphics API capable of matching the growing number of processors in computers and polygons in games and graphics applications. At the same time, the development of new features for OpenGL had slowed down. The latest version, 4.6, was released in 2017, and it will be still maintained for many more years, but we should look at the changes Vulkan brings to the 3D rendering process.

This is a picture of the – more or less – most important required objects to draw colorful triangles on the screen. Additionally, approximately 30 Vulkan C-style struct definitions must be constructed to create these objects:

Figure 3.1: Main Vulkan objects and their dependencies

Figure 3.1: Main Vulkan objects and their dependencies

We will take a closer look at these objects and their functions in the rendering process:

  • OS Window: This is...