8
Loading Models
in the glTF Format
Welcome to Chapter 8! In the previous two chapters, we explored the mathematical elements and GLM data types of Vector, Matrix, Quaternion, and Spline.
In this chapter, you will learn how to use these four data types to transform the data from the glTF model description in a file into a C++ model class, storing the first parts of the glTF data to display a static, non-animated model on the screen. We will progressively expand the C++ model class in the upcoming chapters, incorporating additional data from the glTF model we utilize.
At the end of the chapter, you will know the basic elements of the glTF format, how to load it into a C++ class using a glTF loader library, and how to display the loaded model on the screen in the OpenGL and Vulkan renderer.
In this chapter, we will cover the following topics:
- An analysis of the glTF file format
- Exploring an example glTF file
- Using a C++ glTF loader to get the model data ...